@astryxdesign/cli 0.1.6-canary.e82deeb → 0.1.6-canary.eb23da7

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.
@@ -39,19 +39,19 @@ import {neutralIconRegistry} from './icons';
39
39
  const neutralSyntax = defineSyntaxTheme({
40
40
  name: 'xds-neutral',
41
41
  tokens: {
42
- keyword: ['#700084', '#efa8ff'], // purple T30/T80
43
- string: ['#005600', '#a6d2a2'], // green (sat T30 / pastel T80)
44
- comment: ['#737373', '#a3a3a3'], // neutral
45
- number: ['#6e3500', '#ffb37f'], // orange
46
- function: ['#00458c', '#a0caff'], // blue T30/T80 H=255
47
- type: ['#700084', '#efa8ff'], // purple
48
- variable: ['#171717', '#e5e5e5'], // near-black / near-white
49
- operator: ['#737373', '#a3a3a3'], // neutral
50
- constant: ['#6e3500', '#ffb37f'], // orange
51
- tag: ['#89001a', '#ffaeaa'], // red
52
- attribute: ['#584400', '#eec12f'], // yellow
53
- property: ['#005348', '#83dac9'], // teal
54
- punctuation: ['#a3a3a3', '#525252'],// neutral
42
+ keyword: ['#700084', '#efa8ff'], // purple T30/T80
43
+ string: ['#005600', '#a6d2a2'], // green (sat T30 / pastel T80)
44
+ comment: ['#737373', '#a3a3a3'], // neutral
45
+ number: ['#6e3500', '#ffb37f'], // orange
46
+ function: ['#00458c', '#a0caff'], // blue T30/T80 H=255
47
+ type: ['#700084', '#efa8ff'], // purple
48
+ variable: ['#171717', '#e5e5e5'], // near-black / near-white
49
+ operator: ['#737373', '#a3a3a3'], // neutral
50
+ constant: ['#6e3500', '#ffb37f'], // orange
51
+ tag: ['#89001a', '#ffaeaa'], // red
52
+ attribute: ['#584400', '#eec12f'], // yellow
53
+ property: ['#005348', '#83dac9'], // teal
54
+ punctuation: ['#a3a3a3', '#525252'], // neutral
55
55
  background: ['#fafafa', '#0a0a0a'],
56
56
  },
57
57
  });
