@teardown/cli 2.0.66 → 2.0.68

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.
Files changed (38) hide show
  1. package/package.json +7 -2
  2. package/src/config/schema.ts +8 -0
  3. package/templates/metro.config.js +7 -35
  4. package/templates/src/components/ui/accordion.tsx +23 -21
  5. package/templates/src/components/ui/card.tsx +28 -26
  6. package/templates/src/components/ui/checkbox.tsx +12 -10
  7. package/templates/src/components/ui/dialog.tsx +30 -28
  8. package/templates/src/components/ui/divider.tsx +6 -6
  9. package/templates/src/components/ui/form-field.tsx +2 -2
  10. package/templates/src/components/ui/pressable-feedback.tsx +2 -2
  11. package/templates/src/components/ui/radio-group.tsx +37 -35
  12. package/templates/src/components/ui/scroll-shadow.tsx +4 -4
  13. package/templates/src/components/ui/select.tsx +31 -29
  14. package/templates/src/components/ui/skeleton-group.tsx +2 -2
  15. package/templates/src/components/ui/skeleton.tsx +2 -2
  16. package/templates/src/components/ui/spinner.tsx +2 -2
  17. package/templates/src/components/ui/tabs.tsx +25 -23
  18. package/templates/src/global.css +86 -70
  19. package/templates/src/navigation/navigation-provider.tsx +6 -15
  20. package/templates/src/navigation/router.tsx +12 -95
  21. package/templates/src/providers/app.provider.tsx +8 -12
  22. package/templates/src/routes/_layout.tsx +2 -4
  23. package/templates/src/routes/home.tsx +112 -0
  24. package/templates/tsconfig.json +10 -12
  25. package/templates/src/components/ui/index.ts +0 -100
  26. package/templates/src/routes/(tabs)/_layout.tsx +0 -42
  27. package/templates/src/routes/(tabs)/explore.tsx +0 -161
  28. package/templates/src/routes/(tabs)/home.tsx +0 -138
  29. package/templates/src/routes/(tabs)/profile.tsx +0 -114
  30. package/templates/src/routes/settings.tsx +0 -184
  31. package/templates/src/screens/auth/index.ts +0 -6
  32. package/templates/src/screens/auth/login.tsx +0 -165
  33. package/templates/src/screens/auth/register.tsx +0 -203
  34. package/templates/src/screens/home.tsx +0 -204
  35. package/templates/src/screens/index.ts +0 -17
  36. package/templates/src/screens/profile.tsx +0 -210
  37. package/templates/src/screens/settings.tsx +0 -216
  38. package/templates/src/screens/welcome.tsx +0 -101
@@ -6,9 +6,9 @@
6
6
  * @example Basic Usage
7
7
  * ```tsx
8
8
  * <RadioGroup label="Select an option">
9
- * <Radio value="option1">Option 1</Radio>
10
- * <Radio value="option2">Option 2</Radio>
11
- * <Radio value="option3">Option 3</Radio>
9
+ * <RadioGroup.Radio value="option1">Option 1</RadioGroup.Radio>
10
+ * <RadioGroup.Radio value="option2">Option 2</RadioGroup.Radio>
11
+ * <RadioGroup.Radio value="option3">Option 3</RadioGroup.Radio>
12
12
  * </RadioGroup>
13
13
  * ```
14
14
  *
@@ -21,8 +21,8 @@
21
21
  * value={selected}
22
22
  * onValueChange={setSelected}
23
23
  * >
24
- * <Radio value="option1">Option 1</Radio>
25
- * <Radio value="option2">Option 2</Radio>
24
+ * <RadioGroup.Radio value="option1">Option 1</RadioGroup.Radio>
25
+ * <RadioGroup.Radio value="option2">Option 2</RadioGroup.Radio>
26
26
  * </RadioGroup>
27
27
  * ```
28
28
  *
@@ -32,35 +32,35 @@
32
32
  * label="Shipping Method"
33
33
  * defaultValue="standard"
34
34
  * >
35
- * <Radio value="standard">Standard Shipping</Radio>
36
- * <Radio value="express">Express Shipping</Radio>
37
- * <Radio value="overnight">Overnight Shipping</Radio>
35
+ * <RadioGroup.Radio value="standard">Standard Shipping</RadioGroup.Radio>
36
+ * <RadioGroup.Radio value="express">Express Shipping</RadioGroup.Radio>
37
+ * <RadioGroup.Radio value="overnight">Overnight Shipping</RadioGroup.Radio>
38
38
  * </RadioGroup>
39
39
  * ```
