@rovula/ui 0.1.6 → 0.1.8

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 (232) hide show
  1. package/dist/cjs/bundle.css +630 -467
  2. package/dist/cjs/bundle.js +1545 -1545
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
  5. package/dist/cjs/types/components/Dialog/Dialog.d.ts +7 -1
  6. package/dist/cjs/types/components/Dialog/Dialog.stories.d.ts +3 -0
  7. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +2 -0
  8. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
  9. package/dist/cjs/types/components/Form/Field.d.ts +26 -0
  10. package/dist/cjs/types/components/Form/FieldMessage.d.ts +7 -0
  11. package/dist/cjs/types/components/Form/Form.d.ts +49 -11
  12. package/dist/cjs/types/components/Form/Form.stories.d.ts +23 -0
  13. package/dist/cjs/types/components/Form/ValidationHintList.d.ts +17 -0
  14. package/dist/cjs/types/components/Form/ValidationHintList.stories.d.ts +9 -0
  15. package/dist/cjs/types/components/Form/index.d.ts +10 -0
  16. package/dist/cjs/types/components/Form/useOptionBridge.d.ts +17 -0
  17. package/dist/cjs/types/components/OtpInput/OtpInput.d.ts +17 -0
  18. package/dist/cjs/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
  19. package/dist/cjs/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
  20. package/dist/cjs/types/components/OtpInput/index.d.ts +5 -0
  21. package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +3 -0
  22. package/dist/cjs/types/index.d.ts +5 -0
  23. package/dist/cjs/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
  24. package/dist/cjs/types/utils/colors.d.ts +351 -267
  25. package/dist/components/ActionButton/ActionButton.stories.js +2 -2
  26. package/dist/components/ActionButton/ActionButton.styles.js +1 -1
  27. package/dist/components/AlertDialog/AlertDialog.js +6 -6
  28. package/dist/components/AlertDialog/AlertDialog.stories.js +3 -0
  29. package/dist/components/Avatar/Avatar.stories.js +1 -1
  30. package/dist/components/Avatar/Avatar.styles.js +1 -1
  31. package/dist/components/Avatar/AvatarBase.js +1 -1
  32. package/dist/components/Avatar/AvatarGroup.stories.js +1 -1
  33. package/dist/components/Button/Buttons.stories.js +2 -2
  34. package/dist/components/Calendar/Calendar.js +1 -1
  35. package/dist/components/Checkbox/Checkbox.js +1 -1
  36. package/dist/components/Checkbox/Checkbox.stories.js +17 -7
  37. package/dist/components/Collapsible/Collapsible.styles.js +1 -1
  38. package/dist/components/DataTable/DataTable.js +2 -2
  39. package/dist/components/Dialog/Dialog.js +12 -7
  40. package/dist/components/Dialog/Dialog.stories.js +90 -2
  41. package/dist/components/Dropdown/Dropdown.js +2 -2
  42. package/dist/components/DropdownMenu/DropdownMenu.js +3 -3
  43. package/dist/components/FocusedScrollView/FocusedScrollView.stories.js +6 -6
  44. package/dist/components/Form/Field.js +60 -0
  45. package/dist/components/Form/FieldMessage.js +24 -0
  46. package/dist/components/Form/Form.js +73 -41
  47. package/dist/components/Form/Form.stories.js +221 -0
  48. package/dist/components/Form/ValidationHintList.js +30 -0
  49. package/dist/components/Form/ValidationHintList.stories.js +50 -0
  50. package/dist/components/Form/index.js +5 -0
  51. package/dist/components/Form/useOptionBridge.js +27 -0
  52. package/dist/components/InputFilter/InputFilter.js +5 -4
  53. package/dist/components/InputFilter/InputFilter.stories.js +1 -1
  54. package/dist/components/InputFilter/InputFilter.styles.js +14 -1
  55. package/dist/components/Label/Label.styles.js +1 -1
  56. package/dist/components/Menu/Menu.js +2 -2
  57. package/dist/components/NumberInput/NumberInput.stories.js +1 -1
  58. package/dist/components/OtpInput/OtpInput.js +118 -0
  59. package/dist/components/OtpInput/OtpInput.stories.js +60 -0
  60. package/dist/components/OtpInput/OtpInputGroup.js +23 -0
  61. package/dist/components/OtpInput/index.js +3 -0
  62. package/dist/components/PasswordInput/PasswordInput.stories.js +1 -1
  63. package/dist/components/Popover/Popover.js +1 -1
  64. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  65. package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
  66. package/dist/components/Search/Search.js +13 -1
  67. package/dist/components/Search/Search.stories.js +1 -1
  68. package/dist/components/Slider/Slider.js +1 -1
  69. package/dist/components/Slider/Slider.stories.js +5 -5
  70. package/dist/components/Switch/Switch.stories.js +2 -2
  71. package/dist/components/Switch/Switch.styles.js +1 -1
  72. package/dist/components/Table/Table.js +5 -5
  73. package/dist/components/Tabs/Tabs.js +12 -9
  74. package/dist/components/Tabs/Tabs.stories.js +1 -1
  75. package/dist/components/Text/Text.js +1 -1
  76. package/dist/components/Text/Text.stories.js +1 -1
  77. package/dist/components/TextArea/TextArea.stories.js +1 -1
  78. package/dist/components/TextArea/TextArea.styles.js +3 -3
  79. package/dist/components/TextInput/TextInput.js +3 -2
  80. package/dist/components/TextInput/TextInput.stories.js +3 -3
  81. package/dist/components/TextInput/TextInput.styles.js +41 -19
  82. package/dist/components/Toast/Toast.js +4 -2
  83. package/dist/components/Toast/Toast.stories.js +1 -1
  84. package/dist/components/Toast/Toast.styles.js +4 -4
  85. package/dist/components/Toast/Toaster.js +2 -2
  86. package/dist/components/Tree/Tree.stories.js +1 -1
  87. package/dist/components/Tree/TreeItem.js +1 -1
  88. package/dist/esm/bundle.css +630 -467
  89. package/dist/esm/bundle.js +1545 -1545
  90. package/dist/esm/bundle.js.map +1 -1
  91. package/dist/esm/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
  92. package/dist/esm/types/components/Dialog/Dialog.d.ts +7 -1
  93. package/dist/esm/types/components/Dialog/Dialog.stories.d.ts +3 -0
  94. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -0
  95. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
  96. package/dist/esm/types/components/Form/Field.d.ts +26 -0
  97. package/dist/esm/types/components/Form/FieldMessage.d.ts +7 -0
  98. package/dist/esm/types/components/Form/Form.d.ts +49 -11
  99. package/dist/esm/types/components/Form/Form.stories.d.ts +23 -0
  100. package/dist/esm/types/components/Form/ValidationHintList.d.ts +17 -0
  101. package/dist/esm/types/components/Form/ValidationHintList.stories.d.ts +9 -0
  102. package/dist/esm/types/components/Form/index.d.ts +10 -0
  103. package/dist/esm/types/components/Form/useOptionBridge.d.ts +17 -0
  104. package/dist/esm/types/components/OtpInput/OtpInput.d.ts +17 -0
  105. package/dist/esm/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
  106. package/dist/esm/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
  107. package/dist/esm/types/components/OtpInput/index.d.ts +5 -0
  108. package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +3 -0
  109. package/dist/esm/types/index.d.ts +5 -0
  110. package/dist/esm/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
  111. package/dist/esm/types/utils/colors.d.ts +351 -267
  112. package/dist/index.d.ts +512 -269
  113. package/dist/index.js +3 -0
  114. package/dist/src/theme/global.css +2739 -2681
  115. package/dist/theme/ThemeColorCoverageRuntime.stories.js +91 -0
  116. package/dist/utils/colors.js +359 -267
  117. package/package.json +4 -2
  118. package/src/components/ActionButton/ActionButton.stories.tsx +6 -6
  119. package/src/components/ActionButton/ActionButton.styles.ts +1 -1
  120. package/src/components/AlertDialog/AlertDialog.stories.tsx +22 -0
  121. package/src/components/AlertDialog/AlertDialog.tsx +6 -6
  122. package/src/components/Avatar/Avatar.stories.tsx +1 -1
  123. package/src/components/Avatar/Avatar.styles.ts +1 -1
  124. package/src/components/Avatar/AvatarBase.tsx +1 -1
  125. package/src/components/Avatar/AvatarGroup.stories.tsx +1 -1
  126. package/src/components/Button/Buttons.stories.tsx +25 -17
  127. package/src/components/Calendar/Calendar.tsx +3 -3
  128. package/src/components/Checkbox/Checkbox.stories.tsx +35 -12
  129. package/src/components/Checkbox/Checkbox.tsx +7 -5
  130. package/src/components/Collapsible/Collapsible.styles.ts +1 -1
  131. package/src/components/DataTable/DataTable.tsx +2 -2
  132. package/src/components/Dialog/Dialog.stories.tsx +173 -0
  133. package/src/components/Dialog/Dialog.tsx +32 -15
  134. package/src/components/Dropdown/Dropdown.styles.ts +1 -1
  135. package/src/components/Dropdown/Dropdown.tsx +16 -14
  136. package/src/components/DropdownMenu/DropdownMenu.tsx +3 -3
  137. package/src/components/FocusedScrollView/FocusedScrollView.stories.tsx +10 -10
  138. package/src/components/Form/Field.tsx +160 -0
  139. package/src/components/Form/FieldMessage.tsx +38 -0
  140. package/src/components/Form/Form.docs.mdx +67 -0
  141. package/src/components/Form/Form.stories.tsx +490 -0
  142. package/src/components/Form/Form.tsx +185 -87
  143. package/src/components/Form/README.md +284 -0
  144. package/src/components/Form/ValidationHintList.stories.tsx +118 -0
  145. package/src/components/Form/ValidationHintList.tsx +82 -0
  146. package/src/components/Form/index.ts +28 -0
  147. package/src/components/Form/useOptionBridge.ts +55 -0
  148. package/src/components/InputFilter/InputFilter.stories.tsx +1 -1
  149. package/src/components/InputFilter/InputFilter.styles.ts +14 -1
  150. package/src/components/InputFilter/InputFilter.tsx +33 -28
  151. package/src/components/Label/Label.styles.ts +2 -2
  152. package/src/components/Label/Label.tsx +1 -1
  153. package/src/components/Menu/Menu.tsx +12 -12
  154. package/src/components/NumberInput/NumberInput.stories.tsx +1 -1
  155. package/src/components/OtpInput/OtpInput.stories.tsx +168 -0
  156. package/src/components/OtpInput/OtpInput.tsx +210 -0
  157. package/src/components/OtpInput/OtpInputGroup.tsx +74 -0
  158. package/src/components/OtpInput/index.ts +5 -0
  159. package/src/components/PasswordInput/PasswordInput.stories.tsx +1 -1
  160. package/src/components/Popover/Popover.tsx +1 -1
  161. package/src/components/RadioGroup/RadioGroup.stories.tsx +4 -4
  162. package/src/components/RadioGroup/RadioGroup.tsx +2 -1
  163. package/src/components/Search/Search.stories.tsx +1 -1
  164. package/src/components/Search/Search.tsx +6 -2
  165. package/src/components/Slider/Slider.stories.tsx +7 -7
  166. package/src/components/Slider/Slider.tsx +1 -1
  167. package/src/components/Switch/Switch.stories.tsx +4 -4
  168. package/src/components/Switch/Switch.styles.ts +1 -1
  169. package/src/components/Table/Table.tsx +5 -5
  170. package/src/components/Tabs/Tabs.stories.tsx +1 -1
  171. package/src/components/Tabs/Tabs.tsx +29 -18
  172. package/src/components/Text/Text.stories.tsx +1 -1
  173. package/src/components/Text/Text.tsx +1 -1
  174. package/src/components/TextArea/TextArea.stories.tsx +1 -1
  175. package/src/components/TextArea/TextArea.styles.ts +3 -3
  176. package/src/components/TextInput/TextInput.stories.tsx +7 -7
  177. package/src/components/TextInput/TextInput.styles.ts +42 -19
  178. package/src/components/TextInput/TextInput.tsx +3 -1
  179. package/src/components/Toast/Toast.stories.tsx +1 -1
  180. package/src/components/Toast/Toast.styles.tsx +7 -7
  181. package/src/components/Toast/Toast.tsx +5 -4
  182. package/src/components/Toast/Toaster.tsx +17 -20
  183. package/src/components/Tree/Tree.stories.tsx +1 -1
  184. package/src/components/Tree/TreeItem.tsx +1 -1
  185. package/src/index.ts +5 -0
  186. package/src/theme/THEME_MAPPING.md +36 -37
  187. package/src/theme/ThemeColorCoverageRuntime.stories.tsx +236 -0
  188. package/src/theme/direct-token-migration-plan.md +121 -0
  189. package/src/theme/figma-mcp-check-report.md +225 -0
  190. package/src/theme/figma-mcp-component-checklist.json +1250 -0
  191. package/src/theme/global.css +7 -3
  192. package/src/theme/presets/colors.js +173 -64
  193. package/src/theme/themes/skyller/baseline.css +0 -4
  194. package/src/theme/themes/variable-mapping.css +1064 -0
  195. package/src/theme/themes/variable.css +248 -230
  196. package/src/theme/themes/xspector/baseline.css +0 -4
  197. package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
  198. package/src/theme/themes/xspector/components/loading.css +2 -2
  199. package/src/theme/tokens/baseline.css +0 -3
  200. package/src/theme/tokens/color.css +36 -65
  201. package/src/theme/tokens/components/action-button.css +6 -6
  202. package/src/theme/tokens/components/button.css +189 -189
  203. package/src/theme/tokens/components/dropdown-menu.css +5 -5
  204. package/src/theme/tokens/components/footer.css +1 -1
  205. package/src/theme/tokens/components/loading.css +2 -2
  206. package/src/theme/tokens/components/switch.css +11 -11
  207. package/src/theme/tokens/typography.css +28 -28
  208. package/src/theme/tokens_old/baseline.css +13 -0
  209. package/src/theme/tokens_old/color.css +78 -0
  210. package/src/theme/tokens_old/components/action-button.css +127 -0
  211. package/src/theme/tokens_old/components/button.css +512 -0
  212. package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
  213. package/src/theme/tokens_old/components/footer.css +9 -0
  214. package/src/theme/tokens_old/components/loading.css +11 -0
  215. package/src/theme/tokens_old/components/navbar.css +9 -0
  216. package/src/theme/tokens_old/components/progress-bar.css +8 -0
  217. package/src/theme/tokens_old/components/switch.css +29 -0
  218. package/src/theme/tokens_old/typography.css +199 -0
  219. package/src/theme/tokens_old/variables.css +28 -0
  220. package/src/theme/utils.js +172 -33
  221. package/src/utils/colors.ts +367 -278
  222. package/src/theme/themes/skyller/color.css +0 -79
  223. package/src/theme/themes/skyller/palette.css +0 -143
  224. package/src/theme/themes/skyller/state.css +0 -94
  225. package/src/theme/themes/skyller/transparent.css +0 -94
  226. package/src/theme/themes/xspector/color.css +0 -83
  227. package/src/theme/themes/xspector/palette.css +0 -142
  228. package/src/theme/themes/xspector/state.css +0 -94
  229. package/src/theme/themes/xspector/transparent.css +0 -93
  230. /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
  231. /package/src/theme/{tokens → tokens_old}/state.css +0 -0
  232. /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
