@gears-frontx/ui-kit 0.4.0-alpha.3 → 0.4.0-alpha.5

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 (245) hide show
  1. package/README.md +1 -1
  2. package/dist/accordion.js +7 -7
  3. package/dist/alert-dialog.js +21 -21
  4. package/dist/alert.js +19 -19
  5. package/dist/attachment.js +11 -11
  6. package/dist/avatar.js +33 -33
  7. package/dist/badge.js +48 -25
  8. package/dist/badge.js.map +1 -1
  9. package/dist/bubble.js +38 -38
  10. package/dist/button-group.js +8 -8
  11. package/dist/button.js +40 -34
  12. package/dist/button.js.map +1 -1
  13. package/dist/calendar.js +30 -30
  14. package/dist/card.js +56 -33
  15. package/dist/card.js.map +1 -1
  16. package/dist/chart.js +89 -83
  17. package/dist/chart.js.map +1 -1
  18. package/dist/checkbox.js +12 -12
  19. package/dist/checkbox.js.map +1 -1
  20. package/dist/chunks/accordion.CXlSdkrc.css +1 -0
  21. package/dist/chunks/alert-dialog.C4aLtUC8.css +1 -0
  22. package/dist/chunks/alert.DsgRIXLn.css +1 -0
  23. package/dist/chunks/attachment.CZuZdlXC.css +1 -0
  24. package/dist/chunks/avatar.BMm-Z9l5.css +1 -0
  25. package/dist/chunks/badge.BCreEn3O.css +1 -0
  26. package/dist/chunks/bubble.Ccu0e3lY.css +1 -0
  27. package/dist/chunks/button-group.BB-_2uav.css +1 -0
  28. package/dist/chunks/button.DgUTlW0_.css +1 -0
  29. package/dist/chunks/calendar.Dtndav4F.css +1 -0
  30. package/dist/chunks/card.DdBl-usf.css +1 -0
  31. package/dist/chunks/checkbox.CrdIZhi1.css +1 -0
  32. package/dist/chunks/collapsible.BkLeBug_.css +1 -0
  33. package/dist/chunks/combobox.DZZ3tHP_.css +1 -0
  34. package/dist/chunks/command.BBW1Cy-M.css +1 -0
  35. package/dist/chunks/context-menu.D_HuTgqL.css +1 -0
  36. package/dist/chunks/data-table.DJJaM7bh.css +1 -0
  37. package/dist/chunks/dialog.Cpo8vChK.css +1 -0
  38. package/dist/chunks/drawer.D8l6-G8t.css +1 -0
  39. package/dist/chunks/dropdown-menu.TU3FHXbJ.css +1 -0
  40. package/dist/chunks/empty.DnAKlw2g.css +1 -0
  41. package/dist/chunks/field.CDoJmJUe.css +1 -0
  42. package/dist/chunks/hover-card.D00tbys5.css +1 -0
  43. package/dist/chunks/input-group.C7XgalVn.css +1 -0
  44. package/dist/chunks/input-otp.Dvxlngb4.css +1 -0
  45. package/dist/chunks/input.DORly3Cx.css +1 -0
  46. package/dist/chunks/{label.jrB9zD_G.css → label.s0Wrm1i-.css} +1 -1
  47. package/dist/chunks/{menubar.CxRNI9o4.css → menubar.CJcVQhPq.css} +1 -1
  48. package/dist/chunks/message.B9Rexp_f.css +1 -0
  49. package/dist/chunks/native-select.BosBdRAx.css +1 -0
  50. package/dist/chunks/navigation-menu.CuXMCPRN.css +1 -0
  51. package/dist/chunks/pagination.bFb5us_w.css +1 -0
  52. package/dist/chunks/popover.BYhwNKnZ.css +1 -0
  53. package/dist/chunks/progress.DjSEXfxh.css +1 -0
  54. package/dist/chunks/questionnaire.C-YTRjPE.css +1 -0
  55. package/dist/chunks/radio-group.CisvBT6g.css +1 -0
  56. package/dist/chunks/scroll-area.B0OVmDRX.css +1 -0
  57. package/dist/chunks/select.BFwI5rhI.css +1 -0
  58. package/dist/chunks/sheet.BWvXXyXk.css +1 -0
  59. package/dist/chunks/sidebar.DdEvMURX.css +1 -0
  60. package/dist/chunks/slider.inyNxx4y.css +1 -0
  61. package/dist/chunks/spinner.sH6x_1Uf.css +1 -0
  62. package/dist/chunks/status-dot.DWa2qGKe.css +1 -0
  63. package/dist/chunks/switch.D3_ZyuVP.css +1 -0
  64. package/dist/chunks/table.DR2nFT0x.css +1 -0
  65. package/dist/chunks/tabs.DFa0OYMo.css +1 -0
  66. package/dist/chunks/{textarea.ORRSI69B.css → textarea.DMphp0qh.css} +1 -1
  67. package/dist/chunks/toast.Dw-jW4YY.css +1 -0
  68. package/dist/chunks/toggle-group.BpWF6enM.css +1 -0
  69. package/dist/chunks/toggle.B82Id2zR.css +1 -0
  70. package/dist/chunks/tooltip.CFJyyz-O.css +1 -0
  71. package/dist/collapsible.js +7 -7
  72. package/dist/combobox.js +87 -87
  73. package/dist/command.js +28 -28
  74. package/dist/components/badge/badge.d.ts +5 -2
  75. package/dist/components/badge/badge.d.ts.map +1 -1
  76. package/dist/components/button/button.d.ts +1 -1
  77. package/dist/components/button/button.d.ts.map +1 -1
  78. package/dist/components/card/card.d.ts +10 -4
  79. package/dist/components/card/card.d.ts.map +1 -1
  80. package/dist/components/chart/chart.d.ts.map +1 -1
  81. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  82. package/dist/components/dropdown-menu/dropdown-menu.d.ts +9 -1
  83. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  84. package/dist/components/empty/empty.d.ts +11 -0
  85. package/dist/components/empty/empty.d.ts.map +1 -1
  86. package/dist/components/empty/public.d.ts +1 -1
  87. package/dist/components/empty/public.d.ts.map +1 -1
  88. package/dist/components/input-group/input-group.d.ts +5 -2
  89. package/dist/components/input-group/input-group.d.ts.map +1 -1
  90. package/dist/components/navigation-menu/navigation-menu.d.ts +7 -2
  91. package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
  92. package/dist/components/pagination/pagination.d.ts +4 -6
  93. package/dist/components/pagination/pagination.d.ts.map +1 -1
  94. package/dist/components/popover/popover.d.ts +2 -2
  95. package/dist/components/popover/popover.d.ts.map +1 -1
  96. package/dist/components/select/select.d.ts +2 -2
  97. package/dist/components/select/select.d.ts.map +1 -1
  98. package/dist/components/spinner/spinner.d.ts +19 -3
  99. package/dist/components/spinner/spinner.d.ts.map +1 -1
  100. package/dist/components/status-dot/public.d.ts +2 -0
  101. package/dist/components/status-dot/public.d.ts.map +1 -0
  102. package/dist/components/status-dot/status-dot.d.ts +25 -0
  103. package/dist/components/status-dot/status-dot.d.ts.map +1 -0
  104. package/dist/components/table/table.d.ts +31 -5
  105. package/dist/components/table/table.d.ts.map +1 -1
  106. package/dist/components/tabs/tabs.d.ts +10 -2
  107. package/dist/components/tabs/tabs.d.ts.map +1 -1
  108. package/dist/components/toggle/toggle.d.ts +12 -2
  109. package/dist/components/toggle/toggle.d.ts.map +1 -1
  110. package/dist/components/toggle-group/toggle-group.d.ts +33 -4
  111. package/dist/components/toggle-group/toggle-group.d.ts.map +1 -1
  112. package/dist/components/tooltip/tooltip.d.ts +5 -8
  113. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  114. package/dist/context-menu.js +54 -54
  115. package/dist/data-table.js +41 -41
  116. package/dist/dialog.js +39 -39
  117. package/dist/docs/alert-dialog.md +1 -1
  118. package/dist/docs/avatar.md +3 -1
  119. package/dist/docs/badge.md +42 -14
  120. package/dist/docs/button.md +3 -2
  121. package/dist/docs/card.md +6 -0
  122. package/dist/docs/chart.md +20 -14
  123. package/dist/docs/checkbox.md +6 -0
  124. package/dist/docs/command.md +4 -0
  125. package/dist/docs/data-table.md +12 -7
  126. package/dist/docs/dialog.md +3 -2
  127. package/dist/docs/dropdown-menu.md +6 -0
  128. package/dist/docs/empty.md +44 -9
  129. package/dist/docs/input-group.md +23 -3
  130. package/dist/docs/navigation-menu.md +14 -5
  131. package/dist/docs/pagination.md +18 -15
  132. package/dist/docs/popover.md +6 -0
  133. package/dist/docs/progress.md +6 -0
  134. package/dist/docs/questionnaire.md +4 -2
  135. package/dist/docs/select.md +8 -4
  136. package/dist/docs/sheet.md +8 -7
  137. package/dist/docs/spinner.md +35 -5
  138. package/dist/docs/status-dot.md +77 -0
  139. package/dist/docs/table.md +69 -25
  140. package/dist/docs/tabs.md +22 -7
  141. package/dist/docs/toggle-group.md +68 -9
  142. package/dist/docs/toggle.md +7 -1
  143. package/dist/docs/tooltip.md +5 -9
  144. package/dist/drawer.js +53 -53
  145. package/dist/dropdown-menu.js +102 -89
  146. package/dist/dropdown-menu.js.map +1 -1
  147. package/dist/empty.js +31 -21
  148. package/dist/empty.js.map +1 -1
  149. package/dist/field.js +24 -24
  150. package/dist/hover-card.js +14 -14
  151. package/dist/index.d.ts +1 -0
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +266 -261
  154. package/dist/index.js.map +1 -1
  155. package/dist/input-group.js +73 -50
  156. package/dist/input-group.js.map +1 -1
  157. package/dist/input-otp.js +3 -3
  158. package/dist/input.js +19 -19
  159. package/dist/label.js +1 -1
  160. package/dist/menubar.js +18 -18
  161. package/dist/message.js +11 -11
  162. package/dist/native-select.js +20 -20
  163. package/dist/navigation-menu.js +83 -64
  164. package/dist/navigation-menu.js.map +1 -1
  165. package/dist/pagination.js +39 -52
  166. package/dist/pagination.js.map +1 -1
  167. package/dist/popover.js +33 -31
  168. package/dist/popover.js.map +1 -1
  169. package/dist/progress.js +15 -15
  170. package/dist/questionnaire.js +72 -72
  171. package/dist/radio-group.js +7 -7
  172. package/dist/scroll-area.js +8 -8
  173. package/dist/select.js +82 -80
  174. package/dist/select.js.map +1 -1
  175. package/dist/sheet.js +46 -46
  176. package/dist/sidebar.js +130 -130
  177. package/dist/slider.js +14 -14
  178. package/dist/spinner.js +45 -13
  179. package/dist/spinner.js.map +1 -1
  180. package/dist/status-dot.d.ts +1 -0
  181. package/dist/status-dot.js +76 -0
  182. package/dist/status-dot.js.map +1 -0
  183. package/dist/switch.js +14 -14
  184. package/dist/table.js +221 -43
  185. package/dist/table.js.map +1 -1
  186. package/dist/tabs.js +44 -26
  187. package/dist/tabs.js.map +1 -1
  188. package/dist/textarea.js +5 -5
  189. package/dist/theme.css +222 -135
  190. package/dist/toast.js +26 -26
  191. package/dist/toggle-group.js +40 -25
  192. package/dist/toggle-group.js.map +1 -1
  193. package/dist/toggle.js +21 -11
  194. package/dist/toggle.js.map +1 -1
  195. package/dist/tooltip.js +37 -34
  196. package/dist/tooltip.js.map +1 -1
  197. package/llms.txt +26 -10
  198. package/package.json +12 -5
  199. package/dist/chunks/accordion.X_AK08Iv.css +0 -1
  200. package/dist/chunks/alert-dialog.B50f-Gsz.css +0 -1
  201. package/dist/chunks/alert.C5BedF7l.css +0 -1
  202. package/dist/chunks/attachment.GAZbWSyB.css +0 -1
  203. package/dist/chunks/avatar.DZUXl1ev.css +0 -1
  204. package/dist/chunks/badge.Bi22h20j.css +0 -1
  205. package/dist/chunks/bubble.DvN6QyQ1.css +0 -1
  206. package/dist/chunks/button-group.D0Ir-jbL.css +0 -1
  207. package/dist/chunks/button.DvAxXxKj.css +0 -1
  208. package/dist/chunks/calendar.Cnbv4EzY.css +0 -1
  209. package/dist/chunks/card.D3Ct_dza.css +0 -1
  210. package/dist/chunks/checkbox.CZfE_PkU.css +0 -1
  211. package/dist/chunks/collapsible.BQ-sU5sQ.css +0 -1
  212. package/dist/chunks/combobox.CtYpZAKB.css +0 -1
  213. package/dist/chunks/command.Km60IuqD.css +0 -1
  214. package/dist/chunks/context-menu.DwGCD0vN.css +0 -1
  215. package/dist/chunks/data-table.CtZdVSAU.css +0 -1
  216. package/dist/chunks/dialog.BxcZ12Gb.css +0 -1
  217. package/dist/chunks/drawer.BkS_qEHj.css +0 -1
  218. package/dist/chunks/dropdown-menu.C5TLD9JO.css +0 -1
  219. package/dist/chunks/empty.BlhsHrOz.css +0 -1
  220. package/dist/chunks/field.Ccqt897k.css +0 -1
  221. package/dist/chunks/hover-card.DmwvigMp.css +0 -1
  222. package/dist/chunks/input-group.CFIUP-Oh.css +0 -1
  223. package/dist/chunks/input-otp.XSpqyVij.css +0 -1
  224. package/dist/chunks/input.DvA_mTq8.css +0 -1
  225. package/dist/chunks/message.BhD5JDJK.css +0 -1
  226. package/dist/chunks/native-select.DF1QrNz4.css +0 -1
  227. package/dist/chunks/navigation-menu.C2JGHAKD.css +0 -1
  228. package/dist/chunks/pagination.DUiQuWla.css +0 -1
  229. package/dist/chunks/popover.fOvPrnsr.css +0 -1
  230. package/dist/chunks/progress.Bp13t8iw.css +0 -1
  231. package/dist/chunks/questionnaire.D-u_K3Co.css +0 -1
  232. package/dist/chunks/radio-group.CV3MBCsI.css +0 -1
  233. package/dist/chunks/scroll-area.C4kWMAsU.css +0 -1
  234. package/dist/chunks/select.iEwV-sfJ.css +0 -1
  235. package/dist/chunks/sheet.DALPg9vf.css +0 -1
  236. package/dist/chunks/sidebar.CGTQhfWG.css +0 -1
  237. package/dist/chunks/slider.B5nouD7J.css +0 -1
  238. package/dist/chunks/spinner.UKK4f1tu.css +0 -1
  239. package/dist/chunks/switch.CIW9Jr1x.css +0 -1
  240. package/dist/chunks/table.BpnQ6j85.css +0 -1
  241. package/dist/chunks/tabs.4MEFBvw-.css +0 -1
  242. package/dist/chunks/toast.uUtCEAiv.css +0 -1
  243. package/dist/chunks/toggle-group.Bd0cCCnV.css +0 -1
  244. package/dist/chunks/toggle.B9tvfl1n.css +0 -1
  245. package/dist/chunks/tooltip.apA3VWHJ.css +0 -1