40
40
  *
41
41
  * @example Colors
42
42
  * ```tsx
43
43
  * <RadioGroup color="primary">
44
- * <Radio value="a">Primary</Radio>
44
+ * <RadioGroup.Radio value="a">Primary</RadioGroup.Radio>
45
45
  * </RadioGroup>
46
46
  * <RadioGroup color="secondary">
47
- * <Radio value="a">Secondary</Radio>
47
+ * <RadioGroup.Radio value="a">Secondary</RadioGroup.Radio>
48
48
  * </RadioGroup>
49
49
  * <RadioGroup color="success">
50
- * <Radio value="a">Success</Radio>
50
+ * <RadioGroup.Radio value="a">Success</RadioGroup.Radio>
51
51
  * </RadioGroup>
52
52
  * ```
53
53
  *
54
54
  * @example Sizes
55
55
  * ```tsx
56
56
  * <RadioGroup size="sm">
57
- * <Radio value="a">Small</Radio>
57
+ * <RadioGroup.Radio value="a">Small</RadioGroup.Radio>
58
58
  * </RadioGroup>
59
59
  * <RadioGroup size="md">
60
- * <Radio value="a">Medium</Radio>
60
+ * <RadioGroup.Radio value="a">Medium</RadioGroup.Radio>
61
61
  * </RadioGroup>
62
62
  * <RadioGroup size="lg">
63
- * <Radio value="a">Large</Radio>
63
+ * <RadioGroup.Radio value="a">Large</RadioGroup.Radio>
64
64
  * </RadioGroup>
65
65
  * ```
66
66
  *
@@ -70,10 +70,10 @@
70
70
  * label="Select Size"
71
71
  * orientation="horizontal"
72
72
  * >
73
- * <Radio value="s">S</Radio>
74
- * <Radio value="m">M</Radio>
75
- * <Radio value="l">L</Radio>
76
- * <Radio value="xl">XL</Radio>
73
+ * <RadioGroup.Radio value="s">S</RadioGroup.Radio>
74
+ * <RadioGroup.Radio value="m">M</RadioGroup.Radio>
75
+ * <RadioGroup.Radio value="l">L</RadioGroup.Radio>
76
+ * <RadioGroup.Radio value="xl">XL</RadioGroup.Radio>
77
77
  * </RadioGroup>
78
78
  * ```
79
79
  *
@@ -83,29 +83,29 @@
83
83
  * label="Plan"
84
84
  * description="Choose your subscription plan"
85
85
  * >
86
- * <Radio value="free" description="Limited features">
86
+ * <RadioGroup.Radio value="free" description="Limited features">
87
87
  * Free
88
- * </Radio>
89
- * <Radio value="pro" description="All features included">
88
+ * </RadioGroup.Radio>
89
+ * <RadioGroup.Radio value="pro" description="All features included">
90
90
  * Pro
91
- * </Radio>
91
+ * </RadioGroup.Radio>
92
92
  * </RadioGroup>
93
93
  * ```
94
94
  *
95
95
  * @example Disabled
96
96
  * ```tsx
97
97
  * <RadioGroup label="Options" isDisabled>
98
- * <Radio value="a">Option A</Radio>
99
- * <Radio value="b">Option B</Radio>
98
+ * <RadioGroup.Radio value="a">Option A</RadioGroup.Radio>
99
+ * <RadioGroup.Radio value="b">Option B</RadioGroup.Radio>
100
100
  * </RadioGroup>
101
101
  * ```
102
102
  *
103
103
  * @example Individual Disabled Radio
104
104
  * ```tsx
105
105
  * <RadioGroup label="Options">
106
- * <Radio value="a">Option A</Radio>
107
- * <Radio value="b" isDisabled>Option B (Unavailable)</Radio>
108
- * <Radio value="c">Option C</Radio>
106
+ * <RadioGroup.Radio value="a">Option A</RadioGroup.Radio>
107
+ * <RadioGroup.Radio value="b" isDisabled>Option B (Unavailable)</RadioGroup.Radio>
108
+ * <RadioGroup.Radio value="c">Option C</RadioGroup.Radio>
109
109
  * </RadioGroup>
110
110
  * ```