@@ -1,7 +1,11 @@
1
- @import "./tokens/baseline.css";
2
1
  @import "./themes/variable.css";
3
- @import "./themes/xspector/baseline.css";
4
- @import "./themes/skyller/baseline.css";
2
+ @import "./themes/variable-mapping.css";
3
+ @import "./tokens/color.css";
4
+ @import "./tokens/baseline.css";
5
+
6
+ /* TODO: remove this */
7
+ /* @import "./themes/xspector/baseline.css";
8
+ @import "./themes/skyller/baseline.css"; */
5
9
 
6
10
  @tailwind base;
7
11
  @tailwind components;
@@ -7,89 +7,195 @@ import {
7
7
  generateActionButtonStyles,
8
8
  } from "../utils";
9
9
 
10
- const secondaryRange = [
11
- "50",
12
- "100",
13
- "200",
14
- "300",
15
- "400",
16
- "500",
17
- "600",
18
- "700",
19
- "800",
20
- "900",
21
- "950",
22
- ];
10
+ const secondaryRange = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
23
11
 
24
12
  module.exports = {
25
13
  theme: {
26
14
  extend: {
27
15
  colors: {
16
+ // ------------------------------
17
+ // Canonical design tokens (new)
18
+ // ------------------------------
19
+ // Main / brand core
20
+ "main-primary": withColorMixin("--main-primary"),
21
+ "main-secondary": withColorMixin("--main-secondary"),
22
+ "main-tertiary": withColorMixin("--main-tertiary"),
23
+ "brand-midnight-blue": withColorMixin("--brand-midnight-blue"),
24
+ "brand-columbia-blue": withColorMixin("--brand-columbia-blue"),
25
+ "brand-background": withColorMixin("--brand-background"),
26
+ "brand-lemon-glacier": withColorMixin("--brand-lemon-glacier"),
27
+ "brand-rvl-yellow": withColorMixin("--brand-rvl-yellow"),
28
+ "brand-rvl-grey": withColorMixin("--brand-rvl-grey"),
29
+
30
+ // Text
28
31
  "text-black": withColorMixin("--text-black"),
29
- "text-dark": withColorMixin("--text-dark"),
30
- "text-medium": withColorMixin("--text-medium"),
31
- "text-light": withColorMixin("--text-light"),
32
- "text-grey-dark": withColorMixin("--text-grey-dark"),
33
- "text-grey-medium": withColorMixin("--text-grey-medium"),
34
- "text-grey-light": withColorMixin("--text-grey-light"),
32
+ "text-contrast-low": withColorMixin("--text-contrast-low"),
33
+ "text-contrast-medium": withColorMixin("--text-contrast-medium"),
34
+ "text-contrast-high": withColorMixin("--text-contrast-high"),
35
+ "text-contrast-max": withColorMixin("--text-contrast-max"),
36
+ "text-g-contrast-low": withColorMixin("--text-g-contrast-low"),
37
+ "text-g-contrast-medium": withColorMixin("--text-g-contrast-medium"),
38
+ "text-g-contrast-high": withColorMixin("--text-g-contrast-high"),
35
39
  "text-white": withColorMixin("--text-white"),
36
40
 
37
- ...generateColorConfig("primary", "primary-ramps-primary"),
38
- ...generateColorConfig("secondary", "secondary-ramps-secondary"),
39
- ...generateColorConfig("tertiary", "tertiary-ramps-tertiary"),
40
- ...generateColorConfig("grey", "grey-grey"),
41
-
42
- ...generateColorConfig("grey2", "grey2-grey2", secondaryRange),
43
- ...generateColorConfig("info", "info-info", secondaryRange),
44
- ...generateColorConfig("success", "success-success", secondaryRange),
45
- ...generateColorConfig("warning", "warning-warning", secondaryRange),
46
- ...generateColorConfig("error", "error-error", secondaryRange),
47
-
48
- ...generateTransparentColorConfig("primary", "main"),
49
- ...generateTransparentColorConfig("secondary", "main"),
50
- ...generateTransparentColorConfig("tertiary", "main"),
51
- ...generateTransparentColorConfig("grey", "other"),
52
- ...generateTransparentColorConfig("grey2", "other"),
53
- ...generateTransparentColorConfig("info", "other"),
54
- ...generateTransparentColorConfig("success", "other"),
55
- ...generateTransparentColorConfig("warning", "other"),
56
- ...generateTransparentColorConfig("error", "other"),
57
- ...generateTransparentColorConfig("black", "other"),
58
- ...generateTransparentColorConfig("white", "other"),
59
-
60
- "state-disable-solid": withColorMixin("--state-color-disable-solid"),
61
- "state-disable-outline": withColorMixin(
62
- "--state-color-disable-outline"
63
- ),
41
+ // Palette / state ramps
42
+ // Ranges: 5 - 150
43
+ ...generateColorConfig("primary", "ramps-primary", {
44
+ includeOriginalVarAliases: true,
45
+ }),
46
+ ...generateColorConfig("secondary", "ramps-secondary", {
47
+ includeOriginalVarAliases: true,
48
+ }),
49
+ ...generateColorConfig("tertiary", "ramps-tertiary", {
50
+ includeOriginalVarAliases: true,
51
+ }),
52
+ ...generateColorConfig("grey", "ramps-grey", {
53
+ stateVars: false,
54
+ includeOriginalVarAliases: true,
55
+ }),
64
56
 
65
- "input-default-text": withColorMixin("--input-color-default-text"),
66
- "input-default-stroke": withColorMixin("--input-color-default-stroke"),
67
- "input-filled-text": withColorMixin("--input-color-filled-text"),
68
- "input-active-stroke": withColorMixin("--input-color-active-stroke"),
69
- "input-disable-text": withColorMixin("--input-color-disable-text"),
70
- "input-disable-stroke": withColorMixin("--input-color-disable-stroke"),
71
- "input-disable-bg": withColorMixin("--input-color-disable-bg"),
72
- "input-label-bg": withColorMixin("--input-color-label-bg"),
73
- "input-error": withColorMixin("--input-color-error"),
57
+ // Ranges: 50 - 950
58
+ ...generateColorConfig("grey2", "ramps-grey2", {
59
+ range: secondaryRange,
60
+ stateVars: false,
61
+ includeOriginalVarAliases: true,
62
+ }),
63
+ ...generateColorConfig("info", "ramps-info", {
64
+ range: secondaryRange,
65
+ includeOriginalVarAliases: true,
66
+ }),
67
+ ...generateColorConfig("success", "ramps-success", {
68
+ range: secondaryRange,
69
+ includeOriginalVarAliases: true,
70
+ }),
71
+ ...generateColorConfig("warning", "ramps-warning", {
72
+ range: secondaryRange,
73
+ includeOriginalVarAliases: true,
74
+ }),
75
+ ...generateColorConfig("error", "ramps-error", {
76
+ range: secondaryRange,
77
+ includeOriginalVarAliases: true,
78
+ }),
79
+
80
+ ...generateTransparentColorConfig("primary", {
81
+ includeOriginalVarAliases: true,
82
+ }),
83
+ ...generateTransparentColorConfig("secondary", {
84
+ includeOriginalVarAliases: true,
85
+ }),
86
+ ...generateTransparentColorConfig("tertiary", {
87
+ includeOriginalVarAliases: true,
88
+ }),
89
+ ...generateTransparentColorConfig("grey", {
90
+ includeOriginalVarAliases: true,
91
+ }),
92
+ ...generateTransparentColorConfig("grey2", {
93
+ includeOriginalVarAliases: true,
94
+ }),
95
+ ...generateTransparentColorConfig("info", {
96
+ includeOriginalVarAliases: true,
97
+ }),
98
+ ...generateTransparentColorConfig("success", {
99
+ includeOriginalVarAliases: true,
100
+ }),
101
+ ...generateTransparentColorConfig("warning", {
102
+ includeOriginalVarAliases: true,
103
+ }),
104
+ ...generateTransparentColorConfig("error", {
105
+ includeOriginalVarAliases: true,
106
+ }),
107
+ ...generateTransparentColorConfig("black", {
108
+ includeOriginalVarAliases: true,
109
+ }),
110
+ ...generateTransparentColorConfig("white", {
111
+ includeOriginalVarAliases: true,
112
+ }),
113
+
114
+ // State / input / function
115
+ "state-disable-solid": withColorMixin("--state-disable-solid"),
116
+ "state-disable-outline": withColorMixin("--state-disable-outline"),
117
+
118
+ "input-default-text": withColorMixin("--input-default-text"),
119
+ "input-default-stroke": withColorMixin("--input-default-stroke"),
120
+ "input-filled-text": withColorMixin("--input-filled-text"),
121
+ "input-active-stroke": withColorMixin("--input-active-stroke"),
122
+ "input-disable-text": withColorMixin("--input-disable-text"),
123
+ "input-disable-stroke": withColorMixin("--input-disable-stroke"),
124
+ "input-disable-bg": withColorMixin("--input-disable-bg"),
125
+ "input-label-bg": withColorMixin("--input-label-bg"),
126
+ "input-error": withColorMixin("--input-error"),
74
127
 
75
128
  "function-default-solid": withColorMixin("--function-default-solid"),
76
129
  "function-default-hover": withColorMixin("--function-default-hover"),
77
130
  "function-default-hover-bg": withColorMixin(
78
- "--function-default-hover-bg"
131
+ "--function-default-hover-bg",
79
132
  ),
80
133
  "function-default-stroke": withColorMixin("--function-default-stroke"),
81
134
  "function-default-icon": withColorMixin("--function-default-icon"),
82
- "function-default-outline": withColorMixin(
83
- "--function-default-outline-icon"
135
+ "function-default-outline-icon": withColorMixin(
136
+ "--function-default-outline-icon",
84
137
  ),
85
138
  "function-active-solid": withColorMixin("--function-active-solid"),
86
139
  "function-active-hover": withColorMixin("--function-active-hover"),
87
140
  "function-active-hover-bg": withColorMixin(
88
- "--function-active-hover-bg"
141
+ "--function-active-hover-bg",
89
142
  ),
90
143
  "function-active-stroke": withColorMixin("--function-active-stroke"),
91
144
  "function-active-icon": withColorMixin("--function-active-icon"),
92
145
 
146
+ // Surface / background primitives
147
+ "modal-surface": withColorMixin("--modal-surface"),
148
+ "modal-highlight": withColorMixin("--modal-highlight"),
149
+ "modal-overlay": withColorMixin("--modal-overlay"),
150
+ "modal-line": withColorMixin("--modal-line"),
151
+ "bg-bg1": withColorMixin("--bg-bg1"),
152
+ "bg-bg2": withColorMixin("--bg-bg2"),
153
+ "bg-bg3": withColorMixin("--bg-bg3"),
154
+ "bg-bg4": withColorMixin("--bg-bg4"),
155
+ "bg-bg5": withColorMixin("--bg-bg5"),
156
+ "bg-stroke1": withColorMixin("--bg-stroke1"),
157
+ "bg-stroke2": withColorMixin("--bg-stroke2"),
158
+ "bg-stroke3": withColorMixin("--bg-stroke3"),
159
+ "bg-stroke4": withColorMixin("--bg-stroke4"),
160
+ "bg-stroke5": withColorMixin("--bg-stroke5"),
161
+
162
+ // Common
163
+ "common-white": withColorMixin("--common-white"),
164
+ "common-black": withColorMixin("--common-black"),
165
+
166
+ // Others (direct export tokens)
167
+ ...generateColorConfig("others", "others", {
168
+ count: 35,
169
+ stateVars: false,
170
+ foreground: false,
171
+ includeStatePrefixedAliases: false,
172
+ }),
173
+
174
+ // Page background tokens
175
+ "page-bg-main": withColorMixin("--page-bg-main"),
176
+ "page-bg-circle-top-g-in": withColorMixin("--page-bg-circle-top-g-in"),
177
+ "page-bg-circle-top-g-out": withColorMixin(
178
+ "--page-bg-circle-top-g-out",
179
+ ),
180
+ "page-bg-circle-bottom-g-in": withColorMixin(
181
+ "--page-bg-circle-bottom-g-in",
182
+ ),
183
+ "page-bg-circle-bottom-g-out": withColorMixin(
184
+ "--page-bg-circle-bottom-g-out",
185
+ ),
186
+
187
+ // --------------------------------
188
+ // Deprecated aliases (compat only)
189
+ // --------------------------------
190
+ // Text aliases (prefer text-contrast-* / text-g-contrast-*)
191
+ "text-dark": withColorMixin("--text-dark"),
192
+ "text-medium": withColorMixin("--text-medium"),
193
+ "text-light": withColorMixin("--text-light"),
194
+ "text-grey-dark": withColorMixin("--text-grey-dark"),
195
+ "text-grey-medium": withColorMixin("--text-grey-medium"),
196
+ "text-grey-light": withColorMixin("--text-grey-light"),
197
+
198
+ // Base aliases (prefer modal-*, bg-*, text-contrast-* and state-*-text-solid)
93
199
  "base-bg": withColorMixin("--base-color-bg"),
94
200
  "base-bg2": withColorMixin("--base-color-bg2"),
95
201
  "base-bg3": withColorMixin("--base-color-bg3"),
@@ -97,19 +203,22 @@ module.exports = {
97
203
  "base-popup-highlight": withColorMixin("--base-color-popup-highlight"),
98
204
  "base-popup-curtain": withColorMixin("--base-color-popup-curtain"),
99
205
  "base-popup-foreground": withColorMixin(
100
- "--base-color-popup-foreground"
206
+ "--base-color-popup-foreground",
101
207
  ),
102
208
  "base-stroke": withColorMixin("--base-color-workspace-stroke"),
103
209
  "base-workspace-stroke": withColorMixin(
104
- "--base-color-workspace-stroke"
210
+ "--base-color-workspace-stroke",
105
211
  ),
106
212
  "base-guideline-stroke": withColorMixin(
107
- "--base-color-guideline-stroke"
213
+ "--base-color-guideline-stroke",
108
214
  ),
109
215
 
110
- "common-white": withColorMixin("--common-white"),
111
- "common-black": withColorMixin("--common-black"),
216
+ // Function aliases (prefer function-default-outline-icon)
217
+ "function-default-outline": withColorMixin(
218
+ "--function-default-outline-icon",
219
+ ),
112
220
 
221
+ // Semantic aliases (prefer direct design token names)
113
222
  surface: withColorMixin("--surface"),
114
223
  "surface-foreground": withColorMixin("--surface-foreground"),
115
224
  background: withColorMixin("--background"),
@@ -1,6 +1,2 @@
1
- @import url(palette.css);
2
- @import url(state.css);
3
- @import url(color.css);
4
- @import url(transparent.css);
5
1
  @import url(typography.css);
6
2
  @import url(components/action-button.css);