Skip to content

Commit 3b49bf1

Browse files
committed
docs(make-it-yours): add reset button
1 parent 0c0e669 commit 3b49bf1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

apps/website/src/components/make-it-yours/make-it-yours.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,13 @@ export default component$(() => {
509509
</div>
510510
</ModalContent>
511511

512-
<ModalFooter class=" flex w-full justify-end gap-4">
512+
<ModalFooter class=" flex w-full justify-between gap-4">
513+
<Button
514+
look="ghost"
515+
onClick$={() => setTheme(theme?.includes('dark') ? 'dark' : 'light')}
516+
>
517+
Reset
518+
</Button>
513519
<CopyCssConfig />
514520
</ModalFooter>
515521
<button onClick$={() => (showSig.value = false)} class="absolute right-6 top-7">

packages/kit-styled/src/components/button/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const buttonVariants = cva(
1010
variants: {
1111
look: {
1212
primary:
13-
'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
13+
'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
1414
secondary:
15-
'bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
15+
'bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
1616
alert:
17-
'bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
17+
'bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all duration-100 active:press active:shadow-base border-base',
1818
outline:
1919
'shadow-sm transition-all duration-100 active:press active:shadow-base bg-background text-foreground border hover:bg-accent',
2020
ghost: 'text-accent-foreground hover:bg-accent',

0 commit comments

Comments
 (0)