111
111
  *
@@ -117,8 +117,8 @@
117
117
  * isInvalid={!hasSelection}
118
118
  * errorMessage="Please select an option"
119
119
  * >
120
- * <Radio value="a">Option A</Radio>
121
- * <Radio value="b">Option B</Radio>
120
+ * <RadioGroup.Radio value="a">Option A</RadioGroup.Radio>
121
+ * <RadioGroup.Radio value="b">Option B</RadioGroup.Radio>
122
122
  * </RadioGroup>
123
123
  * ```
124
124
  */
@@ -132,19 +132,21 @@ import { forwardRef } from "react";
132
132
  import type { View as ViewRef } from "react-native";
133
133
 
134
134
  // Radio component
135
- const RadioRoot = forwardRef<ViewRef, HeroRadioProps>((props, ref) => {
135
+ const Radio = forwardRef<ViewRef, HeroRadioProps>((props, ref) => {
136
136
  return <HeroRadio ref={ref} {...props} />;
137
137
  });
138
- RadioRoot.displayName = "Radio";
138
+ Radio.displayName = "RadioGroup.Radio";
139
139
 
140
140
  // Radio Group component
141
- const RadioGroupComponent = forwardRef<ViewRef, HeroRadioGroupProps>((props, ref) => {
141
+ const RadioGroupRoot = forwardRef<ViewRef, HeroRadioGroupProps>((props, ref) => {
142
142
  return <HeroRadioGroup ref={ref} {...props} />;
143
143
  });
144
- RadioGroupComponent.displayName = "RadioGroup";
144
+ RadioGroupRoot.displayName = "RadioGroup";
145
145
 
146
- export const Radio = RadioRoot;
147
- export const RadioGroup = RadioGroupComponent;
146
+ // Compound RadioGroup component with Object.assign pattern
147
+ export const RadioGroup = Object.assign(RadioGroupRoot, {
148
+ Radio: Radio,
149
+ });
148
150
 
149
151
  // Re-export types for convenience
150
152
  export type {
@@ -51,15 +51,15 @@
51
51
  * @example In a Card
52
52
  * ```tsx
53
53
  * <Card>
54
- * <CardHeader>
54
+ * <Card.Header>
55
55
  * <Text>Long List</Text>
56
- * </CardHeader>
56
+ * </Card.Header>
57
57
  * <ScrollShadow style={{ maxHeight: 300 }}>
58
- * <CardBody>
58
+ * <Card.Body>
59
59
  * {items.map(item => (
60
60
  * <Text key={item.id}>{item.title}</Text>
61
61
  * ))}
62
- * </CardBody>
62
+ * </Card.Body>
63
63
  * </ScrollShadow>
64
64
  * </Card>
65
65
  * ```
@@ -6,9 +6,9 @@
6
6
  * @example Basic Usage
7
7
  * ```tsx
8
8
  * <Select label="Country">
9
- * <SelectItem key="us">United States</SelectItem>
10
- * <SelectItem key="uk">United Kingdom</SelectItem>
11
- * <SelectItem key="ca">Canada</SelectItem>
9
+ * <Select.Item key="us">United States</Select.Item>
10
+ * <Select.Item key="uk">United Kingdom</Select.Item>
11
+ * <Select.Item key="ca">Canada</Select.Item>
12
12
  * </Select>
13
13
  * ```
14
14
  *
@@ -21,8 +21,8 @@
21
21
  * selectedKeys={value}
22
22
  * onSelectionChange={setValue}
23
23
  * >
24
- * <SelectItem key="us">United States</SelectItem>
25
- * <SelectItem key="uk">United Kingdom</SelectItem>
24
+ * <Select.Item key="us">United States</Select.Item>
25
+ * <Select.Item key="uk">United Kingdom</Select.Item>
26
26
  * </Select>
27
27
  * ```
28
28
  *
@@ -32,9 +32,9 @@
32
32
  * label="Status"
33
33
  * placeholder="Select a status"
34
34
  * >
35
- * <SelectItem key="active">Active</SelectItem>
36
- * <SelectItem key="inactive">Inactive</SelectItem>
37
- * <SelectItem key="pending">Pending</SelectItem>
35
+ * <Select.Item key="active">Active</Select.Item>
36
+ * <Select.Item key="inactive">Inactive</Select.Item>
37
+ * <Select.Item key="pending">Pending</Select.Item>
38
38
  * </Select>
