doo-boilerplate 0.1.13 → 0.1.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doo-boilerplate",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "CLI to scaffold Pila portal frontend projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
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-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',
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-xl border bg-card text-card-foreground shadow-sm', className)}
9
+ className={cn('rounded-lg border bg-card text-card-foreground shadow-sm', className)}
10
10
  {...props}
11
11
  />
12
12
  )
@@ -1,56 +1,65 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  @theme {
4
- --color-background: hsl(0 0% 100%);
5
- --color-foreground: hsl(222.2 84% 4.9%);
6
- --color-card: hsl(0 0% 100%);
7
- --color-card-foreground: hsl(222.2 84% 4.9%);
8
- --color-primary: hsl(222.2 47.4% 11.2%);
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
- --font-sans: 'Inter', system-ui, sans-serif;
30
- --font-mono: 'JetBrains Mono', ui-monospace, monospace;
13
+
14
+ /* Light mode zinc neutrals + violet primary */
15
+ --color-background: hsl(0 0% 100%);
16
+ --color-foreground: hsl(240 10% 3.9%);
17
+ --color-card: hsl(0 0% 100%);
18
+ --color-card-foreground: hsl(240 10% 3.9%);
19
+ --color-popover: hsl(0 0% 100%);
20
+ --color-popover-foreground: hsl(240 10% 3.9%);
21
+ --color-primary: hsl(262 83% 58%);
22
+ --color-primary-foreground: hsl(0 0% 100%);
23
+ --color-secondary: hsl(240 4.8% 95.9%);
24
+ --color-secondary-foreground: hsl(240 5.9% 10%);
25
+ --color-muted: hsl(240 4.8% 95.9%);
26
+ --color-muted-foreground: hsl(240 3.8% 46.1%);
27
+ --color-accent: hsl(240 4.8% 95.9%);
28
+ --color-accent-foreground: hsl(240 5.9% 10%);
29
+ --color-destructive: hsl(0 72.2% 50.6%);
30
+ --color-destructive-foreground: hsl(0 0% 98%);
31
+ --color-border: hsl(240 5.9% 90%);
32
+ --color-input: hsl(240 5.9% 90%);
33
+ --color-ring: hsl(262 83% 58%);
34
+ --color-sidebar: hsl(0 0% 98%);
35
+ --color-sidebar-foreground: hsl(240 5.3% 26.1%);
36
+ --color-sidebar-primary: hsl(262 83% 58%);
37
+ --color-sidebar-border: hsl(240 5.9% 90%);
31
38
  }
32
39
 
33
40
  .dark {
34
- --color-background: hsl(222.2 84% 4.9%);
35
- --color-foreground: hsl(210 40% 98%);
36
- --color-card: hsl(222.2 84% 4.9%);
37
- --color-card-foreground: hsl(210 40% 98%);
38
- --color-primary: hsl(210 40% 98%);
39
- --color-primary-foreground: hsl(222.2 47.4% 11.2%);
40
- --color-secondary: hsl(217.2 32.6% 17.5%);
41
- --color-secondary-foreground: hsl(210 40% 98%);
42
- --color-muted: hsl(217.2 32.6% 17.5%);
43
- --color-muted-foreground: hsl(215 20.2% 65.1%);
44
- --color-accent: hsl(217.2 32.6% 17.5%);
45
- --color-accent-foreground: hsl(210 40% 98%);
41
+ --color-background: hsl(240 10% 3.9%);
42
+ --color-foreground: hsl(0 0% 98%);
43
+ --color-card: hsl(240 10% 3.9%);
44
+ --color-card-foreground: hsl(0 0% 98%);
45
+ --color-popover: hsl(240 10% 3.9%);
46
+ --color-popover-foreground: hsl(0 0% 98%);
47
+ --color-primary: hsl(263 70% 65%);
48
+ --color-primary-foreground: hsl(0 0% 100%);
49
+ --color-secondary: hsl(240 3.7% 15.9%);
50
+ --color-secondary-foreground: hsl(0 0% 98%);
51
+ --color-muted: hsl(240 3.7% 15.9%);
52
+ --color-muted-foreground: hsl(240 5% 64.9%);
53
+ --color-accent: hsl(240 3.7% 15.9%);
54
+ --color-accent-foreground: hsl(0 0% 98%);
46
55
  --color-destructive: hsl(0 62.8% 30.6%);
47
- --color-destructive-foreground: hsl(210 40% 98%);
48
- --color-border: hsl(217.2 32.6% 17.5%);
49
- --color-input: hsl(217.2 32.6% 17.5%);
50
- --color-ring: hsl(212.7 26.8% 83.9%);
56
+ --color-destructive-foreground: hsl(0 0% 98%);
57
+ --color-border: hsl(240 3.7% 15.9%);
58
+ --color-input: hsl(240 3.7% 15.9%);
59
+ --color-ring: hsl(263 70% 65%);
51
60
  --color-sidebar: hsl(240 5.9% 10%);
52
61
  --color-sidebar-foreground: hsl(240 4.8% 95.9%);
53
- --color-sidebar-primary: hsl(0 0% 98%);
62
+ --color-sidebar-primary: hsl(263 70% 65%);
54
63
  --color-sidebar-border: hsl(240 3.7% 15.9%);
55
64
  }
