@astryxdesign/theme-stone 0.7.17-canary.gffd1fc0 → 0.7.17

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 (76) hide show
  1. package/README.md +6 -10
  2. package/dist/source.cjs +104 -13
  3. package/dist/source.d.cts +1 -1
  4. package/dist/source.d.ts +1 -1
  5. package/dist/source.d.ts.map +1 -1
  6. package/dist/source.mjs +103 -13
  7. package/dist/stone.d.ts +1 -0
  8. package/dist/stone.js +49 -9
  9. package/dist/stone.variants.d.ts +16 -0
  10. package/dist/stonePaletteRefs.generated.d.ts +3 -0
  11. package/dist/stonePaletteRefs.generated.d.ts.map +1 -1
  12. package/dist/stoneTheme.d.cts +2 -0
  13. package/dist/stoneTheme.d.ts +2 -0
  14. package/dist/stoneTheme.d.ts.map +1 -1
  15. package/dist/theme.css +77 -9
  16. package/fonts/figtree-latin-400-normal.woff2 +0 -0
  17. package/fonts/figtree-latin-500-normal.woff2 +0 -0
  18. package/fonts/figtree-latin-600-normal.woff2 +0 -0
  19. package/fonts/figtree-latin-700-normal.woff2 +0 -0
  20. package/fonts/figtree-latin-ext-400-normal.woff2 +0 -0
  21. package/fonts/figtree-latin-ext-500-normal.woff2 +0 -0
  22. package/fonts/figtree-latin-ext-600-normal.woff2 +0 -0
  23. package/fonts/figtree-latin-ext-700-normal.woff2 +0 -0
  24. package/fonts/figtree.LICENSE.txt +93 -0
  25. package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
  26. package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
  27. package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
  28. package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
  29. package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
  30. package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
  31. package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
  32. package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
  33. package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
  34. package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
  35. package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
  36. package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
  37. package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  38. package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  39. package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
  40. package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
  41. package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  42. package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
  43. package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
  44. package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  45. package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
  46. package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
  47. package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
  48. package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
  49. package/fonts/jetbrains-mono.LICENSE.txt +93 -0
  50. package/fonts/montserrat-cyrillic-400-normal.woff2 +0 -0
  51. package/fonts/montserrat-cyrillic-500-normal.woff2 +0 -0
  52. package/fonts/montserrat-cyrillic-600-normal.woff2 +0 -0
  53. package/fonts/montserrat-cyrillic-700-normal.woff2 +0 -0
  54. package/fonts/montserrat-cyrillic-ext-400-normal.woff2 +0 -0
  55. package/fonts/montserrat-cyrillic-ext-500-normal.woff2 +0 -0
  56. package/fonts/montserrat-cyrillic-ext-600-normal.woff2 +0 -0
  57. package/fonts/montserrat-cyrillic-ext-700-normal.woff2 +0 -0
  58. package/fonts/montserrat-latin-400-normal.woff2 +0 -0
  59. package/fonts/montserrat-latin-500-normal.woff2 +0 -0
  60. package/fonts/montserrat-latin-600-normal.woff2 +0 -0
  61. package/fonts/montserrat-latin-700-normal.woff2 +0 -0
  62. package/fonts/montserrat-latin-ext-400-normal.woff2 +0 -0
  63. package/fonts/montserrat-latin-ext-500-normal.woff2 +0 -0
  64. package/fonts/montserrat-latin-ext-600-normal.woff2 +0 -0
  65. package/fonts/montserrat-latin-ext-700-normal.woff2 +0 -0
  66. package/fonts/montserrat-vietnamese-400-normal.woff2 +0 -0
  67. package/fonts/montserrat-vietnamese-500-normal.woff2 +0 -0
  68. package/fonts/montserrat-vietnamese-600-normal.woff2 +0 -0
  69. package/fonts/montserrat-vietnamese-700-normal.woff2 +0 -0
  70. package/fonts/montserrat.LICENSE.txt +93 -0
  71. package/fonts.css +590 -1
  72. package/package.json +4 -3
  73. package/src/source.ts +1 -1
  74. package/src/stonePaletteRefs.generated.ts +3 -3
  75. package/src/stoneTheme.ts +101 -10
  76. package/LICENSE +0 -21