39
39
  * ```
40
40
  *
@@ -44,12 +44,12 @@
44
44
  * label="Plan"
45
45
  * description="Choose your subscription plan"
46
46
  * >
47
- * <SelectItem key="free" description="Basic features">
47
+ * <Select.Item key="free" description="Basic features">
48
48
  * Free
49
- * </SelectItem>
50
- * <SelectItem key="pro" description="All features">
49
+ * </Select.Item>
50
+ * <Select.Item key="pro" description="All features">
51
51
  * Pro
52
- * </SelectItem>
52
+ * </Select.Item>
53
53
  * </Select>
54
54
  * ```
55
55
  *
@@ -59,8 +59,8 @@
59
59
  * label="Category"
60
60
  * isRequired
61
61
  * >
62
- * <SelectItem key="tech">Technology</SelectItem>
63
- * <SelectItem key="health">Health</SelectItem>
62
+ * <Select.Item key="tech">Technology</Select.Item>
63
+ * <Select.Item key="health">Health</Select.Item>
64
64
  * </Select>
65
65
  * ```
66
66
  *
@@ -70,16 +70,16 @@
70
70
  * label="Disabled Select"
71
71
  * isDisabled
72
72
  * >
73
- * <SelectItem key="a">Option A</SelectItem>
73
+ * <Select.Item key="a">Option A</Select.Item>
74
74
  * </Select>
75
75
  * ```
76
76
  *
77
77
  * @example Disabled Items
78
78
  * ```tsx
79
79
  * <Select label="Options">
80
- * <SelectItem key="a">Available</SelectItem>
81
- * <SelectItem key="b" isDisabled>Unavailable</SelectItem>
82
- * <SelectItem key="c">Available</SelectItem>
80
+ * <Select.Item key="a">Available</Select.Item>
81
+ * <Select.Item key="b" isDisabled>Unavailable</Select.Item>
82
+ * <Select.Item key="c">Available</Select.Item>
83
83
  * </Select>
84
84
  * ```
85
85
  *
@@ -90,8 +90,8 @@
90
90
  * isInvalid
91
91
  * errorMessage="Please select an option"
92
92
  * >
93
- * <SelectItem key="a">Option A</SelectItem>
94
- * <SelectItem key="b">Option B</SelectItem>
93
+ * <Select.Item key="a">Option A</Select.Item>
94
+ * <Select.Item key="b">Option B</Select.Item>
95
95
  * </Select>
96
96
  * ```
97
97
  *
@@ -116,9 +116,9 @@
116
116
  * label="Select Country"
117
117
  * startContent={<GlobeIcon />}
118
118
  * >
119
- * <SelectItem key="us" startContent={<UsFlag />}>
119
+ * <Select.Item key="us" startContent={<UsFlag />}>
120
120
  * United States
121
- * </SelectItem>
121
+ * </Select.Item>
122
122
  * </Select>
123
123
  * ```
124
124
  *
@@ -128,9 +128,9 @@
128
128
  * label="Tags"
129
129
  * selectionMode="multiple"
130
130
  * >
131
- * <SelectItem key="react">React</SelectItem>
132
- * <SelectItem key="vue">Vue</SelectItem>
133
- * <SelectItem key="angular">Angular</SelectItem>
131
+ * <Select.Item key="react">React</Select.Item>
132
+ * <Select.Item key="vue">Vue</Select.Item>
133
+ * <Select.Item key="angular">Angular</Select.Item>
134
134
  * </Select>
135
135
  * ```
136
136
  */
@@ -150,13 +150,15 @@ const SelectRoot = forwardRef<ViewRef, HeroSelectProps>((props, ref) => {
150
150
  SelectRoot.displayName = "Select";
151
151
 
152
152
  // Select Item component
153
- const SelectItemComponent = forwardRef<ViewRef, HeroSelectItemProps>((props, ref) => {
153
+ const SelectItem = forwardRef<ViewRef, HeroSelectItemProps>((props, ref) => {
154
154
  return <HeroSelectItem ref={ref} {...props} />;
155
155
  });
156
- SelectItemComponent.displayName = "SelectItem";
156
+ SelectItem.displayName = "Select.Item";
157
157
 
158
- export const Select = SelectRoot;
159
- export const SelectItem = SelectItemComponent;
158
+ // Compound Select component with Object.assign pattern
159
+ export const Select = Object.assign(SelectRoot, {
160
+ Item: SelectItem,
161
+ });
160
162
 
161
163
  // Re-export types for convenience
162
164
  export type {
@@ -26,7 +26,7 @@
26
26
  * @example Card Loading State
27
27
  * ```tsx
