@astryxdesign/theme-stone 0.7.17-canary.gffd1c8e → 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 +33 -11
  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 +32 -11
  7. package/dist/stone.d.ts +1 -0
  8. package/dist/stone.js +16 -9
  9. package/dist/stone.variants.d.ts +16 -0
  10. package/dist/stonePaletteRefs.generated.d.ts +1 -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 +33 -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 +1 -1
  75. package/src/stoneTheme.ts +32 -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
@@ -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.
@@ -812,6 +833,7 @@ var stonePalettes = {
812
833
  };
813
834
  // Annotate the CommonJS export names for ESM import in node:
814
835
  0 && (module.exports = {
836
+ colorModes,
815
837
  stoneIconRegistry,
816
838
  stonePalettes,
817
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
@@ -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.
@@ -813,6 +833,7 @@ var stonePalettes = {
813
833
  }
814
834
  };
815
835
  export {
836
+ colorModes,
816
837
  stoneIconRegistry,
817
838
  stonePalettes,
818
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": {
@@ -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
+ }
@@ -128,6 +128,7 @@ export declare const stonePaletteRefs: {
128
128
  readonly 25: "#2c3c52";
129
129
  readonly 35: "#445469";
130
130
  readonly 70: "#9aadc7";
131
+ readonly 80: "#b6c8e1";
131
132
  readonly 90: "#d5e4f8";
132
133
  };
133
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,gEAgarB,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"}
package/dist/theme.css CHANGED
@@ -80,7 +80,6 @@
80
80
  }
81
81
 
82
82
  @layer astryx-theme {
83
- :root { color-scheme: light dark; }
84
83
  html[data-theme="light"] { color-scheme: light; }
85
84
  html[data-theme="dark"] { color-scheme: dark; }
86
85
 
@@ -286,6 +285,7 @@
286
285
  --radius-element: 0.5rem;
287
286
  --radius-container: 0.75rem;
288
287
  --radius-page: 1.5rem;
288
+ --radius-chat: 28px;
289
289
  --radius-full: 9999px;
290
290
  --shadow-low: 0 2px 4px #25252a0d, 0 4px 8px #25252a1a;
291
291
  --shadow-med: 0 2px 4px #25252a0d, 0 4px 12px #25252a1a;
@@ -485,35 +485,43 @@
485
485
  }
486
486
 
487
487
  .astryx-progress-bar-fill[data-variant="accent"] {
488
- background-color: light-dark(#d3e4fc, #9aadc7);
488
+ background-color: light-dark(#516074, #b6c8e1);
489
489
  }
490
490
 
491
491
  .astryx-progress-bar-fill[data-variant="success"] {
492
- background-color: light-dark(#d2eccf, #90ba8a);
492
+ background-color: var(--color-success);
493
493
  }
494
494
 
495
495
  .astryx-progress-bar-fill[data-variant="warning"] {
496
- background-color: light-dark(#f4e1b7, #c2af6e);
496
+ background-color: var(--color-warning);
497
497
  }
498
498
 
499
499
  .astryx-progress-bar-fill[data-variant="error"] {
500
- background-color: light-dark(#fbdad4, #c6a29c);
500
+ background-color: var(--color-error);
501
+ }
502
+
503
+ .astryx-progress-bar-fill[data-variant="neutral"] {
504
+ background-color: light-dark(var(--color-text-secondary), #c6c6cf);
505
+ }
506
+
507
+ .astryx-progress-bar-fill[data-variant="disabled"] {
508
+ background-color: light-dark(var(--color-text-secondary), #c6c6cf);
501
509
  }
502
510
 
503
511
  .astryx-progress-bar-mark[data-placement="fill"][data-variant="accent"] {
504
- background-color: var(--color-on-light);
512
+ background-color: light-dark(#ffffff, var(--color-on-light));
505
513
  }
506
514
 
507
515
  .astryx-progress-bar-mark[data-placement="fill"][data-variant="success"] {
508
- background-color: var(--color-on-light);
516
+ background-color: var(--color-on-success);
509
517
  }
510
518
 
511
519
  .astryx-progress-bar-mark[data-placement="fill"][data-variant="warning"] {
512
- background-color: var(--color-on-light);
520
+ background-color: var(--color-on-warning);
513
521
  }
514
522
 
515
523
  .astryx-progress-bar-mark[data-placement="fill"][data-variant="error"] {
516
- background-color: var(--color-on-light);
524
+ background-color: var(--color-on-error);
517
525
  }
518
526
 
519
527
  .astryx-progress-bar-track {
@@ -908,5 +916,21 @@
908
916
  --color-icon-primary: var(--color-on-light);
909
917
  --color-accent: var(--color-on-light);
910
918
  }
919
+
920
+ :where(:scope[data-theme="dark"]) [data-astryx-media-dark-page="light"], :where(:scope:not([data-theme="light"], [data-theme="dark"]):not(:is([data-theme="light"], [data-theme="dark"]) *):where(html[data-astryx-scheme="dark"] *)) [data-astryx-media-dark-page="light"] {
921
+ color-scheme: light;
922
+ --color-text-primary: var(--color-on-light);
923
+ --color-icon-primary: var(--color-on-light);
924
+ --color-accent: var(--color-on-light);
925
+ }
926
+
927
+ @media (prefers-color-scheme: dark) {
928
+ :where(:scope:not([data-theme="light"], [data-theme="dark"]):not(:is([data-theme="light"], [data-theme="dark"]) *):where(html:not([data-astryx-scheme]) *)) [data-astryx-media-dark-page="light"], :where(:is([data-theme="light"], [data-theme="dark"]) :scope:not([data-theme="light"], [data-theme="dark"])) [data-astryx-media-dark-page="light"] {
929
+ color-scheme: light;
930
+ --color-text-primary: var(--color-on-light);
931
+ --color-icon-primary: var(--color-on-light);
932
+ --color-accent: var(--color-on-light);
933
+ }
934
+ }
911
935
  }
912
936
  }
@@ -0,0 +1,93 @@
1
+ Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree) Figtree-Italic[wght].ttf: Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.