package/dist/theme.css CHANGED
@@ -9,7 +9,7 @@
9
9
  * match. The token structure derives from shadcn/ui (MIT,
10
10
  * https://ui.shadcn.com; see the repository NOTICE file for attribution);
11
11
  * the values implement the Studio BLUE rebrand recorded on the mockups'
12
- * token spec frame "02 · Tokens, type & elevation" (node 40001232:5254),
12
+ * token spec frame "02 · Tokens, type & elevation",
13
13
  * which superseded the violet "Studio / shadcn" collection this file
14
14
  * previously carried. That frame's swatches label their WEB syntax with a
15
15
  * `color/` prefix (`var(--color-background)`); the CSS names here stay
@@ -20,15 +20,12 @@
20
20
  * carry a `derived:` comment with the reasoning, and are the ones to
21
21
  * re-check when the design file pins them down.
22
22
  *
23
- * WCAG ruling (2026-08-31, standing): a drawn value that fails its
24
- * contrast floor gets a corrected value in code — the deviation is recorded
25
- * at the token, never shipped as a "kept as drawn" footnote. This pass
26
- * deviates from the frame in exactly four places, all status colors used as
27
- * 12px badge/avatar labels over their own -soft fills: light --success
28
- * #059669→#047857, light --warning #f59e0b→#b45309, light --danger
29
- * #e11d48→#be123c, dark --danger #e11d48→#fb7185 (per-token comments carry
30
- * the measured ratios). Open designer question: pin AA-passing status
31
- * values in the Figma file.
23
+ * Color values are the design spec's, taken literally in both themes;
24
+ * contrast findings go to the designer, not into code. --destructive and
25
+ * --danger carry the same hex as a result. Both names stay: --destructive
26
+ * is the fill role, verified under --destructive-foreground, and --danger
27
+ * is the text tone components paint on light backdrops. The split is a
28
+ * naming decision, not a value one, so neither collapses into the other.
32
29
  *
