@astryxdesign/theme-neutral 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.
package/README.md CHANGED
@@ -92,19 +92,15 @@ This theme uses a custom typeface:
92
92
  | Heading | Figtree |
93
93
  | Code | System monospace (built in) |
94
94
 
95
- **Figtree must be loaded separately.** The theme references it by name but does not bundle the font files.
95
+ **Load it with the theme's font stylesheet.** It loads Figtree from font files shipped in this package (in `fonts/`, with its license), 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):
96
96
 
97
- Add this to your HTML `<head>`:
98
-
99
- ```html
100
- <link rel="preconnect" href="https://fonts.googleapis.com" />
101
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
102
- <link
103
- rel="stylesheet"
104
- href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap" />
97
+ ```css
98
+ @import '@astryxdesign/theme-neutral/fonts.css';
105
99
  ```
106
100
 
107
- Without this, the theme falls back to system fonts. If you'd rather avoid external font requests entirely (offline apps, no-third-party-request policies), that fallback is a supported choice — the system stack is designed to hold up on its own.
101
+ 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&display=swap" />`.
102
+
103
+ Without it, the theme falls back to system fonts, a supported choice: the system stack is designed to hold up on its own.
108
104
 
109
105
  ## Related Packages
110
106
 
package/dist/neutral.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { neutralIconRegistry } from "./icons.mjs";
10
10
  /**
11
- * neutral theme — built by `pnpm exec astryx theme build`
11
+ * neutral theme — built by `astryx theme build`
12
12
  * Import the CSS file alongside this module:
13
13
  *
14
14
  * import { neutralTheme } from './neutral';
@@ -205,6 +205,7 @@ export const neutralTheme = {
205
205
  "--radius-element": "0.625rem",
206
206
  "--radius-container": "0.75rem",
207
207
  "--radius-page": "1.75rem",
208
+ "--radius-chat": "28px",
208
209
  "--radius-full": "9999px",
209
210
  "--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%))",
210
211
  "--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%))",
@@ -422,6 +423,14 @@ export const neutralTheme = {
422
423
  "--color-background-muted": "var(--color-border-emphasized)"
423
424
  }
424
425
  },
426
+ "progress-bar-fill": {
427
+ "variant:neutral": {
428
+ "backgroundColor": "light-dark(var(--color-text-secondary), #b9b9b9)"
429
+ },
430
+ "variant:disabled": {
431
+ "backgroundColor": "light-dark(var(--color-text-secondary), #b9b9b9)"
432
+ }
433
+ },
425
434
  "card": {
426
435
  "base": {
427
436
  "padding": "var(--spacing-3)"
@@ -14,3 +14,9 @@ declare module '@astryxdesign/core/Badge' {
14
14
  'gray': true;
15
15
  }
16
16
  }
17
+
18
+ declare module '@astryxdesign/core/ProgressBar' {
19
+ interface ProgressBarVariantMap {
20
+ 'disabled': true;
21
+ }
22
+ }
@@ -1 +1,3 @@
1
+ /** The color modes neutral draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const neutralTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
@@ -1,2 +1,4 @@
1
+ /** The color modes neutral draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const neutralTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
2
4
  //# sourceMappingURL=neutralTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,gEAiZvB,CAAC"}
1
+ {"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,qDAAqD;AACrD,eAAO,MAAM,UAAU,4BAA6B,CAAC;AAErD,eAAO,MAAM,YAAY,gEA8ZvB,CAAC"}
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
  neutralIconRegistry: () => neutralIconRegistry,
24
25
  neutralPalettes: () => neutralPalettes,
25
26
  neutralTheme: () => neutralTheme
@@ -140,6 +141,7 @@ var neutralLocalTokens = {
140
141
  // portable --color-* roles and no longer reads it.
141
142
  "--astryx-theme-neutral-color-status-fill-accent": ["#0074e2", "#6d9cfe"]
142
143
  };
144
+ var colorModes = ["light", "dark"];
143
145
  var neutralTheme = (0, import_theme.defineTheme)({
144
146
  name: "neutral",
145
147
  localTokens: neutralLocalTokens,
@@ -305,6 +307,8 @@ var neutralTheme = (0, import_theme.defineTheme)({
305
307
  "--radius-element": "0.625rem",
306
308
  "--radius-container": "0.75rem",
307
309
  "--radius-page": "1.75rem",
310
+ // Chat surfaces stay rounder than cards.
311
+ "--radius-chat": "28px",
308
312
  "--radius-full": "9999px",
309
313
  // =========================================================================
310
314
  // Shadows
@@ -448,6 +452,16 @@ var neutralTheme = (0, import_theme.defineTheme)({
448
452
  "--color-background-muted": "var(--color-border-emphasized)"
449
453
  }
450
454
  },
455
+ // Secondary text (stop 65) reads under 3:1 on the dark track, so a neutral
456
+ // or disabled fill takes stop 75 there.
457
+ "progress-bar-fill": {
458
+ "variant:neutral": {
459
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`
460
+ },
461
+ "variant:disabled": {
462
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`
463
+ }
464
+ },
451
465
  // Secondary text on a coloured card steps to the nearest neutral stop
452
466
  // that reads at 4.5:1 on that fill, and under a hover, in dark mode.
453
467
  card: {
@@ -997,6 +1011,7 @@ var neutralPalettes = {
997
1011
  };
998
1012
  // Annotate the CommonJS export names for ESM import in node:
999
1013
  0 && (module.exports = {
1014
+ colorModes,
1000
1015
  neutralIconRegistry,
1001
1016
  neutralPalettes,
1002
1017
  neutralTheme
package/dist/source.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { neutralTheme } from './neutralTheme.cjs';
1
+ export { colorModes, neutralTheme } from './neutralTheme.cjs';
2
2
  export { neutralPalettes } from './neutralPalettes.cjs';
3
3
  export { neutralIconRegistry } from './icons.cjs';
package/dist/source.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { neutralTheme } from './neutralTheme.js';
1
+ export { colorModes, neutralTheme } from './neutralTheme.js';
2
2
  export { neutralPalettes } from './neutralPalettes.js';
3
3
  export { neutralIconRegistry } from './icons.js';
4
4
  //# sourceMappingURL=source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC"}
package/dist/source.mjs CHANGED
@@ -145,6 +145,7 @@ var neutralLocalTokens = {
145
145
  // portable --color-* roles and no longer reads it.
146
146
  "--astryx-theme-neutral-color-status-fill-accent": ["#0074e2", "#6d9cfe"]
147
147
  };
148
+ var colorModes = ["light", "dark"];
148
149
  var neutralTheme = defineTheme({
149
150
  name: "neutral",
150
151
  localTokens: neutralLocalTokens,
@@ -310,6 +311,8 @@ var neutralTheme = defineTheme({
310
311
  "--radius-element": "0.625rem",
311
312
  "--radius-container": "0.75rem",
312
313
  "--radius-page": "1.75rem",
314
+ // Chat surfaces stay rounder than cards.
315
+ "--radius-chat": "28px",
313
316
  "--radius-full": "9999px",
314
317
  // =========================================================================
315
318
  // Shadows
@@ -453,6 +456,16 @@ var neutralTheme = defineTheme({
453
456
  "--color-background-muted": "var(--color-border-emphasized)"
454
457
  }
455
458
  },
459
+ // Secondary text (stop 65) reads under 3:1 on the dark track, so a neutral
460
+ // or disabled fill takes stop 75 there.
461
+ "progress-bar-fill": {
462
+ "variant:neutral": {
463
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`
464
+ },
465
+ "variant:disabled": {
466
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`
467
+ }
468
+ },
456
469
  // Secondary text on a coloured card steps to the nearest neutral stop
457
470
  // that reads at 4.5:1 on that fill, and under a hover, in dark mode.
458
471
  card: {
@@ -1001,6 +1014,7 @@ var neutralPalettes = {
1001
1014
  ...palette
1002
1015
  };
1003
1016
  export {
1017
+ colorModes,
1004
1018
  neutralIconRegistry,
1005
1019
  neutralPalettes,
1006
1020
  neutralTheme
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
 
@@ -285,6 +284,7 @@
285
284
  --radius-element: 0.625rem;
286
285
  --radius-container: 0.75rem;
287
286
  --radius-page: 1.75rem;
287
+ --radius-chat: 28px;
288
288
  --radius-full: 9999px;
289
289
  --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%));
290
290
  --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%));
@@ -527,6 +527,14 @@
527
527
  --color-background-muted: var(--color-border-emphasized);
528
528
  }
529
529
 
530
+ .astryx-progress-bar-fill[data-variant="neutral"] {
531
+ background-color: light-dark(var(--color-text-secondary), #b9b9b9);
532
+ }
533
+
534
+ .astryx-progress-bar-fill[data-variant="disabled"] {
535
+ background-color: light-dark(var(--color-text-secondary), #b9b9b9);
536
+ }
537
+
530
538
  .astryx-card {
531
539
  --astryx-card-padding: var(--spacing-3);
532
540
  }
@@ -720,5 +728,21 @@
720
728
  --color-icon-primary: var(--color-on-light);
721
729
  --color-accent: var(--color-on-light);
722
730
  }
731
+
732
+ :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"] {
733
+ color-scheme: light;
734
+ --color-text-primary: var(--color-on-light);
735
+ --color-icon-primary: var(--color-on-light);
736
+ --color-accent: var(--color-on-light);
737
+ }
738
+
739
+ @media (prefers-color-scheme: dark) {
740
+ :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"] {
741
+ color-scheme: light;
742
+ --color-text-primary: var(--color-on-light);
743
+ --color-icon-primary: var(--color-on-light);
744
+ --color-accent: var(--color-on-light);
745
+ }
746
+ }
723
747
  }
724
748
  }
@@ -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.
package/fonts.css CHANGED
@@ -1,3 +1,108 @@
1
1
  /* Copyright (c) Meta Platforms, Inc. and affiliates. */