package/README.md CHANGED
@@ -86,16 +86,12 @@ This theme uses custom typefaces:
86
86
  | Heading | Montserrat |
87
87
  | Code | JetBrains Mono |
88
88
 
89
- **These fonts must be loaded separately.** The theme references them by name but does not bundle the font files.
89
+ **Load them with the theme's font stylesheet.** It loads each font from font files shipped in this package (in `fonts/`, with their licenses), each with `font-display: fallback`, so a page never waits on a network; served from the same machine or a fast connection, the text first draws in the theme's fonts (a face that takes more than about 3 s leaves that page in the fallback font) (an offline machine, a sandbox, CI):
90
90
 
91
- Add this to your HTML `<head>`:
92
-
93
- ```html
94
- <link rel="preconnect" href="https://fonts.googleapis.com" />
95
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
96
- <link
97
- rel="stylesheet"
98
- href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap" />
91
+ ```css
92
+ @import '@astryxdesign/theme-stone/fonts.css';
99
93
  ```
100
94
 
101
- Without this, the theme falls back to system fonts.
95
+ To use Google Fonts' CDN instead, add its stylesheet to your page in place of the import: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap" />`.
96
+
97
+ Without it, the theme falls back to system fonts.
package/dist/source.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/source.ts
21
21
  var source_exports = {};