28
28
  * <Card>
29
- * <CardBody>
29
+ * <Card.Body>
30
30
  * <SkeletonGroup isLoaded={!isLoading}>
31
31
  * <View style={{ flexDirection: 'row', gap: 12 }}>
32
32
  * <Skeleton style={{ width: 48, height: 48, borderRadius: 24 }} />
@@ -36,7 +36,7 @@
36
36
  * </View>
37
37
  * </View>
38
38
  * </SkeletonGroup>
39
- * </CardBody>
39
+ * </Card.Body>
40
40
  * </Card>
41
41
  * ```
42
42
  *
@@ -20,13 +20,13 @@
20
20
  * @example Card Skeleton
21
21
  * ```tsx
22
22
  * <Card>
23
- * <CardBody>
23
+ * <Card.Body>
24
24
  * <Skeleton style={{ width: 50, height: 50, borderRadius: 25 }} />
25
25
  * <View style={{ marginTop: 8 }}>
26
26
  * <Skeleton style={{ width: '80%', height: 16 }} />
27
27
  * <Skeleton style={{ width: '60%', height: 16, marginTop: 4 }} />
28
28
  * </View>
29
- * </CardBody>
29
+ * </Card.Body>
30
30
  * </Card>
31
31
  * ```
32
32
  *
@@ -63,10 +63,10 @@
63
63
  * @example In Card
64
64
  * ```tsx
65
65
  * <Card>
66
- * <CardBody style={{ alignItems: 'center', padding: 32 }}>
66
+ * <Card.Body style={{ alignItems: 'center', padding: 32 }}>
67
67
  * <Spinner size="lg" color="primary" />
68
68
  * <Text style={{ marginTop: 16 }}>Fetching results...</Text>
69
- * </CardBody>
69
+ * </Card.Body>
70
70
  * </Card>
71
71
  * ```
72
72
  */
@@ -6,15 +6,15 @@
6
6
  * @example Basic Usage
7
7
  * ```tsx
8
8
  * <Tabs>
9
- * <Tab key="photos" title="Photos">
9
+ * <Tabs.Tab key="photos" title="Photos">
10
10
  * <Text>Photos content</Text>
11
- * </Tab>
12
- * <Tab key="videos" title="Videos">
11
+ * </Tabs.Tab>
12
+ * <Tabs.Tab key="videos" title="Videos">
13
13
  * <Text>Videos content</Text>
14
- * </Tab>
15
- * <Tab key="music" title="Music">
14
+ * </Tabs.Tab>
15
+ * <Tabs.Tab key="music" title="Music">
16
16
  * <Text>Music content</Text>
17
- * </Tab>
17
+ * </Tabs.Tab>
18
18
  * </Tabs>
19
19
  * ```
20
20
  *
@@ -26,16 +26,16 @@
26
26
  * selectedKey={selected}
27
27
  * onSelectionChange={setSelected}
28
28
  * >
29
- * <Tab key="photos" title="Photos">Photos</Tab>
30
- * <Tab key="videos" title="Videos">Videos</Tab>
29
+ * <Tabs.Tab key="photos" title="Photos">Photos</Tabs.Tab>
30
+ * <Tabs.Tab key="videos" title="Videos">Videos</Tabs.Tab>
31
31
  * </Tabs>
32
32
  * ```
33
33
  *
34
34
  * @example Default Selected
35
35
  * ```tsx
36
36
  * <Tabs defaultSelectedKey="videos">
37
- * <Tab key="photos" title="Photos">Photos</Tab>
38
- * <Tab key="videos" title="Videos">Videos</Tab>
37
+ * <Tabs.Tab key="photos" title="Photos">Photos</Tabs.Tab>
38
+ * <Tabs.Tab key="videos" title="Videos">Videos</Tabs.Tab>
39
39
  * </Tabs>
40
40
  * ```
41
41
  *
@@ -67,24 +67,24 @@
67
67
  * @example Disabled Tabs