2
2
 
3
- @import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');
3
+ /*
4
+ * The theme's fonts, shipped in this package (their licenses are in
5
+ * fonts/): each face is a local woff2 file with font-display: fallback.
6
+ * Text waits about 100 ms for its face; served from the same machine or a
7
+ * fast connection, the face arrives in that time and the text first draws
8
+ * in the theme's font. A slower face shows the fallback font, and one that
9
+ * takes more than about 3 s stays in it on that page. A page never waits
10
+ * on a network.
11
+ * Written by scripts/vendor-theme-fonts.mjs: do not edit by hand.
12
+ */
13
+
14
+ @font-face {
15
+ font-family: 'Figtree';
16
+ font-style: normal;
17
+ font-display: fallback;
18
+ font-weight: 400;
19
+ src: url('./fonts/figtree-latin-ext-400-normal.woff2') format('woff2');
20
+ unicode-range:
21
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
22
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
23
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
24
+ }
25
+
26
+ @font-face {
27
+ font-family: 'Figtree';
28
+ font-style: normal;
29
+ font-display: fallback;
30
+ font-weight: 400;
31
+ src: url('./fonts/figtree-latin-400-normal.woff2') format('woff2');
32
+ unicode-range:
33
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
34
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
35
+ U+2215, U+FEFF, U+FFFD;
36
+ }
37
+
38
+ @font-face {
39
+ font-family: 'Figtree';
40
+ font-style: normal;
41
+ font-display: fallback;
42
+ font-weight: 500;
43
+ src: url('./fonts/figtree-latin-ext-500-normal.woff2') format('woff2');
44
+ unicode-range:
45
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
46
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
47
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: 'Figtree';
52
+ font-style: normal;
53
+ font-display: fallback;
54
+ font-weight: 500;
55
+ src: url('./fonts/figtree-latin-500-normal.woff2') format('woff2');
56
+ unicode-range:
57
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
58
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
59
+ U+2215, U+FEFF, U+FFFD;
60
+ }
61
+
62
+ @font-face {
63
+ font-family: 'Figtree';
64
+ font-style: normal;
65
+ font-display: fallback;
66
+ font-weight: 600;
67
+ src: url('./fonts/figtree-latin-ext-600-normal.woff2') format('woff2');
68
+ unicode-range:
69
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
70
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
71
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: 'Figtree';
76
+ font-style: normal;
77
+ font-display: fallback;
78
+ font-weight: 600;
79
+ src: url('./fonts/figtree-latin-600-normal.woff2') format('woff2');
80
+ unicode-range:
81
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
82
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
83
+ U+2215, U+FEFF, U+FFFD;
84
+ }
85
+
86
+ @font-face {
87
+ font-family: 'Figtree';
88
+ font-style: normal;
89
+ font-display: fallback;
90
+ font-weight: 700;
91
+ src: url('./fonts/figtree-latin-ext-700-normal.woff2') format('woff2');
92
+ unicode-range:
93
+ U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
94
+ U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
95
+ U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
96
+ }
97
+
98
+ @font-face {
99
+ font-family: 'Figtree';
100
+ font-style: normal;
101
+ font-display: fallback;
102
+ font-weight: 700;
103
+ src: url('./fonts/figtree-latin-700-normal.woff2') format('woff2');
104
+ unicode-range:
105
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
106
+ U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
107
+ U+2215, U+FEFF, U+FFFD;
108
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-neutral",
3
- "version": "0.7.17-canary.gffd1c8e",
3
+ "version": "0.7.17",
4
4
  "displayName": "Neutral Theme",
5
5
  "private": false,
6
6
  "description": "Restrained warm grays. Minimal and quiet, so the content stays the focus.",
@@ -58,6 +58,7 @@
58
58
  "src",
59
59
  "fonts.css",
60
60
  "fonts.css.d.ts",
61
+ "fonts",
61
62
  "theme.css.d.ts",
62
63
  "palette.config.json",
63
64
  "!**/*.test.*",
@@ -78,11 +79,11 @@
78
79
  "lucide-react": "^1.66.0"
79
80
  },
