panelui-native 0.1.0 → 0.4.0

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 (124) hide show
  1. package/README.md +251 -0
  2. package/lib/module/components/alert/index.js +107 -24
  3. package/lib/module/components/alert/index.js.map +1 -1
  4. package/lib/module/components/avatar/index.js +1 -1
  5. package/lib/module/components/avatar/index.js.map +1 -1
  6. package/lib/module/components/badge/index.js +3 -3
  7. package/lib/module/components/badge/index.js.map +1 -1
  8. package/lib/module/components/bottom-sheet/index.js +35 -31
  9. package/lib/module/components/bottom-sheet/index.js.map +1 -1
  10. package/lib/module/components/button/index.js +44 -15
  11. package/lib/module/components/button/index.js.map +1 -1
  12. package/lib/module/components/card/index.js +5 -5
  13. package/lib/module/components/card/index.js.map +1 -1
  14. package/lib/module/components/checkbox/index.js +21 -8
  15. package/lib/module/components/checkbox/index.js.map +1 -1
  16. package/lib/module/components/dialog/index.js +21 -17
  17. package/lib/module/components/dialog/index.js.map +1 -1
  18. package/lib/module/components/empty-state/index.js +178 -0
  19. package/lib/module/components/empty-state/index.js.map +1 -0
  20. package/lib/module/components/frame/index.js +100 -0
  21. package/lib/module/components/frame/index.js.map +1 -0
  22. package/lib/module/components/inline-select/index.js +159 -0
  23. package/lib/module/components/inline-select/index.js.map +1 -0
  24. package/lib/module/components/input/index.js +1 -1
  25. package/lib/module/components/input/index.js.map +1 -1
  26. package/lib/module/components/input-group/index.js +132 -0
  27. package/lib/module/components/input-group/index.js.map +1 -0
  28. package/lib/module/components/label/index.js +117 -0
  29. package/lib/module/components/label/index.js.map +1 -0
  30. package/lib/module/components/progress/index.js +138 -0
  31. package/lib/module/components/progress/index.js.map +1 -0
  32. package/lib/module/components/select/index.js +35 -28
  33. package/lib/module/components/select/index.js.map +1 -1
  34. package/lib/module/components/skeleton/index.js +1 -1
  35. package/lib/module/components/skeleton/index.js.map +1 -1
  36. package/lib/module/components/spinner/index.js +1 -1
  37. package/lib/module/components/spinner/index.js.map +1 -1
  38. package/lib/module/components/steps/index.js +354 -0
  39. package/lib/module/components/steps/index.js.map +1 -0
  40. package/lib/module/components/tabs/index.js +9 -3
  41. package/lib/module/components/tabs/index.js.map +1 -1
  42. package/lib/module/components/toast/index.js +479 -0
  43. package/lib/module/components/toast/index.js.map +1 -0
  44. package/lib/module/components/toast/toast-store.js +81 -0
  45. package/lib/module/components/toast/toast-store.js.map +1 -0
  46. package/lib/module/components/typography/index.js +126 -0
  47. package/lib/module/components/typography/index.js.map +1 -0
  48. package/lib/module/icons/index.js +223 -2
  49. package/lib/module/icons/index.js.map +1 -1
  50. package/lib/module/index.js +11 -2
  51. package/lib/module/index.js.map +1 -1
  52. package/lib/module/providers/panel-ui-provider.js +20 -8
  53. package/lib/module/providers/panel-ui-provider.js.map +1 -1
  54. package/lib/module/theme/use-theme.js +90 -3
  55. package/lib/module/theme/use-theme.js.map +1 -1
  56. package/lib/typescript/src/components/alert/index.d.ts +41 -19
  57. package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
  58. package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
  59. package/lib/typescript/src/components/button/index.d.ts +39 -0
  60. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  61. package/lib/typescript/src/components/checkbox/index.d.ts +8 -0
  62. package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
  63. package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
  64. package/lib/typescript/src/components/empty-state/index.d.ts +73 -0
  65. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -0
  66. package/lib/typescript/src/components/frame/index.d.ts +21 -0
  67. package/lib/typescript/src/components/frame/index.d.ts.map +1 -0
  68. package/lib/typescript/src/components/inline-select/index.d.ts +25 -0
  69. package/lib/typescript/src/components/inline-select/index.d.ts.map +1 -0
  70. package/lib/typescript/src/components/input-group/index.d.ts +34 -0
  71. package/lib/typescript/src/components/input-group/index.d.ts.map +1 -0
  72. package/lib/typescript/src/components/label/index.d.ts +28 -0
  73. package/lib/typescript/src/components/label/index.d.ts.map +1 -0
  74. package/lib/typescript/src/components/progress/index.d.ts +132 -0
  75. package/lib/typescript/src/components/progress/index.d.ts.map +1 -0
  76. package/lib/typescript/src/components/select/index.d.ts.map +1 -1
  77. package/lib/typescript/src/components/spinner/index.d.ts +2 -2
  78. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
  79. package/lib/typescript/src/components/steps/index.d.ts +62 -0
  80. package/lib/typescript/src/components/steps/index.d.ts.map +1 -0
  81. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
  82. package/lib/typescript/src/components/toast/index.d.ts +176 -0
  83. package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
  84. package/lib/typescript/src/components/toast/toast-store.d.ts +65 -0
  85. package/lib/typescript/src/components/toast/toast-store.d.ts.map +1 -0
  86. package/lib/typescript/src/components/typography/index.d.ts +77 -0
  87. package/lib/typescript/src/components/typography/index.d.ts.map +1 -0
  88. package/lib/typescript/src/icons/index.d.ts +25 -0
  89. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  90. package/lib/typescript/src/index.d.ts +12 -3
  91. package/lib/typescript/src/index.d.ts.map +1 -1
  92. package/lib/typescript/src/providers/panel-ui-provider.d.ts +20 -5
  93. package/lib/typescript/src/providers/panel-ui-provider.d.ts.map +1 -1
  94. package/lib/typescript/src/theme/use-theme.d.ts +64 -4
  95. package/lib/typescript/src/theme/use-theme.d.ts.map +1 -1
  96. package/package.json +28 -5
  97. package/src/components/alert/index.tsx +104 -28
  98. package/src/components/avatar/index.tsx +1 -1
  99. package/src/components/badge/index.tsx +3 -3
  100. package/src/components/bottom-sheet/index.tsx +8 -3
  101. package/src/components/button/index.tsx +47 -7
  102. package/src/components/card/index.tsx +5 -5
  103. package/src/components/checkbox/index.tsx +18 -4
  104. package/src/components/dialog/index.tsx +10 -5
  105. package/src/components/empty-state/index.tsx +136 -0
  106. package/src/components/frame/index.tsx +104 -0
  107. package/src/components/inline-select/index.tsx +185 -0
  108. package/src/components/input/index.tsx +1 -1
  109. package/src/components/input-group/index.tsx +164 -0
  110. package/src/components/label/index.tsx +128 -0
  111. package/src/components/progress/index.tsx +147 -0
  112. package/src/components/select/index.tsx +30 -23
  113. package/src/components/skeleton/index.tsx +1 -1
  114. package/src/components/spinner/index.tsx +1 -1
  115. package/src/components/steps/index.tsx +343 -0
  116. package/src/components/tabs/index.tsx +10 -2
  117. package/src/components/toast/index.tsx +447 -0
  118. package/src/components/toast/toast-store.ts +120 -0
  119. package/src/components/typography/index.tsx +121 -0
  120. package/src/icons/index.tsx +152 -1
  121. package/src/index.ts +82 -3
  122. package/src/providers/panel-ui-provider.tsx +35 -10
  123. package/src/theme/use-theme.ts +119 -4
  124. package/theme.css +446 -108
