@geomak/ui 1.4.0 → 1.5.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/chunk-255PCZIW.cjs +238 -0
- package/dist/chunk-255PCZIW.cjs.map +1 -0
- package/dist/chunk-GKXP6OJJ.js +233 -0
- package/dist/chunk-GKXP6OJJ.js.map +1 -0
- package/dist/index-CvyV3YPI.d.cts +293 -0
- package/dist/index-CvyV3YPI.d.ts +293 -0
- package/dist/index.cjs +154 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -2
- package/dist/index.d.ts +138 -2
- package/dist/index.js +128 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2242 -0
- package/dist/tokens/index.cjs +4 -4
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +1 -1
- package/package.json +6 -2
- package/dist/chunk-OSWZRIGC.js +0 -152
- package/dist/chunk-OSWZRIGC.js.map +0 -1
- package/dist/chunk-RLL7ES4F.cjs +0 -157
- package/dist/chunk-RLL7ES4F.cjs.map +0 -1
- package/dist/index-DLGzTj3K.d.cts +0 -191
- package/dist/index-DLGzTj3K.d.ts +0 -191
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oxygen design-system colour palette.
|
|
3
|
+
* Duplicated here so the published package is fully self-contained.
|
|
4
|
+
*/
|
|
5
|
+
declare const PALETTE: {
|
|
6
|
+
readonly 'true-blue': "#0466C8";
|
|
7
|
+
readonly 'usafa-blue': "#0353A4";
|
|
8
|
+
readonly 'dark-cornflower-blue': "#023E7D";
|
|
9
|
+
readonly 'oxford-blue-700': "#002855";
|
|
10
|
+
readonly 'oxford-blue-800': "#001845";
|
|
11
|
+
readonly 'oxford-blue-900': "#001233";
|
|
12
|
+
readonly independence: "#33415C";
|
|
13
|
+
readonly 'black-coral': "#5C677D";
|
|
14
|
+
readonly 'roman-silver': "#7D8597";
|
|
15
|
+
readonly manatee: "#979DAC";
|
|
16
|
+
readonly white: "#fff";
|
|
17
|
+
readonly ice: "#DBF1FD";
|
|
18
|
+
readonly 'ice-dark': "#d0e3ed";
|
|
19
|
+
readonly 'midnight-green-eagle-900': "#013E53";
|
|
20
|
+
readonly 'midnight-green-eagle-700': "#125F6C";
|
|
21
|
+
readonly 'midnight-green-eagle-500': "#125F6C";
|
|
22
|
+
readonly 'rich-black-fogra': "#000202";
|
|
23
|
+
readonly 'rich-black-fogra-opaque': "#0000005b";
|
|
24
|
+
readonly 'prussian-blue': "#00273A";
|
|
25
|
+
readonly 'indigo-dye': "#013C54";
|
|
26
|
+
readonly ming: "#0F6372";
|
|
27
|
+
readonly skobeloff: "#217479";
|
|
28
|
+
readonly 'dark-cyan': "#2A8784";
|
|
29
|
+
readonly 'celadon-green': "#297E74";
|
|
30
|
+
readonly turquise: "#2EB8B0";
|
|
31
|
+
readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
|
|
32
|
+
readonly disabled: "#dee2e6";
|
|
33
|
+
readonly error: "tomato";
|
|
34
|
+
readonly warning: "orange";
|
|
35
|
+
readonly success: "lightgreen";
|
|
36
|
+
readonly info: "lightblue";
|
|
37
|
+
readonly transparent: "rgba(255, 255, 255, .0)";
|
|
38
|
+
};
|
|
39
|
+
declare const COLORS: {
|
|
40
|
+
PALETTE: {
|
|
41
|
+
readonly 'true-blue': "#0466C8";
|
|
42
|
+
readonly 'usafa-blue': "#0353A4";
|
|
43
|
+
readonly 'dark-cornflower-blue': "#023E7D";
|
|
44
|
+
readonly 'oxford-blue-700': "#002855";
|
|
45
|
+
readonly 'oxford-blue-800': "#001845";
|
|
46
|
+
readonly 'oxford-blue-900': "#001233";
|
|
47
|
+
readonly independence: "#33415C";
|
|
48
|
+
readonly 'black-coral': "#5C677D";
|
|
49
|
+
readonly 'roman-silver': "#7D8597";
|
|
50
|
+
readonly manatee: "#979DAC";
|
|
51
|
+
readonly white: "#fff";
|
|
52
|
+
readonly ice: "#DBF1FD";
|
|
53
|
+
readonly 'ice-dark': "#d0e3ed";
|
|
54
|
+
readonly 'midnight-green-eagle-900': "#013E53";
|
|
55
|
+
readonly 'midnight-green-eagle-700': "#125F6C";
|
|
56
|
+
readonly 'midnight-green-eagle-500': "#125F6C";
|
|
57
|
+
readonly 'rich-black-fogra': "#000202";
|
|
58
|
+
readonly 'rich-black-fogra-opaque': "#0000005b";
|
|
59
|
+
readonly 'prussian-blue': "#00273A";
|
|
60
|
+
readonly 'indigo-dye': "#013C54";
|
|
61
|
+
readonly ming: "#0F6372";
|
|
62
|
+
readonly skobeloff: "#217479";
|
|
63
|
+
readonly 'dark-cyan': "#2A8784";
|
|
64
|
+
readonly 'celadon-green': "#297E74";
|
|
65
|
+
readonly turquise: "#2EB8B0";
|
|
66
|
+
readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
|
|
67
|
+
readonly disabled: "#dee2e6";
|
|
68
|
+
readonly error: "tomato";
|
|
69
|
+
readonly warning: "orange";
|
|
70
|
+
readonly success: "lightgreen";
|
|
71
|
+
readonly info: "lightblue";
|
|
72
|
+
readonly transparent: "rgba(255, 255, 255, .0)";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @geomak/ui — Design Tokens
|
|
78
|
+
*
|
|
79
|
+
* Three layers, each useful in a different context:
|
|
80
|
+
*
|
|
81
|
+
* 1. `palette` — raw brand hex values from palette.json
|
|
82
|
+
* 2. `semanticTokens` — resolved hex / px values keyed by light / dark / shared
|
|
83
|
+
* 3. `vars` — CSS custom-property reference strings for inline styles / CSS-in-JS
|
|
84
|
+
*
|
|
85
|
+
* CSS custom properties are injected by: import '@geomak/ui/styles'
|
|
86
|
+
* Tailwind utilities map to these vars via the bundled tailwind preset.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Resolved token values for every semantic role.
|
|
91
|
+
* Use when CSS custom properties aren't available (canvas, email, SSR snapshots).
|
|
92
|
+
*/
|
|
93
|
+
declare const semanticTokens: {
|
|
94
|
+
readonly light: {
|
|
95
|
+
readonly background: "#eef4fa";
|
|
96
|
+
readonly surface: "#ffffff";
|
|
97
|
+
readonly 'surface-raised': "#ffffff";
|
|
98
|
+
readonly border: "#d3dde8";
|
|
99
|
+
readonly 'border-strong': "#8898aa";
|
|
100
|
+
readonly foreground: "#0a1929";
|
|
101
|
+
readonly 'foreground-secondary': "#2e4057";
|
|
102
|
+
readonly 'foreground-muted': "#536878";
|
|
103
|
+
readonly accent: "#0466C8";
|
|
104
|
+
readonly 'accent-hover': "#0353A4";
|
|
105
|
+
readonly 'accent-foreground': "#ffffff";
|
|
106
|
+
readonly error: "#c0392b";
|
|
107
|
+
readonly warning: "#d68910";
|
|
108
|
+
readonly success: "#1e8449";
|
|
109
|
+
readonly info: "#1565c0";
|
|
110
|
+
};
|
|
111
|
+
readonly dark: {
|
|
112
|
+
readonly background: "#060f1a";
|
|
113
|
+
readonly surface: "#0d1f30";
|
|
114
|
+
readonly 'surface-raised': "#152638";
|
|
115
|
+
readonly border: "#1e3348";
|
|
116
|
+
readonly 'border-strong': "#2e4a64";
|
|
117
|
+
readonly foreground: "#e8f0f8";
|
|
118
|
+
readonly 'foreground-secondary': "#9ab0c4";
|
|
119
|
+
readonly 'foreground-muted': "#5c7a92";
|
|
120
|
+
readonly accent: "#2d88ff";
|
|
121
|
+
readonly 'accent-hover': "#4d9aff";
|
|
122
|
+
readonly 'accent-foreground': "#ffffff";
|
|
123
|
+
readonly error: "#ff6b6b";
|
|
124
|
+
readonly warning: "#ffb347";
|
|
125
|
+
readonly success: "#5cb85c";
|
|
126
|
+
readonly info: "#5bc0de";
|
|
127
|
+
};
|
|
128
|
+
readonly shared: {
|
|
129
|
+
readonly 'radius-sm': "2px";
|
|
130
|
+
readonly 'radius-md': "5px";
|
|
131
|
+
readonly 'radius-lg': "7px";
|
|
132
|
+
readonly 'radius-xl': "10px";
|
|
133
|
+
readonly 'radius-2xl': "12px";
|
|
134
|
+
readonly 'radius-full': "9999px";
|
|
135
|
+
readonly 'font-size-xs': "0.75rem";
|
|
136
|
+
readonly 'font-size-sm': "0.875rem";
|
|
137
|
+
readonly 'font-size-base': "1rem";
|
|
138
|
+
readonly 'font-size-lg': "1.125rem";
|
|
139
|
+
readonly 'font-size-xl': "1.25rem";
|
|
140
|
+
readonly 'font-size-2xl': "1.5rem";
|
|
141
|
+
readonly 'font-size-3xl': "1.875rem";
|
|
142
|
+
readonly 'font-weight-normal': 400;
|
|
143
|
+
readonly 'font-weight-medium': 500;
|
|
144
|
+
readonly 'font-weight-semibold': 600;
|
|
145
|
+
readonly 'font-weight-bold': 700;
|
|
146
|
+
readonly 'line-height-tight': 1.25;
|
|
147
|
+
readonly 'line-height-snug': 1.375;
|
|
148
|
+
readonly 'line-height-normal': 1.5;
|
|
149
|
+
readonly 'line-height-relaxed': 1.625;
|
|
150
|
+
readonly 'letter-spacing-tight': "-0.025em";
|
|
151
|
+
readonly 'letter-spacing-normal': "0em";
|
|
152
|
+
readonly 'letter-spacing-wide': "0.025em";
|
|
153
|
+
readonly 'height-control-xs': "24px";
|
|
154
|
+
readonly 'height-control-sm': "28px";
|
|
155
|
+
readonly 'height-control-md': "36px";
|
|
156
|
+
readonly 'height-control-lg': "44px";
|
|
157
|
+
readonly 'height-topbar': "56px";
|
|
158
|
+
readonly 'sidebar-expanded': "220px";
|
|
159
|
+
readonly 'sidebar-collapsed': "52px";
|
|
160
|
+
readonly 'duration-instant': "50ms";
|
|
161
|
+
readonly 'duration-fast': "80ms";
|
|
162
|
+
readonly 'duration-normal': "150ms";
|
|
163
|
+
readonly 'duration-slow': "220ms";
|
|
164
|
+
readonly 'duration-gentle': "350ms";
|
|
165
|
+
readonly 'ease-out-expo': "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
166
|
+
readonly 'ease-out-quart': "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
167
|
+
readonly 'ease-out-cubic': "cubic-bezier(0.33, 1, 0.68, 1)";
|
|
168
|
+
readonly 'ease-in-out': "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
169
|
+
readonly 'ease-in': "cubic-bezier(0.4, 0, 1, 1)";
|
|
170
|
+
readonly 'z-base': 0;
|
|
171
|
+
readonly 'z-raised': 10;
|
|
172
|
+
readonly 'z-dropdown': 100;
|
|
173
|
+
readonly 'z-sticky': 150;
|
|
174
|
+
readonly 'z-topbar': 200;
|
|
175
|
+
readonly 'z-overlay': 300;
|
|
176
|
+
readonly 'z-modal': 400;
|
|
177
|
+
readonly 'z-toast': 500;
|
|
178
|
+
readonly 'z-tooltip': 600;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
type SemanticColorKey = keyof typeof semanticTokens.light;
|
|
182
|
+
type SemanticSharedKey = keyof typeof semanticTokens.shared;
|
|
183
|
+
/**
|
|
184
|
+
* CSS custom-property reference strings.
|
|
185
|
+
* Use in inline styles or CSS-in-JS — values respond to light/dark automatically.
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* // Inline style
|
|
189
|
+
* <div style={{ color: vars.color.foreground }}>...</div>
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* // Emotion / styled-components
|
|
193
|
+
* const Card = styled.div`
|
|
194
|
+
* background: ${vars.color.surface};
|
|
195
|
+
* border-radius: ${vars.radius.lg};
|
|
196
|
+
* box-shadow: ${vars.shadow.md};
|
|
197
|
+
* `
|
|
198
|
+
*/
|
|
199
|
+
declare const vars: {
|
|
200
|
+
readonly color: {
|
|
201
|
+
readonly background: "var(--color-background)";
|
|
202
|
+
readonly surface: "var(--color-surface)";
|
|
203
|
+
readonly surfaceRaised: "var(--color-surface-raised)";
|
|
204
|
+
readonly border: "var(--color-border)";
|
|
205
|
+
readonly borderStrong: "var(--color-border-strong)";
|
|
206
|
+
readonly foreground: "var(--color-foreground)";
|
|
207
|
+
readonly foregroundSecondary: "var(--color-foreground-secondary)";
|
|
208
|
+
readonly foregroundMuted: "var(--color-foreground-muted)";
|
|
209
|
+
readonly accent: "var(--color-accent)";
|
|
210
|
+
readonly accentHover: "var(--color-accent-hover)";
|
|
211
|
+
readonly accentForeground: "var(--color-accent-foreground)";
|
|
212
|
+
readonly error: "var(--color-error)";
|
|
213
|
+
readonly warning: "var(--color-warning)";
|
|
214
|
+
readonly success: "var(--color-success)";
|
|
215
|
+
readonly info: "var(--color-info)";
|
|
216
|
+
};
|
|
217
|
+
readonly radius: {
|
|
218
|
+
readonly sm: "var(--radius-sm)";
|
|
219
|
+
readonly md: "var(--radius-md)";
|
|
220
|
+
readonly lg: "var(--radius-lg)";
|
|
221
|
+
readonly xl: "var(--radius-xl)";
|
|
222
|
+
readonly '2xl': "var(--radius-2xl)";
|
|
223
|
+
readonly full: "var(--radius-full)";
|
|
224
|
+
};
|
|
225
|
+
readonly shadow: {
|
|
226
|
+
readonly sm: "var(--shadow-sm)";
|
|
227
|
+
readonly md: "var(--shadow-md)";
|
|
228
|
+
readonly lg: "var(--shadow-lg)";
|
|
229
|
+
readonly xl: "var(--shadow-xl)";
|
|
230
|
+
};
|
|
231
|
+
readonly typography: {
|
|
232
|
+
readonly fontFamily: "var(--font-family-sans)";
|
|
233
|
+
readonly fontSizeXs: "var(--font-size-xs)";
|
|
234
|
+
readonly fontSizeSm: "var(--font-size-sm)";
|
|
235
|
+
readonly fontSizeBase: "var(--font-size-base)";
|
|
236
|
+
readonly fontSizeLg: "var(--font-size-lg)";
|
|
237
|
+
readonly fontSizeXl: "var(--font-size-xl)";
|
|
238
|
+
readonly fontSize2xl: "var(--font-size-2xl)";
|
|
239
|
+
readonly fontSize3xl: "var(--font-size-3xl)";
|
|
240
|
+
readonly fontWeightNormal: "var(--font-weight-normal)";
|
|
241
|
+
readonly fontWeightMedium: "var(--font-weight-medium)";
|
|
242
|
+
readonly fontWeightSemibold: "var(--font-weight-semibold)";
|
|
243
|
+
readonly fontWeightBold: "var(--font-weight-bold)";
|
|
244
|
+
readonly lineHeightTight: "var(--line-height-tight)";
|
|
245
|
+
readonly lineHeightSnug: "var(--line-height-snug)";
|
|
246
|
+
readonly lineHeightNormal: "var(--line-height-normal)";
|
|
247
|
+
readonly lineHeightRelaxed: "var(--line-height-relaxed)";
|
|
248
|
+
readonly letterSpacingTight: "var(--letter-spacing-tight)";
|
|
249
|
+
readonly letterSpacingNormal: "var(--letter-spacing-normal)";
|
|
250
|
+
readonly letterSpacingWide: "var(--letter-spacing-wide)";
|
|
251
|
+
};
|
|
252
|
+
readonly density: {
|
|
253
|
+
readonly controlXs: "var(--height-control-xs)";
|
|
254
|
+
readonly controlSm: "var(--height-control-sm)";
|
|
255
|
+
readonly controlMd: "var(--height-control-md)";
|
|
256
|
+
readonly controlLg: "var(--height-control-lg)";
|
|
257
|
+
readonly topbar: "var(--height-topbar)";
|
|
258
|
+
readonly sidebarExpanded: "var(--sidebar-expanded)";
|
|
259
|
+
readonly sidebarCollapsed: "var(--sidebar-collapsed)";
|
|
260
|
+
};
|
|
261
|
+
readonly motion: {
|
|
262
|
+
readonly durationInstant: "var(--duration-instant)";
|
|
263
|
+
readonly durationFast: "var(--duration-fast)";
|
|
264
|
+
readonly durationNormal: "var(--duration-normal)";
|
|
265
|
+
readonly durationSlow: "var(--duration-slow)";
|
|
266
|
+
readonly durationGentle: "var(--duration-gentle)";
|
|
267
|
+
readonly easeOutExpo: "var(--ease-out-expo)";
|
|
268
|
+
readonly easeOutQuart: "var(--ease-out-quart)";
|
|
269
|
+
readonly easeOutCubic: "var(--ease-out-cubic)";
|
|
270
|
+
readonly easeInOut: "var(--ease-in-out)";
|
|
271
|
+
readonly easeIn: "var(--ease-in)";
|
|
272
|
+
};
|
|
273
|
+
readonly zIndex: {
|
|
274
|
+
readonly base: "var(--z-base)";
|
|
275
|
+
readonly raised: "var(--z-raised)";
|
|
276
|
+
readonly dropdown: "var(--z-dropdown)";
|
|
277
|
+
readonly sticky: "var(--z-sticky)";
|
|
278
|
+
readonly topbar: "var(--z-topbar)";
|
|
279
|
+
readonly overlay: "var(--z-overlay)";
|
|
280
|
+
readonly modal: "var(--z-modal)";
|
|
281
|
+
readonly toast: "var(--z-toast)";
|
|
282
|
+
readonly tooltip: "var(--z-tooltip)";
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
type VarColorKey = keyof typeof vars.color;
|
|
286
|
+
type VarRadiusKey = keyof typeof vars.radius;
|
|
287
|
+
type VarShadowKey = keyof typeof vars.shadow;
|
|
288
|
+
type VarTypoKey = keyof typeof vars.typography;
|
|
289
|
+
type VarDensityKey = keyof typeof vars.density;
|
|
290
|
+
type VarMotionKey = keyof typeof vars.motion;
|
|
291
|
+
type VarZIndexKey = keyof typeof vars.zIndex;
|
|
292
|
+
|
|
293
|
+
export { COLORS as C, PALETTE as P, type SemanticColorKey as S, type VarColorKey as V, type SemanticSharedKey as a, type VarDensityKey as b, type VarMotionKey as c, type VarRadiusKey as d, type VarShadowKey as e, type VarTypoKey as f, type VarZIndexKey as g, semanticTokens as s, vars as v };
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oxygen design-system colour palette.
|
|
3
|
+
* Duplicated here so the published package is fully self-contained.
|
|
4
|
+
*/
|
|
5
|
+
declare const PALETTE: {
|
|
6
|
+
readonly 'true-blue': "#0466C8";
|
|
7
|
+
readonly 'usafa-blue': "#0353A4";
|
|
8
|
+
readonly 'dark-cornflower-blue': "#023E7D";
|
|
9
|
+
readonly 'oxford-blue-700': "#002855";
|
|
10
|
+
readonly 'oxford-blue-800': "#001845";
|
|
11
|
+
readonly 'oxford-blue-900': "#001233";
|
|
12
|
+
readonly independence: "#33415C";
|
|
13
|
+
readonly 'black-coral': "#5C677D";
|
|
14
|
+
readonly 'roman-silver': "#7D8597";
|
|
15
|
+
readonly manatee: "#979DAC";
|
|
16
|
+
readonly white: "#fff";
|
|
17
|
+
readonly ice: "#DBF1FD";
|
|
18
|
+
readonly 'ice-dark': "#d0e3ed";
|
|
19
|
+
readonly 'midnight-green-eagle-900': "#013E53";
|
|
20
|
+
readonly 'midnight-green-eagle-700': "#125F6C";
|
|
21
|
+
readonly 'midnight-green-eagle-500': "#125F6C";
|
|
22
|
+
readonly 'rich-black-fogra': "#000202";
|
|
23
|
+
readonly 'rich-black-fogra-opaque': "#0000005b";
|
|
24
|
+
readonly 'prussian-blue': "#00273A";
|
|
25
|
+
readonly 'indigo-dye': "#013C54";
|
|
26
|
+
readonly ming: "#0F6372";
|
|
27
|
+
readonly skobeloff: "#217479";
|
|
28
|
+
readonly 'dark-cyan': "#2A8784";
|
|
29
|
+
readonly 'celadon-green': "#297E74";
|
|
30
|
+
readonly turquise: "#2EB8B0";
|
|
31
|
+
readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
|
|
32
|
+
readonly disabled: "#dee2e6";
|
|
33
|
+
readonly error: "tomato";
|
|
34
|
+
readonly warning: "orange";
|
|
35
|
+
readonly success: "lightgreen";
|
|
36
|
+
readonly info: "lightblue";
|
|
37
|
+
readonly transparent: "rgba(255, 255, 255, .0)";
|
|
38
|
+
};
|
|
39
|
+
declare const COLORS: {
|
|
40
|
+
PALETTE: {
|
|
41
|
+
readonly 'true-blue': "#0466C8";
|
|
42
|
+
readonly 'usafa-blue': "#0353A4";
|
|
43
|
+
readonly 'dark-cornflower-blue': "#023E7D";
|
|
44
|
+
readonly 'oxford-blue-700': "#002855";
|
|
45
|
+
readonly 'oxford-blue-800': "#001845";
|
|
46
|
+
readonly 'oxford-blue-900': "#001233";
|
|
47
|
+
readonly independence: "#33415C";
|
|
48
|
+
readonly 'black-coral': "#5C677D";
|
|
49
|
+
readonly 'roman-silver': "#7D8597";
|
|
50
|
+
readonly manatee: "#979DAC";
|
|
51
|
+
readonly white: "#fff";
|
|
52
|
+
readonly ice: "#DBF1FD";
|
|
53
|
+
readonly 'ice-dark': "#d0e3ed";
|
|
54
|
+
readonly 'midnight-green-eagle-900': "#013E53";
|
|
55
|
+
readonly 'midnight-green-eagle-700': "#125F6C";
|
|
56
|
+
readonly 'midnight-green-eagle-500': "#125F6C";
|
|
57
|
+
readonly 'rich-black-fogra': "#000202";
|
|
58
|
+
readonly 'rich-black-fogra-opaque': "#0000005b";
|
|
59
|
+
readonly 'prussian-blue': "#00273A";
|
|
60
|
+
readonly 'indigo-dye': "#013C54";
|
|
61
|
+
readonly ming: "#0F6372";
|
|
62
|
+
readonly skobeloff: "#217479";
|
|
63
|
+
readonly 'dark-cyan': "#2A8784";
|
|
64
|
+
readonly 'celadon-green': "#297E74";
|
|
65
|
+
readonly turquise: "#2EB8B0";
|
|
66
|
+
readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
|
|
67
|
+
readonly disabled: "#dee2e6";
|
|
68
|
+
readonly error: "tomato";
|
|
69
|
+
readonly warning: "orange";
|
|
70
|
+
readonly success: "lightgreen";
|
|
71
|
+
readonly info: "lightblue";
|
|
72
|
+
readonly transparent: "rgba(255, 255, 255, .0)";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @geomak/ui — Design Tokens
|
|
78
|
+
*
|
|
79
|
+
* Three layers, each useful in a different context:
|
|
80
|
+
*
|
|
81
|
+
* 1. `palette` — raw brand hex values from palette.json
|
|
82
|
+
* 2. `semanticTokens` — resolved hex / px values keyed by light / dark / shared
|
|
83
|
+
* 3. `vars` — CSS custom-property reference strings for inline styles / CSS-in-JS
|
|
84
|
+
*
|
|
85
|
+
* CSS custom properties are injected by: import '@geomak/ui/styles'
|
|
86
|
+
* Tailwind utilities map to these vars via the bundled tailwind preset.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Resolved token values for every semantic role.
|
|
91
|
+
* Use when CSS custom properties aren't available (canvas, email, SSR snapshots).
|
|
92
|
+
*/
|
|
93
|
+
declare const semanticTokens: {
|
|
94
|
+
readonly light: {
|
|
95
|
+
readonly background: "#eef4fa";
|
|
96
|
+
readonly surface: "#ffffff";
|
|
97
|
+
readonly 'surface-raised': "#ffffff";
|
|
98
|
+
readonly border: "#d3dde8";
|
|
99
|
+
readonly 'border-strong': "#8898aa";
|
|
100
|
+
readonly foreground: "#0a1929";
|
|
101
|
+
readonly 'foreground-secondary': "#2e4057";
|
|
102
|
+
readonly 'foreground-muted': "#536878";
|
|
103
|
+
readonly accent: "#0466C8";
|
|
104
|
+
readonly 'accent-hover': "#0353A4";
|
|
105
|
+
readonly 'accent-foreground': "#ffffff";
|
|
106
|
+
readonly error: "#c0392b";
|
|
107
|
+
readonly warning: "#d68910";
|
|
108
|
+
readonly success: "#1e8449";
|
|
109
|
+
readonly info: "#1565c0";
|
|
110
|
+
};
|
|
111
|
+
readonly dark: {
|
|
112
|
+
readonly background: "#060f1a";
|
|
113
|
+
readonly surface: "#0d1f30";
|
|
114
|
+
readonly 'surface-raised': "#152638";
|
|
115
|
+
readonly border: "#1e3348";
|
|
116
|
+
readonly 'border-strong': "#2e4a64";
|
|
117
|
+
readonly foreground: "#e8f0f8";
|
|
118
|
+
readonly 'foreground-secondary': "#9ab0c4";
|
|
119
|
+
readonly 'foreground-muted': "#5c7a92";
|
|
120
|
+
readonly accent: "#2d88ff";
|
|
121
|
+
readonly 'accent-hover': "#4d9aff";
|
|
122
|
+
readonly 'accent-foreground': "#ffffff";
|
|
123
|
+
readonly error: "#ff6b6b";
|
|
124
|
+
readonly warning: "#ffb347";
|
|
125
|
+
readonly success: "#5cb85c";
|
|
126
|
+
readonly info: "#5bc0de";
|
|
127
|
+
};
|
|
128
|
+
readonly shared: {
|
|
129
|
+
readonly 'radius-sm': "2px";
|
|
130
|
+
readonly 'radius-md': "5px";
|
|
131
|
+
readonly 'radius-lg': "7px";
|
|
132
|
+
readonly 'radius-xl': "10px";
|
|
133
|
+
readonly 'radius-2xl': "12px";
|
|
134
|
+
readonly 'radius-full': "9999px";
|
|
135
|
+
readonly 'font-size-xs': "0.75rem";
|
|
136
|
+
readonly 'font-size-sm': "0.875rem";
|
|
137
|
+
readonly 'font-size-base': "1rem";
|
|
138
|
+
readonly 'font-size-lg': "1.125rem";
|
|
139
|
+
readonly 'font-size-xl': "1.25rem";
|
|
140
|
+
readonly 'font-size-2xl': "1.5rem";
|
|
141
|
+
readonly 'font-size-3xl': "1.875rem";
|
|
142
|
+
readonly 'font-weight-normal': 400;
|
|
143
|
+
readonly 'font-weight-medium': 500;
|
|
144
|
+
readonly 'font-weight-semibold': 600;
|
|
145
|
+
readonly 'font-weight-bold': 700;
|
|
146
|
+
readonly 'line-height-tight': 1.25;
|
|
147
|
+
readonly 'line-height-snug': 1.375;
|
|
148
|
+
readonly 'line-height-normal': 1.5;
|
|
149
|
+
readonly 'line-height-relaxed': 1.625;
|
|
150
|
+
readonly 'letter-spacing-tight': "-0.025em";
|
|
151
|
+
readonly 'letter-spacing-normal': "0em";
|
|
152
|
+
readonly 'letter-spacing-wide': "0.025em";
|
|
153
|
+
readonly 'height-control-xs': "24px";
|
|
154
|
+
readonly 'height-control-sm': "28px";
|
|
155
|
+
readonly 'height-control-md': "36px";
|
|
156
|
+
readonly 'height-control-lg': "44px";
|
|
157
|
+
readonly 'height-topbar': "56px";
|
|
158
|
+
readonly 'sidebar-expanded': "220px";
|
|
159
|
+
readonly 'sidebar-collapsed': "52px";
|
|
160
|
+
readonly 'duration-instant': "50ms";
|
|
161
|
+
readonly 'duration-fast': "80ms";
|
|
162
|
+
readonly 'duration-normal': "150ms";
|
|
163
|
+
readonly 'duration-slow': "220ms";
|
|
164
|
+
readonly 'duration-gentle': "350ms";
|
|
165
|
+
readonly 'ease-out-expo': "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
166
|
+
readonly 'ease-out-quart': "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
167
|
+
readonly 'ease-out-cubic': "cubic-bezier(0.33, 1, 0.68, 1)";
|
|
168
|
+
readonly 'ease-in-out': "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
169
|
+
readonly 'ease-in': "cubic-bezier(0.4, 0, 1, 1)";
|
|
170
|
+
readonly 'z-base': 0;
|
|
171
|
+
readonly 'z-raised': 10;
|
|
172
|
+
readonly 'z-dropdown': 100;
|
|
173
|
+
readonly 'z-sticky': 150;
|
|
174
|
+
readonly 'z-topbar': 200;
|
|
175
|
+
readonly 'z-overlay': 300;
|
|
176
|
+
readonly 'z-modal': 400;
|
|
177
|
+
readonly 'z-toast': 500;
|
|
178
|
+
readonly 'z-tooltip': 600;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
type SemanticColorKey = keyof typeof semanticTokens.light;
|
|
182
|
+
type SemanticSharedKey = keyof typeof semanticTokens.shared;
|
|
183
|
+
/**
|
|
184
|
+
* CSS custom-property reference strings.
|
|
185
|
+
* Use in inline styles or CSS-in-JS — values respond to light/dark automatically.
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* // Inline style
|
|
189
|
+
* <div style={{ color: vars.color.foreground }}>...</div>
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* // Emotion / styled-components
|
|
193
|
+
* const Card = styled.div`
|
|
194
|
+
* background: ${vars.color.surface};
|
|
195
|
+
* border-radius: ${vars.radius.lg};
|
|
196
|
+
* box-shadow: ${vars.shadow.md};
|
|
197
|
+
* `
|
|
198
|
+
*/
|
|
199
|
+
declare const vars: {
|
|
200
|
+
readonly color: {
|
|
201
|
+
readonly background: "var(--color-background)";
|
|
202
|
+
readonly surface: "var(--color-surface)";
|
|
203
|
+
readonly surfaceRaised: "var(--color-surface-raised)";
|
|
204
|
+
readonly border: "var(--color-border)";
|
|
205
|
+
readonly borderStrong: "var(--color-border-strong)";
|
|
206
|
+
readonly foreground: "var(--color-foreground)";
|
|
207
|
+
readonly foregroundSecondary: "var(--color-foreground-secondary)";
|
|
208
|
+
readonly foregroundMuted: "var(--color-foreground-muted)";
|
|
209
|
+
readonly accent: "var(--color-accent)";
|
|
210
|
+
readonly accentHover: "var(--color-accent-hover)";
|
|
211
|
+
readonly accentForeground: "var(--color-accent-foreground)";
|
|
212
|
+
readonly error: "var(--color-error)";
|
|
213
|
+
readonly warning: "var(--color-warning)";
|
|
214
|
+
readonly success: "var(--color-success)";
|
|
215
|
+
readonly info: "var(--color-info)";
|
|
216
|
+
};
|
|
217
|
+
readonly radius: {
|
|
218
|
+
readonly sm: "var(--radius-sm)";
|
|
219
|
+
readonly md: "var(--radius-md)";
|
|
220
|
+
readonly lg: "var(--radius-lg)";
|
|
221
|
+
readonly xl: "var(--radius-xl)";
|
|
222
|
+
readonly '2xl': "var(--radius-2xl)";
|
|
223
|
+
readonly full: "var(--radius-full)";
|
|
224
|
+
};
|
|
225
|
+
readonly shadow: {
|
|
226
|
+
readonly sm: "var(--shadow-sm)";
|
|
227
|
+
readonly md: "var(--shadow-md)";
|
|
228
|
+
readonly lg: "var(--shadow-lg)";
|
|
229
|
+
readonly xl: "var(--shadow-xl)";
|
|
230
|
+
};
|
|
231
|
+
readonly typography: {
|
|
232
|
+
readonly fontFamily: "var(--font-family-sans)";
|
|
233
|
+
readonly fontSizeXs: "var(--font-size-xs)";
|
|
234
|
+
readonly fontSizeSm: "var(--font-size-sm)";
|
|
235
|
+
readonly fontSizeBase: "var(--font-size-base)";
|
|
236
|
+
readonly fontSizeLg: "var(--font-size-lg)";
|
|
237
|
+
readonly fontSizeXl: "var(--font-size-xl)";
|
|
238
|
+
readonly fontSize2xl: "var(--font-size-2xl)";
|
|
239
|
+
readonly fontSize3xl: "var(--font-size-3xl)";
|
|
240
|
+
readonly fontWeightNormal: "var(--font-weight-normal)";
|
|
241
|
+
readonly fontWeightMedium: "var(--font-weight-medium)";
|
|
242
|
+
readonly fontWeightSemibold: "var(--font-weight-semibold)";
|
|
243
|
+
readonly fontWeightBold: "var(--font-weight-bold)";
|
|
244
|
+
readonly lineHeightTight: "var(--line-height-tight)";
|
|
245
|
+
readonly lineHeightSnug: "var(--line-height-snug)";
|
|
246
|
+
readonly lineHeightNormal: "var(--line-height-normal)";
|
|
247
|
+
readonly lineHeightRelaxed: "var(--line-height-relaxed)";
|
|
248
|
+
readonly letterSpacingTight: "var(--letter-spacing-tight)";
|
|
249
|
+
readonly letterSpacingNormal: "var(--letter-spacing-normal)";
|
|
250
|
+
readonly letterSpacingWide: "var(--letter-spacing-wide)";
|
|
251
|
+
};
|
|
252
|
+
readonly density: {
|
|
253
|
+
readonly controlXs: "var(--height-control-xs)";
|
|
254
|
+
readonly controlSm: "var(--height-control-sm)";
|
|
255
|
+
readonly controlMd: "var(--height-control-md)";
|
|
256
|
+
readonly controlLg: "var(--height-control-lg)";
|
|
257
|
+
readonly topbar: "var(--height-topbar)";
|
|
258
|
+
readonly sidebarExpanded: "var(--sidebar-expanded)";
|
|
259
|
+
readonly sidebarCollapsed: "var(--sidebar-collapsed)";
|
|
260
|
+
};
|
|
261
|
+
readonly motion: {
|
|
262
|
+
readonly durationInstant: "var(--duration-instant)";
|
|
263
|
+
readonly durationFast: "var(--duration-fast)";
|
|
264
|
+
readonly durationNormal: "var(--duration-normal)";
|
|
265
|
+
readonly durationSlow: "var(--duration-slow)";
|
|
266
|
+
readonly durationGentle: "var(--duration-gentle)";
|
|
267
|
+
readonly easeOutExpo: "var(--ease-out-expo)";
|
|
268
|
+
readonly easeOutQuart: "var(--ease-out-quart)";
|
|
269
|
+
readonly easeOutCubic: "var(--ease-out-cubic)";
|
|
270
|
+
readonly easeInOut: "var(--ease-in-out)";
|
|
271
|
+
readonly easeIn: "var(--ease-in)";
|
|
272
|
+
};
|
|
273
|
+
readonly zIndex: {
|
|
274
|
+
readonly base: "var(--z-base)";
|
|
275
|
+
readonly raised: "var(--z-raised)";
|
|
276
|
+
readonly dropdown: "var(--z-dropdown)";
|
|
277
|
+
readonly sticky: "var(--z-sticky)";
|
|
278
|
+
readonly topbar: "var(--z-topbar)";
|
|
279
|
+
readonly overlay: "var(--z-overlay)";
|
|
280
|
+
readonly modal: "var(--z-modal)";
|
|
281
|
+
readonly toast: "var(--z-toast)";
|
|
282
|
+
readonly tooltip: "var(--z-tooltip)";
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
type VarColorKey = keyof typeof vars.color;
|
|
286
|
+
type VarRadiusKey = keyof typeof vars.radius;
|
|
287
|
+
type VarShadowKey = keyof typeof vars.shadow;
|
|
288
|
+
type VarTypoKey = keyof typeof vars.typography;
|
|
289
|
+
type VarDensityKey = keyof typeof vars.density;
|
|
290
|
+
type VarMotionKey = keyof typeof vars.motion;
|
|
291
|
+
type VarZIndexKey = keyof typeof vars.zIndex;
|
|
292
|
+
|
|
293
|
+
export { COLORS as C, PALETTE as P, type SemanticColorKey as S, type VarColorKey as V, type SemanticSharedKey as a, type VarDensityKey as b, type VarMotionKey as c, type VarRadiusKey as d, type VarShadowKey as e, type VarTypoKey as f, type VarZIndexKey as g, semanticTokens as s, vars as v };
|