68
68
  * ```tsx
69
69
  * <Tabs disabledKeys={['videos']}>
70
- * <Tab key="photos" title="Photos">Photos</Tab>
71
- * <Tab key="videos" title="Videos">Videos (Disabled)</Tab>
72
- * <Tab key="music" title="Music">Music</Tab>
70
+ * <Tabs.Tab key="photos" title="Photos">Photos</Tabs.Tab>
71
+ * <Tabs.Tab key="videos" title="Videos">Videos (Disabled)</Tabs.Tab>
72
+ * <Tabs.Tab key="music" title="Music">Music</Tabs.Tab>
73
73
  * </Tabs>
74
74
  * ```
75
75
  *
76
76
  * @example Full Width
77
77
  * ```tsx
78
78
  * <Tabs fullWidth>
79
- * <Tab key="tab1" title="Tab 1">Content 1</Tab>
80
- * <Tab key="tab2" title="Tab 2">Content 2</Tab>
79
+ * <Tabs.Tab key="tab1" title="Tab 1">Content 1</Tabs.Tab>
80
+ * <Tabs.Tab key="tab2" title="Tab 2">Content 2</Tabs.Tab>
81
81
  * </Tabs>
82
82
  * ```
83
83
  *
84
84
  * @example With Icons
85
85
  * ```tsx
86
86
  * <Tabs>
87
- * <Tab
87
+ * <Tabs.Tab
88
88
  * key="photos"
89
89
  * title={
90
90
  * <View style={{ flexDirection: 'row', gap: 4 }}>
@@ -94,8 +94,8 @@
94
94
  * }
95
95
  * >
96
96
  * Photos content
97
- * </Tab>
98
- * <Tab
97
+ * </Tabs.Tab>
98
+ * <Tabs.Tab
99
99
  * key="videos"
100
100
  * title={
101
101
  * <View style={{ flexDirection: 'row', gap: 4 }}>
@@ -105,7 +105,7 @@
105
105
  * }
106
106
  * >
107
107
  * Videos content
108
- * </Tab>
108
+ * </Tabs.Tab>
109
109
  * </Tabs>
110
110
  * ```
111
111
  *