package/theme.css CHANGED
@@ -1,143 +1,481 @@
1
1
  /*
2
2
  * PanelUI theme — Coss UI design tokens, translated for React Native.
3
3
  * Source of truth: cosscom/coss packages/ui/src/styles/globals.css
4
- * (color-mix()/--alpha() expressions are precomputed to static values,
5
- * since they must resolve at runtime on native.)
4
+ * (color-mix()/--alpha() expressions precomputed to static values.)
5
+ *
6
+ * Structured the way Uniwind expects themed tokens (see uniwind's own
7
+ * test.css / expo-example): utility names declared in @theme, per-theme
8
+ * values defined with @variant blocks inside :root.
6
9
  *
7
10
  * Usage (in your app's global.css):
8
11
  * @import 'tailwindcss';
9
12
  * @import 'uniwind';
10
13
  * @import 'panelui-native/theme.css';
11
- * @source '../node_modules/panelui-native/src';
14
+ * @source './node_modules/panelui-native/src';
12
15
  */
13
16
 
14
- :root {
15
- /* --background: white */
16
- --background: #ffffff;
17
- /* --foreground: neutral-800 */
18
- --foreground: #262626;
17
+ @theme {
18
+ --color-background: unset;
19
+ --color-foreground: unset;
20
+ --color-card: unset;
21
+ --color-card-foreground: unset;
22
+ --color-popover: unset;
23
+ --color-popover-foreground: unset;
24
+ --color-primary: unset;
25
+ --color-primary-foreground: unset;
26
+ --color-secondary: unset;
27
+ --color-secondary-foreground: unset;
28
+ --color-muted: unset;
29
+ --color-muted-foreground: unset;
30
+ --color-accent: unset;
31
+ --color-accent-foreground: unset;
32
+ --color-destructive: unset;
33
+ --color-destructive-foreground: unset;
34
+ --color-info: unset;
35
+ --color-info-foreground: unset;
36
+ --color-success: unset;
37
+ --color-success-foreground: unset;
38
+ --color-warning: unset;
39
+ --color-warning-foreground: unset;
40
+ --color-border: unset;
41
+ --color-input: unset;
42
+ --color-ring: unset;
43
+ --color-surface: unset;
44
+ --color-skeleton: unset;
19
45
 
20
- --card: #ffffff;
21
- --card-foreground: #262626;
46
+ /*
47
+ * Tinted status fills. These exist as real tokens rather than `bg-info/10
48
+ * dark:bg-info/[0.06]` because `dark:` only resolves in the light/dark
49
+ * themes — inside a named theme (moon, grass) Uniwind compiles it to a
50
+ * plain class selector that never matches, so the tint would vanish.
51
+ * `-soft` is the Alert fill, `-subtle` the lighter Badge fill.
52
+ */
53
+ --color-info-soft: unset;
54
+ --color-info-subtle: unset;
55
+ --color-success-soft: unset;
56
+ --color-success-subtle: unset;
57
+ --color-warning-soft: unset;
58
+ --color-warning-subtle: unset;
59
+ --color-destructive-soft: unset;
60
+ --color-destructive-subtle: unset;
22
61
 
23
- --popover: #ffffff;
24
- --popover-foreground: #262626;
62
+ /*
63
+ * Radius scale. Themed rather than static: a theme is a shape as well as a
64
+ * palette, so each family sets its own corner rounding. --radius-3xl is
65
+ * declared here because rounded-3xl / rounded-t-3xl are both in use and
66
+ * would otherwise silently fall through to Tailwind's default.
67
+ */
68
+ --radius-xs: unset;
69
+ --radius-sm: unset;
70
+ --radius-md: unset;
71
+ --radius-lg: unset;
72
+ --radius-xl: unset;
73
+ --radius-2xl: unset;
74
+ --radius-3xl: unset;
75
+ }
25
76
 
26
- /* --primary: neutral-800 / neutral-50 */
27
- --primary: #262626;
28
- --primary-foreground: #fafafa;
77
+ @layer theme {
78
+ :root {
79
+ @variant light {
80
+ --color-background: #ffffff;
81
+ /* neutral-800 */
82
+ --color-foreground: #262626;
29
83
 
30
- /* --secondary/muted/accent: black at 4% */
31
- --secondary: rgba(0, 0, 0, 0.04);
32
- --secondary-foreground: #262626;
84
+ --color-card: #ffffff;
85
+ --color-card-foreground: #262626;
33
86
 
34
- --muted: rgba(0, 0, 0, 0.04);
35
- /* color-mix(neutral-500 90%, black) */
36
- --muted-foreground: #686868;
87
+ --color-popover: #ffffff;
88
+ --color-popover-foreground: #262626;
37
89
 
38
- --accent: rgba(0, 0, 0, 0.04);
39
- --accent-foreground: #262626;
90
+ --color-primary: #262626;
91
+ --color-primary-foreground: #fafafa;
40
92
 
41
- /* status: {hue}-500 with {hue}-700 foreground (for text on tints) */
42
- --destructive: #ef4444;
43
- --destructive-foreground: #b91c1c;
93
+ /* secondary/muted/accent: black at 4% */
94
+ --color-secondary: rgba(0, 0, 0, 0.06);
95
+ --color-secondary-foreground: #262626;
44
96
 
45
- --info: #3b82f6;
46
- --info-foreground: #1d4ed8;
97
+ --color-muted: rgba(0, 0, 0, 0.06);
98
+ /* color-mix(neutral-500 90%, black) */
99
+ --color-muted-foreground: #686868;
47
100
 
48
- --success: #10b981;
49
- --success-foreground: #047857;
101
+ --color-accent: rgba(0, 0, 0, 0.06);
102
+ --color-accent-foreground: #262626;
50
103
 
51
- --warning: #f59e0b;
52
- --warning-foreground: #b45309;
104
+ /* status: {hue}-500, foreground {hue}-700 */
105
+ --color-destructive: #ef4444;
106
+ --color-destructive-foreground: #b91c1c;
53
107
 
54
- /* --border: black 8%, --input: black 10% */
55
- --border: rgba(0, 0, 0, 0.08);
56
- --input: rgba(0, 0, 0, 0.1);
57
- /* --ring: neutral-400 */
58
- --ring: #a3a3a3;
59
- }
108
+ --color-info: #3b82f6;
109
+ --color-info-foreground: #1d4ed8;
60
110
 
61
- .dark {
62
- /* color-mix(neutral-950 96%, white) */
63
- --background: #141414;
64
- /* neutral-100 */
65
- --foreground: #f5f5f5;
111
+ --color-success: #10b981;
112
+ --color-success-foreground: #047857;
66
113
 
67
- /* color-mix(background 98%, white) */
68
- --card: #191919;
69
- --card-foreground: #f5f5f5;
114
+ --color-warning: #f59e0b;
115
+ --color-warning-foreground: #b45309;
70
116
 
71
- /* color-mix(background 96%, white) */
72
- --popover: #1d1d1d;
73
- --popover-foreground: #f5f5f5;
117
+ /* border: black 8%, input: black 10% */
118
+ --color-border: rgba(0, 0, 0, 0.08);
119
+ --color-input: rgba(0, 0, 0, 0.1);
120
+ /* neutral-400 */
121
+ --color-ring: #a3a3a3;
74
122
 
75
- --primary: #f5f5f5;
76
- --primary-foreground: #262626;
123
+ /* grouping surface (Frame) and skeleton fill */
124
+ --color-surface: #f7f7f7;
125
+ --color-skeleton: rgba(0, 0, 0, 0.1);
77
126
 
78
- /* --secondary/muted/accent: white at 4% */
79
- --secondary: rgba(255, 255, 255, 0.04);
80
- --secondary-foreground: #f5f5f5;
127
+ /* status fills: -soft = Alert (10%), -subtle = Badge (8%) */
128
+ --color-info-soft: rgba(59, 130, 246, 0.1);
129
+ --color-info-subtle: rgba(59, 130, 246, 0.08);
130
+ --color-success-soft: rgba(16, 185, 129, 0.1);
131
+ --color-success-subtle: rgba(16, 185, 129, 0.08);
132
+ --color-warning-soft: rgba(245, 158, 11, 0.1);
133
+ --color-warning-subtle: rgba(245, 158, 11, 0.08);
134
+ --color-destructive-soft: rgba(239, 68, 68, 0.1);
135
+ --color-destructive-subtle: rgba(239, 68, 68, 0.08);
136
+
137
+ /* Panel shape scale */
138
+ --radius-xs: 4px;
139
+ --radius-sm: 6px;
140
+ --radius-md: 8px;
141
+ --radius-lg: 10px;
142
+ --radius-xl: 14px;
143
+ --radius-2xl: 16px;
144
+ --radius-3xl: 24px;
145
+ }
81
146
 
82
- --muted: rgba(255, 255, 255, 0.04);
83
- /* color-mix(neutral-500 90%, white) */
84
- --muted-foreground: #818181;
147
+ @variant dark {
148
+ /* color-mix(neutral-950 96%, white) */
149
+ --color-background: #141414;
150
+ /* neutral-100 */
151
+ --color-foreground: #f5f5f5;
85
152
 
86
- --accent: rgba(255, 255, 255, 0.04);
87
- --accent-foreground: #f5f5f5;
153
+ /* color-mix(background 98%, white) */
154
+ --color-card: #191919;
155
+ --color-card-foreground: #f5f5f5;
88
156
 
89
- /* destructive: color-mix(red-500 90%, white); foreground: {hue}-400 */
90
- --destructive: #f15757;
91
- --destructive-foreground: #f87171;
157
+ /* color-mix(background 96%, white) */
158
+ --color-popover: #1d1d1d;
159
+ --color-popover-foreground: #f5f5f5;
92
160
 
93
- --info: #3b82f6;
94
- --info-foreground: #60a5fa;
161
+ --color-primary: #f5f5f5;
162
+ --color-primary-foreground: #262626;
95
163
 
96
- --success: #10b981;
97
- --success-foreground: #34d399;
164
+ /* secondary/muted/accent: white at 4% */
165
+ --color-secondary: rgba(255, 255, 255, 0.08);
166
+ --color-secondary-foreground: #f5f5f5;
98
167
 
99
- --warning: #f59e0b;
100
- --warning-foreground: #fbbf24;
168
+ --color-muted: rgba(255, 255, 255, 0.08);
169
+ /* color-mix(neutral-500 90%, white) */
170
+ --color-muted-foreground: #818181;
101
171
 
102
- /* --border: white 6%, --input: white 8% */
103
- --border: rgba(255, 255, 255, 0.06);
104
- --input: rgba(255, 255, 255, 0.08);
105
- /* --ring: neutral-500 */
106
- --ring: #737373;
107
- }
172
+ --color-accent: rgba(255, 255, 255, 0.08);
173
+ --color-accent-foreground: #f5f5f5;
174
+
175
+ /* color-mix(red-500 90%, white), foreground {hue}-400 */
176
+ --color-destructive: #f15757;
177
+ --color-destructive-foreground: #f87171;
178
+
179
+ --color-info: #3b82f6;
180
+ --color-info-foreground: #60a5fa;
181
+
182
+ --color-success: #10b981;
183
+ --color-success-foreground: #34d399;
184
+
185
+ --color-warning: #f59e0b;
186
+ --color-warning-foreground: #fbbf24;
187
+
188
+ /* border: white 6%, input: white 8% */
189
+ --color-border: rgba(255, 255, 255, 0.06);
190
+ --color-input: rgba(255, 255, 255, 0.08);
191
+ /* neutral-500 */
192
+ --color-ring: #737373;
193
+
194
+ /* grouping surface (Frame) and skeleton fill */
195
+ --color-surface: #1c1c1c;
196
+ --color-skeleton: rgba(255, 255, 255, 0.13);
197
+
198
+ /* status fills: -soft = Alert (6%), -subtle = Badge (16%) */
199
+ --color-info-soft: rgba(59, 130, 246, 0.06);
200
+ --color-info-subtle: rgba(59, 130, 246, 0.16);
201
+ --color-success-soft: rgba(16, 185, 129, 0.06);
202
+ --color-success-subtle: rgba(16, 185, 129, 0.16);
203
+ --color-warning-soft: rgba(245, 158, 11, 0.06);
204
+ --color-warning-subtle: rgba(245, 158, 11, 0.16);
205
+ --color-destructive-soft: rgba(241, 87, 87, 0.06);
206
+ --color-destructive-subtle: rgba(241, 87, 87, 0.16);
207
+
208
+ /* Panel shape scale */
209
+ --radius-xs: 4px;
210
+ --radius-sm: 6px;
211
+ --radius-md: 8px;
212
+ --radius-lg: 10px;
213
+ --radius-xl: 14px;
214
+ --radius-2xl: 16px;
215
+ --radius-3xl: 24px;
216
+ }
217
+
218
+ /*
219
+ * Named themes.
220
+ *
221
+ * Uniwind only gives `light` and `dark` prefers-color-scheme handling;
222
+ * every other theme compiles to a plain class selector. That means a
223
+ * named theme cannot adapt on its own, so each brand ships as a
224
+ * light/dark pair and the app switches between them explicitly (see
225
+ * `useThemeMode()`).
226
+ *
227
+ * Register them in your metro config or setTheme() will throw:
228
+ * withUniwindConfig(config, {
229
+ * extraThemes: ['moon', 'moon-dark', 'grass', 'grass-dark'],
230
+ * })
231
+ *
232
+ * Every theme must define every token — Uniwind fails the build with
233
+ * "All themes must have the same variables" otherwise.
234
+ */
235
+
236
+ /* Moon — monochrome and high-contrast: pure black/white, electric blue accent,
237
+ hairline borders, tight corners. */
238
+ @variant moon {
239
+ --color-background: #ffffff;
240
+ --color-foreground: #171717;
241
+
242
+ --color-card: #ffffff;
243
+ --color-card-foreground: #171717;
244
+
245
+ --color-popover: #ffffff;
246
+ --color-popover-foreground: #171717;
247
+
248
+ --color-primary: #171717;
249
+ --color-primary-foreground: #ffffff;
250
+
251
+ --color-secondary: rgba(0, 0, 0, 0.05);
252
+ --color-secondary-foreground: #171717;
253
+
254
+ --color-muted: rgba(0, 0, 0, 0.05);
255
+ --color-muted-foreground: #666666;
256
+
257
+ --color-accent: rgba(0, 0, 0, 0.05);
258
+ --color-accent-foreground: #171717;
259
+
260
+ --color-destructive: #e5484d;
261
+ --color-destructive-foreground: #c62b30;
262
+
263
+ --color-info: #0070f3;
264
+ --color-info-foreground: #0060d1;
265
+
266
+ --color-success: #45a557;
267
+ --color-success-foreground: #297c3b;
268
+
269
+ --color-warning: #f5a623;
270
+ --color-warning-foreground: #a35200;
271
+
272
+ --color-border: rgba(0, 0, 0, 0.09);
273
+ --color-input: rgba(0, 0, 0, 0.12);
274
+ --color-ring: #171717;
275
+
276
+ --color-surface: #fafafa;
277
+ --color-skeleton: rgba(0, 0, 0, 0.08);
278
+
279
+ --color-info-soft: rgba(0, 112, 243, 0.08);
280
+ --color-info-subtle: rgba(0, 112, 243, 0.06);
281
+ --color-success-soft: rgba(69, 165, 87, 0.1);
282
+ --color-success-subtle: rgba(69, 165, 87, 0.08);
283
+ --color-warning-soft: rgba(245, 166, 35, 0.1);
284
+ --color-warning-subtle: rgba(245, 166, 35, 0.08);
285
+ --color-destructive-soft: rgba(229, 72, 77, 0.1);
286
+ --color-destructive-subtle: rgba(229, 72, 77, 0.08);
287
+
288
+ /* Moon shape scale */
289
+ --radius-xs: 2px;
290
+ --radius-sm: 4px;
291
+ --radius-md: 5px;
292
+ --radius-lg: 6px;
293
+ --radius-xl: 8px;
294
+ --radius-2xl: 10px;
295
+ --radius-3xl: 14px;
296
+ }
297
+
298
+ @variant moon-dark {
299
+ --color-background: #000000;
300
+ --color-foreground: #ededed;
301
+
302
+ --color-card: #0a0a0a;
303
+ --color-card-foreground: #ededed;
304
+
305
+ --color-popover: #101010;
306
+ --color-popover-foreground: #ededed;
307
+
308
+ --color-primary: #ededed;
309
+ --color-primary-foreground: #0a0a0a;
310
+
311
+ --color-secondary: rgba(255, 255, 255, 0.09);
312
+ --color-secondary-foreground: #ededed;
313
+
314
+ --color-muted: rgba(255, 255, 255, 0.09);
315
+ --color-muted-foreground: #a1a1a1;
316
+
317
+ --color-accent: rgba(255, 255, 255, 0.09);
318
+ --color-accent-foreground: #ededed;
319
+
320
+ --color-destructive: #e5484d;
321
+ --color-destructive-foreground: #ff6369;
322
+
323
+ --color-info: #0070f3;
324
+ --color-info-foreground: #52a8ff;
325
+
326
+ --color-success: #45a557;
327
+ --color-success-foreground: #62c073;
328
+
329
+ --color-warning: #f5a623;
330
+ --color-warning-foreground: #f1a10d;
331
+
332
+ --color-border: rgba(255, 255, 255, 0.09);
333
+ --color-input: rgba(255, 255, 255, 0.14);
334
+ --color-ring: #ededed;
335
+
336
+ --color-surface: #0f0f0f;
337
+ --color-skeleton: rgba(255, 255, 255, 0.11);
338
+
339
+ --color-info-soft: rgba(0, 112, 243, 0.12);
340
+ --color-info-subtle: rgba(0, 112, 243, 0.18);
341
+ --color-success-soft: rgba(69, 165, 87, 0.1);
342
+ --color-success-subtle: rgba(69, 165, 87, 0.16);
343
+ --color-warning-soft: rgba(245, 166, 35, 0.1);
344
+ --color-warning-subtle: rgba(245, 166, 35, 0.16);
345
+ --color-destructive-soft: rgba(229, 72, 77, 0.1);
346
+ --color-destructive-subtle: rgba(229, 72, 77, 0.16);
347
+
348
+ /* Moon shape scale */
349
+ --radius-xs: 2px;
350
+ --radius-sm: 4px;
351
+ --radius-md: 5px;
352
+ --radius-lg: 6px;
353
+ --radius-xl: 8px;
354
+ --radius-2xl: 10px;
355
+ --radius-3xl: 14px;
356
+ }
357
+
358
+ /* Grass — green accent on warm-neutral greys, with soft generous corners. */
359
+ @variant grass {
360
+ --color-background: #ffffff;
361
+ --color-foreground: #171717;
362
+
363
+ --color-card: #ffffff;
364
+ --color-card-foreground: #171717;
365
+
366
+ --color-popover: #ffffff;
367
+ --color-popover-foreground: #171717;
368
+
369
+ /* Brand green is too light for white text; light mode uses the
370
+ darker ramp step so the contrast ratio holds. */
371
+ --color-primary: #24b47e;
372
+ --color-primary-foreground: #ffffff;
373
+
374
+ --color-secondary: rgba(0, 0, 0, 0.05);
375
+ --color-secondary-foreground: #171717;
376
+
377
+ --color-muted: rgba(0, 0, 0, 0.05);
378
+ --color-muted-foreground: #707070;
379
+
380
+ --color-accent: rgba(62, 207, 142, 0.1);
381
+ --color-accent-foreground: #16794c;
382
+
383
+ --color-destructive: #ef4444;
384
+ --color-destructive-foreground: #b91c1c;
385
+
386
+ --color-info: #3b82f6;
387
+ --color-info-foreground: #1d4ed8;
388
+
389
+ --color-success: #24b47e;
390
+ --color-success-foreground: #16794c;
391
+
392
+ --color-warning: #f59e0b;
393
+ --color-warning-foreground: #b45309;
394
+
395
+ --color-border: rgba(0, 0, 0, 0.08);
396
+ --color-input: rgba(0, 0, 0, 0.1);
397
+ --color-ring: #3ecf8e;
398
+
399
+ --color-surface: #f8f9fa;
400
+ --color-skeleton: rgba(0, 0, 0, 0.08);
401
+
402
+ --color-info-soft: rgba(59, 130, 246, 0.1);
403
+ --color-info-subtle: rgba(59, 130, 246, 0.08);
404
+ --color-success-soft: rgba(36, 180, 126, 0.1);
405
+ --color-success-subtle: rgba(36, 180, 126, 0.08);
406
+ --color-warning-soft: rgba(245, 158, 11, 0.1);
407
+ --color-warning-subtle: rgba(245, 158, 11, 0.08);
408
+ --color-destructive-soft: rgba(239, 68, 68, 0.1);
409
+ --color-destructive-subtle: rgba(239, 68, 68, 0.08);
410
+
411
+ /* Grass shape scale */
412
+ --radius-xs: 6px;
413
+ --radius-sm: 8px;
414
+ --radius-md: 12px;
415
+ --radius-lg: 14px;
416
+ --radius-xl: 18px;
417
+ --radius-2xl: 22px;
418
+ --radius-3xl: 28px;
419
+ }
420
+
421
+ @variant grass-dark {
422
+ --color-background: #1c1c1c;
423
+ --color-foreground: #ededed;
424
+
425
+ --color-card: #1f1f1f;
426
+ --color-card-foreground: #ededed;
427
+
428
+ --color-popover: #232323;
429
+ --color-popover-foreground: #ededed;
430
+
431
+ --color-primary: #3ecf8e;
432
+ --color-primary-foreground: #052e1b;
433
+
434
+ --color-secondary: rgba(255, 255, 255, 0.07);
435
+ --color-secondary-foreground: #ededed;
436
+
437
+ --color-muted: rgba(255, 255, 255, 0.07);
438
+ --color-muted-foreground: #8f8f8f;
439
+
440
+ --color-accent: rgba(62, 207, 142, 0.12);
441
+ --color-accent-foreground: #3ecf8e;
442
+
443
+ --color-destructive: #f15757;
444
+ --color-destructive-foreground: #f87171;
445
+
446
+ --color-info: #3b82f6;
447
+ --color-info-foreground: #60a5fa;
448
+
449
+ --color-success: #3ecf8e;
450
+ --color-success-foreground: #4ade80;
451
+
452
+ --color-warning: #f59e0b;
453
+ --color-warning-foreground: #fbbf24;
454
+
455
+ --color-border: rgba(255, 255, 255, 0.07);
456
+ --color-input: rgba(255, 255, 255, 0.1);
457
+ --color-ring: #3ecf8e;
458
+
459
+ --color-surface: #242424;
460
+ --color-skeleton: rgba(255, 255, 255, 0.11);
108
461
 
109
- @theme inline {
110
- --color-background: var(--background);
111
- --color-foreground: var(--foreground);
112
- --color-card: var(--card);
113
- --color-card-foreground: var(--card-foreground);
114
- --color-popover: var(--popover);
115
- --color-popover-foreground: var(--popover-foreground);
116
- --color-primary: var(--primary);
117
- --color-primary-foreground: var(--primary-foreground);
118
- --color-secondary: var(--secondary);
119
- --color-secondary-foreground: var(--secondary-foreground);
120
- --color-muted: var(--muted);
121
- --color-muted-foreground: var(--muted-foreground);
122
- --color-accent: var(--accent);
123
- --color-accent-foreground: var(--accent-foreground);
124
- --color-destructive: var(--destructive);
125
- --color-destructive-foreground: var(--destructive-foreground);
126
- --color-info: var(--info);
127
- --color-info-foreground: var(--info-foreground);
128
- --color-success: var(--success);
129
- --color-success-foreground: var(--success-foreground);
130
- --color-warning: var(--warning);
131
- --color-warning-foreground: var(--warning-foreground);
132
- --color-border: var(--border);
133
- --color-input: var(--input);
134
- --color-ring: var(--ring);
135
-
136
- /* Coss radius scale: --radius: 0.625rem (10px) */
137
- --radius-xs: 4px;
138
- --radius-sm: 6px;
139
- --radius-md: 8px;
140
- --radius-lg: 10px;
141
- --radius-xl: 14px;
142
- --radius-2xl: 20px;
462
+ --color-info-soft: rgba(59, 130, 246, 0.08);
463
+ --color-info-subtle: rgba(59, 130, 246, 0.16);
464
+ --color-success-soft: rgba(62, 207, 142, 0.08);
465
+ --color-success-subtle: rgba(62, 207, 142, 0.16);
466
+ --color-warning-soft: rgba(245, 158, 11, 0.08);
467
+ --color-warning-subtle: rgba(245, 158, 11, 0.16);
468
+ --color-destructive-soft: rgba(241, 87, 87, 0.08);
469
+ --color-destructive-subtle: rgba(241, 87, 87, 0.16);
470
+
471
+ /* Grass shape scale */
472
+ --radius-xs: 6px;
473
+ --radius-sm: 8px;
474
+ --radius-md: 12px;
475
+ --radius-lg: 14px;
476
+ --radius-xl: 18px;
477
+ --radius-2xl: 22px;
478
+ --radius-3xl: 28px;
479
+ }
480
+ }
143
481
  }