56
65
 
@@ -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-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
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 ring-offset-background transition-colors 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',
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 — zinc neutrals + violet primary */
4
15
  --color-background: hsl(0 0% 100%);
5
- --color-foreground: hsl(222.2 84% 4.9%);
16
+ --color-foreground: hsl(240 10% 3.9%);
6
17
  --color-card: hsl(0 0% 100%);
7
- --color-card-foreground: hsl(222.2 84% 4.9%);
18
+ --color-card-foreground: hsl(240 10% 3.9%);
8
19
  --color-popover: hsl(0 0% 100%);
9
- --color-popover-foreground: hsl(222.2 84% 4.9%);
10
- --color-primary: hsl(222.2 47.4% 11.2%);
11
- --color-primary-foreground: hsl(210 40% 98%);
12
- --color-secondary: hsl(210 40% 96.1%);
13
- --color-secondary-foreground: hsl(222.2 47.4% 11.2%);
14
- --color-muted: hsl(210 40% 96.1%);
15
- --color-muted-foreground: hsl(215.4 16.3% 46.9%);
16
- --color-accent: hsl(210 40% 96.1%);
17
- --color-accent-foreground: hsl(222.2 47.4% 11.2%);
18
- --color-destructive: hsl(0 84.2% 60.2%);
19
- --color-destructive-foreground: hsl(210 40% 98%);
20
- --color-border: hsl(214.3 31.8% 91.4%);
21
- --color-input: hsl(214.3 31.8% 91.4%);
22
- --color-ring: hsl(222.2 84% 4.9%);
23
- --color-chart-1: hsl(12 76% 61%);
24
- --color-chart-2: hsl(173 58% 39%);
25
- --color-chart-3: hsl(197 37% 24%);
26
- --color-chart-4: hsl(43 74% 66%);
27
- --color-chart-5: hsl(27 87% 67%);
28
- --radius: 0.5rem;
20
+ --color-popover-foreground: hsl(240 10% 3.9%);
21
+ --color-primary: hsl(262 83% 58%);
22
+ --color-primary-foreground: hsl(0 0% 100%);
23
+ --color-secondary: hsl(240 4.8% 95.9%);
24
+ --color-secondary-foreground: hsl(240 5.9% 10%);
25
+ --color-muted: hsl(240 4.8% 95.9%);
26
+ --color-muted-foreground: hsl(240 3.8% 46.1%);
27
+ --color-accent: hsl(240 4.8% 95.9%);
28
+ --color-accent-foreground: hsl(240 5.9% 10%);
29
+ --color-destructive: hsl(0 72.2% 50.6%);
30
+ --color-destructive-foreground: hsl(0 0% 98%);
31
+ --color-border: hsl(240 5.9% 90%);
32
+ --color-input: hsl(240 5.9% 90%);
33
+ --color-ring: hsl(262 83% 58%);
29
34
  --color-sidebar: hsl(0 0% 98%);
30
35
  --color-sidebar-foreground: hsl(240 5.3% 26.1%);
