@auronui/styles 1.0.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 (268) hide show
  1. package/DATA_ATTRIBUTES.md +163 -0
  2. package/LICENSE +21 -0
  3. package/README.md +54 -0
  4. package/base/base.css +40 -0
  5. package/components/accordion.css +201 -0
  6. package/components/alert-dialog.css +307 -0
  7. package/components/alert.css +143 -0
  8. package/components/aspect-ratio.css +8 -0
  9. package/components/autocomplete.css +685 -0
  10. package/components/avatar.css +78 -0
  11. package/components/badge.css +186 -0
  12. package/components/breadcrumbs.css +76 -0
  13. package/components/button-group.css +126 -0
  14. package/components/button.css +282 -0
  15. package/components/calendar-year-picker.css +193 -0
  16. package/components/calendar.css +332 -0
  17. package/components/card.css +225 -0
  18. package/components/checkbox-group.css +7 -0
  19. package/components/checkbox.css +268 -0
  20. package/components/chip.css +227 -0
  21. package/components/close-button.css +65 -0
  22. package/components/collapsible-group.css +7 -0
  23. package/components/collapsible.css +74 -0
  24. package/components/color-area.css +81 -0
  25. package/components/color-field.css +99 -0
  26. package/components/color-input-group.css +153 -0
  27. package/components/color-picker.css +121 -0
  28. package/components/color-slider.css +266 -0
  29. package/components/color-swatch-picker.css +247 -0
  30. package/components/color-swatch.css +42 -0
  31. package/components/combo-box.css +203 -0
  32. package/components/date-input-group.css +125 -0
  33. package/components/date-input.css +529 -0
  34. package/components/date-picker.css +86 -0
  35. package/components/date-range-field.css +538 -0
  36. package/components/date-range-picker.css +93 -0
  37. package/components/description.css +4 -0
  38. package/components/drawer.css +222 -0
  39. package/components/dropdown.css +67 -0
  40. package/components/empty-state.css +4 -0
  41. package/components/error-message.css +13 -0
  42. package/components/field-error.css +19 -0
  43. package/components/fieldset.css +39 -0
  44. package/components/header.css +7 -0
  45. package/components/index.css +164 -0
  46. package/components/input-otp.css +124 -0
  47. package/components/input.css +603 -0
  48. package/components/kbd.css +27 -0
  49. package/components/label.css +28 -0
  50. package/components/link.css +144 -0
  51. package/components/list-box-item.css +29 -0
  52. package/components/list-box-section.css +13 -0
  53. package/components/list-box.css +11 -0
  54. package/components/menu-item.css +68 -0
  55. package/components/menu-section.css +18 -0
  56. package/components/menu.css +7 -0
  57. package/components/meter.css +104 -0
  58. package/components/modal.css +335 -0
  59. package/components/number-field.css +395 -0
  60. package/components/pagination.css +157 -0
  61. package/components/popover.css +96 -0
  62. package/components/progress-bar.css +126 -0
  63. package/components/progress-circle.css +82 -0
  64. package/components/radio-group.css +47 -0
  65. package/components/radio.css +157 -0
  66. package/components/range-calendar.css +402 -0
  67. package/components/scroll-area.css +70 -0
  68. package/components/scroll-shadow.css +77 -0
  69. package/components/select.css +649 -0
  70. package/components/separator.css +59 -0
  71. package/components/skeleton.css +48 -0
  72. package/components/slider.css +155 -0
  73. package/components/spinner.css +42 -0
  74. package/components/splitter.css +74 -0
  75. package/components/stepper.css +160 -0
  76. package/components/surface.css +23 -0
  77. package/components/switch-group.css +17 -0
  78. package/components/switch.css +194 -0
  79. package/components/table.css +341 -0
  80. package/components/tabs.css +262 -0
  81. package/components/tag-group.css +66 -0
  82. package/components/tag.css +99 -0
  83. package/components/textarea.css +536 -0
  84. package/components/time-field.css +530 -0
  85. package/components/toast.css +267 -0
  86. package/components/toggle-button-group.css +174 -0
  87. package/components/toggle-button.css +149 -0
  88. package/components/toolbar.css +32 -0
  89. package/components/tooltip.css +47 -0
  90. package/components/tree.css +81 -0
  91. package/index.css +29 -0
  92. package/package.json +415 -0
  93. package/src/components/accordion/accordion.styles.ts +46 -0
  94. package/src/components/accordion/index.ts +1 -0
  95. package/src/components/alert/alert.styles.ts +37 -0
  96. package/src/components/alert/index.ts +1 -0
  97. package/src/components/alert-dialog/alert-dialog.styles.ts +72 -0
  98. package/src/components/alert-dialog/index.ts +1 -0
  99. package/src/components/aspect-ratio/aspect-ratio.styles.ts +10 -0
  100. package/src/components/aspect-ratio/index.ts +1 -0
  101. package/src/components/autocomplete/autocomplete.styles.ts +86 -0
  102. package/src/components/autocomplete/index.ts +1 -0
  103. package/src/components/avatar/avatar.styles.ts +53 -0
  104. package/src/components/avatar/index.ts +1 -0
  105. package/src/components/badge/badge.styles.ts +77 -0
  106. package/src/components/badge/index.ts +1 -0
  107. package/src/components/breadcrumbs/breadcrumbs.styles.ts +14 -0
  108. package/src/components/breadcrumbs/index.ts +1 -0
  109. package/src/components/button/__tests__/button.styles.test.ts +79 -0
  110. package/src/components/button/button.styles.ts +65 -0
  111. package/src/components/button/index.ts +1 -0
  112. package/src/components/button-group/button-group.styles.ts +32 -0
  113. package/src/components/button-group/index.ts +1 -0
  114. package/src/components/calendar/calendar.styles.ts +60 -0
  115. package/src/components/calendar/index.ts +1 -0
  116. package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +15 -0
  117. package/src/components/calendar-year-picker/index.ts +1 -0
  118. package/src/components/card/card.styles.ts +65 -0
  119. package/src/components/card/index.ts +1 -0
  120. package/src/components/checkbox/checkbox.styles.ts +27 -0
  121. package/src/components/checkbox/index.ts +1 -0
  122. package/src/components/checkbox-group/checkbox-group.styles.ts +18 -0
  123. package/src/components/checkbox-group/index.ts +1 -0
  124. package/src/components/chip/chip.styles.ts +65 -0
  125. package/src/components/chip/index.ts +1 -0
  126. package/src/components/close-button/close-button.styles.ts +17 -0
  127. package/src/components/close-button/index.ts +1 -0
  128. package/src/components/collapsible/collapsible.styles.ts +25 -0
  129. package/src/components/collapsible/index.ts +1 -0
  130. package/src/components/collapsible-group/collapsible-group.styles.ts +13 -0
  131. package/src/components/collapsible-group/index.ts +1 -0
  132. package/src/components/color-area/color-area.styles.ts +23 -0
  133. package/src/components/color-area/index.ts +1 -0
  134. package/src/components/color-field/color-field.styles.ts +18 -0
  135. package/src/components/color-field/index.ts +1 -0
  136. package/src/components/color-input-group/color-input-group.styles.ts +34 -0
  137. package/src/components/color-input-group/index.ts +1 -0
  138. package/src/components/color-picker/color-picker.styles.ts +13 -0
  139. package/src/components/color-picker/index.ts +1 -0
  140. package/src/components/color-slider/color-slider.styles.ts +14 -0
  141. package/src/components/color-slider/index.ts +1 -0
  142. package/src/components/color-swatch/color-swatch.styles.ts +26 -0
  143. package/src/components/color-swatch/index.ts +1 -0
  144. package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +54 -0
  145. package/src/components/color-swatch-picker/index.ts +1 -0
  146. package/src/components/combo-box/combo-box.styles.ts +26 -0
  147. package/src/components/combo-box/index.ts +1 -0
  148. package/src/components/date-input/date-input.styles.ts +86 -0
  149. package/src/components/date-input/index.ts +1 -0
  150. package/src/components/date-picker/date-picker.styles.ts +14 -0
  151. package/src/components/date-picker/index.ts +1 -0
  152. package/src/components/date-range-field/date-range-field.styles.ts +87 -0
  153. package/src/components/date-range-field/index.ts +1 -0
  154. package/src/components/date-range-picker/date-range-picker.styles.ts +14 -0
  155. package/src/components/date-range-picker/index.ts +1 -0
  156. package/src/components/description/description.styles.ts +9 -0
  157. package/src/components/description/index.ts +1 -0
  158. package/src/components/drawer/drawer.styles.ts +55 -0
  159. package/src/components/drawer/index.ts +1 -0
  160. package/src/components/dropdown/dropdown.styles.ts +14 -0
  161. package/src/components/dropdown/index.ts +1 -0
  162. package/src/components/empty-state/empty-state.styles.ts +9 -0
  163. package/src/components/empty-state/index.ts +1 -0
  164. package/src/components/error-message/error-message.styles.ts +9 -0
  165. package/src/components/error-message/index.ts +1 -0
  166. package/src/components/fieldset/fieldset.styles.ts +29 -0
  167. package/src/components/fieldset/index.ts +1 -0
  168. package/src/components/header/header.styles.ts +5 -0
  169. package/src/components/header/index.ts +1 -0
  170. package/src/components/index.ts +84 -0
  171. package/src/components/input/index.ts +1 -0
  172. package/src/components/input/input.styles.ts +87 -0
  173. package/src/components/input-otp/index.ts +1 -0
  174. package/src/components/input-otp/input-otp.styles.ts +30 -0
  175. package/src/components/kbd/index.ts +1 -0
  176. package/src/components/kbd/kbd.styles.ts +20 -0
  177. package/src/components/label/index.ts +1 -0
  178. package/src/components/label/label.styles.ts +25 -0
  179. package/src/components/link/index.ts +1 -0
  180. package/src/components/link/link.styles.ts +38 -0
  181. package/src/components/list-box/index.ts +1 -0
  182. package/src/components/list-box/list-box.styles.ts +18 -0
  183. package/src/components/list-box-item/index.ts +1 -0
  184. package/src/components/list-box-item/list-box-item.styles.ts +25 -0
  185. package/src/components/list-box-section/index.ts +1 -0
  186. package/src/components/list-box-section/list-box-section.styles.ts +13 -0
  187. package/src/components/menu/index.ts +1 -0
  188. package/src/components/menu/menu.styles.ts +9 -0
  189. package/src/components/menu-item/index.ts +1 -0
  190. package/src/components/menu-item/menu-item.styles.ts +26 -0
  191. package/src/components/menu-section/index.ts +1 -0
  192. package/src/components/menu-section/menu-section.styles.ts +14 -0
  193. package/src/components/meter/index.ts +1 -0
  194. package/src/components/meter/meter.styles.ts +48 -0
  195. package/src/components/modal/index.ts +1 -0
  196. package/src/components/modal/modal.styles.ts +70 -0
  197. package/src/components/number-field/index.ts +1 -0
  198. package/src/components/number-field/number-field.styles.ts +80 -0
  199. package/src/components/pagination/index.ts +1 -0
  200. package/src/components/pagination/pagination.styles.ts +32 -0
  201. package/src/components/popover/index.ts +1 -0
  202. package/src/components/popover/popover.styles.ts +14 -0
  203. package/src/components/progress-bar/index.ts +1 -0
  204. package/src/components/progress-bar/progress-bar.styles.ts +97 -0
  205. package/src/components/progress-circle/index.ts +1 -0
  206. package/src/components/progress-circle/progress-circle.styles.ts +74 -0
  207. package/src/components/radio/index.ts +1 -0
  208. package/src/components/radio/radio.styles.ts +14 -0
  209. package/src/components/radio-group/index.ts +1 -0
  210. package/src/components/radio-group/radio-group.styles.ts +18 -0
  211. package/src/components/range-calendar/index.ts +1 -0
  212. package/src/components/range-calendar/range-calendar.styles.ts +60 -0
  213. package/src/components/scroll-shadow/index.ts +1 -0
  214. package/src/components/scroll-shadow/scroll-shadow.styles.ts +37 -0
  215. package/src/components/select/index.ts +1 -0
  216. package/src/components/select/select.styles.ts +86 -0
  217. package/src/components/separator/index.ts +1 -0
  218. package/src/components/separator/separator.styles.ts +25 -0
  219. package/src/components/skeleton/index.ts +1 -0
  220. package/src/components/skeleton/skeleton.styles.ts +21 -0
  221. package/src/components/slider/index.ts +1 -0
  222. package/src/components/slider/slider.styles.ts +40 -0
  223. package/src/components/spinner/index.ts +1 -0
  224. package/src/components/spinner/spinner.styles.ts +28 -0
  225. package/src/components/splitter/index.ts +1 -0
  226. package/src/components/splitter/splitter.styles.ts +28 -0
  227. package/src/components/stepper/index.ts +1 -0
  228. package/src/components/stepper/stepper.styles.ts +57 -0
  229. package/src/components/surface/index.ts +1 -0
  230. package/src/components/surface/surface.styles.ts +20 -0
  231. package/src/components/switch/index.ts +1 -0
  232. package/src/components/switch/switch.styles.ts +31 -0
  233. package/src/components/switch-group/index.ts +1 -0
  234. package/src/components/switch-group/switch-group.styles.ts +25 -0
  235. package/src/components/table/index.ts +1 -0
  236. package/src/components/table/table.styles.ts +47 -0
  237. package/src/components/tabs/index.ts +1 -0
  238. package/src/components/tabs/tabs.styles.ts +31 -0
  239. package/src/components/tag/index.ts +1 -0
  240. package/src/components/tag/tag.styles.ts +37 -0
  241. package/src/components/tag-group/index.ts +1 -0
  242. package/src/components/tag-group/tag-group.styles.ts +12 -0
  243. package/src/components/text/index.ts +1 -0
  244. package/src/components/text/text.styles.ts +29 -0
  245. package/src/components/textarea/index.ts +1 -0
  246. package/src/components/textarea/textarea.styles.ts +86 -0
  247. package/src/components/time-field/index.ts +1 -0
  248. package/src/components/time-field/time-field.styles.ts +86 -0
  249. package/src/components/toast/index.ts +1 -0
  250. package/src/components/toast/toast.styles.ts +67 -0
  251. package/src/components/toggle-button/index.ts +1 -0
  252. package/src/components/toggle-button/toggle-button.styles.ts +28 -0
  253. package/src/components/toggle-button-group/index.ts +1 -0
  254. package/src/components/toggle-button-group/toggle-button-group.styles.ts +39 -0
  255. package/src/components/toolbar/index.ts +1 -0
  256. package/src/components/toolbar/toolbar.styles.ts +23 -0
  257. package/src/components/tooltip/index.ts +1 -0
  258. package/src/components/tooltip/tooltip.styles.ts +12 -0
  259. package/src/components/tree/index.ts +1 -0
  260. package/src/components/tree/tree.styles.ts +33 -0
  261. package/src/index.ts +5 -0
  262. package/src/utils/index.ts +15 -0
  263. package/themes/default/components/index.css +6 -0
  264. package/themes/default/index.css +8 -0
  265. package/themes/default/variables.css +168 -0
  266. package/themes/shared/theme.css +196 -0
  267. package/utilities/index.css +244 -0
  268. package/variants/index.css +106 -0
