doo-boilerplate 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/template-nextjs/src/components/ui/badge.tsx +6 -2
- package/templates/template-nextjs/src/components/ui/button.tsx +5 -5
- package/templates/template-nextjs/src/components/ui/card.tsx +1 -1
- package/templates/template-nextjs/src/styles/globals.css +53 -44
- package/templates/template-vite/src/components/ui/badge.tsx +6 -2
- package/templates/template-vite/src/components/ui/button.tsx +5 -5
- package/templates/template-vite/src/styles/globals.css +61 -61
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
4
4
|
import { cn } from '@/lib/utils'
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
|
-
'inline-flex items-center rounded-
|
|
7
|
+
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -13,7 +13,11 @@ const badgeVariants = cva(
|
|
|
13
13
|
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
14
14
|
destructive:
|
|
15
15
|
'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
|
16
|
-
outline: 'text-foreground',
|
|
16
|
+
outline: 'text-foreground border-border',
|
|
17
|
+
success:
|
|
18
|
+
'border-transparent bg-emerald-100 text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-400',
|
|
19
|
+
warning:
|
|
20
|
+
'border-transparent bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-400',
|
|
17
21
|
},
|
|
18
22
|
},
|
|
19
23
|
defaultVariants: { variant: 'default' },
|
|
@@ -5,14 +5,14 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
5
5
|
import { cn } from '@/lib/utils'
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
|
-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-
|
|
8
|
+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
|
-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
13
|
-
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
14
|
-
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
15
|
-
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
12
|
+
default: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 active:scale-[0.98]',
|
|
13
|
+
destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 active:scale-[0.98]',
|
|
14
|
+
outline: 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground active:scale-[0.98]',
|
|
15
|
+
secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 active:scale-[0.98]',
|
|
16
16
|
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
17
17
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
18
18
|
},
|
|
@@ -6,7 +6,7 @@ const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElemen
|
|
|
6
6
|
({ className, ...props }, ref) => (
|
|
7
7
|
<div
|
|
8
8
|
ref={ref}
|
|
9
|
-
className={cn('rounded-
|
|
9
|
+
className={cn('rounded-lg border bg-card text-card-foreground shadow-sm', className)}
|
|
10
10
|
{...props}
|
|
11
11
|
/>
|
|
12
12
|
)
|
|
@@ -1,57 +1,66 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
@theme {
|
|
4
|
-
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
--color-primary-foreground: hsl(210 40% 98%);
|
|
10
|
-
--color-secondary: hsl(210 40% 96.1%);
|
|
11
|
-
--color-secondary-foreground: hsl(222.2 47.4% 11.2%);
|
|
12
|
-
--color-muted: hsl(210 40% 96.1%);
|
|
13
|
-
--color-muted-foreground: hsl(215.4 16.3% 46.9%);
|
|
14
|
-
--color-accent: hsl(210 40% 96.1%);
|
|
15
|
-
--color-accent-foreground: hsl(222.2 47.4% 11.2%);
|
|
16
|
-
--color-destructive: hsl(0 84.2% 60.2%);
|
|
17
|
-
--color-destructive-foreground: hsl(210 40% 98%);
|
|
18
|
-
--color-border: hsl(214.3 31.8% 91.4%);
|
|
19
|
-
--color-input: hsl(214.3 31.8% 91.4%);
|
|
20
|
-
--color-ring: hsl(222.2 84% 4.9%);
|
|
21
|
-
--color-sidebar: hsl(0 0% 98%);
|
|
22
|
-
--color-sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
23
|
-
--color-sidebar-primary: hsl(240 5.9% 10%);
|
|
24
|
-
--color-sidebar-border: hsl(220 13% 91%);
|
|
4
|
+
/* Typography */
|
|
5
|
+
--font-sans: 'Inter', system-ui, sans-serif;
|
|
6
|
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
7
|
+
|
|
8
|
+
/* Radii — sharp minimal */
|
|
25
9
|
--radius-sm: 0.25rem;
|
|
26
10
|
--radius-md: 0.375rem;
|
|
27
11
|
--radius-lg: 0.5rem;
|
|
28
12
|
--radius-xl: 0.75rem;
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
|
|
14
|
+
/* Light mode — violet-tinted neutrals for a cohesive palette */
|
|
15
|
+
--color-background: hsl(0 0% 100%);
|
|
16
|
+
--color-foreground: hsl(262 30% 10%);
|
|
17
|
+
--color-card: hsl(0 0% 100%);
|
|
18
|
+
--color-card-foreground: hsl(262 30% 10%);
|
|
19
|
+
--color-popover: hsl(0 0% 100%);
|
|
20
|
+
--color-popover-foreground: hsl(262 30% 10%);
|
|
21
|
+
--color-primary: hsl(262 83% 58%);
|
|
22
|
+
--color-primary-foreground: hsl(0 0% 100%);
|
|
23
|
+
--color-secondary: hsl(262 30% 96%);
|
|
24
|
+
--color-secondary-foreground: hsl(262 47% 12%);
|
|
25
|
+
--color-muted: hsl(262 30% 96%);
|
|
26
|
+
--color-muted-foreground: hsl(262 15% 47%);
|
|
27
|
+
--color-accent: hsl(262 30% 96%);
|
|
28
|
+
--color-accent-foreground: hsl(262 47% 12%);
|
|
29
|
+
--color-destructive: hsl(0 72% 51%);
|
|
30
|
+
--color-destructive-foreground: hsl(0 0% 98%);
|
|
31
|
+
--color-border: hsl(262 25% 90%);
|
|
32
|
+
--color-input: hsl(262 25% 90%);
|
|
33
|
+
--color-ring: hsl(262 83% 58%);
|
|
34
|
+
--color-sidebar: hsl(262 30% 98%);
|
|
35
|
+
--color-sidebar-foreground: hsl(262 20% 26%);
|
|
36
|
+
--color-sidebar-primary: hsl(262 83% 58%);
|
|
37
|
+
--color-sidebar-border: hsl(262 25% 90%);
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
.dark {
|
|
34
|
-
--color-background: hsl(
|
|
35
|
-
--color-foreground: hsl(
|
|
36
|
-
--color-card: hsl(
|
|
37
|
-
--color-card-foreground: hsl(
|
|
38
|
-
--color-
|
|
39
|
-
--color-
|
|
40
|
-
--color-
|
|
41
|
-
--color-
|
|
42
|
-
--color-
|
|
43
|
-
--color-
|
|
44
|
-
--color-
|
|
45
|
-
--color-
|
|
46
|
-
--color-
|
|
47
|
-
--color-
|
|
48
|
-
--color-
|
|
49
|
-
--color-
|
|
50
|
-
--color-
|
|
51
|
-
--color-
|
|
52
|
-
--color-
|
|
53
|
-
--color-sidebar
|
|
54
|
-
--color-sidebar-
|
|
41
|
+
--color-background: hsl(262 20% 5%);
|
|
42
|
+
--color-foreground: hsl(0 0% 98%);
|
|
43
|
+
--color-card: hsl(262 20% 5%);
|
|
44
|
+
--color-card-foreground: hsl(0 0% 98%);
|
|
45
|
+
--color-popover: hsl(262 20% 7%);
|
|
46
|
+
--color-popover-foreground: hsl(0 0% 98%);
|
|
47
|
+
--color-primary: hsl(262 70% 67%);
|
|
48
|
+
--color-primary-foreground: hsl(0 0% 100%);
|
|
49
|
+
--color-secondary: hsl(262 20% 15%);
|
|
50
|
+
--color-secondary-foreground: hsl(0 0% 98%);
|
|
51
|
+
--color-muted: hsl(262 20% 15%);
|
|
52
|
+
--color-muted-foreground: hsl(262 12% 65%);
|
|
53
|
+
--color-accent: hsl(262 20% 15%);
|
|
54
|
+
--color-accent-foreground: hsl(0 0% 98%);
|
|
55
|
+
--color-destructive: hsl(0 63% 31%);
|
|
56
|
+
--color-destructive-foreground: hsl(0 0% 98%);
|
|
57
|
+
--color-border: hsl(262 20% 15%);
|
|
58
|
+
--color-input: hsl(262 20% 15%);
|
|
59
|
+
--color-ring: hsl(262 70% 67%);
|
|
60
|
+
--color-sidebar: hsl(262 25% 8%);
|
|
61
|
+
--color-sidebar-foreground: hsl(262 10% 80%);
|
|
62
|
+
--color-sidebar-primary: hsl(262 70% 67%);
|
|
63
|
+
--color-sidebar-border: hsl(262 20% 15%);
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
* {
|
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
4
4
|
import { cn } from '@/lib/utils'
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
|
-
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-
|
|
7
|
+
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -13,7 +13,11 @@ const badgeVariants = cva(
|
|
|
13
13
|
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
14
14
|
destructive:
|
|
15
15
|
'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
|
16
|
-
outline: 'text-foreground',
|
|
16
|
+
outline: 'text-foreground border-border',
|
|
17
|
+
success:
|
|
18
|
+
'border-transparent bg-emerald-100 text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-400',
|
|
19
|
+
warning:
|
|
20
|
+
'border-transparent bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-400',
|
|
17
21
|
},
|
|
18
22
|
},
|
|
19
23
|
defaultVariants: { variant: 'default' },
|
|
@@ -5,14 +5,14 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
5
5
|
import { cn } from '@/lib/utils'
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
|
-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium
|
|
8
|
+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
|
-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
13
|
-
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
14
|
-
outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
|
|
15
|
-
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
12
|
+
default: 'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 active:scale-[0.98]',
|
|
13
|
+
destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 active:scale-[0.98]',
|
|
14
|
+
outline: 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground active:scale-[0.98]',
|
|
15
|
+
secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 active:scale-[0.98]',
|
|
16
16
|
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
17
17
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
18
18
|
},
|
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
@theme {
|
|
4
|
+
/* Typography */
|
|
5
|
+
--font-sans: 'Inter', system-ui, sans-serif;
|
|
6
|
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
7
|
+
|
|
8
|
+
/* Radii — sharp minimal */
|
|
9
|
+
--radius-sm: 0.25rem;
|
|
10
|
+
--radius-md: 0.375rem;
|
|
11
|
+
--radius-lg: 0.5rem;
|
|
12
|
+
--radius-xl: 0.75rem;
|
|
13
|
+
|
|
14
|
+
/* Light mode — violet-tinted neutrals for a cohesive palette */
|
|
4
15
|
--color-background: hsl(0 0% 100%);
|
|
5
|
-
--color-foreground: hsl(
|
|
16
|
+
--color-foreground: hsl(262 30% 10%);
|
|
6
17
|
--color-card: hsl(0 0% 100%);
|
|
7
|
-
--color-card-foreground: hsl(
|
|
18
|
+
--color-card-foreground: hsl(262 30% 10%);
|
|
8
19
|
--color-popover: hsl(0 0% 100%);
|
|
9
|
-
--color-popover-foreground: hsl(
|
|
10
|
-
--color-primary: hsl(
|
|
11
|
-
--color-primary-foreground: hsl(
|
|
12
|
-
--color-secondary: hsl(
|
|
13
|
-
--color-secondary-foreground: hsl(
|
|
14
|
-
--color-muted: hsl(
|
|
15
|
-
--color-muted-foreground: hsl(
|
|
16
|
-
--color-accent: hsl(
|
|
17
|
-
--color-accent-foreground: hsl(
|
|
18
|
-
--color-destructive: hsl(0
|
|
19
|
-
--color-destructive-foreground: hsl(
|
|
20
|
-
--color-border: hsl(
|
|
21
|
-
--color-input: hsl(
|
|
22
|
-
--color-ring: hsl(
|
|
23
|
-
--color-
|
|
24
|
-
--color-
|
|
25
|
-
--color-
|
|
26
|
-
--color-
|
|
27
|
-
--color-
|
|
28
|
-
--
|
|
29
|
-
--color-sidebar: hsl(
|
|
30
|
-
--color-sidebar-
|
|
31
|
-
--color-sidebar-primary: hsl(240 5.9% 10%);
|
|
32
|
-
--color-sidebar-primary-foreground: hsl(0 0% 98%);
|
|
33
|
-
--color-sidebar-accent: hsl(240 4.8% 95.9%);
|
|
34
|
-
--color-sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
35
|
-
--color-sidebar-border: hsl(220 13% 91%);
|
|
36
|
-
--color-sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
20
|
+
--color-popover-foreground: hsl(262 30% 10%);
|
|
21
|
+
--color-primary: hsl(262 83% 58%);
|
|
22
|
+
--color-primary-foreground: hsl(0 0% 100%);
|
|
23
|
+
--color-secondary: hsl(262 30% 96%);
|
|
24
|
+
--color-secondary-foreground: hsl(262 47% 12%);
|
|
25
|
+
--color-muted: hsl(262 30% 96%);
|
|
26
|
+
--color-muted-foreground: hsl(262 15% 47%);
|
|
27
|
+
--color-accent: hsl(262 30% 96%);
|
|
28
|
+
--color-accent-foreground: hsl(262 47% 12%);
|
|
29
|
+
--color-destructive: hsl(0 72% 51%);
|
|
30
|
+
--color-destructive-foreground: hsl(0 0% 98%);
|
|
31
|
+
--color-border: hsl(262 25% 90%);
|
|
32
|
+
--color-input: hsl(262 25% 90%);
|
|
33
|
+
--color-ring: hsl(262 83% 58%);
|
|
34
|
+
--color-sidebar: hsl(262 30% 98%);
|
|
35
|
+
--color-sidebar-foreground: hsl(262 20% 26%);
|
|
36
|
+
--color-sidebar-primary: hsl(262 83% 58%);
|
|
37
|
+
--color-sidebar-primary-foreground: hsl(0 0% 100%);
|
|
38
|
+
--color-sidebar-accent: hsl(262 30% 96%);
|
|
39
|
+
--color-sidebar-accent-foreground: hsl(262 47% 12%);
|
|
40
|
+
--color-sidebar-border: hsl(262 25% 90%);
|
|
41
|
+
--color-sidebar-ring: hsl(262 83% 58%);
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
.dark {
|
|
40
|
-
--color-background: hsl(
|
|
41
|
-
--color-foreground: hsl(
|
|
42
|
-
--color-card: hsl(
|
|
43
|
-
--color-card-foreground: hsl(
|
|
44
|
-
--color-popover: hsl(
|
|
45
|
-
--color-popover-foreground: hsl(
|
|
46
|
-
--color-primary: hsl(
|
|
47
|
-
--color-primary-foreground: hsl(
|
|
48
|
-
--color-secondary: hsl(
|
|
49
|
-
--color-secondary-foreground: hsl(
|
|
50
|
-
--color-muted: hsl(
|
|
51
|
-
--color-muted-foreground: hsl(
|
|
52
|
-
--color-accent: hsl(
|
|
53
|
-
--color-accent-foreground: hsl(
|
|
54
|
-
--color-destructive: hsl(0
|
|
55
|
-
--color-destructive-foreground: hsl(
|
|
56
|
-
--color-border: hsl(
|
|
57
|
-
--color-input: hsl(
|
|
58
|
-
--color-ring: hsl(
|
|
59
|
-
--color-
|
|
60
|
-
--color-
|
|
61
|
-
--color-
|
|
62
|
-
--color-chart-4: hsl(280 65% 60%);
|
|
63
|
-
--color-chart-5: hsl(340 75% 55%);
|
|
64
|
-
--color-sidebar: hsl(240 5.9% 10%);
|
|
65
|
-
--color-sidebar-foreground: hsl(240 4.8% 95.9%);
|
|
66
|
-
--color-sidebar-primary: hsl(224.3 76.3% 48%);
|
|
45
|
+
--color-background: hsl(262 20% 5%);
|
|
46
|
+
--color-foreground: hsl(0 0% 98%);
|
|
47
|
+
--color-card: hsl(262 20% 5%);
|
|
48
|
+
--color-card-foreground: hsl(0 0% 98%);
|
|
49
|
+
--color-popover: hsl(262 20% 7%);
|
|
50
|
+
--color-popover-foreground: hsl(0 0% 98%);
|
|
51
|
+
--color-primary: hsl(262 70% 67%);
|
|
52
|
+
--color-primary-foreground: hsl(0 0% 100%);
|
|
53
|
+
--color-secondary: hsl(262 20% 15%);
|
|
54
|
+
--color-secondary-foreground: hsl(0 0% 98%);
|
|
55
|
+
--color-muted: hsl(262 20% 15%);
|
|
56
|
+
--color-muted-foreground: hsl(262 12% 65%);
|
|
57
|
+
--color-accent: hsl(262 20% 15%);
|
|
58
|
+
--color-accent-foreground: hsl(0 0% 98%);
|
|
59
|
+
--color-destructive: hsl(0 63% 31%);
|
|
60
|
+
--color-destructive-foreground: hsl(0 0% 98%);
|
|
61
|
+
--color-border: hsl(262 20% 15%);
|
|
62
|
+
--color-input: hsl(262 20% 15%);
|
|
63
|
+
--color-ring: hsl(262 70% 67%);
|
|
64
|
+
--color-sidebar: hsl(262 25% 8%);
|
|
65
|
+
--color-sidebar-foreground: hsl(262 10% 80%);
|
|
66
|
+
--color-sidebar-primary: hsl(262 70% 67%);
|
|
67
67
|
--color-sidebar-primary-foreground: hsl(0 0% 100%);
|
|
68
|
-
--color-sidebar-accent: hsl(
|
|
69
|
-
--color-sidebar-accent-foreground: hsl(
|
|
70
|
-
--color-sidebar-border: hsl(
|
|
71
|
-
--color-sidebar-ring: hsl(
|
|
68
|
+
--color-sidebar-accent: hsl(262 20% 15%);
|
|
69
|
+
--color-sidebar-accent-foreground: hsl(0 0% 98%);
|
|
70
|
+
--color-sidebar-border: hsl(262 20% 15%);
|
|
71
|
+
--color-sidebar-ring: hsl(262 70% 67%);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
@layer base {
|