@astryxdesign/theme-neutral 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.
- package/README.md +6 -10
- package/dist/neutral.js +37 -1
- package/dist/neutral.variants.d.ts +6 -0
- package/dist/neutralTheme.d.cts +2 -0
- package/dist/neutralTheme.d.ts +2 -0
- package/dist/neutralTheme.d.ts.map +1 -1
- package/dist/source.cjs +44 -0
- package/dist/source.d.cts +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.mjs +43 -0
- package/dist/theme.css +61 -1
- package/fonts/figtree-latin-400-normal.woff2 +0 -0
- package/fonts/figtree-latin-500-normal.woff2 +0 -0
- package/fonts/figtree-latin-600-normal.woff2 +0 -0
- package/fonts/figtree-latin-700-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-400-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-500-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-600-normal.woff2 +0 -0
- package/fonts/figtree-latin-ext-700-normal.woff2 +0 -0
- package/fonts/figtree.LICENSE.txt +93 -0
- package/fonts.css +106 -1
- package/package.json +4 -3
- package/src/neutralTheme.ts +45 -0
- package/src/source.ts +1 -1
- package/LICENSE +0 -21
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
|
-
**
|
|
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
|
-
|
|
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
|
-
|
|
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 `
|
|
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,9 +423,44 @@ 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)"
|
|
437
|
+
},
|
|
438
|
+
"variant:blue": {
|
|
439
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
440
|
+
},
|
|
441
|
+
"variant:cyan": {
|
|
442
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
443
|
+
},
|
|
444
|
+
"variant:green": {
|
|
445
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
446
|
+
},
|
|
447
|
+
"variant:orange": {
|
|
448
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
449
|
+
},
|
|
450
|
+
"variant:pink": {
|
|
451
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
452
|
+
},
|
|
453
|
+
"variant:purple": {
|
|
454
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
455
|
+
},
|
|
456
|
+
"variant:red": {
|
|
457
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
458
|
+
},
|
|
459
|
+
"variant:teal": {
|
|
460
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
461
|
+
},
|
|
462
|
+
"variant:yellow": {
|
|
463
|
+
"--color-text-secondary": "light-dark(#474747, #b9b9b9)"
|
|
428
464
|
}
|
|
429
465
|
},
|
|
430
466
|
"section": {
|
package/dist/neutralTheme.d.cts
CHANGED
package/dist/neutralTheme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,
|
|
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,9 +452,48 @@ 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
|
+
},
|
|
465
|
+
// Secondary text on a coloured card steps to the nearest neutral stop
|
|
466
|
+
// that reads at 4.5:1 on that fill, and under a hover, in dark mode.
|
|
451
467
|
card: {
|
|
452
468
|
base: {
|
|
453
469
|
padding: "var(--spacing-3)"
|
|
470
|
+
},
|
|
471
|
+
"variant:blue": {
|
|
472
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
473
|
+
},
|
|
474
|
+
"variant:cyan": {
|
|
475
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
476
|
+
},
|
|
477
|
+
"variant:green": {
|
|
478
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
479
|
+
},
|
|
480
|
+
"variant:orange": {
|
|
481
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
482
|
+
},
|
|
483
|
+
"variant:pink": {
|
|
484
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
485
|
+
},
|
|
486
|
+
"variant:purple": {
|
|
487
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
488
|
+
},
|
|
489
|
+
"variant:red": {
|
|
490
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
491
|
+
},
|
|
492
|
+
"variant:teal": {
|
|
493
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
494
|
+
},
|
|
495
|
+
"variant:yellow": {
|
|
496
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
454
497
|
}
|
|
455
498
|
},
|
|
456
499
|
section: {
|
|
@@ -968,6 +1011,7 @@ var neutralPalettes = {
|
|
|
968
1011
|
};
|
|
969
1012
|
// Annotate the CommonJS export names for ESM import in node:
|
|
970
1013
|
0 && (module.exports = {
|
|
1014
|
+
colorModes,
|
|
971
1015
|
neutralIconRegistry,
|
|
972
1016
|
neutralPalettes,
|
|
973
1017
|
neutralTheme
|
package/dist/source.d.cts
CHANGED
package/dist/source.d.ts
CHANGED
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,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,9 +456,48 @@ 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
|
+
},
|
|
469
|
+
// Secondary text on a coloured card steps to the nearest neutral stop
|
|
470
|
+
// that reads at 4.5:1 on that fill, and under a hover, in dark mode.
|
|
456
471
|
card: {
|
|
457
472
|
base: {
|
|
458
473
|
padding: "var(--spacing-3)"
|
|
474
|
+
},
|
|
475
|
+
"variant:blue": {
|
|
476
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
477
|
+
},
|
|
478
|
+
"variant:cyan": {
|
|
479
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
480
|
+
},
|
|
481
|
+
"variant:green": {
|
|
482
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
483
|
+
},
|
|
484
|
+
"variant:orange": {
|
|
485
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
486
|
+
},
|
|
487
|
+
"variant:pink": {
|
|
488
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
489
|
+
},
|
|
490
|
+
"variant:purple": {
|
|
491
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
492
|
+
},
|
|
493
|
+
"variant:red": {
|
|
494
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
495
|
+
},
|
|
496
|
+
"variant:teal": {
|
|
497
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
498
|
+
},
|
|
499
|
+
"variant:yellow": {
|
|
500
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`
|
|
459
501
|
}
|
|
460
502
|
},
|
|
461
503
|
section: {
|
|
@@ -972,6 +1014,7 @@ var neutralPalettes = {
|
|
|
972
1014
|
...palette
|
|
973
1015
|
};
|
|
974
1016
|
export {
|
|
1017
|
+
colorModes,
|
|
975
1018
|
neutralIconRegistry,
|
|
976
1019
|
neutralPalettes,
|
|
977
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,10 +527,54 @@
|
|
|
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
|
}
|
|
533
541
|
|
|
542
|
+
.astryx-card[data-variant="blue"] {
|
|
543
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.astryx-card[data-variant="cyan"] {
|
|
547
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.astryx-card[data-variant="green"] {
|
|
551
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.astryx-card[data-variant="orange"] {
|
|
555
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.astryx-card[data-variant="pink"] {
|
|
559
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.astryx-card[data-variant="purple"] {
|
|
563
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.astryx-card[data-variant="red"] {
|
|
567
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.astryx-card[data-variant="teal"] {
|
|
571
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.astryx-card[data-variant="yellow"] {
|
|
575
|
+
--color-text-secondary: light-dark(#474747, #b9b9b9);
|
|
576
|
+
}
|
|
577
|
+
|
|
534
578
|
.astryx-section {
|
|
535
579
|
--astryx-section-padding: var(--spacing-3);
|
|
536
580
|
}
|
|
@@ -684,5 +728,21 @@
|
|
|
684
728
|
--color-icon-primary: var(--color-on-light);
|
|
685
729
|
--color-accent: var(--color-on-light);
|
|
686
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
|
+
}
|
|
687
747
|
}
|
|
688
748
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
82
|
+
"@astryxdesign/core": "0.7.17",
|
|
82
83
|
"react": ">=19"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
|
-
"@astryxdesign/cli": "0.7.17
|
|
86
|
+
"@astryxdesign/cli": "0.7.17"
|
|
86
87
|
},
|
|
87
88
|
"module": "./dist/source.mjs",
|
|
88
89
|
"scripts": {
|
package/src/neutralTheme.ts
CHANGED
|
@@ -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,10 +399,50 @@ 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
|
+
|
|
413
|
+
// Secondary text on a coloured card steps to the nearest neutral stop
|
|
414
|
+
// that reads at 4.5:1 on that fill, and under a hover, in dark mode.
|
|
397
415
|
card: {
|
|
398
416
|
base: {
|
|
399
417
|
padding: 'var(--spacing-3)',
|
|
400
418
|
},
|
|
419
|
+
'variant:blue': {
|
|
420
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
421
|
+
},
|
|
422
|
+
'variant:cyan': {
|
|
423
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
424
|
+
},
|
|
425
|
+
'variant:green': {
|
|
426
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
427
|
+
},
|
|
428
|
+
'variant:orange': {
|
|
429
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
430
|
+
},
|
|
431
|
+
'variant:pink': {
|
|
432
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
433
|
+
},
|
|
434
|
+
'variant:purple': {
|
|
435
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
436
|
+
},
|
|
437
|
+
'variant:red': {
|
|
438
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
439
|
+
},
|
|
440
|
+
'variant:teal': {
|
|
441
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
442
|
+
},
|
|
443
|
+
'variant:yellow': {
|
|
444
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[75]})`,
|
|
445
|
+
},
|
|
401
446
|
},
|
|
402
447
|
|
|
403
448
|
section: {
|
package/src/source.ts
CHANGED
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.
|