@tac-ui/tokens 0.1.0 → 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.
package/dist/index.js CHANGED
@@ -3,129 +3,95 @@
3
3
  // src/primitive.ts
4
4
  var primitiveColors = {
5
5
  white: "#FFFFFF",
6
- // Pantone 11-0601 TCX
7
6
  black: "#000000",
8
- // Pure Black
9
7
  gray: {
10
- 50: "#F5F5F6",
11
- // Cool Gray 1 U
12
- 100: "#E6E7E8",
13
- // Cool Gray 2 C
14
- 200: "#D1D3D4",
15
- // Cool Gray 3 C
16
- 300: "#BCBEC0",
17
- // Cool Gray 4 C
18
- 400: "#A7A9AC",
19
- // Cool Gray 5 C
20
- 500: "#808285",
21
- // Cool Gray 7 C
22
- 600: "#6D6E71",
23
- // Cool Gray 8 C
24
- 700: "#58595B",
25
- // Cool Gray 9 C
26
- 800: "#414042",
27
- // Cool Gray 11 C
28
- 900: "#2D2A26",
29
- // Pantone Black C
30
- 950: "#101820"
31
- // Pantone Black 6 C
8
+ 50: "#FAFAFA",
9
+ 100: "#F4F4F5",
10
+ 200: "#E4E4E7",
11
+ 300: "#D4D4D8",
12
+ 400: "#A1A1AA",
13
+ 500: "#71717A",
14
+ 600: "#52525B",
15
+ 700: "#3F3F46",
16
+ 800: "#27272A",
17
+ 900: "#18181B",
18
+ 950: "#09090B"
32
19
  },
33
20
  warmGray: {
34
21
  50: "#F6F5F3",
35
22
  100: "#E5E1E0",
36
- // Warm Gray 1 C
37
23
  200: "#D7D2CB",
38
- // Warm Gray 2 C
39
24
  300: "#BFB8AF",
40
- // Warm Gray 3 C
41
25
  400: "#ACA39A",
42
- // Warm Gray 5 C
43
26
  500: "#968C83",
44
- // Warm Gray 7 C
45
27
  600: "#83786F",
46
- // Warm Gray 8 C
47
28
  700: "#6E6259",
48
- // Warm Gray 10 C
49
29
  800: "#5C5146",
50
- // Warm Gray 11 C
51
30
  900: "#4A4138"
52
31
  },
53
32
  status: {
54
- success: "#1A4331",
55
- // Pantone 343 C
56
- successLight: "#EAF1EC",
57
- warning: "#8A6D3B",
58
- // Pantone 117 C
59
- warningLight: "#F7F3EA",
60
- error: "#7C2128",
61
- // Pantone 188 C
62
- errorLight: "#F4EAEB"
33
+ success: "#166534",
34
+ successLight: "#DCFCE7",
35
+ warning: "#854D0E",
36
+ warningLight: "#FEF9C3",
37
+ error: "#991B1B",
38
+ errorLight: "#FEE2E2"
63
39
  },
64
40
  dark: {
65
- bg: "#101820",
66
- // Black 6 C
67
- bgSubtle: "#1A1C20",
68
- surface: "#1A1C20",
69
- surfaceHover: "#22252A",
70
- border: "#2D2A26",
71
- // Black C
72
- muted: "#1A1C20",
73
- mutedFg: "#808285"
74
- // Cool Gray 7 C
41
+ bg: "#09090B",
42
+ bgSubtle: "#18181B",
43
+ surface: "#18181B",
44
+ surfaceHover: "#27272A",
45
+ border: "#27272A",
46
+ muted: "#18181B",
47
+ mutedFg: "#71717A"
75
48
  },
76
49
  glass: {
77
- bg: "rgba(16, 24, 32, 0.8)",
78
- bgHover: "rgba(16, 24, 32, 0.9)",
50
+ bg: "rgba(9, 9, 11, 0.8)",
51
+ bgHover: "rgba(9, 9, 11, 0.9)",
79
52
  border: "rgba(255, 255, 255, 0.05)",
80
53
  borderHover: "rgba(255, 255, 255, 0.1)",
81
54
  lightBg: "rgba(255, 255, 255, 0.8)",
82
55
  lightBgHover: "rgba(255, 255, 255, 0.9)",
83
- lightBorder: "rgba(16, 24, 32, 0.04)",
84
- lightBorderHover: "rgba(16, 24, 32, 0.08)"
56
+ lightBorder: "rgba(24, 24, 27, 0.04)",
57
+ lightBorderHover: "rgba(24, 24, 27, 0.08)"
85
58
  }
86
59
  };
87
60
 
88
61
  // src/semantic.ts