22
22
  __export(source_exports, {
23
+ colorModes: () => colorModes,
23
24
  stoneIconRegistry: () => stoneIconRegistry,
24
25
  stonePalettes: () => stonePalettes,
25
26
  stoneTheme: () => stoneTheme
@@ -91,8 +92,8 @@ var stonePaletteRefs = {
91
92
  dark: { 25: "#274239", 35: "#3a5b50", 70: "#94b3a9", 90: "#d6e7e1" }
92
93
  },
93
94
  neutral: {
94
- light: { 0: "#000000", 15: "#25252a", 30: "#46464e", 40: "#5f5f64", 55: "#848489", 85: "#d4d3dd", 90: "#e2e2e8", 95: "#f0f0f7", 100: "#ffffff" },
95
- dark: { 0: "#000000", 5: "#101018", 10: "#1b1b21", 15: "#25252a", 20: "#302f36", 25: "#3a3a42", 35: "#525159", 40: "#5e5e64", 65: "#9d9ea5", 70: "#ababb3", 90: "#e2e2e8", 95: "#f0f0f9", 100: "#ffffff" }
95
+ light: { 0: "#000000", 15: "#25252a", 30: "#46464e", 35: "#525259", 40: "#5f5f64", 55: "#848489", 85: "#d4d3dd", 90: "#e2e2e8", 95: "#f0f0f7", 100: "#ffffff" },
96
+ dark: { 0: "#000000", 5: "#101018", 10: "#1b1b21", 15: "#25252a", 20: "#302f36", 25: "#3a3a42", 35: "#525159", 40: "#5e5e64", 65: "#9d9ea5", 70: "#ababb3", 80: "#c6c6cf", 90: "#e2e2e8", 95: "#f0f0f9", 100: "#ffffff" }
96
97
  },
97
98
  orange: {
98
99
  dark: { 25: "#4e3522", 35: "#684c34", 70: "#c9a382", 90: "#ffdcbb" },
@@ -100,7 +101,7 @@ var stonePaletteRefs = {
100
101
  },
101
102
  blue: {
102
103
  light: { 30: "#344861", 40: "#516074", 85: "#c2d6f1", 90: "#d3e4fc" },
103
- dark: { 25: "#2c3c52", 35: "#445469", 70: "#9aadc7", 90: "#d5e4f8" }
104
+ dark: { 25: "#2c3c52", 35: "#445469", 70: "#9aadc7", 80: "#b6c8e1", 90: "#d5e4f8" }
104
105
  },
105
106
  cyan: {
106
107
  light: { 30: "#264d57", 85: "#badbe4", 90: "#cbe9f0" },
@@ -180,6 +181,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
180
181
  borderColor: SECONDARY_BUTTON.borderColor,
181
182
  ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
182
183
  };
184
+ var colorModes = ["light", "dark"];
183
185
  var stoneTheme = (0, import_theme.defineTheme)({
184
186
  name: "stone",
185
187
  typography: {
@@ -340,6 +342,8 @@ var stoneTheme = (0, import_theme.defineTheme)({
340
342
  "--radius-element": "0.5rem",
341
343
  "--radius-container": "0.75rem",
342
344
  "--radius-page": "1.5rem",
345
+ // Chat surfaces stay rounder than cards.
346
+ "--radius-chat": "28px",
343
347
  "--radius-full": "9999px",
344
348
  // Shadows
345
349
  "--shadow-low": `0 2px 4px ${withAlpha(neutral.light[15], "0d")}, 0 4px 8px ${withAlpha(neutral.light[15], "1a")}`,
@@ -405,34 +409,51 @@ var stoneTheme = (0, import_theme.defineTheme)({
405
409
  "--color-on-error-muted": "var(--color-text-red)"
406
410
  }
407
411
  },
408
- // Progress fills use the same family as their matching status surface;
409
- // the darker stop in dark mode keeps the channel visible on dark tracks.
412
+ // Status fills take the theme's status roles, and the accent fill uses the
413
+ // blue family; each reaches 3:1 on the skeleton track in both modes.
410
414
  "progress-bar-fill": {
411
415
  "variant:accent": {
412
- backgroundColor: lightDark(blue.light[90], blue.dark[70])
416
+ backgroundColor: lightDark(blue.light[40], blue.dark[80])
413
417
  },
414
418
  "variant:success": {
415
- backgroundColor: lightDark(green.light[90], green.dark[70])
419
+ backgroundColor: "var(--color-success)"
416
420
  },
417
421
  "variant:warning": {
418
- backgroundColor: lightDark(yellow.light[90], yellow.dark[70])
422
+ backgroundColor: "var(--color-warning)"
419
423
  },
420
424
  "variant:error": {
421
- backgroundColor: lightDark(red.light[90], red.dark[70])
425
+ backgroundColor: "var(--color-error)"
426
+ },
427
+ // The secondary text color (stop 70) reads under 3:1 on the dark track,
428
+ // so a neutral or disabled fill takes stop 80 there.
429
+ "variant:neutral": {
430
+ backgroundColor: lightDark(
431
+ "var(--color-text-secondary)",
432
+ neutral.dark[80]
433
+ )
434
+ },
435
+ "variant:disabled": {
436
+ backgroundColor: lightDark(
437
+ "var(--color-text-secondary)",
438
+ neutral.dark[80]
439
+ )
422
440
  }
423
441
  },
442
+ // A mark on a fill is light ink on the dark light-mode fills (stops 30 and
443
+ // 40) and dark ink on the pale dark-mode fills. A status fill is the
444
+ // status color, so its mark takes that status's on-color.
424
445
  "progress-bar-mark": {
425
446
  "placement:fill+variant:accent": {
426
- backgroundColor: "var(--color-on-light)"
447
+ backgroundColor: lightDark(neutral.light[100], "var(--color-on-light)")
427
448
  },
428
449
  "placement:fill+variant:success": {
429
- backgroundColor: "var(--color-on-light)"
450
+ backgroundColor: "var(--color-on-success)"
430
451
  },
431
452
  "placement:fill+variant:warning": {
432
- backgroundColor: "var(--color-on-light)"
453
+ backgroundColor: "var(--color-on-warning)"
433
454
  },
434
455
  "placement:fill+variant:error": {
435
- backgroundColor: "var(--color-on-light)"
456
+ backgroundColor: "var(--color-on-error)"
436
457
  }
437
458
  },
438
459
  // The default muted track is too close to Stone's body surface.
@@ -476,9 +497,78 @@ var stoneTheme = (0, import_theme.defineTheme)({
476
497
  "complex-selector": { "variant:secondary": SECONDARY_COMPLEX_SELECTOR },
477
498
  typeahead: INPUT_STATUS_VARS,
478
499
  tokenizer: INPUT_STATUS_VARS,
500
+ // Secondary text on a muted or coloured card steps to the nearest
501
+ // neutral stop that reads at 4.5:1 on that fill, and on the accent tint
502
+ // of a selected row or a numbered citation over it.
479
503
  card: {
480
504
  base: {
481
505
  padding: "var(--spacing-3)"
506
+ },
507
+ "variant:muted": {
508
+ "--color-text-secondary": lightDark(
509
+ neutral.light[35],
510
+ neutral.dark[80]
511
+ )
512
+ },
513
+ "variant:blue": {
514
+ "--color-text-secondary": lightDark(
515
+ neutral.light[35],
516
+ neutral.dark[95]
517
+ )
518
+ },
519
+ "variant:cyan": {
520
+ "--color-text-secondary": lightDark(
521
+ neutral.light[35],
522
+ neutral.dark[95]
523
+ )
524
+ },
525
+ "variant:gray": {
526
+ "--color-text-secondary": lightDark(
527
+ neutral.light[35],
528
+ neutral.dark[95]
529
+ )
530
+ },
531
+ "variant:green": {
532
+ "--color-text-secondary": lightDark(
533
+ neutral.light[35],
534
+ neutral.dark[95]
535
+ )
536
+ },
537
+ "variant:orange": {
538
+ "--color-text-secondary": lightDark(
539
+ neutral.light[35],
540
+ neutral.dark[90]
541
+ )
542
+ },
543
+ "variant:pink": {
544
+ "--color-text-secondary": lightDark(
545
+ neutral.light[35],
546
+ neutral.dark[90]
547
+ )
548
+ },
549
+ "variant:purple": {
550
+ "--color-text-secondary": lightDark(
551
+ neutral.light[35],
552
+ neutral.dark[95]
553
+ )
554
+ },
555
+ "variant:red": {
556
+ "--color-text-secondary": lightDark(
557
+ neutral.light[35],
558
+ neutral.dark[90]
559
+ )
560
+ },
561
+ "variant:teal": {
562
+ "--color-text-secondary": lightDark(
563
+ neutral.light[35],
564
+ neutral.dark[95]
565
+ )
566
+ },
567
+ "variant:yellow": {
568
+ "--color-text-secondary": lightDark(
569
+ neutral.light[35],
570
+ neutral.dark[95]
571
+ )
482
572
  }
483
573
  },
484
574
  section: {
@@ -743,6 +833,7 @@ var stonePalettes = {
743
833
  };
744
834
  // Annotate the CommonJS export names for ESM import in node:
745
835
  0 && (module.exports = {
836
+ colorModes,
746
837
  stoneIconRegistry,
747
838
  stonePalettes,
748
839
  stoneTheme
package/dist/source.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { stonePalettes, stoneTheme } from './stoneTheme.cjs';
1
+ export { colorModes, stonePalettes, stoneTheme } from './stoneTheme.cjs';
2
2
  export { stoneIconRegistry } from './icons.cjs';
package/dist/source.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { stonePalettes, stoneTheme } from './stoneTheme.js';
1
+ export { colorModes, stonePalettes, stoneTheme } from './stoneTheme.js';
2
2
  export { stoneIconRegistry } from './icons.js';
3
3
  //# sourceMappingURL=source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC"}
package/dist/source.mjs CHANGED
@@ -93,8 +93,8 @@ var stonePaletteRefs = {
93
93
  dark: { 25: "#274239", 35: "#3a5b50", 70: "#94b3a9", 90: "#d6e7e1" }
94
94
  },
95
95
  neutral: {
96
- light: { 0: "#000000", 15: "#25252a", 30: "#46464e", 40: "#5f5f64", 55: "#848489", 85: "#d4d3dd", 90: "#e2e2e8", 95: "#f0f0f7", 100: "#ffffff" },
97
- dark: { 0: "#000000", 5: "#101018", 10: "#1b1b21", 15: "#25252a", 20: "#302f36", 25: "#3a3a42", 35: "#525159", 40: "#5e5e64", 65: "#9d9ea5", 70: "#ababb3", 90: "#e2e2e8", 95: "#f0f0f9", 100: "#ffffff" }
96
+ light: { 0: "#000000", 15: "#25252a", 30: "#46464e", 35: "#525259", 40: "#5f5f64", 55: "#848489", 85: "#d4d3dd", 90: "#e2e2e8", 95: "#f0f0f7", 100: "#ffffff" },
97
+ dark: { 0: "#000000", 5: "#101018", 10: "#1b1b21", 15: "#25252a", 20: "#302f36", 25: "#3a3a42", 35: "#525159", 40: "#5e5e64", 65: "#9d9ea5", 70: "#ababb3", 80: "#c6c6cf", 90: "#e2e2e8", 95: "#f0f0f9", 100: "#ffffff" }
98
98
  },
99
99
  orange: {
100
100
  dark: { 25: "#4e3522", 35: "#684c34", 70: "#c9a382", 90: "#ffdcbb" },
@@ -102,7 +102,7 @@ var stonePaletteRefs = {
102
102
  },
103
103
  blue: {
104
104
  light: { 30: "#344861", 40: "#516074", 85: "#c2d6f1", 90: "#d3e4fc" },
105
- dark: { 25: "#2c3c52", 35: "#445469", 70: "#9aadc7", 90: "#d5e4f8" }
105
+ dark: { 25: "#2c3c52", 35: "#445469", 70: "#9aadc7", 80: "#b6c8e1", 90: "#d5e4f8" }
106
106
  },
107
107
  cyan: {
108
108
  light: { 30: "#264d57", 85: "#badbe4", 90: "#cbe9f0" },
@@ -182,6 +182,7 @@ var SECONDARY_COMPLEX_SELECTOR = {
182
182
  borderColor: SECONDARY_BUTTON.borderColor,
183
183
  ':hover:not(:has(> :is(:disabled, [aria-disabled="true"])))': SECONDARY_BUTTON[":hover"]
184
184
  };
185
+ var colorModes = ["light", "dark"];
185
186
  var stoneTheme = defineTheme({
186
187
  name: "stone",
187
188
  typography: {
@@ -342,6 +343,8 @@ var stoneTheme = defineTheme({
342
343
  "--radius-element": "0.5rem",
343
344
  "--radius-container": "0.75rem",
344
345
  "--radius-page": "1.5rem",
346
+ // Chat surfaces stay rounder than cards.
347
+ "--radius-chat": "28px",
345
348
  "--radius-full": "9999px",
346
349
  // Shadows
347
350
  "--shadow-low": `0 2px 4px ${withAlpha(neutral.light[15], "0d")}, 0 4px 8px ${withAlpha(neutral.light[15], "1a")}`,
@@ -407,34 +410,51 @@ var stoneTheme = defineTheme({
407
410
  "--color-on-error-muted": "var(--color-text-red)"
408
411
  }
409
412
  },
410
- // Progress fills use the same family as their matching status surface;
411
- // the darker stop in dark mode keeps the channel visible on dark tracks.
413
+ // Status fills take the theme's status roles, and the accent fill uses the
414
+ // blue family; each reaches 3:1 on the skeleton track in both modes.
412
415
  "progress-bar-fill": {
413
416
  "variant:accent": {
414
- backgroundColor: lightDark(blue.light[90], blue.dark[70])
417
+ backgroundColor: lightDark(blue.light[40], blue.dark[80])
415
418
  },
416
419
  "variant:success": {
417
- backgroundColor: lightDark(green.light[90], green.dark[70])
420
+ backgroundColor: "var(--color-success)"
418
421
  },
419
422
  "variant:warning": {
420
- backgroundColor: lightDark(yellow.light[90], yellow.dark[70])
423
+ backgroundColor: "var(--color-warning)"
421
424
  },
422
425
  "variant:error": {
423
- backgroundColor: lightDark(red.light[90], red.dark[70])
426
+ backgroundColor: "var(--color-error)"
427
+ },
428
+ // The secondary text color (stop 70) reads under 3:1 on the dark track,
429
+ // so a neutral or disabled fill takes stop 80 there.
430
+ "variant:neutral": {
431
+ backgroundColor: lightDark(
432
+ "var(--color-text-secondary)",
433
+ neutral.dark[80]
434
+ )
435
+ },
436
+ "variant:disabled": {
437
+ backgroundColor: lightDark(
438
+ "var(--color-text-secondary)",
439
+ neutral.dark[80]
440
+ )
424
441
  }
425
442
  },
443
+ // A mark on a fill is light ink on the dark light-mode fills (stops 30 and
444
+ // 40) and dark ink on the pale dark-mode fills. A status fill is the
445
+ // status color, so its mark takes that status's on-color.
426
446
  "progress-bar-mark": {
427
447
  "placement:fill+variant:accent": {
428
- backgroundColor: "var(--color-on-light)"
448
+ backgroundColor: lightDark(neutral.light[100], "var(--color-on-light)")
429
449
  },
430
450
  "placement:fill+variant:success": {
431
- backgroundColor: "var(--color-on-light)"
451
+ backgroundColor: "var(--color-on-success)"
432
452
  },
433
453
  "placement:fill+variant:warning": {
434
- backgroundColor: "var(--color-on-light)"
454
+ backgroundColor: "var(--color-on-warning)"
435
455
  },
436
456
  "placement:fill+variant:error": {
437
- backgroundColor: "var(--color-on-light)"
457
+ backgroundColor: "var(--color-on-error)"
438
458
  }
439
459
  },
440
460
  // The default muted track is too close to Stone's body surface.
@@ -478,9 +498,78 @@ var stoneTheme = defineTheme({
478
498
  "complex-selector": { "variant:secondary": SECONDARY_COMPLEX_SELECTOR },
479
499
  typeahead: INPUT_STATUS_VARS,
480
500
  tokenizer: INPUT_STATUS_VARS,
501
+ // Secondary text on a muted or coloured card steps to the nearest
502
+ // neutral stop that reads at 4.5:1 on that fill, and on the accent tint
503
+ // of a selected row or a numbered citation over it.
481
504
  card: {
482
505
  base: {
483
506
  padding: "var(--spacing-3)"
507
+ },
508
+ "variant:muted": {
509
+ "--color-text-secondary": lightDark(
510
+ neutral.light[35],
511
+ neutral.dark[80]
512
+ )
513
+ },
514
+ "variant:blue": {
515
+ "--color-text-secondary": lightDark(
516
+ neutral.light[35],
517
+ neutral.dark[95]
518
+ )
519
+ },
520
+ "variant:cyan": {
521
+ "--color-text-secondary": lightDark(
522
+ neutral.light[35],
523
+ neutral.dark[95]
524
+ )
525
+ },
526
+ "variant:gray": {
527
+ "--color-text-secondary": lightDark(
528
+ neutral.light[35],
529
+ neutral.dark[95]
530
+ )
531
+ },
532
+ "variant:green": {
533
+ "--color-text-secondary": lightDark(
534
+ neutral.light[35],
535
+ neutral.dark[95]
536
+ )
537
+ },
538
+ "variant:orange": {
539
+ "--color-text-secondary": lightDark(
540
+ neutral.light[35],
541
+ neutral.dark[90]
542
+ )
543
+ },
544
+ "variant:pink": {
545
+ "--color-text-secondary": lightDark(
546
+ neutral.light[35],
547
+ neutral.dark[90]
548
+ )
549
+ },
550
+ "variant:purple": {
551
+ "--color-text-secondary": lightDark(
552
+ neutral.light[35],
553
+ neutral.dark[95]
554
+ )
555
+ },
556
+ "variant:red": {
557
+ "--color-text-secondary": lightDark(
558
+ neutral.light[35],
559
+ neutral.dark[90]
560
+ )
561
+ },
562
+ "variant:teal": {
563
+ "--color-text-secondary": lightDark(
564
+ neutral.light[35],
565
+ neutral.dark[95]
566
+ )
567
+ },
568
+ "variant:yellow": {
569
+ "--color-text-secondary": lightDark(
570
+ neutral.light[35],
571
+ neutral.dark[95]
572
+ )
484
573
  }
485
574
  },
486
575
  section: {
@@ -744,6 +833,7 @@ var stonePalettes = {
744
833
  }
745
834
  };
746
835
  export {
836
+ colorModes,
747
837
  stoneIconRegistry,
748
838
  stonePalettes,
749
839
  stoneTheme
package/dist/stone.d.ts CHANGED
@@ -6,6 +6,7 @@
6
6
  * Core: @astryxdesign/core@0.7.17
7
7
  */
8
8
 
9
+ /// <reference path="./stone.variants.d.ts" />
9
10
  import type { DefinedTheme } from '@astryxdesign/core/theme';
10
11
  import type { IconRegistry } from '@astryxdesign/core/Icon';
11
12
  export declare const stoneIconRegistry: IconRegistry;
package/dist/stone.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { stoneIconRegistry } from "./icons.mjs";
10
10
  /**
11
- * stone theme — built by `pnpm exec astryx theme build`
11
+ * stone theme — built by `astryx theme build`
12
12
  * Import the CSS file alongside this module:
13
13
  *
14
14
  * import { stoneTheme } from './stone';
@@ -206,6 +206,7 @@ export const stoneTheme = {
206
206
  "--radius-element": "0.5rem",
207
207
  "--radius-container": "0.75rem",
208
208
  "--radius-page": "1.5rem",
209
+ "--radius-chat": "28px",
209
210
  "--radius-full": "9999px",
210
211
  "--shadow-low": "0 2px 4px #25252a0d, 0 4px 8px #25252a1a",
211
212
  "--shadow-med": "0 2px 4px #25252a0d, 0 4px 12px #25252a1a",
@@ -372,30 +373,36 @@ export const stoneTheme = {
372
373
  },
373
374
  "progress-bar-fill": {
374
375
  "variant:accent": {
375
- "backgroundColor": "light-dark(#d3e4fc, #9aadc7)"
376
+ "backgroundColor": "light-dark(#516074, #b6c8e1)"
376
377
  },
377
378
  "variant:success": {
378
- "backgroundColor": "light-dark(#d2eccf, #90ba8a)"
379
+ "backgroundColor": "var(--color-success)"
379
380
  },
380
381
  "variant:warning": {
381
- "backgroundColor": "light-dark(#f4e1b7, #c2af6e)"
382
+ "backgroundColor": "var(--color-warning)"
382
383
  },
383
384
  "variant:error": {
384
- "backgroundColor": "light-dark(#fbdad4, #c6a29c)"
385
+ "backgroundColor": "var(--color-error)"
386
+ },
387
+ "variant:neutral": {
388
+ "backgroundColor": "light-dark(var(--color-text-secondary), #c6c6cf)"
389
+ },
390
+ "variant:disabled": {
391
+ "backgroundColor": "light-dark(var(--color-text-secondary), #c6c6cf)"
385
392
  }
386
393
  },
387
394
  "progress-bar-mark": {
388
395
  "placement:fill+variant:accent": {
389
- "backgroundColor": "var(--color-on-light)"
396
+ "backgroundColor": "light-dark(#ffffff, var(--color-on-light))"
390
397
  },
391
398
  "placement:fill+variant:success": {
392
- "backgroundColor": "var(--color-on-light)"
399
+ "backgroundColor": "var(--color-on-success)"
393
400
  },
394
401
  "placement:fill+variant:warning": {
395
- "backgroundColor": "var(--color-on-light)"
402
+ "backgroundColor": "var(--color-on-warning)"
396
403
  },
397
404
  "placement:fill+variant:error": {
398
- "backgroundColor": "var(--color-on-light)"
405
+ "backgroundColor": "var(--color-on-error)"
399
406
  }
400
407
  },
401
408
  "progress-bar-track": {
@@ -584,6 +591,39 @@ export const stoneTheme = {
584
591
  "card": {
585
592
  "base": {
586
593
  "padding": "var(--spacing-3)"
594
+ },
595
+ "variant:muted": {
596
+ "--color-text-secondary": "light-dark(#525259, #c6c6cf)"
597
+ },
598
+ "variant:blue": {
599
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
600
+ },
601
+ "variant:cyan": {
602
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
603
+ },
604
+ "variant:gray": {
605
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
606
+ },
607
+ "variant:green": {
608
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
609
+ },
610
+ "variant:orange": {
611
+ "--color-text-secondary": "light-dark(#525259, #e2e2e8)"
612
+ },
613
+ "variant:pink": {
614
+ "--color-text-secondary": "light-dark(#525259, #e2e2e8)"
615
+ },
616
+ "variant:purple": {
617
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
618
+ },
619
+ "variant:red": {
620
+ "--color-text-secondary": "light-dark(#525259, #e2e2e8)"
621
+ },
622
+ "variant:teal": {
623
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
624
+ },
625
+ "variant:yellow": {
626
+ "--color-text-secondary": "light-dark(#525259, #f0f0f9)"
587
627
  }
588
628
  },
589
629
  "section": {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @generated by `astryx theme build` — do not edit manually.
3
+ * Source: src/stoneTheme.ts
4
+ * Command: astryx theme build src/stoneTheme.ts --out dist/theme.css
5
+ * CLI: @astryxdesign/cli@0.7.17
6
+ * Core: @astryxdesign/core@0.7.17
7
+ */
8
+
9
+ // Generated by astryx theme build
10
+ export {};
11
+
12
+ declare module '@astryxdesign/core/ProgressBar' {
13
+ interface ProgressBarVariantMap {
14
+ 'disabled': true;
15
+ }
16
+ }
@@ -79,6 +79,7 @@ export declare const stonePaletteRefs: {
79
79
  readonly 0: "#000000";
80
80
  readonly 15: "#25252a";
81
81
  readonly 30: "#46464e";
82
+ readonly 35: "#525259";
82
83
  readonly 40: "#5f5f64";
83
84
  readonly 55: "#848489";
84
85
  readonly 85: "#d4d3dd";
@@ -97,6 +98,7 @@ export declare const stonePaletteRefs: {
97
98
  readonly 40: "#5e5e64";
98
99
  readonly 65: "#9d9ea5";
99
100
  readonly 70: "#ababb3";
101
+ readonly 80: "#c6c6cf";
100
102
  readonly 90: "#e2e2e8";
101
103
  readonly 95: "#f0f0f9";
102
104
  readonly 100: "#ffffff";
@@ -126,6 +128,7 @@ export declare const stonePaletteRefs: {
126
128
  readonly 25: "#2c3c52";
127
129
  readonly 35: "#445469";
128
130
  readonly 70: "#9aadc7";
131
+ readonly 80: "#b6c8e1";
129
132
  readonly 90: "#d5e4f8";
130
133
  };
131
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"stonePaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/stonePaletteRefs.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnB,CAAC;AAEX,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"stonePaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/stonePaletteRefs.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnB,CAAC;AAEX,eAAe,gBAAgB,CAAC"}
@@ -1,3 +1,5 @@
1
+ /** The color modes stone draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const stoneTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
2
4
  /**
3
5
  * Frozen released compatibility palettes. These values preserve the public
@@ -1,3 +1,5 @@
1
+ /** The color modes stone draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const stoneTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
2
4
  /**
3
5
  * Frozen released compatibility palettes. These values preserve the public
@@ -1 +1 @@
1
- {"version":3,"file":"stoneTheme.d.ts","sourceRoot":"","sources":["../src/stoneTheme.ts"],"names":[],"mappings":"AAsHA,eAAO,MAAM,UAAU,gEA2VrB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PhB,CAAC"}
1
+ {"version":3,"file":"stoneTheme.d.ts","sourceRoot":"","sources":["../src/stoneTheme.ts"],"names":[],"mappings":"AAsHA,mDAAmD;AACnD,eAAO,MAAM,UAAU,4BAA6B,CAAC;AAErD,eAAO,MAAM,UAAU,gEAmbrB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2PhB,CAAC"}