@astryx-vue/themes 0.3.0 → 0.4.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.
Files changed (94) hide show
  1. package/butter/badge.css +5 -0
  2. package/butter/banner.css +29 -0
  3. package/butter/base.css +16 -89
  4. package/butter/button.css +6 -0
  5. package/butter/card.css +81 -0
  6. package/butter/input.css +13 -10
  7. package/butter/mobile-type.css +55 -0
  8. package/butter/progress-bar.css +5 -4
  9. package/butter/section.css +7 -0
  10. package/butter/top-nav.css +35 -0
  11. package/butter.css +4 -0
  12. package/chocolate/base.css +17 -90
  13. package/chocolate/button.css +4 -6
  14. package/chocolate/card.css +1 -0
  15. package/chocolate/mobile-type.css +55 -0
  16. package/chocolate/section.css +7 -0
  17. package/chocolate.css +3 -0
  18. package/data.css +84 -0
  19. package/gothic/badge.css +1 -0
  20. package/gothic/banner.css +32 -0
  21. package/gothic/base.css +16 -89
  22. package/gothic/card.css +57 -0
  23. package/gothic/code.css +5 -4
  24. package/gothic/section.css +7 -0
  25. package/gothic.css +2 -0
  26. package/matcha/base.css +3 -76
  27. package/matcha/button.css +1 -0
  28. package/matcha/card.css +2 -0
  29. package/matcha/section.css +8 -0
  30. package/matcha.css +2 -0
  31. package/neutral/alert-dialog.css +2 -2
  32. package/neutral/avatar-group.css +3 -3
  33. package/neutral/avatar.css +7 -7
  34. package/neutral/badge.css +31 -28
  35. package/neutral/banner.css +57 -10
  36. package/neutral/base.css +123 -190
  37. package/neutral/bottom-sheet.css +6 -6
  38. package/neutral/button.css +15 -5
  39. package/neutral/card.css +12 -12
  40. package/neutral/chat.css +1 -1
  41. package/neutral/checkbox.css +5 -5
  42. package/neutral/code.css +10 -12
  43. package/neutral/collapsible.css +4 -4
  44. package/neutral/context-menu.css +8 -8
  45. package/neutral/dialog.css +3 -3
  46. package/neutral/divider.css +3 -3
  47. package/neutral/dropdown-menu.css +4 -4
  48. package/neutral/empty-state.css +2 -2
  49. package/neutral/heading.css +13 -15
  50. package/neutral/hover-card.css +3 -3
  51. package/neutral/icon.css +2 -2
  52. package/neutral/input.css +12 -12
  53. package/neutral/kbd.css +1 -1
  54. package/neutral/link.css +3 -3
  55. package/neutral/list.css +2 -2
  56. package/neutral/local-tokens.css +29 -0
  57. package/neutral/mobile-type.css +42 -0
  58. package/neutral/more-menu.css +9 -9
  59. package/neutral/overlay.css +1 -1
  60. package/neutral/popover.css +2 -2
  61. package/neutral/progress-bar.css +6 -6
  62. package/neutral/{skeleton.css → section.css} +1 -1
  63. package/neutral/segmented-control.css +35 -12
  64. package/neutral/slider.css +3 -3
  65. package/neutral/spinner.css +4 -4
  66. package/neutral/status-dot.css +4 -4
  67. package/neutral/stepper.css +16 -0
  68. package/neutral/switch.css +3 -3
  69. package/neutral/text.css +7 -17
  70. package/neutral/toast.css +1 -1
  71. package/neutral/toggle-button.css +1 -1
  72. package/neutral/tooltip.css +3 -3
  73. package/neutral.css +5 -1
  74. package/package.json +2 -1
  75. package/stone/banner.css +29 -0
  76. package/stone/base.css +16 -89
  77. package/stone/button.css +5 -6
  78. package/stone/card.css +1 -0
  79. package/stone/code.css +5 -4
  80. package/stone/input.css +7 -6
  81. package/stone/mobile-type.css +55 -0
  82. package/stone/progress-bar.css +6 -4
  83. package/stone/section.css +7 -0
  84. package/stone/switch.css +1 -1
  85. package/stone.css +3 -0
  86. package/y2k/badge.css +5 -0
  87. package/y2k/banner.css +29 -0
  88. package/y2k/base.css +6 -79
  89. package/y2k/button.css +15 -6
  90. package/y2k/card.css +1 -0
  91. package/y2k/code.css +5 -4
  92. package/y2k/section.css +7 -0
  93. package/y2k/top-nav.css +22 -0
  94. package/y2k.css +3 -0
