@cytario/design 9.5.1 → 9.6.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.css +2 -2
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/theme.css +24 -6
- package/src/styles/tokens.css +16 -20
package/package.json
CHANGED
package/src/styles/theme.css
CHANGED
|
@@ -376,27 +376,43 @@
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
+
/* Stock Tailwind animation keyframes (spin, pulse, ping, bounce) ship with
|
|
380
|
+
* the default theme when used. Only custom animations need keyframes here. */
|
|
381
|
+
@keyframes progress-bar {
|
|
382
|
+
0% {
|
|
383
|
+
transform: translateX(-100%);
|
|
384
|
+
}
|
|
385
|
+
100% {
|
|
386
|
+
transform: translateX(400%);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
379
390
|
/**
|
|
380
391
|
* Tailwind v4 @theme inline — maps every color token to itself via var() so
|
|
381
392
|
* that utilities like bg-primary, text-muted-foreground, bg-badge-purple-bg
|
|
382
393
|
* resolve at runtime and stay theme-reactive (dark mode just works).
|
|
383
394
|
*/
|
|
384
395
|
@theme inline {
|
|
396
|
+
/* Fonts */
|
|
385
397
|
--font-montserrat: "Montserrat", system-ui, sans-serif;
|
|
386
398
|
--font-sans: "Montserrat", system-ui, sans-serif;
|
|
399
|
+
|
|
400
|
+
/* Animations */
|
|
387
401
|
--animate-fade-in: fade-in 0.3s ease-in forwards;
|
|
388
402
|
--animate-pulse-once: pulse-once 0.1s ease-in-out 1 forwards;
|
|
389
|
-
--
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
--radius-
|
|
403
|
+
--animate-progress-bar: progress-bar 1.5s ease-in-out infinite;
|
|
404
|
+
|
|
405
|
+
/* Radii */
|
|
406
|
+
--radius-sm: 0.25rem;
|
|
407
|
+
--radius-md: 0.5rem;
|
|
408
|
+
--radius-lg: 0.75rem;
|
|
409
|
+
--radius-xl: 1rem;
|
|
393
410
|
|
|
394
411
|
/* Tooltip must paint above React Aria overlays (Menu, Dialog, Popover),
|
|
395
412
|
* which useOverlayPosition forces to zIndex 100000. */
|
|
396
413
|
--z-index-tooltip: 100001;
|
|
397
414
|
|
|
398
|
-
/*
|
|
399
|
-
|
|
415
|
+
/* Color Primitives */
|
|
400
416
|
--color-purple-50: var(--color-purple-50);
|
|
401
417
|
--color-purple-100: var(--color-purple-100);
|
|
402
418
|
--color-purple-200: var(--color-purple-200);
|
|
@@ -474,6 +490,8 @@
|
|
|
474
490
|
--color-blue-800: var(--color-blue-800);
|
|
475
491
|
--color-blue-900: var(--color-blue-900);
|
|
476
492
|
--color-blue-950: var(--color-blue-950);
|
|
493
|
+
|
|
494
|
+
/* Color Tokens */
|
|
477
495
|
--color-white: var(--color-white);
|
|
478
496
|
--color-black: var(--color-black);
|
|
479
497
|
--color-alpha-black80: var(--color-alpha-black80);
|
package/src/styles/tokens.css
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* The actual CSS variable values and component styles come from the
|
|
9
|
-
* pre-built `@cytario/design/styles.css` (`dist/index.css`).
|
|
10
|
-
*
|
|
11
|
-
* Usage in a consumer app's styles.css:
|
|
12
|
-
* @reference "@cytario/design/styles/tokens.css";
|
|
13
|
-
* @import "@cytario/design/styles.css";
|
|
14
|
-
* @import "tailwindcss";
|
|
15
|
-
*/
|
|
1
|
+
/* Strip certain Tailwind default values to enforce a narrow theme-defined set */
|
|
2
|
+
@theme {
|
|
3
|
+
--color-*: initial;
|
|
4
|
+
--radius-*: initial;
|
|
5
|
+
}
|
|
6
|
+
|
|
16
7
|
@theme inline {
|
|
8
|
+
/* Fonts */
|
|
17
9
|
--font-montserrat: "Montserrat", system-ui, sans-serif;
|
|
18
10
|
--font-sans: "Montserrat", system-ui, sans-serif;
|
|
11
|
+
|
|
12
|
+
/* Animations */
|
|
19
13
|
--animate-fade-in: fade-in 0.3s ease-in forwards;
|
|
20
14
|
--animate-pulse-once: pulse-once 0.1s ease-in-out 1 forwards;
|
|
21
|
-
--
|
|
22
|
-
--radius-md: 8px;
|
|
23
|
-
--radius-lg: 12px;
|
|
24
|
-
--radius-xl: 16px;
|
|
15
|
+
--animate-progress-bar: progress-bar 1.5s ease-in-out infinite;
|
|
25
16
|
|
|
26
|
-
/*
|
|
17
|
+
/* Radii */
|
|
18
|
+
--radius-sm: 0.25rem;
|
|
19
|
+
--radius-md: 0.5rem;
|
|
20
|
+
--radius-lg: 0.75rem;
|
|
21
|
+
--radius-xl: 1rem;
|
|
27
22
|
|
|
23
|
+
/* Color Tokens */
|
|
28
24
|
--color-purple-50: var(--color-purple-50);
|
|
29
25
|
--color-purple-100: var(--color-purple-100);
|
|
30
26
|
--color-purple-200: var(--color-purple-200);
|