@@ -139,13 +139,15 @@ const TabsRoot = forwardRef<ViewRef, HeroTabsProps>((props, ref) => {
139
139
  TabsRoot.displayName = "Tabs";
140
140
 
141
141
  // Tab component
142
- const TabComponent = forwardRef<ViewRef, HeroTabProps>((props, ref) => {
142
+ const Tab = forwardRef<ViewRef, HeroTabProps>((props, ref) => {
143
143
  return <HeroTab ref={ref} {...props} />;
144
144
  });
145
- TabComponent.displayName = "Tab";
145
+ Tab.displayName = "Tabs.Tab";
146
146
 
147
- export const Tabs = TabsRoot;
148
- export const Tab = TabComponent;
147
+ // Compound Tabs component with Object.assign pattern
148
+ export const Tabs = Object.assign(TabsRoot, {
149
+ Tab: Tab,
150
+ });
149
151
 
150
152
  // Re-export types for convenience
151
153
  export type {
@@ -7,81 +7,97 @@
7
7
 
8
8
  @import "tailwindcss";
9
9
  @import "uniwind";
10
+ @import "heroui-native/styles";
11
+
12
+ @source "../node_modules/heroui-native/lib";
10
13
 
11
14
  /**
12
- * Custom CSS Variables (Design Tokens)
13
- * Customize these to match your brand.
15
+ * Custom theme tokens
14
16
  */
15
- :root {
16
- /* Primary Colors */
17
- --color-primary: #3b82f6;
18
- --color-primary-foreground: #ffffff;
19
-
20
- /* Secondary Colors */
21
- --color-secondary: #64748b;
22
- --color-secondary-foreground: #ffffff;
23
-
24
- /* Accent Colors */
25
- --color-accent: #8b5cf6;
26
- --color-accent-foreground: #ffffff;
27
-
28
- /* Destructive Colors */
29
- --color-destructive: #ef4444;
30
- --color-destructive-foreground: #ffffff;
31
-
32
- /* Background Colors */
33
- --color-background: #ffffff;
34
- --color-foreground: #0f172a;
35
-
36
- /* Muted Colors */
37
- --color-muted: #f1f5f9;
38
- --color-muted-foreground: #64748b;
39
-
40
- /* Card Colors */
41
- --color-card: #ffffff;
42
- --color-card-foreground: #0f172a;
43
-
44
- /* Border Colors */
45
- --color-border: #e2e8f0;
46
-
47
- /* Input Colors */
48
- --color-input: #e2e8f0;
49
- --color-ring: #3b82f6;
50
-
51
- /* Spacing */
52
- --radius-sm: 0.375rem;
53
- --radius-md: 0.5rem;
54
- --radius-lg: 0.75rem;
55
- --radius-xl: 1rem;
17
+ @theme {
18
+ --radius-sm: 4px;
19
+ --radius-md: 8px;
20
+ --radius-lg: 12px;
21
+ --radius-xl: 16px;
56
22
  }
57
23
 
58
24
  /**
59
- * Dark mode support
25
+ * Light and dark theme CSS variables
60
26
  */
61
- .dark {
62
- --color-primary: #60a5fa;
63
- --color-primary-foreground: #0f172a;
64
-
65
- --color-secondary: #94a3b8;
66
- --color-secondary-foreground: #0f172a;
67
-
68
- --color-accent: #a78bfa;
69
- --color-accent-foreground: #0f172a;
70
-
71
- --color-destructive: #f87171;
72
- --color-destructive-foreground: #0f172a;
73
-
74
- --color-background: #0f172a;
75
- --color-foreground: #f8fafc;
76
-
77
- --color-muted: #1e293b;
78
- --color-muted-foreground: #94a3b8;
79
-
80
- --color-card: #1e293b;
81
- --color-card-foreground: #f8fafc;
82
-
83
- --color-border: #334155;
84
-
85
- --color-input: #334155;
86
- --color-ring: #60a5fa;
27
+ @layer theme {
28
+ :root {
29
+ @variant light {
30
+ /* Primary Colors */
31
+ --color-primary: #3b82f6;
32
+ --color-primary-foreground: #ffffff;
33
+
34
+ /* Secondary Colors */
35
+ --color-secondary: #64748b;
36
+ --color-secondary-foreground: #ffffff;
37
+
38
+ /* Accent Colors */
39
+ --color-accent: #8b5cf6;
40
+ --color-accent-foreground: #ffffff;
41
+
42
+ /* Destructive Colors */
43
+ --color-destructive: #ef4444;
44
+ --color-destructive-foreground: #ffffff;
45
+
46
+ /* Background Colors */
47
+ --color-background: #ffffff;
48
+ --color-foreground: #0f172a;
49
+
50
+ /* Muted Colors */
51
+ --color-muted: #f1f5f9;
52
+ --color-muted-foreground: #64748b;
53
+
54
+ /* Card Colors */
55
+ --color-card: #ffffff;
56
+ --color-card-foreground: #0f172a;
57
+
58
+ /* Border Colors */
59
+ --color-border: #e2e8f0;
60
+
61
+ /* Input Colors */
62
+ --color-input: #e2e8f0;
63
+ --color-ring: #3b82f6;
64
+ }
65
+
66
+ @variant dark {
67
+ /* Primary Colors */
68
+ --color-primary: #60a5fa;
69
+ --color-primary-foreground: #0f172a;
70
+
71
+ /* Secondary Colors */
72
+ --color-secondary: #94a3b8;
73
+ --color-secondary-foreground: #0f172a;
74
+
75
+ /* Accent Colors */
76
+ --color-accent: #a78bfa;
77
+ --color-accent-foreground: #0f172a;
78
+
79
+ /* Destructive Colors */
80
+ --color-destructive: #f87171;
81
+ --color-destructive-foreground: #0f172a;
82
+
83
+ /* Background Colors */
84
+ --color-background: #0f172a;
85
+ --color-foreground: #f8fafc;
86
+
87
+ /* Muted Colors */
88
+ --color-muted: #1e293b;
89
+ --color-muted-foreground: #94a3b8;
90
+
91
+ /* Card Colors */
92
+ --color-card: #1e293b;
93
+ --color-card-foreground: #f8fafc;
94
+
95
+ /* Border Colors */
96
+ --color-border: #334155;
97
+
98
+ /* Input Colors */
99
+ --color-input: #334155;
100
+ --color-ring: #60a5fa;
101
+ }
102
+ }
87
103
  }