31
- --color-sidebar-primary: hsl(240 5.9% 10%);
32
- --color-sidebar-primary-foreground: hsl(0 0% 98%);
36
+ --color-sidebar-primary: hsl(262 83% 58%);
37
+ --color-sidebar-primary-foreground: hsl(0 0% 100%);
33
38
  --color-sidebar-accent: hsl(240 4.8% 95.9%);
34
39
  --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%);
40
+ --color-sidebar-border: hsl(240 5.9% 90%);
41
+ --color-sidebar-ring: hsl(262 83% 58%);
37
42
  }
38
43
 
39
44
  .dark {
40
- --color-background: hsl(222.2 84% 4.9%);
41
- --color-foreground: hsl(210 40% 98%);
42
- --color-card: hsl(222.2 84% 4.9%);
43
- --color-card-foreground: hsl(210 40% 98%);
44
- --color-popover: hsl(222.2 84% 4.9%);
45
- --color-popover-foreground: hsl(210 40% 98%);
46
- --color-primary: hsl(210 40% 98%);
47
- --color-primary-foreground: hsl(222.2 47.4% 11.2%);
48
- --color-secondary: hsl(217.2 32.6% 17.5%);
49
- --color-secondary-foreground: hsl(210 40% 98%);
50
- --color-muted: hsl(217.2 32.6% 17.5%);
51
- --color-muted-foreground: hsl(215 20.2% 65.1%);
52
- --color-accent: hsl(217.2 32.6% 17.5%);
53
- --color-accent-foreground: hsl(210 40% 98%);
45
+ --color-background: hsl(240 10% 3.9%);
46
+ --color-foreground: hsl(0 0% 98%);
47
+ --color-card: hsl(240 10% 3.9%);
48
+ --color-card-foreground: hsl(0 0% 98%);
49
+ --color-popover: hsl(240 10% 3.9%);
50
+ --color-popover-foreground: hsl(0 0% 98%);
51
+ --color-primary: hsl(263 70% 65%);
52
+ --color-primary-foreground: hsl(0 0% 100%);
53
+ --color-secondary: hsl(240 3.7% 15.9%);
54
+ --color-secondary-foreground: hsl(0 0% 98%);
55
+ --color-muted: hsl(240 3.7% 15.9%);
56
+ --color-muted-foreground: hsl(240 5% 64.9%);
57
+ --color-accent: hsl(240 3.7% 15.9%);
58
+ --color-accent-foreground: hsl(0 0% 98%);
54
59
  --color-destructive: hsl(0 62.8% 30.6%);
55
- --color-destructive-foreground: hsl(210 40% 98%);
56
- --color-border: hsl(217.2 32.6% 17.5%);
57
- --color-input: hsl(217.2 32.6% 17.5%);
58
- --color-ring: hsl(212.7 26.8% 83.9%);
59
- --color-chart-1: hsl(220 70% 50%);
60
- --color-chart-2: hsl(160 60% 45%);
61
- --color-chart-3: hsl(30 80% 55%);
62
- --color-chart-4: hsl(280 65% 60%);
63
- --color-chart-5: hsl(340 75% 55%);
60
+ --color-destructive-foreground: hsl(0 0% 98%);
61
+ --color-border: hsl(240 3.7% 15.9%);
62
+ --color-input: hsl(240 3.7% 15.9%);
63
+ --color-ring: hsl(263 70% 65%);
64
64
  --color-sidebar: hsl(240 5.9% 10%);
65
65
  --color-sidebar-foreground: hsl(240 4.8% 95.9%);
66
- --color-sidebar-primary: hsl(224.3 76.3% 48%);
66
+ --color-sidebar-primary: hsl(263 70% 65%);
67
67
  --color-sidebar-primary-foreground: hsl(0 0% 100%);
68
68
  --color-sidebar-accent: hsl(240 3.7% 15.9%);
69
69
  --color-sidebar-accent-foreground: hsl(240 4.8% 95.9%);
70
70
  --color-sidebar-border: hsl(240 3.7% 15.9%);
71
- --color-sidebar-ring: hsl(217.2 91.2% 59.8%);
71
+ --color-sidebar-ring: hsl(263 70% 65%);
72
72
  }
73
73
 
74
74
  @layer base {