@altrex-ui/styling 1.0.1 → 1.0.3
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/tokens.css +50 -0
- package/dist/tokens.d.ts +3 -0
- package/dist/tokens.js +178 -2
- package/dist/tokens.styl +95 -0
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -46,6 +46,44 @@
|
|
|
46
46
|
--altrex-colors-info-50: #e6f7ff;
|
|
47
47
|
--altrex-colors-info-500: #3b82f6;
|
|
48
48
|
--altrex-colors-info-900: #1e3a8a;
|
|
49
|
+
--altrex-colors-dark-bg-base: #0a0a0a;
|
|
50
|
+
--altrex-colors-dark-bg-surface: #121212;
|
|
51
|
+
--altrex-colors-dark-bg-elevated: #1e1e1e;
|
|
52
|
+
--altrex-colors-dark-bg-hover: #2a2a2a;
|
|
53
|
+
--altrex-colors-dark-bg-overlay: rgba(0, 0, 0, 0.85);
|
|
54
|
+
--altrex-colors-dark-text-primary: #ffffff;
|
|
55
|
+
--altrex-colors-dark-text-secondary: #b4b4b4;
|
|
56
|
+
--altrex-colors-dark-text-tertiary: #8a8a8a;
|
|
57
|
+
--altrex-colors-dark-text-disabled: #5a5a5a;
|
|
58
|
+
--altrex-colors-dark-text-inverse: #0a0a0a;
|
|
59
|
+
--altrex-colors-dark-border-default: #3a3a3a;
|
|
60
|
+
--altrex-colors-dark-border-subtle: #2a2a2a;
|
|
61
|
+
--altrex-colors-dark-border-strong: #4a4a4a;
|
|
62
|
+
--altrex-colors-dark-border-focus: #66b0ff;
|
|
63
|
+
--altrex-colors-dark-primary-default: #66b0ff;
|
|
64
|
+
--altrex-colors-dark-primary-hover: #3396ff;
|
|
65
|
+
--altrex-colors-dark-primary-active: #99cbff;
|
|
66
|
+
--altrex-colors-dark-primary-muted: #004a99;
|
|
67
|
+
--altrex-colors-dark-secondary-default: #a366ff;
|
|
68
|
+
--altrex-colors-dark-secondary-hover: #8533ff;
|
|
69
|
+
--altrex-colors-dark-secondary-active: #c299ff;
|
|
70
|
+
--altrex-colors-dark-secondary-muted: #3d0099;
|
|
71
|
+
--altrex-colors-dark-success-default: #34d399;
|
|
72
|
+
--altrex-colors-dark-success-hover: #10b981;
|
|
73
|
+
--altrex-colors-dark-success-bg: #064e3b;
|
|
74
|
+
--altrex-colors-dark-success-border: #065f46;
|
|
75
|
+
--altrex-colors-dark-warning-default: #fbbf24;
|
|
76
|
+
--altrex-colors-dark-warning-hover: #f59e0b;
|
|
77
|
+
--altrex-colors-dark-warning-bg: #78350f;
|
|
78
|
+
--altrex-colors-dark-warning-border: #92400e;
|
|
79
|
+
--altrex-colors-dark-error-default: #f87171;
|
|
80
|
+
--altrex-colors-dark-error-hover: #ef4444;
|
|
81
|
+
--altrex-colors-dark-error-bg: #7f1d1d;
|
|
82
|
+
--altrex-colors-dark-error-border: #991b1b;
|
|
83
|
+
--altrex-colors-dark-info-default: #60a5fa;
|
|
84
|
+
--altrex-colors-dark-info-hover: #3b82f6;
|
|
85
|
+
--altrex-colors-dark-info-bg: #1e3a8a;
|
|
86
|
+
--altrex-colors-dark-info-border: #1e40af;
|
|
49
87
|
--altrex-spacing-0: 0;
|
|
50
88
|
--altrex-spacing-1: 0.25rem;
|
|
51
89
|
--altrex-spacing-2: 0.5rem;
|
|
@@ -99,4 +137,16 @@
|
|
|
99
137
|
--altrex-breakpoints-lg: 1024px;
|
|
100
138
|
--altrex-breakpoints-xl: 1280px;
|
|
101
139
|
--altrex-breakpoints-2xl: 1536px;
|
|
140
|
+
--altrex-touchTarget-minimum: 44px;
|
|
141
|
+
--altrex-touchTarget-comfortable: 48px;
|
|
142
|
+
--altrex-touchTarget-spacious: 56px;
|
|
143
|
+
--altrex-fluidSpacing-xs: clamp(0.25rem, 1vw, 0.5rem);
|
|
144
|
+
--altrex-fluidSpacing-sm: clamp(0.5rem, 2vw, 1rem);
|
|
145
|
+
--altrex-fluidSpacing-md: clamp(1rem, 3vw, 2rem);
|
|
146
|
+
--altrex-fluidSpacing-lg: clamp(1.5rem, 4vw, 3rem);
|
|
147
|
+
--altrex-fluidSpacing-xl: clamp(2rem, 6vw, 4rem);
|
|
148
|
+
--altrex-fluidTypography-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
|
|
149
|
+
--altrex-fluidTypography-h1: clamp(2rem, 1.5rem + 2.5vw, 3rem);
|
|
150
|
+
--altrex-fluidTypography-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
|
|
151
|
+
--altrex-fluidTypography-h3: clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem);
|
|
102
152
|
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export const tokens: {
|
|
|
12
12
|
borderRadius: Record<string, string>;
|
|
13
13
|
shadow: Record<string, string>;
|
|
14
14
|
breakpoints: Record<string, string>;
|
|
15
|
+
touchTarget: Record<string, string>;
|
|
16
|
+
fluidSpacing: Record<string, string>;
|
|
17
|
+
fluidTypography: Record<string, string>;
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
export const flatTokens: Record<string, string>;
|
package/dist/tokens.js
CHANGED
|
@@ -60,6 +60,64 @@ export const tokens = {
|
|
|
60
60
|
"50": "#e6f7ff",
|
|
61
61
|
"500": "#3b82f6",
|
|
62
62
|
"900": "#1e3a8a"
|
|
63
|
+
},
|
|
64
|
+
"dark": {
|
|
65
|
+
"bg": {
|
|
66
|
+
"base": "#0a0a0a",
|
|
67
|
+
"surface": "#121212",
|
|
68
|
+
"elevated": "#1e1e1e",
|
|
69
|
+
"hover": "#2a2a2a",
|
|
70
|
+
"overlay": "rgba(0, 0, 0, 0.85)"
|
|
71
|
+
},
|
|
72
|
+
"text": {
|
|
73
|
+
"primary": "#ffffff",
|
|
74
|
+
"secondary": "#b4b4b4",
|
|
75
|
+
"tertiary": "#8a8a8a",
|
|
76
|
+
"disabled": "#5a5a5a",
|
|
77
|
+
"inverse": "#0a0a0a"
|
|
78
|
+
},
|
|
79
|
+
"border": {
|
|
80
|
+
"default": "#3a3a3a",
|
|
81
|
+
"subtle": "#2a2a2a",
|
|
82
|
+
"strong": "#4a4a4a",
|
|
83
|
+
"focus": "#66b0ff"
|
|
84
|
+
},
|
|
85
|
+
"primary": {
|
|
86
|
+
"default": "#66b0ff",
|
|
87
|
+
"hover": "#3396ff",
|
|
88
|
+
"active": "#99cbff",
|
|
89
|
+
"muted": "#004a99"
|
|
90
|
+
},
|
|
91
|
+
"secondary": {
|
|
92
|
+
"default": "#a366ff",
|
|
93
|
+
"hover": "#8533ff",
|
|
94
|
+
"active": "#c299ff",
|
|
95
|
+
"muted": "#3d0099"
|
|
96
|
+
},
|
|
97
|
+
"success": {
|
|
98
|
+
"default": "#34d399",
|
|
99
|
+
"hover": "#10b981",
|
|
100
|
+
"bg": "#064e3b",
|
|
101
|
+
"border": "#065f46"
|
|
102
|
+
},
|
|
103
|
+
"warning": {
|
|
104
|
+
"default": "#fbbf24",
|
|
105
|
+
"hover": "#f59e0b",
|
|
106
|
+
"bg": "#78350f",
|
|
107
|
+
"border": "#92400e"
|
|
108
|
+
},
|
|
109
|
+
"error": {
|
|
110
|
+
"default": "#f87171",
|
|
111
|
+
"hover": "#ef4444",
|
|
112
|
+
"bg": "#7f1d1d",
|
|
113
|
+
"border": "#991b1b"
|
|
114
|
+
},
|
|
115
|
+
"info": {
|
|
116
|
+
"default": "#60a5fa",
|
|
117
|
+
"hover": "#3b82f6",
|
|
118
|
+
"bg": "#1e3a8a",
|
|
119
|
+
"border": "#1e40af"
|
|
120
|
+
}
|
|
63
121
|
}
|
|
64
122
|
},
|
|
65
123
|
"spacing": {
|
|
@@ -128,6 +186,24 @@ export const tokens = {
|
|
|
128
186
|
"lg": "1024px",
|
|
129
187
|
"xl": "1280px",
|
|
130
188
|
"2xl": "1536px"
|
|
189
|
+
},
|
|
190
|
+
"touchTarget": {
|
|
191
|
+
"minimum": "44px",
|
|
192
|
+
"comfortable": "48px",
|
|
193
|
+
"spacious": "56px"
|
|
194
|
+
},
|
|
195
|
+
"fluidSpacing": {
|
|
196
|
+
"xs": "clamp(0.25rem, 1vw, 0.5rem)",
|
|
197
|
+
"sm": "clamp(0.5rem, 2vw, 1rem)",
|
|
198
|
+
"md": "clamp(1rem, 3vw, 2rem)",
|
|
199
|
+
"lg": "clamp(1.5rem, 4vw, 3rem)",
|
|
200
|
+
"xl": "clamp(2rem, 6vw, 4rem)"
|
|
201
|
+
},
|
|
202
|
+
"fluidTypography": {
|
|
203
|
+
"body": "clamp(1rem, 0.95rem + 0.25vw, 1.125rem)",
|
|
204
|
+
"h1": "clamp(2rem, 1.5rem + 2.5vw, 3rem)",
|
|
205
|
+
"h2": "clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem)",
|
|
206
|
+
"h3": "clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem)"
|
|
131
207
|
}
|
|
132
208
|
};
|
|
133
209
|
|
|
@@ -174,6 +250,44 @@ export const flatTokens = {
|
|
|
174
250
|
"colors.info.50": "#e6f7ff",
|
|
175
251
|
"colors.info.500": "#3b82f6",
|
|
176
252
|
"colors.info.900": "#1e3a8a",
|
|
253
|
+
"colors.dark.bg.base": "#0a0a0a",
|
|
254
|
+
"colors.dark.bg.surface": "#121212",
|
|
255
|
+
"colors.dark.bg.elevated": "#1e1e1e",
|
|
256
|
+
"colors.dark.bg.hover": "#2a2a2a",
|
|
257
|
+
"colors.dark.bg.overlay": "rgba(0, 0, 0, 0.85)",
|
|
258
|
+
"colors.dark.text.primary": "#ffffff",
|
|
259
|
+
"colors.dark.text.secondary": "#b4b4b4",
|
|
260
|
+
"colors.dark.text.tertiary": "#8a8a8a",
|
|
261
|
+
"colors.dark.text.disabled": "#5a5a5a",
|
|
262
|
+
"colors.dark.text.inverse": "#0a0a0a",
|
|
263
|
+
"colors.dark.border.default": "#3a3a3a",
|
|
264
|
+
"colors.dark.border.subtle": "#2a2a2a",
|
|
265
|
+
"colors.dark.border.strong": "#4a4a4a",
|
|
266
|
+
"colors.dark.border.focus": "#66b0ff",
|
|
267
|
+
"colors.dark.primary.default": "#66b0ff",
|
|
268
|
+
"colors.dark.primary.hover": "#3396ff",
|
|
269
|
+
"colors.dark.primary.active": "#99cbff",
|
|
270
|
+
"colors.dark.primary.muted": "#004a99",
|
|
271
|
+
"colors.dark.secondary.default": "#a366ff",
|
|
272
|
+
"colors.dark.secondary.hover": "#8533ff",
|
|
273
|
+
"colors.dark.secondary.active": "#c299ff",
|
|
274
|
+
"colors.dark.secondary.muted": "#3d0099",
|
|
275
|
+
"colors.dark.success.default": "#34d399",
|
|
276
|
+
"colors.dark.success.hover": "#10b981",
|
|
277
|
+
"colors.dark.success.bg": "#064e3b",
|
|
278
|
+
"colors.dark.success.border": "#065f46",
|
|
279
|
+
"colors.dark.warning.default": "#fbbf24",
|
|
280
|
+
"colors.dark.warning.hover": "#f59e0b",
|
|
281
|
+
"colors.dark.warning.bg": "#78350f",
|
|
282
|
+
"colors.dark.warning.border": "#92400e",
|
|
283
|
+
"colors.dark.error.default": "#f87171",
|
|
284
|
+
"colors.dark.error.hover": "#ef4444",
|
|
285
|
+
"colors.dark.error.bg": "#7f1d1d",
|
|
286
|
+
"colors.dark.error.border": "#991b1b",
|
|
287
|
+
"colors.dark.info.default": "#60a5fa",
|
|
288
|
+
"colors.dark.info.hover": "#3b82f6",
|
|
289
|
+
"colors.dark.info.bg": "#1e3a8a",
|
|
290
|
+
"colors.dark.info.border": "#1e40af",
|
|
177
291
|
"spacing.0": "0",
|
|
178
292
|
"spacing.1": "0.25rem",
|
|
179
293
|
"spacing.2": "0.5rem",
|
|
@@ -226,7 +340,19 @@ export const flatTokens = {
|
|
|
226
340
|
"breakpoints.md": "768px",
|
|
227
341
|
"breakpoints.lg": "1024px",
|
|
228
342
|
"breakpoints.xl": "1280px",
|
|
229
|
-
"breakpoints.2xl": "1536px"
|
|
343
|
+
"breakpoints.2xl": "1536px",
|
|
344
|
+
"touchTarget.minimum": "44px",
|
|
345
|
+
"touchTarget.comfortable": "48px",
|
|
346
|
+
"touchTarget.spacious": "56px",
|
|
347
|
+
"fluidSpacing.xs": "clamp(0.25rem, 1vw, 0.5rem)",
|
|
348
|
+
"fluidSpacing.sm": "clamp(0.5rem, 2vw, 1rem)",
|
|
349
|
+
"fluidSpacing.md": "clamp(1rem, 3vw, 2rem)",
|
|
350
|
+
"fluidSpacing.lg": "clamp(1.5rem, 4vw, 3rem)",
|
|
351
|
+
"fluidSpacing.xl": "clamp(2rem, 6vw, 4rem)",
|
|
352
|
+
"fluidTypography.body": "clamp(1rem, 0.95rem + 0.25vw, 1.125rem)",
|
|
353
|
+
"fluidTypography.h1": "clamp(2rem, 1.5rem + 2.5vw, 3rem)",
|
|
354
|
+
"fluidTypography.h2": "clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem)",
|
|
355
|
+
"fluidTypography.h3": "clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem)"
|
|
230
356
|
};
|
|
231
357
|
|
|
232
358
|
export const cssVarNames = {
|
|
@@ -272,6 +398,44 @@ export const cssVarNames = {
|
|
|
272
398
|
"colors.info.50": "--altrex-colors-info-50",
|
|
273
399
|
"colors.info.500": "--altrex-colors-info-500",
|
|
274
400
|
"colors.info.900": "--altrex-colors-info-900",
|
|
401
|
+
"colors.dark.bg.base": "--altrex-colors-dark-bg-base",
|
|
402
|
+
"colors.dark.bg.surface": "--altrex-colors-dark-bg-surface",
|
|
403
|
+
"colors.dark.bg.elevated": "--altrex-colors-dark-bg-elevated",
|
|
404
|
+
"colors.dark.bg.hover": "--altrex-colors-dark-bg-hover",
|
|
405
|
+
"colors.dark.bg.overlay": "--altrex-colors-dark-bg-overlay",
|
|
406
|
+
"colors.dark.text.primary": "--altrex-colors-dark-text-primary",
|
|
407
|
+
"colors.dark.text.secondary": "--altrex-colors-dark-text-secondary",
|
|
408
|
+
"colors.dark.text.tertiary": "--altrex-colors-dark-text-tertiary",
|
|
409
|
+
"colors.dark.text.disabled": "--altrex-colors-dark-text-disabled",
|
|
410
|
+
"colors.dark.text.inverse": "--altrex-colors-dark-text-inverse",
|
|
411
|
+
"colors.dark.border.default": "--altrex-colors-dark-border-default",
|
|
412
|
+
"colors.dark.border.subtle": "--altrex-colors-dark-border-subtle",
|
|
413
|
+
"colors.dark.border.strong": "--altrex-colors-dark-border-strong",
|
|
414
|
+
"colors.dark.border.focus": "--altrex-colors-dark-border-focus",
|
|
415
|
+
"colors.dark.primary.default": "--altrex-colors-dark-primary-default",
|
|
416
|
+
"colors.dark.primary.hover": "--altrex-colors-dark-primary-hover",
|
|
417
|
+
"colors.dark.primary.active": "--altrex-colors-dark-primary-active",
|
|
418
|
+
"colors.dark.primary.muted": "--altrex-colors-dark-primary-muted",
|
|
419
|
+
"colors.dark.secondary.default": "--altrex-colors-dark-secondary-default",
|
|
420
|
+
"colors.dark.secondary.hover": "--altrex-colors-dark-secondary-hover",
|
|
421
|
+
"colors.dark.secondary.active": "--altrex-colors-dark-secondary-active",
|
|
422
|
+
"colors.dark.secondary.muted": "--altrex-colors-dark-secondary-muted",
|
|
423
|
+
"colors.dark.success.default": "--altrex-colors-dark-success-default",
|
|
424
|
+
"colors.dark.success.hover": "--altrex-colors-dark-success-hover",
|
|
425
|
+
"colors.dark.success.bg": "--altrex-colors-dark-success-bg",
|
|
426
|
+
"colors.dark.success.border": "--altrex-colors-dark-success-border",
|
|
427
|
+
"colors.dark.warning.default": "--altrex-colors-dark-warning-default",
|
|
428
|
+
"colors.dark.warning.hover": "--altrex-colors-dark-warning-hover",
|
|
429
|
+
"colors.dark.warning.bg": "--altrex-colors-dark-warning-bg",
|
|
430
|
+
"colors.dark.warning.border": "--altrex-colors-dark-warning-border",
|
|
431
|
+
"colors.dark.error.default": "--altrex-colors-dark-error-default",
|
|
432
|
+
"colors.dark.error.hover": "--altrex-colors-dark-error-hover",
|
|
433
|
+
"colors.dark.error.bg": "--altrex-colors-dark-error-bg",
|
|
434
|
+
"colors.dark.error.border": "--altrex-colors-dark-error-border",
|
|
435
|
+
"colors.dark.info.default": "--altrex-colors-dark-info-default",
|
|
436
|
+
"colors.dark.info.hover": "--altrex-colors-dark-info-hover",
|
|
437
|
+
"colors.dark.info.bg": "--altrex-colors-dark-info-bg",
|
|
438
|
+
"colors.dark.info.border": "--altrex-colors-dark-info-border",
|
|
275
439
|
"spacing.0": "--altrex-spacing-0",
|
|
276
440
|
"spacing.1": "--altrex-spacing-1",
|
|
277
441
|
"spacing.2": "--altrex-spacing-2",
|
|
@@ -324,5 +488,17 @@ export const cssVarNames = {
|
|
|
324
488
|
"breakpoints.md": "--altrex-breakpoints-md",
|
|
325
489
|
"breakpoints.lg": "--altrex-breakpoints-lg",
|
|
326
490
|
"breakpoints.xl": "--altrex-breakpoints-xl",
|
|
327
|
-
"breakpoints.2xl": "--altrex-breakpoints-2xl"
|
|
491
|
+
"breakpoints.2xl": "--altrex-breakpoints-2xl",
|
|
492
|
+
"touchTarget.minimum": "--altrex-touchTarget-minimum",
|
|
493
|
+
"touchTarget.comfortable": "--altrex-touchTarget-comfortable",
|
|
494
|
+
"touchTarget.spacious": "--altrex-touchTarget-spacious",
|
|
495
|
+
"fluidSpacing.xs": "--altrex-fluidSpacing-xs",
|
|
496
|
+
"fluidSpacing.sm": "--altrex-fluidSpacing-sm",
|
|
497
|
+
"fluidSpacing.md": "--altrex-fluidSpacing-md",
|
|
498
|
+
"fluidSpacing.lg": "--altrex-fluidSpacing-lg",
|
|
499
|
+
"fluidSpacing.xl": "--altrex-fluidSpacing-xl",
|
|
500
|
+
"fluidTypography.body": "--altrex-fluidTypography-body",
|
|
501
|
+
"fluidTypography.h1": "--altrex-fluidTypography-h1",
|
|
502
|
+
"fluidTypography.h2": "--altrex-fluidTypography-h2",
|
|
503
|
+
"fluidTypography.h3": "--altrex-fluidTypography-h3"
|
|
328
504
|
};
|
package/dist/tokens.styl
CHANGED
|
@@ -45,6 +45,44 @@ $altrex-colors-error-900 = #7f1d1d
|
|
|
45
45
|
$altrex-colors-info-50 = #e6f7ff
|
|
46
46
|
$altrex-colors-info-500 = #3b82f6
|
|
47
47
|
$altrex-colors-info-900 = #1e3a8a
|
|
48
|
+
$altrex-colors-dark-bg-base = #0a0a0a
|
|
49
|
+
$altrex-colors-dark-bg-surface = #121212
|
|
50
|
+
$altrex-colors-dark-bg-elevated = #1e1e1e
|
|
51
|
+
$altrex-colors-dark-bg-hover = #2a2a2a
|
|
52
|
+
$altrex-colors-dark-bg-overlay = rgba(0, 0, 0, 0.85)
|
|
53
|
+
$altrex-colors-dark-text-primary = #ffffff
|
|
54
|
+
$altrex-colors-dark-text-secondary = #b4b4b4
|
|
55
|
+
$altrex-colors-dark-text-tertiary = #8a8a8a
|
|
56
|
+
$altrex-colors-dark-text-disabled = #5a5a5a
|
|
57
|
+
$altrex-colors-dark-text-inverse = #0a0a0a
|
|
58
|
+
$altrex-colors-dark-border-default = #3a3a3a
|
|
59
|
+
$altrex-colors-dark-border-subtle = #2a2a2a
|
|
60
|
+
$altrex-colors-dark-border-strong = #4a4a4a
|
|
61
|
+
$altrex-colors-dark-border-focus = #66b0ff
|
|
62
|
+
$altrex-colors-dark-primary-default = #66b0ff
|
|
63
|
+
$altrex-colors-dark-primary-hover = #3396ff
|
|
64
|
+
$altrex-colors-dark-primary-active = #99cbff
|
|
65
|
+
$altrex-colors-dark-primary-muted = #004a99
|
|
66
|
+
$altrex-colors-dark-secondary-default = #a366ff
|
|
67
|
+
$altrex-colors-dark-secondary-hover = #8533ff
|
|
68
|
+
$altrex-colors-dark-secondary-active = #c299ff
|
|
69
|
+
$altrex-colors-dark-secondary-muted = #3d0099
|
|
70
|
+
$altrex-colors-dark-success-default = #34d399
|
|
71
|
+
$altrex-colors-dark-success-hover = #10b981
|
|
72
|
+
$altrex-colors-dark-success-bg = #064e3b
|
|
73
|
+
$altrex-colors-dark-success-border = #065f46
|
|
74
|
+
$altrex-colors-dark-warning-default = #fbbf24
|
|
75
|
+
$altrex-colors-dark-warning-hover = #f59e0b
|
|
76
|
+
$altrex-colors-dark-warning-bg = #78350f
|
|
77
|
+
$altrex-colors-dark-warning-border = #92400e
|
|
78
|
+
$altrex-colors-dark-error-default = #f87171
|
|
79
|
+
$altrex-colors-dark-error-hover = #ef4444
|
|
80
|
+
$altrex-colors-dark-error-bg = #7f1d1d
|
|
81
|
+
$altrex-colors-dark-error-border = #991b1b
|
|
82
|
+
$altrex-colors-dark-info-default = #60a5fa
|
|
83
|
+
$altrex-colors-dark-info-hover = #3b82f6
|
|
84
|
+
$altrex-colors-dark-info-bg = #1e3a8a
|
|
85
|
+
$altrex-colors-dark-info-border = #1e40af
|
|
48
86
|
$altrex-spacing-0 = 0
|
|
49
87
|
$altrex-spacing-1 = 0.25rem
|
|
50
88
|
$altrex-spacing-2 = 0.5rem
|
|
@@ -98,6 +136,18 @@ $altrex-breakpoints-md = 768px
|
|
|
98
136
|
$altrex-breakpoints-lg = 1024px
|
|
99
137
|
$altrex-breakpoints-xl = 1280px
|
|
100
138
|
$altrex-breakpoints-2xl = 1536px
|
|
139
|
+
$altrex-touchTarget-minimum = 44px
|
|
140
|
+
$altrex-touchTarget-comfortable = 48px
|
|
141
|
+
$altrex-touchTarget-spacious = 56px
|
|
142
|
+
$altrex-fluidSpacing-xs = clamp(0.25rem, 1vw, 0.5rem)
|
|
143
|
+
$altrex-fluidSpacing-sm = clamp(0.5rem, 2vw, 1rem)
|
|
144
|
+
$altrex-fluidSpacing-md = clamp(1rem, 3vw, 2rem)
|
|
145
|
+
$altrex-fluidSpacing-lg = clamp(1.5rem, 4vw, 3rem)
|
|
146
|
+
$altrex-fluidSpacing-xl = clamp(2rem, 6vw, 4rem)
|
|
147
|
+
$altrex-fluidTypography-body = clamp(1rem, 0.95rem + 0.25vw, 1.125rem)
|
|
148
|
+
$altrex-fluidTypography-h1 = clamp(2rem, 1.5rem + 2.5vw, 3rem)
|
|
149
|
+
$altrex-fluidTypography-h2 = clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem)
|
|
150
|
+
$altrex-fluidTypography-h3 = clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem)
|
|
101
151
|
|
|
102
152
|
// Component-specific tokens
|
|
103
153
|
$altrex-border-radius-button-default = $altrex-borderRadius-default
|
|
@@ -132,3 +182,48 @@ altrex-icon-xl()
|
|
|
132
182
|
altrex-icon-xxl()
|
|
133
183
|
height: 64px
|
|
134
184
|
width: 64px
|
|
185
|
+
|
|
186
|
+
// Mobile-first breakpoint mixin
|
|
187
|
+
// Usage: +above('md') { /* styles */ }
|
|
188
|
+
above(breakpoint)
|
|
189
|
+
@media (min-width: lookup('$altrex-breakpoints-' + breakpoint))
|
|
190
|
+
{block}
|
|
191
|
+
|
|
192
|
+
// Touch-first interaction detection
|
|
193
|
+
// Usage: +touch-device() { /* styles */ }
|
|
194
|
+
touch-device()
|
|
195
|
+
@media (hover: none) and (pointer: coarse)
|
|
196
|
+
{block}
|
|
197
|
+
|
|
198
|
+
// Touch target sizing (WCAG 2.1 Level AAA)
|
|
199
|
+
// Usage: touch-target() or touch-target('comfortable')
|
|
200
|
+
touch-target(size = 'minimum')
|
|
201
|
+
min-width: lookup('$altrex-touchTarget-' + size)
|
|
202
|
+
min-height: lookup('$altrex-touchTarget-' + size)
|
|
203
|
+
display: inline-flex
|
|
204
|
+
align-items: center
|
|
205
|
+
justify-content: center
|
|
206
|
+
|
|
207
|
+
// Container with mobile padding
|
|
208
|
+
// Usage: container-width() or container-width($altrex-breakpoints-lg)
|
|
209
|
+
container-width(max-width = '100%')
|
|
210
|
+
width: 100%
|
|
211
|
+
max-width: max-width
|
|
212
|
+
margin-left: auto
|
|
213
|
+
margin-right: auto
|
|
214
|
+
padding-left: $altrex-spacing-4
|
|
215
|
+
padding-right: $altrex-spacing-4
|
|
216
|
+
|
|
217
|
+
+above('md')
|
|
218
|
+
padding-left: $altrex-spacing-6
|
|
219
|
+
padding-right: $altrex-spacing-6
|
|
220
|
+
|
|
221
|
+
// Stack to row pattern
|
|
222
|
+
// Usage: stack-to-row() or stack-to-row('lg')
|
|
223
|
+
stack-to-row(breakpoint = 'md')
|
|
224
|
+
display: flex
|
|
225
|
+
flex-direction: column
|
|
226
|
+
gap: $altrex-spacing-4
|
|
227
|
+
|
|
228
|
+
+above(breakpoint)
|
|
229
|
+
flex-direction: row
|