33
30
  * Deliberately not here: the `--studio-color-*` entries the same frame
34
31
  * draws (progress-value/track, icon-subtle/icon-selected, and the studio
@@ -70,13 +67,23 @@
70
67
  */
71
68
  :root {
72
69
  /*
73
- * Scrim behind modal-style popups (Dialog's backdrop). Unlike every color
74
- * token below, it is not redefined in [data-theme='dark'] or the
75
- * prefers-color-scheme block: a dark tint dims the page in both light and
76
- * dark UI, whereas --foreground would flip to near-white in dark mode and
77
- * brighten instead of dim.
70
+ * The two drawn scrims. The spec draws a modal backdrop that DIMS and a
71
+ * side-panel veil that barely tints and blurs; one token cannot carry
72
+ * both, and a bare name with a suffixed sibling would read as one being
73
+ * a variant of the other. The pair is symmetric instead, named for what
74
+ * each dims: --overlay-modal behind Dialog and AlertDialog,
75
+ * --overlay-panel behind Sheet and Drawer.
76
+ *
77
+ * Both are fixed inks: the modal scrim is the same dark ink in light and
78
+ * in dark, the panel one is black at 10 per cent in both, so both are
79
+ * declared once here and never under a theme selector. Fixed rather than
80
+ * resolved through a role, which is what the previous single token did:
81
+ * mixing from --foreground inverted the scrim to a light veil in dark
82
+ * and brightened the page behind a dialog instead of dimming it.
78
83
  */
79
- --overlay: oklch(0 0 0 / 50%);
84
+ --overlay-modal: color-mix(in oklab, #0f172a 48%, transparent);
85
+ --overlay-panel: color-mix(in oklab, #000000 10%, transparent);
86
+ --overlay-panel-blur: 4px;
80
87
 
81
88
  /*
82
89
  * Popover chrome shared by every card-like popup (Dialog/DropdownMenu/
@@ -88,36 +95,36 @@
88
95
  * have no kit consumer yet and are not carried as tokens until one does.
89
96
  * All four consumers already paint their surface from the --popover/
90
97
  * --popover-foreground pair, so this chrome takes the same family name
91
- * rather than "--overlay-*", which would read as a variant of --overlay
92
- * above (the modal *scrim*, an unrelated concept — a popover has no
93
- * backdrop) and reversed word order from it besides. --popover-shadow is
98
+ * rather than "--overlay-*", which names the two backdrop scrims above,
99
+ * an unrelated concept - a popover has no backdrop. --popover-shadow is
94
100
  * COMPOSED from --popover-border (its layer is that same color), not just
95
101
  * co-located with it: rebranding the hairline recolors the shadow along
96
102
  * with it, by construction, not as a separate edit anyone has to remember
97
- * to make. Same rationale as --overlay above for living here un-redefined
98
- * regardless: both are mixed from --foreground, so the computed value
99
- * already flips correctly per theme without a separate light/dark
100
- * declaration.
103
+ * to make. Both live here un-redefined because they are mixed from
104
+ * --foreground, so the computed value already flips correctly per theme
105
+ * without a separate light/dark declaration.
101
106
  */
102
107
  --popover-border: color-mix(in oklab, var(--foreground) 12%, transparent);
103
108
  --popover-shadow: 0 8px 24px 0 var(--popover-border);
104
109
 
105
110
  /*
106
- * Radius scale. Components consume only the derived steps; consumers
107
- * rebrand by overriding --radius alone and the whole scale follows. The
108
- * offsets place the Studio scale (sm 6 / md 8 / lg 12 / xl 16, unchanged
109
- * by the blue rebrand) on the 8px base — note md, not lg, sits at the
110
- * base value, unlike shadcn v4's derivation. --radius-xs has no Figma
111
- * counterpart; it predates the Studio scale and keeps its 4px slot.
112
- * Corner shape isn't a light/dark concern, so none of this is redefined
113
- * per-theme.
111
+ * Radius scale. The drawn scale is 4 / 6 / 8 / 10 / 12 / 16 on a 10px
112
+ * base, and the base sits at the lg step: the drawn field, button, popup
113
+ * surface and segmented group all round at 10, so that is the value a
114
+ * consumer reaches for first. Components consume only the derived steps,
115
+ * so rebranding is still one knob - override --radius alone and the whole
116
+ * scale follows. Corner shape isn't a light/dark concern, so none of this
117
+ * is redefined per-theme.
114
118
  */
115
- --radius: 0.5rem;
116
- --radius-xs: calc(var(--radius) - 4px);
117
- --radius-sm: calc(var(--radius) - 2px);
118
- --radius-md: var(--radius);
119
- --radius-lg: calc(var(--radius) + 4px);
120
- --radius-xl: calc(var(--radius) + 8px);
119
+ --radius: 0.625rem;
120
+ --radius-xs: calc(var(--radius) - 6px);
121
+ --radius-sm: calc(var(--radius) - 4px);
122
+ --radius-md: calc(var(--radius) - 2px);
123
+ --radius-lg: var(--radius);
124
+ --radius-xl: calc(var(--radius) + 2px);
125
+ --radius-2xl: calc(var(--radius) + 6px);
126
+ /* Pill/circle cap, independent of --radius; the design spec's --radius-full = 999. */
127
+ --radius-full: 9999px;
121
128
 
122
129
  /* Spacing scale (Figma space/1–8; the step number is the value in 4px
123
130
  * units, so there is no space/7). */
@@ -138,6 +145,10 @@
138
145
  * Buttons sit on sm/md/lg directly; the drawn fields are 40px (the lg
139
146
  * step) and the filter chip 36px (md).
140
147
  */
148
+ /* The compact step the spec binds on a small icon action, the dialog and
149
+ * popover close buttons and a table toolbar action, and the step a
150
+ * segmented group's items sit on inside its 32px container. */
151
+ --control-height-xs: 1.75rem;
141
152
  --control-height-sm: 2rem;
142
153
  --control-height-md: 2.25rem;
143
154
  --control-height-lg: 2.5rem;
@@ -164,9 +175,41 @@
164
175
  */
165
176
  --ring-inset: calc(var(--border-width-focus) - var(--border-width));
166
177
 
178
+ /* Dim for every disabled control surface; the design spec's --opacity-disabled = 42. */
179
+ --opacity-disabled: 0.42;
180
+
181
+ /*
182
+ * Motion. Four drawn duration steps and the drawn curve: micro for a
183
+ * hover, focus or colour swap, standard for a state change that moves
184
+ * something, panel for a surface sliding in or out, tab for the
185
+ * travelling tab indicator. Every kit transition whose value equals one
186
+ * of these steps reads the token rather than restating the number; a
187
+ * module whose duration matches no step keeps its own literal, because
188
+ * the spec draws no value there to take. Scale, not colour, so they are
189
+ * declared once here and never per theme.
190
+ */
191
+ --duration-micro: 120ms;
192
+ --duration-standard: 180ms;
193
+ --duration-panel: 220ms;
194
+ --duration-tab: 240ms;
195
+ --ease-standard: cubic-bezier(0.2, 0, 0, 1);
196
+
197
+ /*
198
+ * The four categorical chart hues, for a series that stands for a named
199
+ * category rather than a position in a series order. The spec declares
200
+ * them once with no per-theme value, so they are declared once here: they
201
+ * are theme-independent by the drawn arrangement, and inventing a dark
202
+ * counterpart would be a kit-side value. The ordered series steps that
203
+ * DO change with the theme are --chart-1..--chart-5 in the theme blocks.
204
+ */
205
+ --chart-category-blue: #4e79a7;
206
+ --chart-category-purple: #b07aa1;
207
+ --chart-category-brown: #9c755f;
208
+ --chart-category-teal: #499894;
209
+
167
210
  /*
168
211
  * Typography — the Studio blue rebrand's "Studio/Type" ramp (the
169
- * "02 · Tokens, type & elevation" frame, node 40001232:5254), carried on
212
+ * "02 · Tokens, type & elevation" frame), carried on
170
213
  * the kit's existing role names: the roles are the public API and the
171
214
  * NEW ramp's styles map onto them rather than renaming them —
172
215
  * display <- Page Title (26/32 semibold)
@@ -179,6 +222,8 @@
179
222
  * meta-size + label-weight mix
180
223
  * meta <- UI Secondary Regular (12/16 — same metrics as before)
181
224
  * mono <- System Micro (10/14, --font-mono)
225
+ * micro <- the drawn 10/14 step in the UI face, in three weights
226
+ * (400/500/600); 500 is the role's default
182
227
  * All Studio/Type styles carry letter-spacing 0, so every role's
183
228
  * tracking is normalized to 0 with them. heading-1 (20/28) has NO
184
229
  * counterpart in the new ramp — the kit keeps it as an interpolated step
@@ -204,6 +249,11 @@
204
249
  * guard enforces it; design-notes.md records it.
205
250
  */
206
251
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
252
+ /* The heading face. A role of its own even though it resolves to the same
253
+ * family as --font-sans today: the design spec declares the two
254
+ * separately, so a consumer can rebrand headings without touching body
255
+ * text. Shape, not colour, so it lives here and never per theme. */
256
+ --font-heading: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
207
257
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
208
258
  /* Display: 26/32 semibold (Studio/Type/Page Title). */
209
259
  --text-display-size: 1.625rem;
@@ -243,10 +293,23 @@
243
293
  --text-mono-line-height: 0.875rem;
244
294
  --text-mono-weight: 400;
245
295
  --text-mono-tracking: 0px;
296
+ /* Micro: 10/14 medium, --font-sans. Same metrics as mono, different
297
+ * family: mono is the monospace role, and the spec draws this step in
298
+ * the UI face, in three weights (400, 500, 600). 500 is the middle one
299
+ * and the role's default; a call site that needs 400 or 600 sets
300
+ * font-weight itself over this size, the way badge.module.css already
301
+ * mixes a --text-meta size with a --text-label weight. */
302
+ --text-micro-size: 0.625rem;
303
+ --text-micro-line-height: 0.875rem;
304
+ --text-micro-weight: 500;
305
+ --text-micro-tracking: 0px;
246
306
  }
247
307
 
248
308
  :root,
249
309
  [data-theme='light'] {
310
+ /* In dark the drawn page value equals the drawn card, popover and muted
311
+ * values, so surfaces do not separate by fill in that theme; that is the
312
+ * drawn arrangement. */
250
313
  --background: #f1f5f9;
251
314
  --foreground: #0f172a;
252
315
 
@@ -290,28 +353,21 @@
290
353
  * ring is drawn OUTSIDE the button (see button.module.css), so it only
291
354
  * ever borders the page. */
292
355
  --primary-ring: #2668c5;
293
- /* derived: the old light secondary equalled --muted, but the rebrand
294
- * moved --background onto that same slate-50 — a secondary fill equal to
295
- * the page would vanish. One step down the frame's neutral ramp
296
- * (neutral-100) keeps it a visible fill (1.13:1 against the page) the
297
- * way the old value was against the old page. Dark mirrors the move one
298
- * step the OTHER way from its (card-equal) drawn muted — see the dark
299
- * block. */
300
- --secondary: #e2e8f0;
356
+ /* The drawn secondary fill, which is also what a selected control paints
357
+ * (see toggle/toggle-group/tabs). In dark it equals the drawn card and
358
+ * page values, so a secondary surface separates there by its text tone
359
+ * and by whatever hairline the component draws, not by fill. */
360
+ --secondary: #eef2f7;
301
361
  --secondary-foreground: #0f172a;
302
- /* derived: the frame draws muted at slate-50 — the exact value the
303
- * rebrand made the page itself — and its dark muted at the card surface.
304
- * Muted is the kit's workhorse FILL (Skeleton, outline/ghost Button
305
- * hover, Calendar's outside days, a dozen more), and a fill equal to its
306
- * own backdrop vanishes: the same argument --secondary above already
307
- * applies, so muted takes the same one-step correction and lands ON
308
- * secondary's value — which is also upstream shadcn's own arrangement
309
- * (its default theme ships muted == secondary). 1.13:1 against the page
310
- * / 1.23:1 against the card in light, 1.22 / 1.35 in dark; every text
311
- * seat stays clear (--muted-foreground on this fill is 8.40:1 light /
312
- * 5.71:1 dark). tokens.test.ts pins the separation so a later value
313
- * move cannot silently re-collapse it. */
314
- --muted: #e2e8f0;
362
+ /* The design spec draws muted at the page value in light and at the card
363
+ * surface in dark, and the kit carries exactly that. Muted is the kit's
364
+ * workhorse FILL (Skeleton, outline/ghost Button hover, Calendar's
365
+ * outside days, a dozen more), so it sits flush with whichever of those
366
+ * two backdrops it is painted on. A consumer that needs a visible fill
367
+ * takes it from a drawn state, not from a kit-side step off the backdrop.
368
+ * Every text seat stays clear either way (--muted-foreground on this fill
369
+ * is 9.45:1 light / 6.96:1 dark). */
370
+ --muted: #f1f5f9;
315
371
  /* The frame collapses muted-foreground, subtle-foreground and
316
372
  * code-foreground onto one slate-600 in light (and one slate-400 in
317
373
  * dark). Adopted as drawn — the collapse is the design's own, and every
@@ -328,11 +384,16 @@
328
384
  * --muted-foreground; that collapse is the design's, see above).
329
385
  */
330
386
  --subtle-foreground: #334155;
331
- /* The brand-tinted fill+text pair (menus' hover/active rows, Badge's
332
- * accent tone, Bubble). The drawn pair measures 4.68:1 light / 13.77:1
333
- * dark — clears the 4.5:1 AA floor as drawn. */
334
- --accent: #e6effa;
335
- --accent-foreground: #2668c5;
387
+ /* The emphasis pair a HIGHLIGHTED row wears: menus' hover and keyboard-
388
+ * active rows, a highlighted select item, the focused calendar day,
389
+ * Badge's accent tone, Bubble. The drawn role is an emphasis fill, not a
390
+ * wash - the brand fill with white type in light, the dark slate with
391
+ * white type in dark. A SELECTED control is a different role and paints
392
+ * from --secondary (see toggle/toggle-group/tabs); painting selection
393
+ * from this pair would make a selected segment read as a focused menu
394
+ * row. */
395
+ --accent: #0065e3;
396
+ --accent-foreground: #ffffff;
336
397
  /*
337
398
  * The tint a row carries while it is selected. Table's row-state hooks
338
399
  * are the only consumer (see table.module.css). Its own token rather
@@ -350,12 +411,10 @@
350
411
  */
351
412
  --selection-subtle: #dce7f2;
352
413
 
353
- /* derived: no mockup node draws with destructive/*, so it aliases the
354
- * frame's danger red — one red, two names, both overridable separately.
355
- * The alias tracks the DRAWN danger (#e11d48 both modes), not the
356
- * AA-corrected --danger below: destructive is a solid fill under white
357
- * text (4.70:1, passes in both modes), so the label-driven correction
358
- * that moved --danger does not apply to it. */
414
+ /* The drawn danger red: the deep rose in light, the lighter rose in
415
+ * dark. One red, two names, both overridable separately: --destructive
416
+ * is the fill role verified under --destructive-foreground, while
417
+ * --danger below is the text tone components paint on light backdrops. */
359
418
  --destructive: #e11d48;
360
419
  --destructive-foreground: #ffffff;
361
420
  /* Badge's destructive-variant hover tone (see badge.module.css) — darker
@@ -364,8 +423,8 @@
364
423
  * --foreground works in light (foreground is dark) but LIGHTENS in dark
365
424
  * mode instead (foreground flips to white there), so this token sidesteps
366
425
  * that by not depending on --foreground at all. #be123c is the same
367
- * literal --destructive-ring/--danger already carry — white on it
368
- * measures 6.29:1 in both modes. */
426
+ * literal --destructive-ring already carries; white on it measures
427
+ * 6.29:1 in both modes. */
369
428
  --destructive-hover: #be123c;
370
429
  /* Button destructive variant's focus-ring tone, measured against
371
430
  * --background: 5.74:1 light / 7.89:1 dark. Literal hexes, not var()
@@ -390,35 +449,27 @@
390
449
  /* Status colors with their -soft fills. The status colors themselves are
391
450
  * consumed as 12px label text over the -soft fills (Badge's tone
392
451
  * variants, Avatar's soft treatment) and as solid Avatar fills; the
393
- * -soft fills also carry Table's stale/restricted row tints. Because
394
- * they are label text, each base value must clear 4.5:1 over its own
395
- * -soft fill, --card and --background — and four drawn values don't,
396
- * which is where this file's WCAG ruling (see header) deviates from the
397
- * frame:
398
- * - light success: drawn #059669 is 3.43:1 on its soft fill →
399
- * #047857, one step down the same green ramp (5.00/5.48/5.01 on
400
- * soft/card/bg);
401
- * - light warning: drawn #f59e0b is 1.96–2.15:1 everywhere → #b45309
402
- * (4.67/5.02/4.58) — amber simply has no AA-passing tone brighter
403
- * than this over near-white fills;
404
- * - light danger: drawn #e11d48 is 4.28:1 on its soft fill → #be123c
405
- * (5.72/6.29/5.74), the same hex the destructive ring already
406
- * carries;
407
- * - light info: drawn #2563eb PASSES (4.59:1 worst case) and is kept
408
- * as drawn — the floor is met, though with little headroom;
409
- * - dark: success #34d399, warning #f6c453 and info #60a5fa all pass
410
- * as drawn (8.05/10.03/6.62 worst case); danger #e11d48 fails
411
- * (3.63:1 on its soft fill) → #fb7185, the light rose tint one step
412
- * up (6.34:1 worst case).
413
- * The -soft fills are the frame's own in both modes. */
414
- --success: #047857;
452
+ * -soft fills also carry Table's stale/restricted row tints. Every
453
+ * value in this group is the design spec's own, in both themes,
454
+ * including the seats where a 12px label over a near-white fill does not
455
+ * reach 4.5:1. That is a finding for the designer, not a value the kit
456
+ * corrects; tokens.test.ts pins the drawn hexes so a later "fix" has to
457
+ * be a spec change first. */
458
+ --success: #059669;
415
459
  --success-soft: #e8f8f1;
416
- --warning: #b45309;
460
+ --warning: #f59e0b;
417
461
  --warning-soft: #fff7d6;
418
- --danger: #be123c;
462
+ --danger: #e11d48;
419
463
  --danger-soft: #fff1f2;
420
464
  --info: #2563eb;
421
465
  --info-soft: #eaf2ff;
466
+ /* The drawn TEXT tone of each status role, for a label painted on a light
467
+ * backdrop. A separate family from the -soft fills above and from the
468
+ * role itself: one is what a chip is filled with, this is what its label
469
+ * is written in. --info has no drawn text tone and gets none here. */
470
+ --success-foreground: #047857;
471
+ --warning-foreground: #92400e;
472
+ --danger-foreground: #be123c;
422
473
  /* A palette entry, not a semantic: --info is the token a component reaches
423
474
  * for, and nothing in the kit reads this one. Kept because the collection
424
475
  * names it separately from --info; the rebrand pointed it at the brand
@@ -428,34 +479,48 @@
428
479
  * "blue-sky" tint, same move as --link-foreground. */
429
480
  --blue: #2668c5;
430
481
 
482
+ /* The ordered chart series palette. A ChartConfig entry that names no
483
+ * colour of its own falls back to the step at its position in the config
484
+ * (see chart.tsx), so a chart is legible before a consumer brands one.
485
+ * --color-<key> stays what it has always been: the per-instance property
486
+ * the chart writes for each series, which these are one possible value
487
+ * for. --muted-foreground is the chart's own chrome colour and is
488
+ * deliberately not among them. */
489
+ --chart-1: #e11d48;
490
+ --chart-2: #059669;
491
+ --chart-3: #4e79a7;
492
+ --chart-4: #f59e0b;
493
+ --chart-5: #2563eb;
494
+
431
495
  --border: #e2e8f0;
432
496
  --border-strong: #cbd5e1;
433
- /* Field-control borders. Not derived: the mockups' Field set strokes
434
- * every input/textarea/select with the border-strong value, so input
435
- * carries it in both modes (the rebrand frame collapses the dark border
436
- * pair — see the dark block). */
437
- --input: #cbd5e1;
438
- /* Focus color, per the rebrand frame: the brand blue in light, the
439
- * "blue-sky" tint in dark. 4.83:1 / 7.75:1 against the page — clears the
440
- * 3:1 non-text floor the shared focus rings need. */
497
+ /* Field-control borders: the drawn stroke on every input, textarea and
498
+ * select. Its own value in light, the collapsed neutral border in dark,
499
+ * both taken as drawn. */
500
+ --input: #d9e2ec;
501
+ /* Focus colour: the drawn brand blue, the same value in both themes. */
441
502
  --ring: #0065e3;
442
503
 
443
504
  /* Sidebar Navigation block. Read by the kit's Sidebar parts and offered
444
- * for a consumer's own navigation chrome alike. The rebrand frame draws
445
- * no sidebar entries, so the whole block is derived from the same-role
446
- * tokens above: sidebar follows --muted, its foreground follows
447
- * --muted-foreground, the active-item fill takes --surface (light) /
448
- * --selection-subtle's value (dark), its foreground follows --foreground,
449
- * and the border follows --border-strong — NOT --border, whose light
450
- * value is the panel fill itself, which would erase SidebarSeparator,
451
- * the menu-sub rail and the floating variant's outline (1.20:1 against
452
- * the panel instead; dark's collapsed border family is border-strong
453
- * already). tokens.test.ts pins the border/panel separation. */
454
- --sidebar: #e2e8f0;
455
- --sidebar-foreground: #334155;
505
+ * for a consumer's own navigation chrome alike. The panel fill, its text
506
+ * tone and its hairline are the design spec's; the accent pair stays
507
+ * derived from the same-role tokens above (the active-item fill takes
508
+ * --surface in light and --selection-subtle's value in dark, its
509
+ * foreground follows --foreground), because the spec draws no
510
+ * active-item specimen. In light the hairline is close enough to the
511
+ * panel that it reads as a seam rather than a rule; that is the drawn
512
+ * value and tokens.test.ts pins it. */
513
+ --sidebar: #f1f5f9;
514
+ --sidebar-foreground: #0f172a;
456
515
  --sidebar-accent: #ffffff;
457
516
  --sidebar-accent-foreground: #0f172a;
458
- --sidebar-border: #cbd5e1;
517
+ --sidebar-border: #e2e8f0;
518
+ /* The emphasis pair and focus ring of a navigation item, drawn on the
519
+ * brand blue in both themes so a sidebar brands independently of the
520
+ * page's own --primary/--ring. */
521
+ --sidebar-primary: #0065e3;
522
+ --sidebar-primary-foreground: #ffffff;
523
+ --sidebar-ring: #0065e3;
459
524
 
460
525
  /* Also palette-only: the kit ships no code/pre component, so these exist
461
526
  * for a consumer rendering code blocks beside kit parts. The foreground
@@ -476,7 +541,7 @@
476
541
  }
477
542
 
478
543
  [data-theme='dark'] {
479
- --background: #090b10;
544
+ --background: #0f172a;
480
545
  --foreground: #ffffff;
481
546
  /* The rebrand frame draws surface and surface-elevated COLLAPSED onto
482
547
  * one slate-900 (overlays separate via --popover-border/-shadow, not
@@ -492,15 +557,15 @@
492
557
  --primary-hover: #2668c5;
493
558
  --primary-foreground: #ffffff;
494
559
  --primary-ring: #6ba5f0;
495
- --secondary: #1e293b;
560
+ --secondary: #0f172a;
496
561
  --secondary-foreground: #ffffff;
497
- --muted: #1e293b;
562
+ --muted: #0f172a;
498
563
  --muted-foreground: #94a3b8;
499
564
  --subtle-foreground: #94a3b8;
500
- --accent: #00204d;
501
- --accent-foreground: #e6effa;
565
+ --accent: #26384b;
566
+ --accent-foreground: #ffffff;
502
567
  --selection-subtle: #26384b;
503
- --destructive: #e11d48;
568
+ --destructive: #fb7185;
504
569
  --destructive-foreground: #ffffff;
505
570
  --destructive-hover: #be123c;
506
571
  --destructive-ring: #f87f8f;
@@ -513,18 +578,29 @@
513
578
  --danger-soft: #32111b;
514
579
  --info: #60a5fa;
515
580
  --info-soft: #111e2d;
581
+ --success-foreground: #34d399;
582
+ --warning-foreground: #f6c453;
583
+ --danger-foreground: #fb7185;
516
584
  --blue: #6ba5f0;
585
+ --chart-1: #fb7185;
586
+ --chart-2: #34d399;
587
+ --chart-3: #0065e3;
588
+ --chart-4: #f6c453;
589
+ --chart-5: #60a5fa;
517
590
  /* The frame draws border and border-strong collapsed onto one slate-600
518
591
  * in dark; --input follows border-strong as in light. */
519
592
  --border: #334155;
520
593
  --border-strong: #334155;
521
594
  --input: #334155;
522
- --ring: #6ba5f0;
523
- --sidebar: #1e293b;
524
- --sidebar-foreground: #94a3b8;
595
+ --ring: #0065e3;
596
+ --sidebar: #0f172a;
597
+ --sidebar-foreground: #ffffff;
525
598
  --sidebar-accent: #26384b;
526
599
  --sidebar-accent-foreground: #ffffff;
527
600
  --sidebar-border: #334155;
601
+ --sidebar-primary: #0065e3;
602
+ --sidebar-primary-foreground: #ffffff;
603
+ --sidebar-ring: #0065e3;
528
604
  --code-background: #090b10;
529
605
  --code-foreground: #e2e8f0;
530
606
 
@@ -534,7 +610,7 @@
534
610
 
535
611
  @media (prefers-color-scheme: dark) {
536
612
  :root:not([data-theme='light']) {
537
- --background: #090b10;
613
+ --background: #0f172a;
538
614
  --foreground: #ffffff;
539
615
  --surface: #0f172a;
540
616
  --surface-elevated: #0f172a;
@@ -547,15 +623,15 @@
547
623
  --primary-hover: #2668c5;
548
624
  --primary-foreground: #ffffff;
549
625
  --primary-ring: #6ba5f0;
550
- --secondary: #1e293b;
626
+ --secondary: #0f172a;
551
627
  --secondary-foreground: #ffffff;
552
- --muted: #1e293b;
628
+ --muted: #0f172a;
553
629
  --muted-foreground: #94a3b8;
554
630
  --subtle-foreground: #94a3b8;
555
- --accent: #00204d;
556
- --accent-foreground: #e6effa;
631
+ --accent: #26384b;
632
+ --accent-foreground: #ffffff;
557
633
  --selection-subtle: #26384b;
558
- --destructive: #e11d48;
634
+ --destructive: #fb7185;
559
635
  --destructive-foreground: #ffffff;
560
636
  --destructive-hover: #be123c;
561
637
  --destructive-ring: #f87f8f;
@@ -568,16 +644,27 @@
568
644
  --danger-soft: #32111b;
569
645
  --info: #60a5fa;
570
646
  --info-soft: #111e2d;
647
+ --success-foreground: #34d399;
648
+ --warning-foreground: #f6c453;
649
+ --danger-foreground: #fb7185;
571
650
  --blue: #6ba5f0;
651
+ --chart-1: #fb7185;
652
+ --chart-2: #34d399;
653
+ --chart-3: #0065e3;
654
+ --chart-4: #f6c453;
655
+ --chart-5: #60a5fa;
572
656
  --border: #334155;
573
657
  --border-strong: #334155;
574
658
  --input: #334155;
575
- --ring: #6ba5f0;
576
- --sidebar: #1e293b;
577
- --sidebar-foreground: #94a3b8;
659
+ --ring: #0065e3;
660
+ --sidebar: #0f172a;
661
+ --sidebar-foreground: #ffffff;
578
662
  --sidebar-accent: #26384b;
579
663
  --sidebar-accent-foreground: #ffffff;
580
664
  --sidebar-border: #334155;
665
+ --sidebar-primary: #0065e3;
666
+ --sidebar-primary-foreground: #ffffff;
667
+ --sidebar-ring: #0065e3;
581
668
  --code-background: #090b10;
582
669
  --code-foreground: #e2e8f0;
583
670