80
81
  "peerDependencies": {
81
- "@astryxdesign/core": "0.7.17-canary.gffd1c8e",
82
+ "@astryxdesign/core": "0.7.17",
82
83
  "react": ">=19"
83
84
  },
84
85
  "devDependencies": {
85
- "@astryxdesign/cli": "0.7.17-canary.gffd1c8e"
86
+ "@astryxdesign/cli": "0.7.17"
86
87
  },
87
88
  "module": "./dist/source.mjs",
88
89
  "scripts": {
@@ -39,6 +39,9 @@ const neutralLocalTokens: Record<string, TokenValue> = {
39
39
  '--astryx-theme-neutral-color-status-fill-accent': ['#0074e2', '#6d9cfe'],
40
40
  };
41
41
 
42
+ /** The color modes neutral draws: light and dark. */
43
+ export const colorModes = ['light', 'dark'] as const;
44
+
42
45
  export const neutralTheme = defineTheme({
43
46
  name: 'neutral',
44
47
  localTokens: neutralLocalTokens,
@@ -233,6 +236,8 @@ export const neutralTheme = defineTheme({
233
236
  '--radius-element': '0.625rem',
234
237
  '--radius-container': '0.75rem',
235
238
  '--radius-page': '1.75rem',
239
+ // Chat surfaces stay rounder than cards.
240
+ '--radius-chat': '28px',
236
241
  '--radius-full': '9999px',
237
242
 
238
243
  // =========================================================================
@@ -394,6 +399,17 @@ export const neutralTheme = defineTheme({
394
399
  },
395
400
  },
396
401
 
402
+ // Secondary text (stop 65) reads under 3:1 on the dark track, so a neutral
403
+ // or disabled fill takes stop 75 there.
404
+ 'progress-bar-fill': {
405
+ 'variant:neutral': {
406
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`,
407
+ },
408
+ 'variant:disabled': {
409
+ backgroundColor: `light-dark(var(--color-text-secondary), ${neutral.dark[75]})`,
410
+ },
411
+ },
412
+
397
413
  // Secondary text on a coloured card steps to the nearest neutral stop
398
414
  // that reads at 4.5:1 on that fill, and under a hover, in dark mode.
399
415
  card: {
package/src/source.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- export {neutralTheme} from './neutralTheme';
3
+ export {colorModes, neutralTheme} from './neutralTheme';
4
4
  export {neutralPalettes} from './neutralPalettes';
5
5
  export {neutralIconRegistry} from './icons';
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Meta Platforms, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.