89
62
  var semanticTokens = {
90
63
  light: {
91
- // ── Canvas & Surface (Off-white paper base) ──
64
+ // ── Canvas & Surface ──
92
65
  background: "#FAFAFA",
93
- // Off-white base
94
66
  backgroundSubtle: "#F4F4F5",
95
- // Slightly darker gray
96
- surface: "#FCFCFC",
97
- // Just faintly off-white surface
67
+ surface: "#FFFFFF",
98
68
  surfaceHover: "#F4F4F5",
99
69
  surfaceBase: "#FAFAFA",
100
- surfaceElevatedLow: "#FCFCFC",
101
- surfaceElevatedMid: "#FCFCFC",
102
- surfaceElevatedHigh: "#FCFCFC",
103
- card: "#FCFCFC",
104
- cardForeground: "#121212",
105
- // Barely off-black
70
+ surfaceElevatedLow: "#FFFFFF",
71
+ surfaceElevatedMid: "#FFFFFF",
72
+ surfaceElevatedHigh: "#FFFFFF",
73
+ card: "#FFFFFF",
74
+ cardForeground: "#18181B",
106
75
  // ── Text ──
107
- foreground: "#121212",
76
+ foreground: "#18181B",
108
77
  muted: "#F4F4F5",
109
78
  mutedForeground: "#71717A",
110
- // ── Brand ──
111
- primary: "#1E232D",
112
- // Iron Navy
113
- primaryHover: "#2A303D",
114
- // Slightly lighter for hover
115
- primaryForeground: "#FAFAFA",
116
- secondary: "#E4E4E7",
117
- // Darkened from F4F4F5 for better visibility
118
- secondaryForeground: "#1E232D",
119
- ring: "#1E232D",
120
- // ── Point / Accent (Steel Navy) ──
121
- point: "#323944",
122
- pointHover: "#4A5361",
123
- pointForeground: "#FAFAFA",
124
- pointSubtle: "rgba(30, 35, 45, 0.08)",
79
+ // ── Brand (Ink Black) ──
80
+ primary: "#18181B",
81
+ primaryHover: "#27272A",
82
+ primaryForeground: "#FFFFFF",
83
+ secondary: "#F4F4F5",
84
+ secondaryForeground: "#18181B",
85
+ ring: "#18181B",
86
+ // ── Point / Accent (Royal Indigo) ──
87
+ point: "#5856D6",
88
+ pointHover: "#4B49B8",
89
+ pointForeground: "#FFFFFF",
90
+ pointSubtle: "rgba(88, 86, 214, 0.1)",
125
91
  // ── Border ──
126
92
  border: "#E4E4E7",
127
93
  input: "#E4E4E7",
128
- // ── Gray Scale ──
94
+ // ── Gray Scale (Zinc) ──
129
95
  gray50: "#FAFAFA",
130
96
  gray100: "#F4F4F5",
131
97
  gray200: "#E4E4E7",
@@ -137,11 +103,11 @@ var semanticTokens = {
137
103
  gray800: "#27272A",
138
104
  gray900: "#18181B",
139
105
  // ── Glass & Effects ──
140
- glassBg: "rgba(252, 252, 252, 0.85)",
141
- glassBorder: "rgba(18, 18, 18, 0.04)",
142
- glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.6)",
143
- glassPanelShadow: "0 12px 40px rgba(18, 18, 18, 0.04), 0 1px 3px rgba(18, 18, 18, 0.02)",
144
- accentGlow: "0 0 0 transparent",
106
+ glassBg: "rgba(255, 255, 255, 0.85)",
107
+ glassBorder: "rgba(24, 24, 27, 0.04)",
108
+ glassInset: "inset 0 1px 0 rgba(255, 255, 255, 0.6)",
109
+ glassPanelShadow: "0 12px 40px rgba(24, 24, 27, 0.04), 0 1px 3px rgba(24, 24, 27, 0.02)",
110
+ accentGlow: "none",
145
111
  // ── Gradients ──
146
112
  gradientBrand: "none",
147
113
  gradientBrandHover: "none",
@@ -153,105 +119,94 @@ var semanticTokens = {
153
119
  gradientSurface: "none",
154
120
  gradientGlowShadow: "none",
155
121
  // ── Shadow ──
156
- shadowColor: "rgba(18, 18, 18, 0.05)",
122
+ shadowColor: "rgba(24, 24, 27, 0.05)",
157
123
  // ── Status ──
158
- success: "#1A4331",
159
- successBg: "#EAF1EC",
160
- successForeground: "#1A4331",
161
- warning: "#8A6D3B",
162
- warningBg: "#F7F3EA",
163
- warningForeground: "#8A6D3B",
164
- error: "#7C2128",
165
- errorBg: "#F4EAEB",
166
- errorForeground: "#7C2128",
167
- info: "#121212",
168
- infoBg: "#FAFAFA",
169
- infoForeground: "#121212",
124
+ success: "#166534",
125
+ successBg: "#DCFCE7",
126
+ successForeground: "#166534",
127
+ warning: "#854D0E",
128
+ warningBg: "#FEF9C3",
129
+ warningForeground: "#854D0E",
130
+ error: "#991B1B",
131
+ errorBg: "#FEE2E2",
132
+ errorForeground: "#991B1B",
133
+ info: "#18181B",
134
+ infoBg: "#F4F4F5",
135
+ infoForeground: "#18181B",
170
136
  // ── Interaction States ──
171
- interactiveHover: "rgba(18, 18, 18, 0.04)",
172
- interactivePressed: "rgba(18, 18, 18, 0.08)",
173
- interactiveFocus: "#121212",
174
- interactiveSurfaceTint: "rgba(18, 18, 18, 0.02)",
175
- interactiveHoverTint: "rgba(18, 18, 18, 0.04)",
176
- focusGlow: "0 0 0 2px #E4E4E7",
177
- pointGlow: "0 0 0 2px rgba(18, 18, 18, 0.15)",
137
+ interactiveHover: "rgba(24, 24, 27, 0.04)",
138
+ interactivePressed: "rgba(24, 24, 27, 0.08)",
139
+ interactiveFocus: "#18181B",
140
+ interactiveSurfaceTint: "rgba(0, 0, 0, 0.02)",
141
+ interactiveHoverTint: "rgba(0, 0, 0, 0.04)",
142
+ focusGlow: "0 0 0 3px rgba(24, 24, 27, 0.1)",
143
+ pointGlow: "0 0 0 2px rgba(88, 86, 214, 0.2)",
178
144
  // ── Components ──
179
- btnPrimarySurface: "#1E232D",
180
- btnPrimaryHover: "#2A303D",
181
- btnPrimaryEnergy: "0 4px 12px rgba(30, 35, 45, 0.16)",
145
+ btnPrimarySurface: "#18181B",
146
+ btnPrimaryHover: "#27272A",
147
+ btnPrimaryEnergy: "0 4px 12px rgba(24, 24, 27, 0.15)",
182
148
  btnPrimaryInset: "none",
183
- btnSecondarySurface: "#E4E4E7",
184
- btnSecondaryHover: "#D4D4D8",
185
- btnOutlineBorder: "#E4E4E7",
186
- btnOutlineBorderHover: "#D4D4D8",
187
- btnOutlineHoverBg: "#F4F4F5",
149
+ btnSecondarySurface: "#F4F4F5",
150
+ btnSecondaryHover: "#E4E4E7",
151
+ btnOutlineBorder: "#D4D4D8",
152
+ btnOutlineBorderHover: "#A1A1AA",
153
+ btnOutlineHoverBg: "#F9FAFB",
188
154
  btnGhostHover: "#F4F4F5",
189
- btnPointSurface: "#323944",
155
+ btnPointSurface: "#5856D6",
190
156
  btnPointBorder: "transparent",
191
- btnPointHoverSurface: "#4A5361",
157
+ btnPointHoverSurface: "#4B49B8",
192
158
  btnPointHoverBorder: "transparent",
193
- btnPointEnergy: "0 4px 12px rgba(50, 57, 68, 0.2)",
194
- btnDestructiveSurface: "#7C2128",
195
- btnDestructiveHover: "#5B171D",
196
- inputBg: "#FCFCFC",
197
- inputBorderRest: "#E4E4E7",
159
+ btnPointEnergy: "0 4px 12px rgba(88, 86, 214, 0.2)",
160
+ btnDestructiveSurface: "#DC2626",
161
+ btnDestructiveHover: "#B91C1C",
162
+ inputBg: "#F4F4F5",
163
+ inputBorderRest: "#D4D4D8",
198
164
  inputBorderHover: "#A1A1AA",
199
- inputHoverGlow: "0 0 0 2px #F4F4F5",
200
- inputFocusGlow: "0 0 0 2px #E4E4E7",
201
- inputErrorGlow: "0 0 0 2px #F4EAEB",
202
- dropdownBg: "#FCFCFC",
203
- dropdownShadow: "0 20px 25px -5px rgba(18, 18, 18, 0.08), 0 0 0 1px rgba(18, 18, 18, 0.03)",
165
+ inputHoverGlow: "0 0 0 2px rgba(0, 0, 0, 0.04)",
166
+ inputFocusGlow: "0 0 0 2px rgba(24, 24, 27, 0.15)",
167
+ inputErrorGlow: "0 0 0 2px #FEE2E2",
168
+ dropdownBg: "#FFFFFF",
169
+ dropdownShadow: "0 20px 25px -5px rgba(24, 24, 27, 0.08), 0 0 0 1px rgba(24, 24, 27, 0.03)",
204
170
  dropdownItemHover: "#F4F4F5",
205
171
  cardAccentBorder: "#E4E4E7",
206
172
  cardAccentGlow: "none",
207
173
  cardAccentHoverBorder: "#D4D4D8",
208
- cardAccentHoverGlow: "0 8px 24px rgba(18, 18, 18, 0.06)"
174
+ cardAccentHoverGlow: "0 8px 24px rgba(24, 24, 27, 0.06)"
209
175
  },
210
176
  dark: {
211
- // ── Canvas & Surface (High-Contrast Charcoal Base) ──
212
- background: "#121214",
213
- // Off-black charcoal
214
- backgroundSubtle: "#18181A",
215
- // Zinc 900
177
+ // ── Canvas & Surface ──
178
+ background: "#09090B",
179
+ backgroundSubtle: "#18181B",
216
180
  surface: "#27272A",
217
- // Zinc 800 - distinct from subtle background
218
181
  surfaceHover: "#3F3F46",
219
- // Zinc 700
220
- surfaceBase: "#121214",
221
- surfaceElevatedLow: "#18181A",
182
+ surfaceBase: "#09090B",
183
+ surfaceElevatedLow: "#18181B",
222
184
  surfaceElevatedMid: "#27272A",
223
185
  surfaceElevatedHigh: "#3F3F46",
224
- card: "#18181A",
225
- // Zinc 900
226
- cardForeground: "#F4F4F5",
227
- // Off-white
186
+ card: "#18181B",
187
+ cardForeground: "#FAFAFA",
228
188
  // ── Text ──
229
- foreground: "#F4F4F5",
230
- // Off-white
189
+ foreground: "#FAFAFA",
231
190
  muted: "#27272A",
232
- // Zinc 800
233
191
  mutedForeground: "#A1A1AA",
234
- // Zinc 400
235
- // ── Brand (Iron Navy Light / Cold Steel Blue-Gray) ──
236
- primary: "#B8C4D9",
237
- primaryHover: "#D1DBE8",
238
- primaryForeground: "#1E232D",
239
- // Deep Iron Navy text
192
+ // ── Brand (Inverted — Near-White) ──
193
+ primary: "#FAFAFA",
194
+ primaryHover: "#E4E4E7",
195
+ primaryForeground: "#18181B",
240
196
  secondary: "#27272A",
241
- secondaryForeground: "#B8C4D9",
242
- ring: "#B8C4D9",
243
- // ── Point / Accent (Lighter Steel Blue-Gray) ──
244
- point: "#D1DBE8",
245
- pointHover: "#E6ECEF",
246
- pointForeground: "#1E232D",
247
- pointSubtle: "rgba(209, 219, 232, 0.12)",
248
- // ── Border (Highly Visible) ──
197
+ secondaryForeground: "#FAFAFA",
198
+ ring: "#FAFAFA",
199
+ // ── Point / Accent (Royal Indigo) ──
200
+ point: "#5E5CE6",
201
+ pointHover: "#7A78F0",
202
+ pointForeground: "#FFFFFF",
203
+ pointSubtle: "rgba(94, 92, 230, 0.15)",
204
+ // ── Border ──
249
205
  border: "#3F3F46",
250
- // Zinc 700
251
206
  input: "#3F3F46",
252
- // ── Gray Scale (Zinc) ──
253
- gray50: "#121214",
254
- gray100: "#18181A",
207
+ // ── Gray Scale (Zinc Inverted) ──
208
+ gray50: "#09090B",
209
+ gray100: "#18181B",
255
210
  gray200: "#27272A",
256
211
  gray300: "#3F3F46",
257
212
  gray400: "#52525B",
@@ -261,7 +216,7 @@ var semanticTokens = {
261
216
  gray800: "#E4E4E7",
262
217
  gray900: "#FAFAFA",
263
218
  // ── Glass & Effects ──
264
- glassBg: "rgba(18, 18, 20, 0.85)",
219
+ glassBg: "rgba(9, 9, 11, 0.85)",
265
220
  glassBorder: "rgba(250, 250, 250, 0.1)",
266
221
  glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.05)",
267
222
  glassPanelShadow: "0 20px 40px rgba(0, 0, 0, 0.8)",
@@ -278,13 +233,13 @@ var semanticTokens = {
278
233
  gradientGlowShadow: "none",
279
234
  // ── Shadow ──
280
235
  shadowColor: "rgba(0, 0, 0, 0.9)",
281
- // ── Status (Deep & Clear) ──
282
- success: "#34D399",
283
- successBg: "rgba(52, 211, 153, 0.15)",
284
- successForeground: "#34D399",
285
- warning: "#FBBF24",
286
- warningBg: "rgba(251, 191, 36, 0.15)",
287
- warningForeground: "#FBBF24",
236
+ // ── Status ──
237
+ success: "#4ADE80",
238
+ successBg: "rgba(74, 222, 128, 0.15)",
239
+ successForeground: "#4ADE80",
240
+ warning: "#FACC15",
241
+ warningBg: "rgba(250, 204, 21, 0.15)",
242
+ warningForeground: "#FACC15",
288
243
  error: "#F87171",
289
244
  errorBg: "rgba(248, 113, 113, 0.15)",
290
245
  errorForeground: "#F87171",
@@ -295,36 +250,36 @@ var semanticTokens = {
295
250
  interactiveHover: "rgba(250, 250, 250, 0.08)",
296
251
  interactivePressed: "rgba(250, 250, 250, 0.12)",
297
252
  interactiveFocus: "#FAFAFA",
298
- interactiveSurfaceTint: "rgba(250, 250, 250, 0.04)",
299
- interactiveHoverTint: "rgba(250, 250, 250, 0.08)",
300
- focusGlow: "0 0 0 2px #3F3F46",
301
- pointGlow: "0 0 0 2px rgba(250, 250, 250, 0.3)",
253
+ interactiveSurfaceTint: "rgba(255, 255, 255, 0.04)",
254
+ interactiveHoverTint: "rgba(255, 255, 255, 0.08)",
255
+ focusGlow: "0 0 0 3px rgba(250, 250, 250, 0.15)",
256
+ pointGlow: "0 0 0 2px rgba(94, 92, 230, 0.3)",
302
257
  // ── Components ──
303
- btnPrimarySurface: "#B8C4D9",
304
- btnPrimaryHover: "#D1DBE8",
305
- btnPrimaryEnergy: "0 4px 16px rgba(184, 196, 217, 0.25)",
258
+ btnPrimarySurface: "#FAFAFA",
259
+ btnPrimaryHover: "#E4E4E7",
260
+ btnPrimaryEnergy: "0 4px 16px rgba(250, 250, 250, 0.1)",
306
261
  btnPrimaryInset: "none",
307
262
  btnSecondarySurface: "#27272A",
308
263
  btnSecondaryHover: "#3F3F46",
309
264
  btnOutlineBorder: "#3F3F46",
310
265
  btnOutlineBorderHover: "#52525B",
311
- btnOutlineHoverBg: "#27272A",
266
+ btnOutlineHoverBg: "#18181B",
312
267
  btnGhostHover: "#27272A",
313
- btnPointSurface: "#D1DBE8",
268
+ btnPointSurface: "#5E5CE6",
314
269
  btnPointBorder: "transparent",
315
- btnPointHoverSurface: "#E6ECEF",
270
+ btnPointHoverSurface: "#7A78F0",
316
271
  btnPointHoverBorder: "transparent",
317
- btnPointEnergy: "0 4px 16px rgba(209, 219, 232, 0.25)",
318
- btnDestructiveSurface: "#7C2128",
319
- btnDestructiveHover: "#9A2A32",
320
- inputBg: "#18181A",
272
+ btnPointEnergy: "0 4px 16px rgba(94, 92, 230, 0.3)",
273
+ btnDestructiveSurface: "#EF4444",
274
+ btnDestructiveHover: "#F87171",
275
+ inputBg: "#27272A",
321
276
  inputBorderRest: "#3F3F46",
322
277
  inputBorderHover: "#52525B",
323
- inputHoverGlow: "0 0 0 2px #27272A",
324
- inputFocusGlow: "0 0 0 2px #3F3F46",
325
- inputErrorGlow: "0 0 0 2px #3E1014",
326
- dropdownBg: "#18181A",
327
- dropdownShadow: "0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(250,250,250,0.1)",
278
+ inputHoverGlow: "0 0 0 2px rgba(255, 255, 255, 0.04)",
279
+ inputFocusGlow: "0 0 0 2px rgba(250, 250, 250, 0.15)",
280
+ inputErrorGlow: "0 0 0 2px rgba(248, 113, 113, 0.3)",
281
+ dropdownBg: "#18181B",
282
+ dropdownShadow: "0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(250, 250, 250, 0.1)",
328
283
  dropdownItemHover: "#27272A",
329
284
  cardAccentBorder: "#3F3F46",
330
285
  cardAccentGlow: "none",
@@ -336,25 +291,25 @@ var semanticTokens = {
336
291
  // src/component.ts
337
292
  var component = {
338
293
  button: {
339
- sm: { height: 34, paddingX: 18, paddingY: 8, fontSize: 12, borderRadius: 8, iconSize: 16 },
340
- md: { height: 42, paddingX: 28, paddingY: 12, fontSize: 13, borderRadius: 10, iconSize: 18 },
341
- lg: { height: 50, paddingX: 36, paddingY: 16, fontSize: 15, borderRadius: 14, iconSize: 20 }
294
+ sm: { height: 32, paddingX: 16, paddingY: 6, fontSize: 13, borderRadius: 8, iconSize: 16 },
295
+ md: { height: 44, paddingX: 20, paddingY: 10, fontSize: 15, borderRadius: 12, iconSize: 18 },
296
+ lg: { height: 50, paddingX: 28, paddingY: 14, fontSize: 17, borderRadius: 14, iconSize: 20 }
342
297
  },
343
298
  input: {
344
- height: 42,
345
- paddingX: 18,
299
+ height: 44,
300
+ paddingX: 16,
346
301
  paddingY: 12,
347
- fontSize: 14,
348
- borderRadius: 10,
302
+ fontSize: 15,
303
+ borderRadius: 12,
349
304
  iconSize: 18,
350
305
  iconPadding: 42
351
306
  },
352
307
  card: {
353
- padding: 28,
354
- gap: 20,
308
+ padding: 24,
309
+ gap: 16,
355
310
  borderRadius: 16,
356
311
  titleSize: 17,
357
- bodySize: 14
312
+ bodySize: 15
358
313
  },
359
314
  badge: {
360
315
  paddingX: 12,
@@ -368,29 +323,29 @@ var component = {
368
323
  wrapperPaddingY: 10,
369
324
  wrapperRadius: 10,
370
325
  gap: 12,
371
- size: 20,
326
+ size: 22,
372
327
  borderRadius: 6,
373
- borderWidth: 2,
328
+ borderWidth: 1.5,
374
329
  iconSize: 14,
375
- labelSize: 14
330
+ labelSize: 15
376
331
  },
377
332
  radio: {
378
333
  wrapperPaddingX: 16,
379
334
  wrapperPaddingY: 10,
380
335
  wrapperRadius: 10,
381
336
  gap: 12,
382
- size: 20,
383
- borderWidth: 2,
337
+ size: 22,
338
+ borderWidth: 1.5,
384
339
  checkedBorderWidth: 6,
385
- labelSize: 14
340
+ labelSize: 15
386
341
  },
387
342
  switch: {
388
- width: 52,
389
- height: 32,
390
- thumbSize: 24,
391
- thumbOffset: 4,
392
- thumbTranslateOn: 24,
393
- thumbTranslateOff: 4
343
+ width: 51,
344
+ height: 31,
345
+ thumbSize: 27,
346
+ thumbOffset: 2,
347
+ thumbTranslateOn: 22,
348
+ thumbTranslateOff: 2
394
349
  },
395
350
  chip: {
396
351
  paddingX: 16,
@@ -412,14 +367,14 @@ var component = {
412
367
  paddingY: 8,
413
368
  fontSize: 13,
414
369
  containerPadding: 4,
415
- containerRadius: 14,
416
- itemRadius: 10
370
+ containerRadius: 10,
371
+ itemRadius: 8
417
372
  }
418
373
  },
419
374
  slider: {
420
- trackHeight: 6,
421
- thumbSize: 20,
422
- thumbBorderWidth: 2
375
+ trackHeight: 4,
376
+ thumbSize: 28,
377
+ thumbBorderWidth: 0
423
378
  },
424
379
  tooltip: {
425
380
  simple: { paddingX: 14, paddingY: 8, fontSize: 13, borderRadius: 10 },
@@ -436,12 +391,12 @@ var component = {
436
391
  },
437
392
  divider: {
438
393
  thickness: 1,
439
- thickThickness: 8,
394
+ thickThickness: 1,
440
395
  insetMargin: 64,
441
396
  labelSize: 12
442
397
  },
443
398
  progress: {
444
- linear: { height: 8, borderRadius: 9999 },
399
+ linear: { height: 6, borderRadius: 9999 },
445
400
  circular: { strokeWidth: 4, textSize: 14 }
446
401
  },
447
402
  snackbar: {
@@ -449,7 +404,7 @@ var component = {
449
404
  paddingRight: 18,
450
405
  paddingBottom: 16,
451
406
  paddingLeft: 22,
452
- borderRadius: 14,
407
+ borderRadius: 12,
453
408
  gap: 12,
454
409
  iconSize: 18,
455
410
  messageSize: 14,
@@ -459,15 +414,15 @@ var component = {
459
414
  actionSize: 13
460
415
  },
461
416
  dialog: {
462
- width: 380,
463
- borderRadius: 20,
464
- headerPaddingX: 28,
465
- headerPaddingY: 24,
466
- footerPaddingX: 28,
417
+ width: 320,
418
+ borderRadius: 14,
419
+ headerPaddingX: 24,
420
+ headerPaddingY: 20,
421
+ footerPaddingX: 24,
467
422
  footerPaddingY: 20,
468
423
  titleSize: 17,
469
- descSize: 14,
470
- footerGap: 14
424
+ descSize: 13,
425
+ footerGap: 8
471
426
  },
472
427
  animatedToggle: {
473
428
  size: 40,
@@ -489,19 +444,19 @@ var typography = {
489
444
  sm: { size: 40, weight: 600, lineHeight: 1.15, letterSpacing: -0.02 }
490
445
  },
491
446
  heading: {
492
- h1: { size: 32, weight: 700, lineHeight: 1.2, letterSpacing: -0.025 },
447
+ h1: { size: 34, weight: 700, lineHeight: 1.2, letterSpacing: -0.025 },
493
448
  h2: { size: 28, weight: 600, lineHeight: 1.22, letterSpacing: -0.02 },
494
- h3: { size: 24, weight: 600, lineHeight: 1.25, letterSpacing: -0.015 },
495
- h4: { size: 20, weight: 500, lineHeight: 1.3, letterSpacing: -0.01 },
496
- h5: { size: 16, weight: 500, lineHeight: 1.35, letterSpacing: -5e-3 },
497
- h6: { size: 14, weight: 500, lineHeight: 1.4, letterSpacing: 0 }
449
+ h3: { size: 22, weight: 600, lineHeight: 1.25, letterSpacing: -0.015 },
450
+ h4: { size: 20, weight: 600, lineHeight: 1.3, letterSpacing: -0.01 },
451
+ h5: { size: 17, weight: 600, lineHeight: 1.35, letterSpacing: -5e-3 },
452
+ h6: { size: 15, weight: 600, lineHeight: 1.4, letterSpacing: 0 }
498
453
  },
499
454
  body: {
500
- lg: { size: 17, weight: 400, lineHeight: 1.65, letterSpacing: -0.01 },
501
- md: { size: 15, weight: 400, lineHeight: 1.6, letterSpacing: -5e-3 },
502
- sm: { size: 13, weight: 400, lineHeight: 1.55, letterSpacing: 0 }
455
+ lg: { size: 17, weight: 400, lineHeight: 1.4, letterSpacing: -0.02 },
456
+ md: { size: 15, weight: 400, lineHeight: 1.4, letterSpacing: -0.01 },
457
+ sm: { size: 13, weight: 400, lineHeight: 1.4, letterSpacing: 0 }
503
458
  },
504
- caption: { size: 11, weight: 400, lineHeight: 1.5, letterSpacing: 0.01 },
459
+ caption: { size: 12, weight: 400, lineHeight: 1.4, letterSpacing: 0.01 },
505
460
  fontWeight: {
506
461
  light: "300",
507
462
  regular: "400",
@@ -525,9 +480,9 @@ var spacing = {
525
480
  var radius = {
526
481
  none: 0,
527
482
  xs: 4,
528
- sm: 6,
529
- m: 10,
530
- lg: 14,
483
+ sm: 8,
484
+ m: 12,
485
+ lg: 16,
531
486
  xl: 20,
532
487
  "2xl": 24,
533
488
  pill: 9999
@@ -558,12 +513,12 @@ var containers = {
558
513
  // src/elevation.ts
559
514
  var elevation = {
560
515
  light: {
561
- sm: "0 1px 2px rgba(94,94,94,0.04), 0 1px 3px rgba(94,94,94,0.02)",
562
- m: "0 2px 4px rgba(94,94,94,0.04), 0 8px 16px rgba(94,94,94,0.04)",
563
- lg: "0 4px 8px rgba(94,94,94,0.05), 0 16px 32px rgba(94,94,94,0.06)",
564
- xl: "0 8px 16px rgba(94,94,94,0.06), 0 24px 48px rgba(94,94,94,0.08)",
565
- glass: "0 4px 24px rgba(94,94,94,0.05), 0 1px 2px rgba(94,94,94,0.02)",
566
- glassLg: "0 8px 32px rgba(94,94,94,0.08), 0 2px 4px rgba(94,94,94,0.03)"
516
+ sm: "0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02)",
517
+ m: "0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03)",
518
+ lg: "0 8px 24px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.04)",
519
+ xl: "0 16px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04)",
520
+ glass: "0 8px 32px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.02)",
521
+ glassLg: "0 12px 48px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04)"
567
522
  },
568
523
  dark: {
569
524
  sm: "0 1px 2px rgba(0,0,0,0.20), 0 1px 3px rgba(0,0,0,0.14)",
@@ -588,8 +543,8 @@ var zIndex = {
588
543
  };
589
544
 
590
545
  // src/motion.ts
591
- var DIA_SPRING_DEFAULT = { type: "spring", stiffness: 260, damping: 34, mass: 1 };
592
- var DIA_SPRING_LIGHT = { type: "spring", stiffness: 260, damping: 34, mass: 0.5 };
546
+ var TAC_SPRING_DEFAULT = { type: "spring", stiffness: 300, damping: 35, mass: 1 };
547
+ var TAC_SPRING_LIGHT = { type: "spring", stiffness: 350, damping: 35, mass: 0.5 };
593
548
  var motion = {
594
549
  duration: {
595
550
  instant: 80,
@@ -599,43 +554,43 @@ var motion = {
599
554
  complex: 450
600
555
  },
601
556
  easing: {
602
- /** Dia's signature curve — slight overshoot with smooth natural deceleration. */
603
- standard: "cubic-bezier(0.22, 1, 0.36, 1)",
557
+ /** Slight overshoot with smooth natural deceleration. */
558
+ standard: "cubic-bezier(0.25, 0.1, 0.25, 1)",
604
559
  /** Exit easing — fast acceleration, abrupt departure. */
605
- easeIn: "cubic-bezier(0.55, 0, 1, 0.45)",
560
+ easeIn: "cubic-bezier(0.42, 0, 1, 1)",
606
561
  /** Entrance easing — gentle deceleration without overshoot. */
607
- easeOut: "cubic-bezier(0, 0.55, 0.45, 1)",
562
+ easeOut: "cubic-bezier(0, 0, 0.58, 1)",
608
563
  /** Symmetric ease — smooth in both directions. */
609
564
  easeInOut: "cubic-bezier(0.65, 0, 0.35, 1)",
610
- /** Playful overshoot — for toggles, switches, confirmatory feedback. */
611
- bounce: "cubic-bezier(0.34, 1.56, 0.64, 1)",
612
- /** Stronger spring feel — deliberate physical presence. */
613
- spring: "cubic-bezier(0.22, 1.2, 0.36, 1)",
565
+ /** Restrained overshoot — for toggles, switches, confirmatory feedback. */
566
+ bounce: "cubic-bezier(0.34, 1.3, 0.64, 1)",
567
+ /** Subtle spring feel — deliberate physical presence. */
568
+ spring: "cubic-bezier(0.22, 1.1, 0.36, 1)",
614
569
  /** Subtle rubber-band — elastic resistance with quick snap back. */
615
- elastic: "cubic-bezier(0.68, -0.2, 0.265, 1.2)"
570
+ elastic: "cubic-bezier(0.68, -0.1, 0.265, 1.1)"
616
571
  },
617
- /** Framer Motion spring presets calibrated for Dia-style organic feel. */
572
+ /** Framer Motion spring presets tuned with higher damping for natural deceleration. */
618
573
  spring: {
619
574
  /** Quick interactive feedback — subtle and responsive. */
620
- snappy: { type: "spring", stiffness: 260, damping: 28 },
575
+ snappy: { type: "spring", stiffness: 260, damping: 32 },
621
576
  /** Smooth state changes — gentle spring resolution. */
622
- gentle: { type: "spring", stiffness: 180, damping: 26 },
577
+ gentle: { type: "spring", stiffness: 180, damping: 30 },
623
578
  /** Toggle/switch feel — restrained with minimal bounce. */
624
- bouncy: { type: "spring", stiffness: 260, damping: 24 },
579
+ bouncy: { type: "spring", stiffness: 260, damping: 30 },
625
580
  /** Large layout shifts — deliberate mass with controlled deceleration. */
626
- slow: { type: "spring", stiffness: 140, damping: 24 },
581
+ slow: { type: "spring", stiffness: 140, damping: 28 },
627
582
  /** Press/release with life — elastic resistance, mass gives it weight. */
628
- elastic: { type: "spring", stiffness: 220, damping: 22, mass: 0.8 },
583
+ elastic: { type: "spring", stiffness: 220, damping: 28, mass: 0.8 },
629
584
  /** Elements appearing — spring resolves cleanly with organic arrival. */
630
- entrance: { type: "spring", stiffness: 180, damping: 24, mass: 0.9 }
585
+ entrance: { type: "spring", stiffness: 180, damping: 28, mass: 0.9 }
631
586
  },
632
- /** Mass-differentiated spring configs for Dia Browser-like physics interactions. */
633
- diaSpring: {
634
- default: DIA_SPRING_DEFAULT,
635
- light: DIA_SPRING_LIGHT,
636
- heavy: { type: "spring", stiffness: 220, damping: 32, mass: 1.5 },
637
- magnetic: { type: "spring", stiffness: 340, damping: 38, mass: 0.8 },
638
- entrance: { type: "spring", stiffness: 180, damping: 28, mass: 1.2 }
587
+ /** Mass-differentiated spring configs tuned higher damping for smooth deceleration. */
588
+ tacSpring: {
589
+ default: TAC_SPRING_DEFAULT,
590
+ light: TAC_SPRING_LIGHT,
591
+ heavy: { type: "spring", stiffness: 250, damping: 38, mass: 1.5 },
592
+ magnetic: { type: "spring", stiffness: 400, damping: 40, mass: 0.8 },
593
+ entrance: { type: "spring", stiffness: 220, damping: 32, mass: 1.2 }
639
594
  },
640
595
  /** Standard animation keyframe presets for reuse across components. */
641
596
  keyframes: {
@@ -652,13 +607,25 @@ var motion = {
652
607
  to: { opacity: "1", filter: "blur(0px)", transform: "scale(1)" }
653
608
  },
654
609
  /** Slide entrance from below — element springs up from offset position. */
655
- slideInUp: { from: { opacity: "0", transform: "translateY(5px)" }, to: { opacity: "1", transform: "translateY(0)" } },
610
+ slideInUp: {
611
+ from: { opacity: "0", transform: "translateY(5px)" },
612
+ to: { opacity: "1", transform: "translateY(0)" }
613
+ },
656
614
  /** Slide entrance from above — element springs down from offset position. */
657
- slideInDown: { from: { opacity: "0", transform: "translateY(-5px)" }, to: { opacity: "1", transform: "translateY(0)" } },
615
+ slideInDown: {
616
+ from: { opacity: "0", transform: "translateY(-5px)" },
617
+ to: { opacity: "1", transform: "translateY(0)" }
618
+ },
658
619
  /** Slide entrance from left — element springs in from offset. */
659
- slideInLeft: { from: { opacity: "0", transform: "translateX(-5px)" }, to: { opacity: "1", transform: "translateX(0)" } },
620
+ slideInLeft: {
621
+ from: { opacity: "0", transform: "translateX(-5px)" },
622
+ to: { opacity: "1", transform: "translateX(0)" }
623
+ },
660
624
  /** Slide entrance from right — element springs in from offset. */
661
- slideInRight: { from: { opacity: "0", transform: "translateX(5px)" }, to: { opacity: "1", transform: "translateX(0)" } },
625
+ slideInRight: {
626
+ from: { opacity: "0", transform: "translateX(5px)" },
627
+ to: { opacity: "1", transform: "translateX(0)" }
628
+ },
662
629
  /** Scale entrance — element inflates from slight compression. */
663
630
  scaleIn: { from: { opacity: "0", transform: "scale(0.98)" }, to: { opacity: "1", transform: "scale(1)" } },
664
631
  scaleOut: { from: { opacity: "1", transform: "scale(1)" }, to: { opacity: "0", transform: "scale(0.98)" } },
@@ -726,66 +693,75 @@ var motion = {
726
693
  },
727
694
  /** Layout morphing spring config — for FLIP transitions between components. */
728
695
  morph: {
729
- /** Spring config for morph transitions — references diaSpring.default. */
730
- spring: DIA_SPRING_DEFAULT,
696
+ /** Spring config for morph transitions — references tacSpring.default. */
697
+ spring: TAC_SPRING_DEFAULT,
731
698
  /** Faster variant for small elements. */
732
- springFast: { type: "spring", stiffness: 400, damping: 35, mass: 0.8 }
699
+ springFast: { type: "spring", stiffness: 450, damping: 35, mass: 0.8 }
733
700
  }
734
701
  };
735
- var diaSpring = motion.diaSpring;
702
+ var tacSpring = motion.tacSpring;
703
+ var springConfigs = {
704
+ default: { stiffness: 300, damping: 35, mass: 1 },
705
+ snappy: { stiffness: 260, damping: 32, mass: 1 },
706
+ gentle: { stiffness: 180, damping: 30, mass: 1 },
707
+ bouncy: { stiffness: 260, damping: 30, mass: 1 },
708
+ magnetic: { stiffness: 400, damping: 40, mass: 0.8 },
709
+ entrance: { stiffness: 180, damping: 28, mass: 0.9 },
710
+ light: { stiffness: 350, damping: 35, mass: 0.5 },
711
+ heavy: { stiffness: 250, damping: 38, mass: 1.5 },
712
+ elastic: { stiffness: 220, damping: 28, mass: 0.8 },
713
+ slow: { stiffness: 140, damping: 28, mass: 1 }
714
+ };
736
715
 
737
716
  // src/chart.ts
738
717
  var chart = {
739
718
  light: {
740
719
  colors: [
741
- "#1E232D",
742
- // chart-1: Iron Navy (Primary)
743
- "#323944",
744
- // chart-2: Steel Navy (Secondary)
745
- "#4A5361",
746
- // chart-3: Slate Navy (Tertiary)
720
+ "#18181B",
721
+ // chart-1: Ink (Primary)
722
+ "#5856D6",
723
+ // chart-2: Royal Indigo (Point)
724
+ "#854D0E",
725
+ // chart-3: Dark Gold
726
+ "#0F766E",
727
+ // chart-4: Deep Teal (cool contrast)
747
728
  "#71717A",
748
- // chart-4: Zinc 500 (Accent 1)
749
- "#A1A1AA",
750
- // chart-5: Zinc 400 (Accent 2)
751
- "#D4D4D8",
752
- // chart-6: Zinc 300 (Fill)
753
- "#0F172A",
754
- // chart-7: Deep Slate 900 (Deep Fill)
755
- "#E4E4E7"
756
- // chart-8: Zinc 200 (Light Fill)
729
+ // chart-5: Zinc 500 (Neutral)
730
+ "#4B49B8",
731
+ // chart-6: Deep Indigo
732
+ "#44403C",
733
+ // chart-7: Stone 700 (Warm gray)
734
+ "#D4D4D8"
735
+ // chart-8: Zinc 300 (Light fill)
757
736
  ],
758
- grid: "rgba(30, 35, 45, 0.04)",
759
- axis: "rgba(30, 35, 45, 0.08)",
737
+ grid: "rgba(24, 24, 27, 0.04)",
738
+ axis: "rgba(24, 24, 27, 0.08)",
760
739
  label: "#71717A",
761
- // Zinc 500
762
740
  tooltipBg: "#FFFFFF"
763
741
  },
764
742
  dark: {
765
743
  colors: [
766
- "#B8C4D9",
767
- // chart-1: Bright Ice Navy (Primary)
768
- "#D1DBE8",
769
- // chart-2: Ice Steel (Secondary)
770
- "#E6ECEF",
771
- // chart-3: Pale Silver (Tertiary)
744
+ "#FAFAFA",
745
+ // chart-1: Near-white (Primary)
746
+ "#5E5CE6",
747
+ // chart-2: Royal Indigo (Point)
748
+ "#FCD34D",
749
+ // chart-3: Amber 300 (Gold)
750
+ "#2DD4BF",
751
+ // chart-4: Teal 400 (cool contrast)
772
752
  "#A1A1AA",
773
- // chart-4: Zinc 400 (Accent 1)
774
- "#71717A",
775
- // chart-5: Zinc 500 (Accent 2)
776
- "#808B9D",
777
- // chart-6: Cold Steel (Fill)
778
- "#FFFFFF",
779
- // chart-7: Pure White (Highlight)
753
+ // chart-5: Zinc 400 (Neutral)
754
+ "#7A78F0",
755
+ // chart-6: Light Indigo
756
+ "#78716C",
757
+ // chart-7: Stone 500 (Warm gray)
780
758
  "#52525B"
781
- // chart-8: Zinc 600 (Deep Fill)
759
+ // chart-8: Zinc 600 (Deep fill)
782
760
  ],
783
761
  grid: "rgba(255, 255, 255, 0.04)",
784
762
  axis: "rgba(255, 255, 255, 0.06)",
785
763
  label: "#A1A1AA",
786
- // Zinc 400
787
- tooltipBg: "#18181A"
788
- // Off-black chart tooltip matches dropdowns
764
+ tooltipBg: "#18181B"
789
765
  },
790
766
  lineWidth: 1.5,
791
767
  dotSize: 2.5,
@@ -811,7 +787,6 @@ exports.breakpoints = breakpoints;
811
787
  exports.chart = chart;
812
788
  exports.component = component;
813
789
  exports.containers = containers;
814
- exports.diaSpring = diaSpring;
815
790
  exports.elevation = elevation;
816
791
  exports.elevationLight = elevationLight;
817
792
  exports.grid = grid;
@@ -823,6 +798,8 @@ exports.radius = radius;
823
798
  exports.rem = rem;
824
799
  exports.semanticTokens = semanticTokens;
825
800
  exports.spacing = spacing;
801
+ exports.springConfigs = springConfigs;
802
+ exports.tacSpring = tacSpring;
826
803
  exports.typography = typography;
827
804
  exports.unitless = unitless;
828
805
  exports.zIndex = zIndex;