@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cytario/design",
3
- "version": "9.5.1",
3
+ "version": "9.6.0",
4
4
  "description": "Cytario design system and brand portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- --radius-sm: 4px;
390
- --radius-md: 8px;
391
- --radius-lg: 12px;
392
- --radius-xl: 16px;
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
- /* Font sizes, weights, and line heights use Tailwind v4 defaults (rem-based, with line-height pairing). */
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);
@@ -1,30 +1,26 @@
1
- /**
2
- * Tailwind v4 @theme inline — token registration only (no CSS emission).
3
- *
4
- * Consumers use this via `@reference` so Tailwind can generate utilities for
5
- * every design-system color/font/radius/animation token without needing
6
- * `tw-animate-css` or `tailwindcss-react-aria-components` as deps.
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
- --radius-sm: 4px;
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
- /* Font sizes, weights, and line heights use Tailwind v4 defaults (rem-based, with line-height pairing). */
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);