package/neutral/badge.css CHANGED
@@ -3,34 +3,37 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-badge-neutral-background: light-dark(#e5e5e5, #ffffff1a);
7
- --astryx-badge-neutral-foreground: light-dark(#262626, #e5e5e5);
8
- --astryx-badge-info-background: light-dark(#0074e2, #6d9cfe);
9
- --astryx-badge-info-foreground: light-dark(#ffffff, #171717);
10
- --astryx-badge-success-background: light-dark(#198100, #64af4c);
11
- --astryx-badge-success-foreground: light-dark(#ffffff, #171717);
12
- --astryx-badge-warning-background: #ffce2f;
13
- --astryx-badge-warning-foreground: #171717;
14
- --astryx-badge-error-background: light-dark(#e33f4a, #ff705d);
15
- --astryx-badge-error-foreground: light-dark(#ffffff, #171717);
6
+ /* Status fills are approved on their own, so they come from the theme-local
7
+ status tokens instead of the semantic text colors. */
8
+ --astryx-badge-info-background: var(--astryx-theme-neutral-color-status-fill-accent);
9
+ --astryx-badge-info-foreground: var(--astryx-color-on-accent);
10
+ --astryx-badge-success-background: var(--astryx-theme-neutral-color-status-fill-success);
11
+ --astryx-badge-success-foreground: var(--astryx-color-on-success);
12
+ --astryx-badge-warning-background: var(--astryx-theme-neutral-color-status-fill-warning);
13
+ --astryx-badge-warning-foreground: var(--astryx-color-on-warning);
14
+ --astryx-badge-error-background: var(--astryx-theme-neutral-color-status-fill-error);
15
+ --astryx-badge-error-foreground: var(--astryx-color-on-error);
16
16
 
17
- --astryx-badge-blue-background: light-dark(#c4ddfb, #9eb7ff3d);
18
- --astryx-badge-blue-foreground: light-dark(#00458c, #c7d3ff);
19
- --astryx-badge-cyan-background: light-dark(#a3e0ef, #83c2d43d);
20
- --astryx-badge-cyan-foreground: light-dark(#00505f, #9edef0);
21
- --astryx-badge-green-background: light-dark(#c5e5c0, #84c9803d);
22
- --astryx-badge-green-foreground: light-dark(#0c5700, #9fe59b);
23
- --astryx-badge-orange-background: light-dark(#fad0b5, #ffa2583d);
24
- --astryx-badge-orange-foreground: light-dark(#6e3500, #ffc9a2);
25
- --astryx-badge-pink-background: light-dark(#fccadc, #ff99c33d);
26
- --astryx-badge-pink-foreground: light-dark(#83004b, #ffc3da);
27
- --astryx-badge-purple-background: light-dark(#eccef3, #f297ff3d);
28
- --astryx-badge-purple-foreground: light-dark(#700084, #fac1ff);
29
- --astryx-badge-red-background: light-dark(#facecb, #ff9e973d);
30
- --astryx-badge-red-foreground: light-dark(#89001a, #ffc6c1);
31
- --astryx-badge-teal-background: light-dark(#a5e3d6, #7ec6b83d);
32
- --astryx-badge-teal-foreground: light-dark(#005348, #99e2d3);
33
- --astryx-badge-yellow-background: light-dark(#f8da9d, #deb4333d);
34
- --astryx-badge-yellow-foreground: light-dark(#584400, #fdcf4f);
17
+ --astryx-badge-neutral-background: var(--astryx-color-background-gray);
18
+ --astryx-badge-neutral-foreground: var(--astryx-color-text-gray);
19
+
20
+ --astryx-badge-blue-background: var(--astryx-color-background-blue);
21
+ --astryx-badge-blue-foreground: var(--astryx-color-text-blue);
22
+ --astryx-badge-cyan-background: var(--astryx-color-background-cyan);
23
+ --astryx-badge-cyan-foreground: var(--astryx-color-text-cyan);
24
+ --astryx-badge-green-background: var(--astryx-color-background-green);
25
+ --astryx-badge-green-foreground: var(--astryx-color-text-green);
26
+ --astryx-badge-orange-background: var(--astryx-color-background-orange);
27
+ --astryx-badge-orange-foreground: var(--astryx-color-text-orange);
28
+ --astryx-badge-pink-background: var(--astryx-color-background-pink);
29
+ --astryx-badge-pink-foreground: var(--astryx-color-text-pink);
30
+ --astryx-badge-purple-background: var(--astryx-color-background-purple);
31
+ --astryx-badge-purple-foreground: var(--astryx-color-text-purple);
32
+ --astryx-badge-red-background: var(--astryx-color-background-red);
33
+ --astryx-badge-red-foreground: var(--astryx-color-text-red);
34
+ --astryx-badge-teal-background: var(--astryx-color-background-teal);
35
+ --astryx-badge-teal-foreground: var(--astryx-color-text-teal);
36
+ --astryx-badge-yellow-background: var(--astryx-color-background-yellow);
37
+ --astryx-badge-yellow-foreground: var(--astryx-color-text-yellow);
35
38
  }
36
39
  }
@@ -1,16 +1,63 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
2
3
  @layer astryx.tokens {
3
4
  :root,
4
5
  [data-astryx-theme='neutral'] {
5
- --astryx-banner-info-background: light-dark(#f5f5f5, #262626);
6
- --astryx-banner-info-foreground: light-dark(#262626, #ebebeb);
7
- --astryx-banner-error-background: light-dark(#facecb, #ff9e973d);
8
- --astryx-banner-error-foreground: light-dark(#89001a, #ffc6c1);
9
- --astryx-banner-warning-background: light-dark(#f8da9d, #deb4333d);
10
- --astryx-banner-warning-foreground: light-dark(#584400, #fdcf4f);
11
- --astryx-banner-success-background: light-dark(#c5e5c0, #84c9803d);
12
- --astryx-banner-success-foreground: light-dark(#0c5700, #9fe59b);
13
- --astryx-banner-content-background: light-dark(#fff, #171717);
14
- --astryx-banner-border: light-dark(#e5e5e5, #404040);
6
+ /* Surfaces. Info gets its own muted blue; the other statuses reuse the
7
+ semantic muted backgrounds. */
8
+ --astryx-banner-info-background: var(--astryx-theme-neutral-color-status-muted-accent);
9
+ --astryx-banner-error-background: var(--astryx-color-error-muted);
10
+ --astryx-banner-warning-background: var(--astryx-color-warning-muted);
11
+ --astryx-banner-success-background: var(--astryx-color-success-muted);
12
+
13
+ --astryx-banner-info-foreground: var(--astryx-color-text-blue);
14
+ --astryx-banner-error-foreground: var(--astryx-color-text-red);
15
+ --astryx-banner-warning-foreground: var(--astryx-color-text-yellow);
16
+ --astryx-banner-success-foreground: var(--astryx-color-text-green);
17
+
18
+ --astryx-banner-content-background: var(--astryx-color-background-card);
19
+ --astryx-banner-border: var(--astryx-color-border);
20
+ }
21
+ }
22
+
23
+ /*
24
+ * The banner header paints its title, description, icon and trailing actions
25
+ * from the shared surface tokens, so a status recolors them by re-pointing
26
+ * those tokens on the banner itself — the same tinting the upstream theme does.
27
+ */
28
+ @layer astryx.overrides {
29
+ :root .astryx-banner,
30
+ [data-astryx-theme='neutral'] .astryx-banner {
31
+ --astryx-color-neutral: var(--astryx-theme-neutral-color-on-tint-neutral);
32
+ --astryx-color-overlay-hover: var(--astryx-theme-neutral-color-on-tint-overlay-hover);
33
+ --astryx-color-overlay-pressed: var(--astryx-theme-neutral-color-on-tint-overlay-pressed);
34
+ }
35
+
36
+ :root .astryx-banner[data-status='info'],
37
+ [data-astryx-theme='neutral'] .astryx-banner[data-status='info'] {
38
+ --astryx-color-text-primary: var(--astryx-color-text-blue);
39
+ --astryx-color-text-secondary: var(--astryx-color-text-blue);
40
+ --astryx-color-accent: var(--astryx-color-text-blue);
41
+ }
42
+
43
+ :root .astryx-banner[data-status='success'],
44
+ [data-astryx-theme='neutral'] .astryx-banner[data-status='success'] {
45
+ --astryx-color-text-primary: var(--astryx-color-text-green);
46
+ --astryx-color-text-secondary: var(--astryx-color-text-green);
47
+ --astryx-color-success: var(--astryx-color-text-green);
48
+ }
49
+
50
+ :root .astryx-banner[data-status='warning'],
51
+ [data-astryx-theme='neutral'] .astryx-banner[data-status='warning'] {
52
+ --astryx-color-text-primary: var(--astryx-color-text-yellow);
53
+ --astryx-color-text-secondary: var(--astryx-color-text-yellow);
54
+ --astryx-color-warning: var(--astryx-color-text-yellow);
55
+ }
56
+
57
+ :root .astryx-banner[data-status='error'],
58
+ [data-astryx-theme='neutral'] .astryx-banner[data-status='error'] {
59
+ --astryx-color-text-primary: var(--astryx-color-text-red);
60
+ --astryx-color-text-secondary: var(--astryx-color-text-red);
61
+ --astryx-color-error: var(--astryx-color-text-red);
15
62
  }
16
63
  }
package/neutral/base.css CHANGED
@@ -1,20 +1,16 @@
1
1
  /**
2
2
  * Neutral semantic tokens.
3
3
  *
4
- * Names follow upstream theme/tokens.stylex.ts, with an --astryx- prefix.
5
- * When packages/themes/neutral overrides a token, that value is used.
6
- * Otherwise the value is the default from tokens.stylex.ts.
4
+ * Names follow the upstream token sheet (packages/core/src/theme/tokens.stylex.ts),
5
+ * with an --astryx- prefix. When the Neutral theme overrides a token, the value
6
+ * below is the override; otherwise it is the core default.
7
7
  * Both stops are written with light-dark().
8
8
  *
9
- * Durations are the neutral motion scale:
10
- * { fast: 125, medium: 300, slow: 700, ratio: 0.75 }, rounded to 5ms.
9
+ * Every color traces back to the reviewed palette in upstream
10
+ * packages/themes/neutral/src/neutralPaletteRefs.generated.ts.
11
11
  *
12
- * Two values stay as this package already shipped them, so existing
13
- * components do not change appearance:
14
- * - radius-none stays 0. Upstream neutral uses 0.25rem, which would round
15
- * square avatars and skeletons that treat this token as a square corner.
16
- * - color-text-secondary's light stop stays #525252. Upstream neutral uses
17
- * #737373. Inputs, selectors, and supporting text already use this value.
12
+ * Durations follow neutral's motion scale:
13
+ * { fast: 125, medium: 300, slow: 700, ratio: 0.75 }, rounded to 5ms.
18
14
  */
19
15
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
20
16
 
@@ -23,190 +19,121 @@
23
19
  [data-astryx-theme='neutral'] {
24
20
  color-scheme: light dark;
25
21
 
26
- --astryx-color-accent: light-dark(#262626, #ebebeb);
27
- --astryx-color-accent-muted: light-dark(#f1f1f1, #262626);
28
- --astryx-color-on-accent: light-dark(#ffffff, #171717);
29
- --astryx-color-neutral: light-dark(#0000000f, #ffffff1a);
30
22
  --astryx-color-background-surface: light-dark(#ffffff, #262626);
31
23
  --astryx-color-background-body: light-dark(#f1f1f1, #1b1b1b);
32
- --astryx-color-overlay: light-dark(#00000080, #000000cc);
33
- --astryx-color-overlay-hover: light-dark(#0000000d, #ffffff0d);
34
- --astryx-color-overlay-pressed: light-dark(#0000001a, #ffffff1a);
24
+ --astryx-color-background-card: light-dark(#ffffff, #1b1b1b);
25
+ --astryx-color-background-popover: light-dark(#ffffff, #1b1b1b);
35
26
  --astryx-color-background-muted: light-dark(#f1f1f1, #1b1b1b);
36
27
 
37
- --astryx-color-text-primary: light-dark(#171717, #fafafa);
38
- --astryx-color-text-secondary: light-dark(#525252, #a3a3a3);
39
- --astryx-color-text-disabled: light-dark(#a3a3a3, #525252);
40
- --astryx-color-text-accent: light-dark(#262626, #ebebeb);
41
- --astryx-color-on-dark: light-dark(#ffffff, #ffffff);
42
- --astryx-color-on-light: light-dark(#171717, #171717);
43
-
44
- --astryx-color-icon-accent: light-dark(#262626, #ebebeb);
45
- --astryx-color-icon-primary: light-dark(#171717, #fafafa);
46
- --astryx-color-icon-secondary: light-dark(#737373, #a3a3a3);
47
- --astryx-color-icon-disabled: light-dark(#a3a3a3, #525252);
28
+ --astryx-color-accent: light-dark(#1b1b1b, #f1f1f1);
29
+ --astryx-color-accent-muted: light-dark(#f1f1f1, #262626);
30
+ --astryx-color-neutral: light-dark(#0000000f, #ffffff1a);
48
31
 
49
- --astryx-color-background-card: light-dark(#ffffff, #1b1b1b);
50
- --astryx-color-background-popover: light-dark(#ffffff, #1b1b1b);
51
- --astryx-color-background-inverted: light-dark(#0a1317, #ffffff);
52
- --astryx-color-background-error-inverted: light-dark(#aa071e, #e3193b);
32
+ /* Overlays: modal scrims and the hover/pressed tints layered on surfaces. */
33
+ --astryx-color-overlay: light-dark(#00000080, #000000cc);
34
+ --astryx-color-overlay-hover: light-dark(#0000000d, #ffffff0d);
35
+ --astryx-color-overlay-pressed: light-dark(#0000001a, #ffffff1a);
53
36
 
54
- --astryx-color-success: light-dark(#007004, #9fe59b);
55
- --astryx-color-success-muted: light-dark(#c5e5c0, #84c9803d);
56
- --astryx-color-on-success: light-dark(#ffffff, #171717);
57
- --astryx-color-error: light-dark(#a50c25, #ffc6c1);
58
- --astryx-color-error-muted: light-dark(#facecb, #ff9e973d);
59
- --astryx-color-on-error: light-dark(#ffffff, #171717);
60
- --astryx-color-warning: light-dark(#745b00, #fdcf4f);
61
- --astryx-color-warning-muted: light-dark(#f8da9d, #deb4333d);
62
- --astryx-color-on-warning: light-dark(#171717, #171717);
63
-
64
- --astryx-color-border: light-dark(#ebebeb, #ffffff1a);
37
+ --astryx-color-text-primary: light-dark(#000000, #ffffff);
38
+ --astryx-color-text-secondary: light-dark(#474747, #9e9e9e);
39
+ --astryx-color-text-disabled: light-dark(#919191, #525252);
40
+ --astryx-color-text-accent: light-dark(#1b1b1b, #f1f1f1);
41
+ --astryx-color-on-dark: #ffffff;
42
+ --astryx-color-on-light: #111111;
43
+ --astryx-color-on-accent: light-dark(#ffffff, #111111);
44
+ --astryx-color-on-success: light-dark(#ffffff, #111111);
45
+ --astryx-color-on-error: light-dark(#ffffff, #111111);
46
+ --astryx-color-on-warning: #111111;
47
+
48
+ --astryx-color-icon-accent: light-dark(#1b1b1b, #f1f1f1);
49
+ --astryx-color-icon-primary: light-dark(#000000, #ffffff);
50
+ --astryx-color-icon-secondary: light-dark(#6a6a6a, #9e9e9e);
51
+ --astryx-color-icon-disabled: light-dark(#919191, #525252);
52
+
53
+ --astryx-color-success: light-dark(#00490b, #a4d6a3);
54
+ --astryx-color-error: light-dark(#76000c, #ffc4be);
55
+ --astryx-color-warning: light-dark(#4b3900, #f8d36a);
56
+ --astryx-color-success-muted: light-dark(#bce0bb, #90ca903d);
57
+ --astryx-color-error-muted: light-dark(#ffc4be, #ff98903d);
58
+ --astryx-color-warning-muted: light-dark(#fae19e, #e2b6233d);
59
+
60
+ --astryx-color-border: light-dark(#00000014, #ffffff1a);
65
61
  --astryx-color-border-emphasized: light-dark(#d4d4d4, #525252);
66
62
 
67
- --astryx-color-skeleton: light-dark(#ebebeb, #525252);
68
- --astryx-color-track: light-dark(#ccd3db, #5a5e66);
63
+ --astryx-color-skeleton: light-dark(#f1f1f1, #525252);
69
64
  --astryx-color-shadow: light-dark(#0000001a, #0000004d);
70
65
  --astryx-color-tint-hover: light-dark(black, white);
71
66
 
72
- --astryx-color-background-blue: light-dark(#c4ddfb, #9eb7ff3d);
73
- --astryx-color-border-blue: light-dark(#b1c9e7, #6d9cfe);
74
- --astryx-color-icon-blue: light-dark(#00458c, #9eb7ff);
75
- --astryx-color-text-blue: light-dark(#00458c, #c7d3ff);
76
-
77
- --astryx-color-background-cyan: light-dark(#a3e0ef, #83c2d43d);
78
- --astryx-color-border-cyan: light-dark(#91d3e3, #67a7b8);
79
- --astryx-color-icon-cyan: light-dark(#00505f, #83c2d4);
80
- --astryx-color-text-cyan: light-dark(#00505f, #9edef0);
81
-
82
- --astryx-color-background-gray: light-dark(#e5e5e5, var(--astryx-color-neutral));
67
+ --astryx-color-background-red: light-dark(#ffc4be, #5b2b28);
68
+ --astryx-color-border-red: light-dark(#ffaea7, #fa6762);
69
+ --astryx-color-icon-red: light-dark(#76000c, #ff9890);
70
+ --astryx-color-text-red: light-dark(#76000c, #ffaea7);
71
+
72
+ --astryx-color-background-orange: light-dark(#ffc7a1, #503424);
73
+ --astryx-color-border-orange: light-dark(#ffc7a1, #df843f);
74
+ --astryx-color-icon-orange: light-dark(#622700, #ff9e55);
75
+ --astryx-color-text-orange: light-dark(#622700, #ffb37e);
76
+
77
+ --astryx-color-background-yellow: light-dark(#fae19e, #453a1c);
78
+ --astryx-color-border-yellow: light-dark(#e3c36c, #c29900);
79
+ --astryx-color-icon-yellow: light-dark(#4b3900, #e2b623);
80
+ --astryx-color-text-yellow: light-dark(#4b3900, #eec448);
81
+
82
+ --astryx-color-background-green: light-dark(#bce0bb, #2b422b);
83
+ --astryx-color-border-green: light-dark(#aad4a9, #6ab26b);
84
+ --astryx-color-icon-green: light-dark(#00490b, #90ca90);
85
+ --astryx-color-text-green: light-dark(#00490b, #90ca90);
86
+
87
+ --astryx-color-background-teal: light-dark(#a9e2d6, #28413c);
88
+ --astryx-color-border-teal: light-dark(#90d7c8, #4fb1a0);
89
+ --astryx-color-icon-teal: light-dark(#00463d, #81c9bb);
90
+ --astryx-color-text-teal: light-dark(#00463d, #90d7c8);
91
+
92
+ --astryx-color-background-cyan: light-dark(#9ae2f4, #274046);
93
+ --astryx-color-border-cyan: light-dark(#85d5e9, #49adc4);
94
+ --astryx-color-icon-cyan: light-dark(#004351, #71c7dd);
95
+ --astryx-color-text-cyan: light-dark(#004351, #85d5e9);
96
+
97
+ --astryx-color-background-blue: light-dark(#b9d7ff, #253c5a);
98
+ --astryx-color-border-blue: light-dark(#a1caff, #5aa0f8);
99
+ --astryx-color-icon-blue: light-dark(#003978, #88bcff);
100
+ --astryx-color-text-blue: light-dark(#003978, #a1caff);
101
+
102
+ --astryx-color-background-purple: light-dark(#f7d5ff, #4a2f51);
103
+ --astryx-color-border-purple: light-dark(#f3bfff, #d885eb);
104
+ --astryx-color-icon-purple: light-dark(#5c0e6c, #e496f6);
105
+ --astryx-color-text-purple: light-dark(#5c0e6c, #eaacf8);
106
+
107
+ --astryx-color-background-pink: light-dark(#ffc0d7, #572b3d);
108
+ --astryx-color-border-pink: light-dark(#ffc0d7, #fc78b1);
109
+ --astryx-color-icon-pink: light-dark(#70003f, #fd92bd);
110
+ --astryx-color-text-pink: light-dark(#70003f, #ffa9ca);
111
+
112
+ --astryx-color-background-gray: light-dark(#e2e2e2, #303030);
83
113
  --astryx-color-border-gray: light-dark(#d4d4d4, #262626);
84
- --astryx-color-icon-gray: light-dark(#525252, #a3a3a3);
85
- --astryx-color-text-gray: light-dark(#262626, #e5e5e5);
86
-
87
- --astryx-color-background-green: light-dark(#c5e5c0, #84c9803d);
88
- --astryx-color-border-green: light-dark(#b2d1ac, #69ad67);
89
- --astryx-color-icon-green: light-dark(#0c5700, #84c980);
90
- --astryx-color-text-green: light-dark(#0c5700, #9fe59b);
91
-
92
- --astryx-color-background-orange: light-dark(#fad0b5, #ffa2583d);
93
- --astryx-color-border-orange: light-dark(#e6bda2, #e2883e);
94
- --astryx-color-icon-orange: light-dark(#6e3500, #ffa258);
95
- --astryx-color-text-orange: light-dark(#6e3500, #ffc9a2);
96
-
97
- --astryx-color-background-pink: light-dark(#fccadc, #ff99c33d);
98
- --astryx-color-border-pink: light-dark(#e7b7c8, #f273aa);
99
- --astryx-color-icon-pink: light-dark(#83004b, #ff99c3);
100
- --astryx-color-text-pink: light-dark(#83004b, #ffc3da);
101
-
102
- --astryx-color-background-purple: light-dark(#eccef3, #f297ff3d);
103
- --astryx-color-border-purple: light-dark(#d8bbdf, #dd74f0);
104
- --astryx-color-icon-purple: light-dark(#700084, #f297ff);
105
- --astryx-color-text-purple: light-dark(#700084, #fac1ff);
106
-
107
- --astryx-color-background-red: light-dark(#facecb, #ff9e973d);
108
- --astryx-color-border-red: light-dark(#e6bab8, #ff6f6c);
109
- --astryx-color-icon-red: light-dark(#89001a, #ff9e97);
110
- --astryx-color-text-red: light-dark(#89001a, #ffc6c1);
111
-
112
- --astryx-color-background-teal: light-dark(#a5e3d6, #7ec6b83d);
113
- --astryx-color-border-teal: light-dark(#94d6c8, #63ab9d);
114
- --astryx-color-icon-teal: light-dark(#005348, #7ec6b8);
115
- --astryx-color-text-teal: light-dark(#005348, #99e2d3);
116
-
117
- --astryx-color-background-yellow: light-dark(#f8da9d, #deb4333d);
118
- --astryx-color-border-yellow: light-dark(#e4c279, #c0990e);
119
- --astryx-color-icon-yellow: light-dark(#584400, #deb433);
120
- --astryx-color-text-yellow: light-dark(#584400, #fdcf4f);
114
+ --astryx-color-icon-gray: light-dark(#474747, #9e9e9e);
115
+ --astryx-color-text-gray: light-dark(#1b1b1b, #d4d4d4);
121
116
 
122
- /*
123
- * Chart colors. Categorical series use one stop in both schemes.
124
- * Sequential ramps run from 5 (darkest) to 1 (lightest).
125
- * Gray, and the neutral reference color, change with the scheme.
126
- * Values match the upstream data color tokens.
127
- */
128
- --astryx-color-data-categorical-blue: light-dark(#0171E3, #0171E3);
129
- --astryx-color-data-categorical-orange: light-dark(#EB6E00, #EB6E00);
130
- --astryx-color-data-categorical-purple: light-dark(#6B1EFD, #6B1EFD);
131
- --astryx-color-data-categorical-green: light-dark(#0B991F, #0B991F);
132
- --astryx-color-data-categorical-pink: light-dark(#F351C0, #F351C0);
133
- --astryx-color-data-categorical-cyan: light-dark(#0171A4, #0171A4);
134
- --astryx-color-data-categorical-red: light-dark(#F5394F, #F5394F);
135
- --astryx-color-data-categorical-teal: light-dark(#08A3A3, #08A3A3);
136
- --astryx-color-data-categorical-brown: light-dark(#965E03, #965E03);
137
- --astryx-color-data-categorical-indigo: light-dark(#6F8AFF, #6F8AFF);
138
-
139
- --astryx-color-data-neutral: light-dark(#8494A3, #8C939B);
140
-
141
- --astryx-color-data-blue-5: light-dark(#02165E, #02165E);
142
- --astryx-color-data-blue-4: light-dark(#004CBC, #004CBC);
143
- --astryx-color-data-blue-3: light-dark(#2694FE, #2694FE);
144
- --astryx-color-data-blue-2: light-dark(#78BEFF, #78BEFF);
145
- --astryx-color-data-blue-1: light-dark(#DBECFF, #DBECFF);
146
-
147
- --astryx-color-data-shamrock-5: light-dark(#0B603D, #0B603D);
148
- --astryx-color-data-shamrock-4: light-dark(#138546, #138546);
149
- --astryx-color-data-shamrock-3: light-dark(#24BB5E, #24BB5E);
150
- --astryx-color-data-shamrock-2: light-dark(#8EF7AA, #8EF7AA);
151
- --astryx-color-data-shamrock-1: light-dark(#D6FEE4, #D6FEE4);
152
-
153
- --astryx-color-data-orange-5: light-dark(#A13F04, #A13F04);
154
- --astryx-color-data-orange-4: light-dark(#D66100, #D66100);
155
- --astryx-color-data-orange-3: light-dark(#FD9537, #FD9537);
156
- --astryx-color-data-orange-2: light-dark(#FDB876, #FDB876);
157
- --astryx-color-data-orange-1: light-dark(#FFE6CF, #FFE6CF);
158
-
159
- --astryx-color-data-pink-5: light-dark(#8E1073, #8E1073);
160
- --astryx-color-data-pink-4: light-dark(#D123A1, #D123A1);
161
- --astryx-color-data-pink-3: light-dark(#F989D3, #F989D3);
162
- --astryx-color-data-pink-2: light-dark(#FEADE3, #FEADE3);
163
- --astryx-color-data-pink-1: light-dark(#FCE3F4, #FCE3F4);
164
-
165
- --astryx-color-data-purple-5: light-dark(#3E0697, #3E0697);
166
- --astryx-color-data-purple-4: light-dark(#6B1EFD, #6B1EFD);
167
- --astryx-color-data-purple-3: light-dark(#9081FF, #9081FF);
168
- --astryx-color-data-purple-2: light-dark(#B3B0FE, #B3B0FE);
169
- --astryx-color-data-purple-1: light-dark(#E8E8FB, #E8E8FB);
170
-
171
- --astryx-color-data-red-5: light-dark(#9D0519, #9D0519);
172
- --astryx-color-data-red-4: light-dark(#D31130, #D31130);
173
- --astryx-color-data-red-3: light-dark(#FB7D87, #FB7D87);
174
- --astryx-color-data-red-2: light-dark(#FFB2B8, #FFB2B8);
175
- --astryx-color-data-red-1: light-dark(#FEE4E6, #FEE4E6);
176
-
177
- --astryx-color-data-teal-5: light-dark(#08767D, #08767D);
178
- --astryx-color-data-teal-4: light-dark(#0C9293, #0C9293);
179
- --astryx-color-data-teal-3: light-dark(#0DB7AF, #0DB7AF);
180
- --astryx-color-data-teal-2: light-dark(#6CE6D8, #6CE6D8);
181
- --astryx-color-data-teal-1: light-dark(#D7FCF8, #D7FCF8);
182
-
183
- --astryx-color-data-yellow-5: light-dark(#8A5001, #8A5001);
184
- --astryx-color-data-yellow-4: light-dark(#D69804, #D69804);
185
- --astryx-color-data-yellow-3: light-dark(#FBCE03, #FBCE03);
186
- --astryx-color-data-yellow-2: light-dark(#FCEC85, #FCEC85);
187
- --astryx-color-data-yellow-1: light-dark(#FDF6BA, #FDF6BA);
188
-
189
- --astryx-color-data-gray-5: light-dark(#25363F, #333338);
190
- --astryx-color-data-gray-4: light-dark(#5D6C7B, #666A72);
191
- --astryx-color-data-gray-3: light-dark(#AFB9C4, #B2B8BE);
192
- --astryx-color-data-gray-2: light-dark(#CCD3DB, #D0D3D6);
193
- --astryx-color-data-gray-1: light-dark(#F1F4F7, #F2F4F6);
194
-
195
- --astryx-spacing-0: 0;
196
- --astryx-spacing-0-5: 2px;
197
- --astryx-spacing-1: 4px;
198
- --astryx-spacing-1-5: 6px;
199
- --astryx-spacing-2: 8px;
200
- --astryx-spacing-3: 12px;
201
- --astryx-spacing-4: 16px;
202
- --astryx-spacing-5: 20px;
203
- --astryx-spacing-6: 24px;
204
- --astryx-spacing-7: 28px;
205
- --astryx-spacing-8: 32px;
206
- --astryx-spacing-9: 36px;
207
- --astryx-spacing-10: 40px;
208
- --astryx-spacing-11: 44px;
209
- --astryx-spacing-12: 48px;
117
+ /* Core defaults the Neutral theme leaves alone. */
118
+ --astryx-color-background-inverted: light-dark(#0a1317, #ffffff);
119
+ --astryx-color-background-error-inverted: light-dark(#aa071e, #e3193b);
120
+ --astryx-color-track: light-dark(#ccd3db, #5a5e66);
121
+
122
+ --astryx-spacing-0: 0rem;
123
+ --astryx-spacing-0-5: 0.125rem;
124
+ --astryx-spacing-1: 0.25rem;
125
+ --astryx-spacing-1-5: 0.375rem;
126
+ --astryx-spacing-2: 0.5rem;
127
+ --astryx-spacing-3: 0.75rem;
128
+ --astryx-spacing-4: 1rem;
129
+ --astryx-spacing-5: 1.25rem;
130
+ --astryx-spacing-6: 1.5rem;
131
+ --astryx-spacing-7: 1.75rem;
132
+ --astryx-spacing-8: 2rem;
133
+ --astryx-spacing-9: 2.25rem;
134
+ --astryx-spacing-10: 2.5rem;
135
+ --astryx-spacing-11: 2.75rem;
136
+ --astryx-spacing-12: 3rem;
210
137
 
211
138
  --astryx-size-element-sm: 28px;
212
139
  --astryx-size-element-md: 32px;
@@ -219,7 +146,8 @@
219
146
  --astryx-focus-outline-color: var(--astryx-color-accent);
220
147
  --astryx-focus-outline-offset: 3px;
221
148
 
222
- --astryx-radius-none: 0;
149
+ /* Radius — slightly larger than the core default, as upstream ships it. */
150
+ --astryx-radius-none: 0px;
223
151
  --astryx-radius-inner: 0.375rem;
224
152
  --astryx-radius-element: 0.625rem;
225
153
  --astryx-radius-container: 0.75rem;
@@ -227,14 +155,19 @@
227
155
  --astryx-radius-chat: 28px;
228
156
  --astryx-radius-full: 9999px;
229
157
 
158
+ /*
159
+ * Shadows. Light mode is two subtle drops. Dark mode deepens the drops and
160
+ * adds an all-around 1px inset ("bezel") so surfaces read as lit from above
161
+ * against a dark canvas. The inset resolves to transparent in light mode.
162
+ */
230
163
  --astryx-shadow-low: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%));
231
164
  --astryx-shadow-med: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%));
232
165
  --astryx-shadow-high: 0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%));
233
166
  --astryx-shadow-inset-hover: inset 0px 0px 0px 2px #0074e24d;
234
167
  --astryx-shadow-inset-selected: inset 0px 0px 0px 2px #0074e280;
235
- --astryx-shadow-inset-success: inset 0px 0px 0px 2px #1981004d;
236
- --astryx-shadow-inset-warning: inset 0px 0px 0px 2px #ffce2f4d;
237
- --astryx-shadow-inset-error: inset 0px 0px 0px 2px #e33f4a4d;
168
+ --astryx-shadow-inset-success: inset 0px 0px 0px 2px #2f7d334d;
169
+ --astryx-shadow-inset-warning: inset 0px 0px 0px 2px #f8d36a4d;
170
+ --astryx-shadow-inset-error: inset 0px 0px 0px 2px #de47454d;
238
171
 
239
172
  --astryx-duration-fast-min: 95ms;
240
173
  --astryx-duration-fast: 125ms;
@@ -249,8 +182,8 @@
249
182
  --astryx-ease-standard: cubic-bezier(0.24, 1, 0.4, 1);
250
183
 
251
184
  --astryx-font-family-body: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
252
- --astryx-font-family-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
253
185
  --astryx-font-family-heading: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
186
+ --astryx-font-family-code: ui-monospace, 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
254
187
 
255
188
  --astryx-font-size-4xs: 0.375rem;
256
189
  --astryx-font-size-3xs: 0.4375rem;
@@ -278,10 +211,10 @@
278
211
  --astryx-text-heading-2-weight: var(--astryx-font-weight-semibold);
279
212
  --astryx-text-heading-2-leading: 1.4;
280
213
  --astryx-text-heading-3-size: var(--astryx-font-size-lg);
281
- --astryx-text-heading-3-weight: var(--astryx-font-weight-semibold);
214
+ --astryx-text-heading-3-weight: var(--astryx-font-weight-bold);
282
215
  --astryx-text-heading-3-leading: 1.4118;
283
216
  --astryx-text-heading-4-size: var(--astryx-font-size-base);
284
- --astryx-text-heading-4-weight: var(--astryx-font-weight-semibold);
217
+ --astryx-text-heading-4-weight: var(--astryx-font-weight-bold);
285
218
  --astryx-text-heading-4-leading: 1.4286;
286
219
  --astryx-text-heading-5-size: var(--astryx-font-size-sm);
287
220
  --astryx-text-heading-5-weight: var(--astryx-font-weight-semibold);
@@ -314,7 +247,7 @@
314
247
  --astryx-text-display-2-leading: 1.2571;
315
248
  --astryx-text-display-3-size: var(--astryx-font-size-3xl);
316
249
  --astryx-text-display-3-weight: var(--astryx-font-weight-normal);
317
- --astryx-text-display-3-leading: 1.2414;
250
+ --astryx-text-display-3-leading: 1.3793;
318
251
  }
319
252
 
320
253
  [data-astryx-color-mode='light'] {
@@ -3,12 +3,12 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-bottom-sheet-background: light-dark(#ffffff, #262626);
7
- --astryx-bottom-sheet-foreground: light-dark(#171717, #fafafa);
8
- --astryx-bottom-sheet-border: light-dark(#d4d4d4, #525252);
9
- --astryx-bottom-sheet-scrim: light-dark(#00000080, #000000cc);
10
- --astryx-bottom-sheet-handle-background: light-dark(#d4d4d4, #525252);
11
- --astryx-bottom-sheet-focus: light-dark(#171717, #fafafa);
6
+ --astryx-bottom-sheet-background: var(--astryx-color-background-surface);
7
+ --astryx-bottom-sheet-foreground: var(--astryx-color-text-primary);
8
+ --astryx-bottom-sheet-border: var(--astryx-color-border-emphasized);
9
+ --astryx-bottom-sheet-scrim: var(--astryx-color-overlay);
10
+ --astryx-bottom-sheet-handle-background: var(--astryx-color-border-emphasized);
11
+ --astryx-bottom-sheet-focus: var(--astryx-color-text-primary);
12
12
  --astryx-bottom-sheet-shadow:
13
13
  0 -4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)),
14
14
  0 -12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)),
@@ -9,12 +9,12 @@
9
9
  --astryx-button-secondary-foreground: var(--astryx-color-text-primary);
10
10
  --astryx-button-ghost-background: transparent;
11
11
  --astryx-button-ghost-foreground: var(--astryx-color-text-primary);
12
- --astryx-button-destructive-background: light-dark(#facecb, #ff9e973d);
13
- --astryx-button-destructive-foreground: light-dark(#a50c25, #ffc6c1);
14
- --astryx-button-hover-overlay: light-dark(#0000000d, #ffffff0d);
15
- --astryx-button-pressed-overlay: light-dark(#0000001a, #ffffff1a);
12
+ --astryx-button-destructive-background: var(--astryx-color-error-muted);
13
+ --astryx-button-destructive-foreground: var(--astryx-color-error);
14
+ --astryx-button-hover-overlay: var(--astryx-color-overlay-hover);
15
+ --astryx-button-pressed-overlay: var(--astryx-color-overlay-pressed);
16
16
  --astryx-button-focus: var(--astryx-color-accent);
17
- --astryx-button-separator: light-dark(#00000014, #ffffff1a);
17
+ --astryx-button-separator: var(--astryx-color-border);
18
18
  --astryx-button-solid-separator: light-dark(#ffffff, #171717);
19
19
  --astryx-button-tooltip-background: light-dark(#171717, #262626);
20
20
  --astryx-button-tooltip-foreground: light-dark(#ffffff, #fafafa);
@@ -32,3 +32,13 @@
32
32
  inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%));
33
33
  }
34
34
  }
35
+
36
+ /* A destructive button tints its hover and pressed states with red instead of
37
+ the neutral overlay, so the interaction reads as dangerous. */
38
+ @layer astryx.overrides {
39
+ :root .astryx-button[data-variant='destructive'],
40
+ [data-astryx-theme='neutral'] .astryx-button[data-variant='destructive'] {
41
+ --astryx-button-hover-overlay: var(--astryx-theme-neutral-color-destructive-overlay-hover);
42
+ --astryx-button-pressed-overlay: var(--astryx-theme-neutral-color-destructive-overlay-pressed);
43
+ }
44
+ }
package/neutral/card.css CHANGED
@@ -3,10 +3,10 @@
3
3
  @layer astryx.tokens {
4
4
  :root,
5
5
  [data-astryx-theme='neutral'] {
6
- --astryx-card-background: light-dark(#fff, #1f1f22);
6
+ --astryx-card-background: var(--astryx-color-background-card);
7
7
  --astryx-card-padding: var(--astryx-spacing-3);
8
8
  --astryx-card-muted-background: var(--astryx-color-background-muted);
9
- --astryx-card-border: light-dark(#00000014, #ffffff1a);
9
+ --astryx-card-border: var(--astryx-color-border);
10
10
  --astryx-card-shadow-low:
11
11
  0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)),
12
12
  0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)),
@@ -20,15 +20,15 @@
20
20
  0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)),
21
21
  inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%));
22
22
 
23
- --astryx-card-blue-background: light-dark(#c4ddfb, #9eb7ff3d);
24
- --astryx-card-cyan-background: light-dark(#a3e0ef, #83c2d43d);
25
- --astryx-card-gray-background: light-dark(#e5e5e5, #ffffff1a);
26
- --astryx-card-green-background: light-dark(#c5e5c0, #84c9803d);
27
- --astryx-card-orange-background: light-dark(#fad0b5, #ffa2583d);
28
- --astryx-card-pink-background: light-dark(#fccadc, #ff99c33d);
29
- --astryx-card-purple-background: light-dark(#eccef3, #f297ff3d);
30
- --astryx-card-red-background: light-dark(#facecb, #ff9e973d);
31
- --astryx-card-teal-background: light-dark(#a5e3d6, #7ec6b83d);
32
- --astryx-card-yellow-background: light-dark(#f8da9d, #deb4333d);
23
+ --astryx-card-blue-background: var(--astryx-color-background-blue);
24
+ --astryx-card-cyan-background: var(--astryx-color-background-cyan);
25
+ --astryx-card-gray-background: var(--astryx-color-background-gray);
26
+ --astryx-card-green-background: var(--astryx-color-background-green);
27
+ --astryx-card-orange-background: var(--astryx-color-background-orange);
28
+ --astryx-card-pink-background: var(--astryx-color-background-pink);
29
+ --astryx-card-purple-background: var(--astryx-color-background-purple);
30
+ --astryx-card-red-background: var(--astryx-color-background-red);
31
+ --astryx-card-teal-background: var(--astryx-color-background-teal);
32
+ --astryx-card-yellow-background: var(--astryx-color-background-yellow);
33
33
  }
34
34
  }
package/neutral/chat.css CHANGED
@@ -6,7 +6,7 @@
6
6
  --astryx-chat-foreground: var(--astryx-color-text-primary);
7
7
  /* Docs secondary text measures rgb(71, 71, 71). The shared text-secondary
8
8
  token stays lighter, so chat supporting copy uses this darker stop. */
9
- --astryx-chat-foreground-secondary: light-dark(#474747, #a3a3a3);
9
+ --astryx-chat-foreground-secondary: var(--astryx-color-text-secondary);
10
10
  --astryx-chat-foreground-muted: var(--astryx-color-text-disabled);
11
11
  --astryx-chat-bubble-background: var(--astryx-color-neutral);
12
12
  --astryx-chat-error: var(--astryx-color-error);