@@ -127,39 +127,39 @@ export const neutralTheme = defineTheme({
127
127
  // All values use the OKLCH Neutral tonal palette (chroma=0).
128
128
  // =========================================================================
129
129
  '--color-background-surface': ['#ffffff', '#262626'],
130
- '--color-background-body': ['#f1f1f1', '#1b1b1b'],
131
- '--color-background-card': ['#ffffff', '#1b1b1b'],
130
+ '--color-background-body': ['#f1f1f1', '#1b1b1b'],
131
+ '--color-background-card': ['#ffffff', '#1b1b1b'],
132
132
  '--color-background-popover': ['#ffffff', '#1b1b1b'],
133
- '--color-background-muted': ['#f1f1f1', '#1b1b1b'],
133
+ '--color-background-muted': ['#f1f1f1', '#1b1b1b'],
134
134
 
135
135
  // Accent + neutral surface tints (sit alongside backgrounds)
136
- '--color-accent': ['#262626', '#ebebeb'],
136
+ '--color-accent': ['#262626', '#ebebeb'],
137
137
  '--color-accent-muted': ['#f1f1f1', '#262626'],
138
- '--color-neutral': ['#0000000F', '#FFFFFF1A'],
138
+ '--color-neutral': ['#0000000F', '#FFFFFF1A'],
139
139
 
140
140
  // Overlays (modal scrims, hover/pressed tints)
141
- '--color-overlay': ['#00000080', '#000000CC'],
142
- '--color-overlay-hover': ['#0000000D', '#FFFFFF0D'],
141
+ '--color-overlay': ['#00000080', '#000000CC'],
142
+ '--color-overlay-hover': ['#0000000D', '#FFFFFF0D'],
143
143
  '--color-overlay-pressed': ['#0000001A', '#FFFFFF1A'],
144
144
 
145
145
  // Text
146
- '--color-text-primary': ['#171717', '#fafafa'],
146
+ '--color-text-primary': ['#171717', '#fafafa'],
147
147
  '--color-text-secondary': ['#737373', '#a3a3a3'],
148
- '--color-text-disabled': ['#a3a3a3', '#525252'],
149
- '--color-text-accent': ['#262626', '#ebebeb'],
150
- '--color-on-dark': '#ffffff',
151
- '--color-on-light': '#171717',
148
+ '--color-text-disabled': ['#a3a3a3', '#525252'],
149
+ '--color-text-accent': ['#262626', '#ebebeb'],
150
+ '--color-on-dark': '#ffffff',
151
+ '--color-on-light': '#171717',
152
152
  // Contrast: neutral accent is near-black (L) / near-white (D)
153
- '--color-on-accent': ['#ffffff', '#171717'],
153
+ '--color-on-accent': ['#ffffff', '#171717'],
154
154
  '--color-on-success': ['#ffffff', '#171717'],
155
- '--color-on-error': ['#ffffff', '#171717'],
155
+ '--color-on-error': ['#ffffff', '#171717'],
156
156
  '--color-on-warning': '#171717',
157
157
 
158
158
  // Icon
159
- '--color-icon-accent': ['#262626', '#ebebeb'],
160
- '--color-icon-primary': ['#171717', '#fafafa'],
159
+ '--color-icon-accent': ['#262626', '#ebebeb'],
160
+ '--color-icon-primary': ['#171717', '#fafafa'],
161
161
  '--color-icon-secondary': ['#737373', '#a3a3a3'],
162
- '--color-icon-disabled': ['#a3a3a3', '#525252'],
162
+ '--color-icon-disabled': ['#a3a3a3', '#525252'],
163
163
 
164
164
  // Status / Sentiment — dark mode follows the issue #2150 rubric:
165
165
  //
@@ -372,8 +372,8 @@ export const neutralTheme = defineTheme({
372
372
  // =========================================================================
373
373
  button: {
374
374
  'variant:destructive': {
375
- backgroundColor: 'var(--color-error-muted)', // locked pastel red bg
376
- color: 'var(--color-error)', // locked T30 red — matches banner/input error text
375
+ backgroundColor: 'var(--color-error-muted)', // locked pastel red bg
376
+ color: 'var(--color-error)', // locked T30 red — matches banner/input error text
377
377
  },
378
378
  },
379
379
 
@@ -482,6 +482,37 @@ export const neutralTheme = defineTheme({
482
482
  },
483
483
  },
484
484
 
485
+ // =========================================================================
486
+ // StatusDot — fill uses the SAME vivid stops as the filled semantic Badge
487
+ // (and ProgressBar), so a dot and its badge read as one status language.
488
+ //
489
+ // The default component maps each variant to a raw semantic token
490
+ // (--color-success / --color-error / --color-warning / --color-icon-
491
+ // secondary), which in light mode are the dark T30/T40 stops meant to
492
+ // sit as TEXT on a pastel surface — as a solid dot they read muddy
493
+ // (dark green / maroon / brown). Redirect them to the badge fills.
494
+ //
495
+ // success → badge success bg (green T45 / dark-ramp T60)
496
+ // warning → badge warning bg (yellow T85, same hex both modes)
497
+ // error → badge error bg (red T55 / dark-ramp T60)
498
+ // accent → badge info bg (blue T50 / dark-ramp T60) — the
499
+ // StatusDot "accent" is the info/attention color, so it
500
+ // pairs with the info badge rather than --color-accent
501
+ // (near-black #262626, the darkest offender).
502
+ //
503
+ // `neutral` is intentionally NOT overridden: the neutral badge bg is a
504
+ // near-invisible light gray (--color-background-gray #e5e5e5 / 10% white
505
+ // wash), fine as a large pill but unreadable as an 8px dot. It keeps the
506
+ // component default's visible mid-gray (--color-icon-secondary), which is
507
+ // not among the "too dark" cases.
508
+ // =========================================================================
509
+ statusdot: {
510
+ 'variant:success': {backgroundColor: 'light-dark(#198100, #64af4c)'},
511
+ 'variant:warning': {backgroundColor: '#ffce2f'},
512
+ 'variant:error': {backgroundColor: 'light-dark(#e33f4a, #ff705d)'},
513
+ 'variant:accent': {backgroundColor: 'light-dark(#0074e2, #6d9cfe)'},
514
+ },
515
+
485
516
  // =========================================================================
486
517
  // Banner — sits on a hue-tinted surface with colored text/icon:
487
518
  // Light: pastel T90 bg (pulled from --color-{X}-muted / --color-background-blue)