@@ -0,0 +1 @@
1
+ export * from "./toolbar.styles";
@@ -0,0 +1,23 @@
1
+ import type {VariantProps} from "../../utils";
2
+
3
+ import {tv} from "tailwind-variants";
4
+
5
+ const toolbarVariants = tv({
6
+ base: "toolbar",
7
+ defaultVariants: {
8
+ isAttached: false,
9
+ orientation: "horizontal",
10
+ },
11
+ variants: {
12
+ isAttached: {
13
+ true: "toolbar--attached",
14
+ },
15
+ orientation: {
16
+ horizontal: "toolbar--horizontal",
17
+ vertical: "toolbar--vertical",
18
+ },
19
+ },
20
+ });
21
+
22
+ export {toolbarVariants};
23
+ export type ToolbarVariants = VariantProps<typeof toolbarVariants>;
@@ -0,0 +1 @@
1
+ export * from "./tooltip.styles";
@@ -0,0 +1,12 @@
1
+ import type {VariantProps} from "../../utils";
2
+
3
+ import {tv} from "tailwind-variants";
4
+
5
+ export const tooltipVariants = tv({
6
+ slots: {
7
+ base: "tooltip",
8
+ trigger: "tooltip__trigger",
9
+ },
10
+ });
11
+
12
+ export type TooltipVariants = VariantProps<typeof tooltipVariants>;
@@ -0,0 +1 @@
1
+ export * from "./tree.styles";
@@ -0,0 +1,33 @@
1
+ import type {VariantProps} from "../../utils";
2
+ import { tv } from "tailwind-variants";
3
+
4
+ export const treeVariants = tv({
5
+ slots: {
6
+ root: "tree",
7
+ item: "tree__item",
8
+ itemContent: "tree__item-content",
9
+ itemToggle: "tree__item-toggle",
10
+ itemIcon: "tree__item-icon",
11
+ },
12
+ variants: {
13
+ size: {
14
+ sm: {
15
+ item: "tree__item--sm",
16
+ itemContent: "tree__item-content--sm",
17
+ },
18
+ md: {
19
+ item: "tree__item--md",
20
+ itemContent: "tree__item-content--md",
21
+ },
22
+ lg: {
23
+ item: "tree__item--lg",
24
+ itemContent: "tree__item-content--lg",
25
+ },
26
+ },
27
+ },
28
+ defaultVariants: {
29
+ size: "md",
30
+ },
31
+ });
32
+
33
+ export type TreeVariants = VariantProps<typeof treeVariants>;
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ // Export utility classes
2
+ export * from "./utils";
3
+
4
+ // Export all component variants
5
+ export * from "./components";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Utility CSS class strings for common component patterns
3
+ * These are framework-agnostic and can be used with any styling approach
4
+ */
5
+
6
+ export const focusRingClasses =
7
+ "focus-visible:ring-focus focus-visible:ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2";
8
+
9
+ export const disabledClasses =
10
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-[var(--disabled-opacity)]";
11
+
12
+ export const ariaDisabledClasses =
13
+ "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-[var(--disabled-opacity)]";
14
+
15
+ export type { VariantProps } from 'tailwind-variants/dist/types.js'
@@ -0,0 +1,6 @@
1
+ /* Default theme component customizations */
2
+ /*
3
+ * This file can contain theme-specific overrides for component styles.
4
+ * Since the default theme uses the base styles as-is, this file is empty.
5
+ * Custom themes can override specific component styles here.
6
+ */
@@ -0,0 +1,8 @@
1
+ /* Declares the theme variables - @see https://tailwindcss.com/docs/theme */
2
+ @import "../shared/theme.css";
3
+
4
+ /* Default Theme */
5
+ @import "./variables.css" layer(theme);
6
+
7
+ /* Component customizations for default theme */
8
+ @import "./components/index.css" layer(components);
@@ -0,0 +1,168 @@
1
+ @layer base {
2
+ /* Auron UI Default Theme */
3
+ :root,
4
+ .light,
5
+ .default,
6
+ [data-theme="light"],
7
+ [data-theme="default"] {
8
+ color-scheme: light;
9
+
10
+ /* == Common Variables == */
11
+
12
+ /* Primitive Colors (Do not change between light and dark) */
13
+ --white: oklch(100% 0 0);
14
+ --black: oklch(0% 0 0);
15
+ --snow: oklch(0.9911 0 0);
16
+ --eclipse: oklch(0.2103 0.0059 285.89);
17
+
18
+ /* Spacing scale */
19
+ --spacing: 0.25rem;
20
+
21
+ /* Border */
22
+ --border-width: 1px;
23
+ --field-border-width: 0px;
24
+ --disabled-opacity: 0.5;
25
+
26
+ /* Ring offset - Used for focus ring */
27
+ --ring-offset-width: 2px;
28
+
29
+ /* Cursor */
30
+ --cursor-interactive: pointer;
31
+ --cursor-disabled: not-allowed;
32
+
33
+ /* Radius */
34
+ --radius: 0.5rem;
35
+ --field-radius: calc(var(--radius) * 1.5);
36
+
37
+ /* == Light Theme Variables == */
38
+
39
+ /* Base Colors */
40
+ --background: oklch(0.9702 0 0);
41
+ --foreground: var(--eclipse);
42
+
43
+ /* Surface: Used for non-overlay components (cards, accordions, disclosure groups) */
44
+ --surface: var(--white);
45
+ --surface-foreground: var(--foreground);
46
+
47
+ --surface-secondary: oklch(0.9524 0.0013 286.37);
48
+ --surface-secondary-foreground: var(--foreground);
49
+
50
+ --surface-tertiary: oklch(0.9373 0.0013 286.37);
51
+ --surface-tertiary-foreground: var(--foreground);
52
+
53
+ /* Overlay: Used for floating/overlay components (tooltips, popovers, modals, menus) */
54
+ --overlay: var(--white);
55
+ --overlay-foreground: var(--foreground);
56
+
57
+ --muted: oklch(0.5517 0.0138 285.94);
58
+
59
+ --scrollbar: oklch(87.1% 0.006 286.286);
60
+
61
+ --default: oklch(94% 0.001 286.375);
62
+ --default-foreground: var(--eclipse);
63
+
64
+ --accent: oklch(0.6204 0.195 253.83);
65
+ --accent-foreground: var(--snow);
66
+
67
+ /* Form Fields */
68
+ --field-background: var(--white);
69
+ --field-foreground: oklch(0.2103 0.0059 285.89);
70
+ --field-placeholder: var(--muted);
71
+ --field-border: transparent; /* no border by default on form fields */
72
+
73
+ /* Status Colors */
74
+ --success: oklch(0.7329 0.1935 150.81);
75
+ --success-foreground: var(--eclipse);
76
+
77
+ --warning: oklch(0.7819 0.1585 72.33);
78
+ --warning-foreground: var(--eclipse);
79
+
80
+ --danger: oklch(0.6532 0.2328 25.74);
81
+ --danger-foreground: var(--snow);
82
+
83
+ /* Component Colors */
84
+ --segment: var(--white);
85
+ --segment-foreground: var(--eclipse);
86
+
87
+ /* Misc Colors */
88
+ --border: oklch(90% 0.004 286.32);
89
+ --separator: oklch(92% 0.004 286.32);
90
+ --focus: var(--accent);
91
+ --link: var(--foreground);
92
+
93
+ /* Backdrop */
94
+ --backdrop: rgba(0, 0, 0, 0.5);
95
+
96
+ /* Shadows */
97
+ /* --surface-shadow: 0 0px 0px 0 rgba(24, 24, 27, 0.03), 0 2px 10px 0 rgba(24, 24, 27, 0.08); */
98
+ --surface-shadow:
99
+ 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.06),
100
+ 0 0 1px 0 rgba(0, 0, 0, 0.06);
101
+ /* Overlay shadow */
102
+ --overlay-shadow:
103
+ 0 2px 8px 0 rgba(0, 0, 0, 0.06), 0 -6px 12px 0 rgba(0, 0, 0, 0.03),
104
+ 0 14px 28px 0 rgba(0, 0, 0, 0.08);
105
+ --field-shadow:
106
+ 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.06),
107
+ 0 0 1px 0 rgba(0, 0, 0, 0.06);
108
+ /* Skeleton Default Global Animation */
109
+ --skeleton-animation: shimmer; /* shimmer, pulse, none */
110
+ }
111
+
112
+ .dark,
113
+ [data-theme="dark"] {
114
+ color-scheme: dark;
115
+ /* == Dark Theme Variables == */
116
+
117
+ /* Base Colors */
118
+ --background: oklch(12% 0.005 285.823);
119
+ --foreground: var(--snow);
120
+
121
+ /* Surface: Used for non-overlay components (cards, accordions, disclosure groups) */
122
+ --surface: oklch(0.2103 0.0059 285.89);
123
+ --surface-foreground: var(--foreground);
124
+
125
+ --surface-secondary: oklch(0.257 0.0037 286.14);
126
+ --surface-tertiary: oklch(0.2721 0.0024 247.91);
127
+
128
+ /* Overlay: Used for floating/overlay components (tooltips, popovers, modals, menus) - lighter for contrast */
129
+ --overlay: oklch(0.2103 0.0059 285.89);
130
+ --overlay-foreground: var(--foreground);
131
+
132
+ --muted: oklch(70.5% 0.015 286.067);
133
+
134
+ --scrollbar: oklch(70.5% 0.015 286.067);
135
+
136
+ --default: oklch(27.4% 0.006 286.033);
137
+ --default-foreground: var(--snow);
138
+
139
+ /* Form Fields */
140
+ --field-background: oklch(0.2103 0.0059 285.89);
141
+ --field-foreground: var(--foreground);
142
+
143
+ /* Status Colors */
144
+ --warning: oklch(0.8203 0.1388 76.34);
145
+ --warning-foreground: var(--eclipse);
146
+
147
+ --danger: oklch(0.594 0.1967 24.63);
148
+ --danger-foreground: var(--snow);
149
+
150
+ /* Component Colors */
151
+ --segment: oklch(0.3964 0.01 285.93);
152
+ --segment-foreground: var(--foreground);
153
+
154
+ /* Misc Colors */
155
+ --border: oklch(28% 0.006 286.033);
156
+ --separator: oklch(25% 0.006 286.033);
157
+ --focus: var(--accent);
158
+ --link: var(--foreground);
159
+
160
+ /* Backdrop */
161
+ --backdrop: rgba(0, 0, 0, 0.6);
162
+
163
+ /* Shadows */
164
+ --surface-shadow: 0 0 0 0 transparent inset; /* No shadow on dark mode */
165
+ --overlay-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.3) inset;
166
+ --field-shadow: 0 0 0 0 transparent inset; /* Transparent shadow to allow ring utilities to work */
167
+ }
168
+ }
@@ -0,0 +1,196 @@
1
+ @theme inline {
2
+ --color-background: var(--background);
3
+ --color-foreground: var(--foreground);
4
+
5
+ --color-surface: var(--surface);
6
+ --color-surface-foreground: var(--surface-foreground);
7
+ --color-surface-hover: color-mix(in oklab, var(--surface) 92%, var(--surface-foreground) 8%);
8
+
9
+ --color-surface-secondary: var(--surface-secondary);
10
+ --color-surface-secondary-foreground: var(--surface-secondary-foreground);
11
+
12
+ --color-surface-tertiary: var(--surface-tertiary);
13
+ --color-surface-tertiary-foreground: var(--surface-tertiary-foreground);
14
+
15
+ --color-overlay: var(--overlay);
16
+ --color-overlay-foreground: var(--overlay-foreground);
17
+
18
+ --color-muted: var(--muted);
19
+
20
+ --color-accent: var(--accent);
21
+ --color-accent-foreground: var(--accent-foreground);
22
+
23
+ --color-segment: var(--segment);
24
+ --color-segment-foreground: var(--segment-foreground);
25
+
26
+ --color-border: var(--border);
27
+ --color-separator: var(--separator);
28
+ --color-focus: var(--focus);
29
+ --color-link: var(--link);
30
+
31
+ --color-default: var(--default);
32
+ --color-default-foreground: var(--default-foreground);
33
+
34
+ --color-success: var(--success);
35
+ --color-success-foreground: var(--success-foreground);
36
+
37
+ --color-warning: var(--warning);
38
+ --color-warning-foreground: var(--warning-foreground);
39
+
40
+ --color-danger: var(--danger);
41
+ --color-danger-foreground: var(--danger-foreground);
42
+
43
+ --color-backdrop: var(--backdrop);
44
+
45
+ /* Typography */
46
+ --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
47
+
48
+ --shadow-surface: var(--surface-shadow);
49
+ --shadow-overlay: var(--overlay-shadow);
50
+ --shadow-field: var(--field-shadow);
51
+
52
+ /* Form Field Tokens */
53
+ --color-field: var(--field-background, var(--default));
54
+ --color-field-hover: color-mix(
55
+ in oklab,
56
+ var(--field-background, var(--default)) 90%,
57
+ var(--field-foreground, var(--default-foreground)) 10%
58
+ );
59
+ --color-field-foreground: var(--field-foreground, var(--foreground));
60
+ --color-field-placeholder: var(--field-placeholder, var(--muted));
61
+ --color-field-border: var(--field-border, var(--border));
62
+ --radius-field: var(--field-radius, calc(var(--radius) * 1.5));
63
+ --border-width-field: var(--field-border-width, var(--border-width));
64
+
65
+ /* Calculated Variables */
66
+
67
+ /* Colors */
68
+
69
+ /* --- background shades --- */
70
+ --color-background-secondary: color-mix(in oklab, var(--background) 96%, var(--foreground) 4%);
71
+ --color-background-tertiary: color-mix(in oklab, var(--background) 92%, var(--foreground) 8%);
72
+ --color-background-inverse: var(--foreground);
73
+
74
+ /* ------------------------- */
75
+ --color-default-hover: color-mix(in oklab, var(--default) 96%, var(--default-foreground) 4%);
76
+ --color-accent-hover: color-mix(in oklab, var(--accent) 90%, var(--accent-foreground) 10%);
77
+ --color-success-hover: color-mix(in oklab, var(--success) 90%, var(--success-foreground) 10%);
78
+ --color-warning-hover: color-mix(in oklab, var(--warning) 90%, var(--warning-foreground) 10%);
79
+ --color-danger-hover: color-mix(in oklab, var(--danger) 90%, var(--danger-foreground) 10%);
80
+
81
+ /* Form Field Colors */
82
+ --color-field-hover: color-mix(
83
+ in oklab,
84
+ var(--field-background, var(--default)) 90%,
85
+ var(--field-foreground, var(--foreground)) 2%
86
+ );
87
+ --color-field-focus: var(--field-background, var(--default));
88
+ --color-field-border-hover: color-mix(
89
+ in oklab,
90
+ var(--field-border, var(--border)) 88%,
91
+ var(--field-foreground, var(--foreground)) 10%
92
+ );
93
+ --color-field-border-focus: color-mix(
94
+ in oklab,
95
+ var(--field-border, var(--border)) 74%,
96
+ var(--field-foreground, var(--foreground)) 22%
97
+ );
98
+
99
+ /* Soft Colors */
100
+ --color-accent-soft: color-mix(in oklab, var(--accent) 15%, transparent);
101
+ --color-accent-soft-foreground: var(--accent);
102
+ --color-accent-soft-hover: color-mix(in oklab, var(--accent) 20%, transparent);
103
+
104
+ --color-danger-soft: color-mix(in oklab, var(--danger) 15%, transparent);
105
+ --color-danger-soft-foreground: var(--danger);
106
+ --color-danger-soft-hover: color-mix(in oklab, var(--danger) 20%, transparent);
107
+
108
+ --color-warning-soft: color-mix(in oklab, var(--warning) 15%, transparent);
109
+ --color-warning-soft-foreground: var(--warning);
110
+ --color-warning-soft-hover: color-mix(in oklab, var(--warning) 20%, transparent);
111
+
112
+ --color-success-soft: color-mix(in oklab, var(--success) 15%, transparent);
113
+ --color-success-soft-foreground: var(--success);
114
+ --color-success-soft-hover: color-mix(in oklab, var(--success) 20%, transparent);
115
+
116
+ /* Separator Colors - Levels */
117
+ --color-separator-secondary: color-mix(
118
+ in oklab,
119
+ var(--surface) 85%,
120
+ var(--surface-foreground) 15%
121
+ );
122
+ --color-separator-tertiary: color-mix(
123
+ in oklab,
124
+ var(--surface) 81%,
125
+ var(--surface-foreground) 19%
126
+ );
127
+
128
+ /* Border Colors - Levels (progressive contrast: default → secondary → tertiary) */
129
+ /* Light mode: lighter → darker | Dark mode: darker → lighter */
130
+ --color-border-secondary: color-mix(in oklab, var(--surface) 78%, var(--surface-foreground) 22%);
131
+ --color-border-tertiary: color-mix(in oklab, var(--surface) 66%, var(--surface-foreground) 34%);
132
+
133
+ /* Radius and default sizes - defaults can change by just changing the --radius */
134
+ --radius-xs: calc(var(--radius) * 0.25); /* 0.125rem (2px) */
135
+ --radius-sm: calc(var(--radius) * 0.5); /* 0.25rem (4px) */
136
+ --radius-md: calc(var(--radius) * 0.75); /* 0.375rem (6px) */
137
+ --radius-lg: calc(var(--radius) * 1); /* 0.5rem (8px) */
138
+ --radius-xl: calc(var(--radius) * 1.5); /* 0.75rem (12px) */
139
+ --radius-2xl: calc(var(--radius) * 2); /* 1rem (16px) */
140
+ --radius-3xl: calc(var(--radius) * 3); /* 1.5rem (24px) */
141
+ --radius-4xl: calc(var(--radius) * 4); /* 2rem (32px) */
142
+
143
+ /* Transition Timing Functions */
144
+ --ease-smooth: ease; /* same as transition: ease; */
145
+ /* These custom curves are made by https://twitter.com/bdc */
146
+
147
+ /* From smoother to faster */
148
+ --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
149
+ --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
150
+ --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
151
+ --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
152
+ --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
153
+ --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
154
+ /* From slower to faster */
155
+ --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
156
+ --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
157
+ --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
158
+ --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
159
+ --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
160
+ --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
161
+ /* Custom smooth-out curve: fast start, smooth stop - Apple style */
162
+ --ease-out-fluid: cubic-bezier(0.32, 0.72, 0, 1);
163
+ /* From slower to faster */
164
+ --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
165
+ --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
166
+ --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
167
+ --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
168
+ --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
169
+ --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
170
+
171
+ /* Linear */
172
+ --ease-linear: linear;
173
+
174
+ /* Animations */
175
+ --animate-spin-fast: spin 0.75s linear infinite;
176
+ --animate-skeleton: skeleton 2s linear infinite;
177
+ --animate-caret-blink: caret-blink 1.2s ease-out infinite;
178
+
179
+ @keyframes skeleton {
180
+ 100% {
181
+ transform: translateX(200%);
182
+ }
183
+ }
184
+
185
+ @keyframes caret-blink {
186
+ 0%,
187
+ 70%,
188
+ 100% {
189
+ opacity: 1;
190
+ }
191
+ 20%,
192
+ 50% {
193
+ opacity: 0;
194
+ }
195
+ }
196
+ }