@astryxdesign/theme-butter 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 +11 -3
- package/dist/butter.js +30 -5
- package/dist/butter.variants.d.ts +6 -0
- package/dist/butterTheme.d.cts +2 -0
- package/dist/butterTheme.d.ts +2 -0
- package/dist/butterTheme.d.ts.map +1 -1
- package/dist/source.cjs +47 -9
- 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 +45 -8
- package/dist/theme.css +53 -5
- package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono.LICENSE.txt +93 -0
- package/fonts/outfit-latin-400-normal.woff2 +0 -0
- package/fonts/outfit-latin-500-normal.woff2 +0 -0
- package/fonts/outfit-latin-600-normal.woff2 +0 -0
- package/fonts/outfit-latin-700-normal.woff2 +0 -0
- package/fonts/outfit-latin-ext-400-normal.woff2 +0 -0
- package/fonts/outfit-latin-ext-500-normal.woff2 +0 -0
- package/fonts/outfit-latin-ext-600-normal.woff2 +0 -0
- package/fonts/outfit-latin-ext-700-normal.woff2 +0 -0
- package/fonts/outfit.LICENSE.txt +93 -0
- package/fonts/sarina-latin-400-normal.woff2 +0 -0
- package/fonts/sarina-latin-ext-400-normal.woff2 +0 -0
- package/fonts/sarina.LICENSE.txt +93 -0
- package/fonts.css +394 -1
- package/package.json +4 -3
- package/src/butterTheme.ts +50 -9
- package/src/source.ts +1 -1
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -59,6 +59,14 @@ copies synchronized.
|
|
|
59
59
|
- **Heading & Body**: Outfit, base 14px, ratio 1.25.
|
|
60
60
|
- **Code**: JetBrains Mono.
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
The theme's font stylesheet loads Sarina, Outfit and JetBrains Mono from font
|
|
63
|
+
files shipped in this package (in `fonts/`, with their licenses), each with
|
|
64
|
+
`font-display: fallback`, so a page never waits on a network; served from the same
|
|
65
|
+
machine or a fast connection, the text first draws in the theme's fonts (a face
|
|
66
|
+
that takes more than about 3 s leaves that page in the fallback font):
|
|
67
|
+
|
|
68
|
+
```css
|
|
69
|
+
@import '@astryxdesign/theme-butter/fonts.css';
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
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=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=Sarina&display=swap" />`.
|
package/dist/butter.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { butterIconRegistry } from "./icons.mjs";
|
|
10
10
|
/**
|
|
11
|
-
* butter theme — built by `
|
|
11
|
+
* butter theme — built by `astryx theme build`
|
|
12
12
|
* Import the CSS file alongside this module:
|
|
13
13
|
*
|
|
14
14
|
* import { butterTheme } from './butter';
|
|
@@ -208,6 +208,7 @@ export const butterTheme = {
|
|
|
208
208
|
"--radius-element": "0.5rem",
|
|
209
209
|
"--radius-container": "0.75rem",
|
|
210
210
|
"--radius-page": "1.5rem",
|
|
211
|
+
"--radius-chat": "28px",
|
|
211
212
|
"--radius-full": "9999px",
|
|
212
213
|
"--shadow-low": "0 2px 4px #1d1c110d, 0 4px 8px #1d1c111a",
|
|
213
214
|
"--shadow-med": "0 2px 4px #1d1c110d, 0 4px 12px #1d1c111a",
|
|
@@ -314,6 +315,13 @@ export const butterTheme = {
|
|
|
314
315
|
"lineHeight": "var(--text-display-3-leading)"
|
|
315
316
|
}
|
|
316
317
|
},
|
|
318
|
+
"chat-send-button": {
|
|
319
|
+
"base": {
|
|
320
|
+
":where(.astryx-chat-composer *)": {
|
|
321
|
+
"borderRadius": "16px"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
317
325
|
"item": {
|
|
318
326
|
"selected": {
|
|
319
327
|
"--color-text-secondary": "light-dark(#725538, #f0edd4)",
|
|
@@ -549,13 +557,30 @@ export const butterTheme = {
|
|
|
549
557
|
},
|
|
550
558
|
"progress-bar-fill": {
|
|
551
559
|
"variant:success": {
|
|
552
|
-
"backgroundColor": "
|
|
560
|
+
"backgroundColor": "var(--color-success)"
|
|
553
561
|
},
|
|
554
562
|
"variant:warning": {
|
|
555
|
-
"backgroundColor": "
|
|
563
|
+
"backgroundColor": "var(--color-warning)"
|
|
556
564
|
},
|
|
557
565
|
"variant:error": {
|
|
558
|
-
"backgroundColor": "
|
|
566
|
+
"backgroundColor": "var(--color-error)"
|
|
567
|
+
},
|
|
568
|
+
"variant:neutral": {
|
|
569
|
+
"backgroundColor": "light-dark(var(--color-text-secondary), #d6d3b8)"
|
|
570
|
+
},
|
|
571
|
+
"variant:disabled": {
|
|
572
|
+
"backgroundColor": "light-dark(var(--color-text-secondary), #d6d3b8)"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"progress-bar-mark": {
|
|
576
|
+
"placement:fill+variant:success": {
|
|
577
|
+
"backgroundColor": "var(--color-on-success)"
|
|
578
|
+
},
|
|
579
|
+
"placement:fill+variant:warning": {
|
|
580
|
+
"backgroundColor": "var(--color-on-warning)"
|
|
581
|
+
},
|
|
582
|
+
"placement:fill+variant:error": {
|
|
583
|
+
"backgroundColor": "var(--color-on-error)"
|
|
559
584
|
}
|
|
560
585
|
},
|
|
561
586
|
"field-status": {
|
|
@@ -910,7 +935,7 @@ export const butterTheme = {
|
|
|
910
935
|
}
|
|
911
936
|
},
|
|
912
937
|
"table-row": {
|
|
913
|
-
"
|
|
938
|
+
"striped": {
|
|
914
939
|
":nth-child(even of :not([data-expansion-panel]))": {
|
|
915
940
|
"--color-text-primary": "light-dark(#1d1c11, #f3f2e2)",
|
|
916
941
|
"--color-text-secondary": "light-dark(#605f52, #adac9e)",
|
package/dist/butterTheme.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The color modes butter draws: light and dark. */
|
|
2
|
+
export declare const colorModes: readonly ["light", "dark"];
|
|
1
3
|
export declare const butterTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
|
|
2
4
|
/**
|
|
3
5
|
* Frozen released compatibility palettes. These ramps preserve the public
|
package/dist/butterTheme.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** The color modes butter draws: light and dark. */
|
|
2
|
+
export declare const colorModes: readonly ["light", "dark"];
|
|
1
3
|
export declare const butterTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
|
|
2
4
|
/**
|
|
3
5
|
* Frozen released compatibility palettes. These ramps preserve the public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"butterTheme.d.ts","sourceRoot":"","sources":["../src/butterTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"butterTheme.d.ts","sourceRoot":"","sources":["../src/butterTheme.ts"],"names":[],"mappings":"AAiRA,oDAAoD;AACpD,eAAO,MAAM,UAAU,4BAA6B,CAAC;AAErD,eAAO,MAAM,WAAW,gEAunBtB,CAAC;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmUjB,CAAC"}
|
package/dist/source.cjs
CHANGED
|
@@ -22,7 +22,8 @@ var source_exports = {};
|
|
|
22
22
|
__export(source_exports, {
|
|
23
23
|
butterIconRegistry: () => butterIconRegistry,
|
|
24
24
|
butterPalettes: () => butterPalettes,
|
|
25
|
-
butterTheme: () => butterTheme
|
|
25
|
+
butterTheme: () => butterTheme,
|
|
26
|
+
colorModes: () => colorModes
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(source_exports);
|
|
28
29
|
|
|
@@ -161,7 +162,7 @@ var OWN_FILL_RULES = [
|
|
|
161
162
|
["avatar-group-overflow", "base"],
|
|
162
163
|
["segmented-control-item", "selected"],
|
|
163
164
|
["step-indicator", "progress:not-started"],
|
|
164
|
-
["table-row", "
|
|
165
|
+
["table-row", "striped", STRIPED_ROW],
|
|
165
166
|
["banner-content", "base"],
|
|
166
167
|
["input-group-text", "base"],
|
|
167
168
|
["text-input", "base"],
|
|
@@ -302,6 +303,7 @@ var INPUT_STATUS_VARS = {
|
|
|
302
303
|
"--color-icon-error": red.light[60]
|
|
303
304
|
}
|
|
304
305
|
};
|
|
306
|
+
var colorModes = ["light", "dark"];
|
|
305
307
|
var butterTheme = (0, import_theme.defineTheme)({
|
|
306
308
|
name: "butter",
|
|
307
309
|
typography: {
|
|
@@ -495,6 +497,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
495
497
|
"--radius-container": "0.75rem",
|
|
496
498
|
// 12px
|
|
497
499
|
"--radius-page": "1.5rem",
|
|
500
|
+
// Chat surfaces stay rounder than cards.
|
|
501
|
+
"--radius-chat": "28px",
|
|
498
502
|
"--radius-full": "9999px",
|
|
499
503
|
// =========================================================================
|
|
500
504
|
// Shadows — warm neutral tint
|
|
@@ -509,6 +513,11 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
509
513
|
"--shadow-inset-error": `inset 0px 0px 0px 2px ${withAlpha(red.light[30], "30")}`
|
|
510
514
|
},
|
|
511
515
|
components: withOwnFillText({
|
|
516
|
+
// The send button keeps the 16px corner it took from the 28px composer:
|
|
517
|
+
// a rounded square on Butter's 40px controls.
|
|
518
|
+
"chat-send-button": {
|
|
519
|
+
base: { ":where(.astryx-chat-composer *)": { borderRadius: "16px" } }
|
|
520
|
+
},
|
|
512
521
|
// In dark mode, secondary text falls under 4.5:1 on the selected fill (the
|
|
513
522
|
// accent tint) and under its hover. Selected rows, a dropzone's hint and
|
|
514
523
|
// a numbered citation, all on that fill, use the nearest stop that clears
|
|
@@ -577,7 +586,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
577
586
|
button: {
|
|
578
587
|
// Radius intentionally not pinned, so buttons keep core's
|
|
579
588
|
// `var(--_button-radius, --radius-element)`: standalone buttons stay 8px,
|
|
580
|
-
// while the chat composer (which sets --_button-radius)
|
|
589
|
+
// while the chat composer (which sets --_button-radius) gives them its
|
|
590
|
+
// 16px concentric corner.
|
|
581
591
|
// Inline padding only. Button sets its own block padding and height.
|
|
582
592
|
base: {
|
|
583
593
|
paddingInline: "var(--spacing-4)"
|
|
@@ -728,8 +738,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
728
738
|
padding: "var(--spacing-4)"
|
|
729
739
|
}
|
|
730
740
|
},
|
|
731
|
-
// Progress bar — pale track in light, warm brown in dark.
|
|
732
|
-
//
|
|
741
|
+
// Progress bar — pale track in light, warm brown in dark. Status fills take
|
|
742
|
+
// the theme's status roles, which reach 3:1 on that track.
|
|
733
743
|
"progress-bar-track": {
|
|
734
744
|
base: {
|
|
735
745
|
backgroundColor: lightDark(neutral.light[85], neutral.dark[40])
|
|
@@ -737,13 +747,40 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
737
747
|
},
|
|
738
748
|
"progress-bar-fill": {
|
|
739
749
|
"variant:success": {
|
|
740
|
-
backgroundColor:
|
|
750
|
+
backgroundColor: "var(--color-success)"
|
|
741
751
|
},
|
|
742
752
|
"variant:warning": {
|
|
743
|
-
backgroundColor:
|
|
753
|
+
backgroundColor: "var(--color-warning)"
|
|
744
754
|
},
|
|
745
755
|
"variant:error": {
|
|
746
|
-
backgroundColor:
|
|
756
|
+
backgroundColor: "var(--color-error)"
|
|
757
|
+
},
|
|
758
|
+
// The secondary text color (stop 70) reads under 3:1 on the dark track,
|
|
759
|
+
// so a neutral or disabled fill takes stop 80 there.
|
|
760
|
+
"variant:neutral": {
|
|
761
|
+
backgroundColor: lightDark(
|
|
762
|
+
"var(--color-text-secondary)",
|
|
763
|
+
neutral.dark[80]
|
|
764
|
+
)
|
|
765
|
+
},
|
|
766
|
+
"variant:disabled": {
|
|
767
|
+
backgroundColor: lightDark(
|
|
768
|
+
"var(--color-text-secondary)",
|
|
769
|
+
neutral.dark[80]
|
|
770
|
+
)
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
// A status fill is the status color, so its mark takes that status's
|
|
774
|
+
// on-color.
|
|
775
|
+
"progress-bar-mark": {
|
|
776
|
+
"placement:fill+variant:success": {
|
|
777
|
+
backgroundColor: "var(--color-on-success)"
|
|
778
|
+
},
|
|
779
|
+
"placement:fill+variant:warning": {
|
|
780
|
+
backgroundColor: "var(--color-on-warning)"
|
|
781
|
+
},
|
|
782
|
+
"placement:fill+variant:error": {
|
|
783
|
+
backgroundColor: "var(--color-on-error)"
|
|
747
784
|
}
|
|
748
785
|
},
|
|
749
786
|
// Field status bubble — match the corresponding banner colors so the
|
|
@@ -1189,5 +1226,6 @@ var butterPalettes = {
|
|
|
1189
1226
|
0 && (module.exports = {
|
|
1190
1227
|
butterIconRegistry,
|
|
1191
1228
|
butterPalettes,
|
|
1192
|
-
butterTheme
|
|
1229
|
+
butterTheme,
|
|
1230
|
+
colorModes
|
|
1193
1231
|
});
|
package/dist/source.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { butterPalettes, butterTheme } from './butterTheme.cjs';
|
|
1
|
+
export { colorModes, butterPalettes, butterTheme } from './butterTheme.cjs';
|
|
2
2
|
export { butterIconRegistry } from './icons.cjs';
|
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,cAAc,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}
|
package/dist/source.mjs
CHANGED
|
@@ -163,7 +163,7 @@ var OWN_FILL_RULES = [
|
|
|
163
163
|
["avatar-group-overflow", "base"],
|
|
164
164
|
["segmented-control-item", "selected"],
|
|
165
165
|
["step-indicator", "progress:not-started"],
|
|
166
|
-
["table-row", "
|
|
166
|
+
["table-row", "striped", STRIPED_ROW],
|
|
167
167
|
["banner-content", "base"],
|
|
168
168
|
["input-group-text", "base"],
|
|
169
169
|
["text-input", "base"],
|
|
@@ -304,6 +304,7 @@ var INPUT_STATUS_VARS = {
|
|
|
304
304
|
"--color-icon-error": red.light[60]
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
|
+
var colorModes = ["light", "dark"];
|
|
307
308
|
var butterTheme = defineTheme({
|
|
308
309
|
name: "butter",
|
|
309
310
|
typography: {
|
|
@@ -497,6 +498,8 @@ var butterTheme = defineTheme({
|
|
|
497
498
|
"--radius-container": "0.75rem",
|
|
498
499
|
// 12px
|
|
499
500
|
"--radius-page": "1.5rem",
|
|
501
|
+
// Chat surfaces stay rounder than cards.
|
|
502
|
+
"--radius-chat": "28px",
|
|
500
503
|
"--radius-full": "9999px",
|
|
501
504
|
// =========================================================================
|
|
502
505
|
// Shadows — warm neutral tint
|
|
@@ -511,6 +514,11 @@ var butterTheme = defineTheme({
|
|
|
511
514
|
"--shadow-inset-error": `inset 0px 0px 0px 2px ${withAlpha(red.light[30], "30")}`
|
|
512
515
|
},
|
|
513
516
|
components: withOwnFillText({
|
|
517
|
+
// The send button keeps the 16px corner it took from the 28px composer:
|
|
518
|
+
// a rounded square on Butter's 40px controls.
|
|
519
|
+
"chat-send-button": {
|
|
520
|
+
base: { ":where(.astryx-chat-composer *)": { borderRadius: "16px" } }
|
|
521
|
+
},
|
|
514
522
|
// In dark mode, secondary text falls under 4.5:1 on the selected fill (the
|
|
515
523
|
// accent tint) and under its hover. Selected rows, a dropzone's hint and
|
|
516
524
|
// a numbered citation, all on that fill, use the nearest stop that clears
|
|
@@ -579,7 +587,8 @@ var butterTheme = defineTheme({
|
|
|
579
587
|
button: {
|
|
580
588
|
// Radius intentionally not pinned, so buttons keep core's
|
|
581
589
|
// `var(--_button-radius, --radius-element)`: standalone buttons stay 8px,
|
|
582
|
-
// while the chat composer (which sets --_button-radius)
|
|
590
|
+
// while the chat composer (which sets --_button-radius) gives them its
|
|
591
|
+
// 16px concentric corner.
|
|
583
592
|
// Inline padding only. Button sets its own block padding and height.
|
|
584
593
|
base: {
|
|
585
594
|
paddingInline: "var(--spacing-4)"
|
|
@@ -730,8 +739,8 @@ var butterTheme = defineTheme({
|
|
|
730
739
|
padding: "var(--spacing-4)"
|
|
731
740
|
}
|
|
732
741
|
},
|
|
733
|
-
// Progress bar — pale track in light, warm brown in dark.
|
|
734
|
-
//
|
|
742
|
+
// Progress bar — pale track in light, warm brown in dark. Status fills take
|
|
743
|
+
// the theme's status roles, which reach 3:1 on that track.
|
|
735
744
|
"progress-bar-track": {
|
|
736
745
|
base: {
|
|
737
746
|
backgroundColor: lightDark(neutral.light[85], neutral.dark[40])
|
|
@@ -739,13 +748,40 @@ var butterTheme = defineTheme({
|
|
|
739
748
|
},
|
|
740
749
|
"progress-bar-fill": {
|
|
741
750
|
"variant:success": {
|
|
742
|
-
backgroundColor:
|
|
751
|
+
backgroundColor: "var(--color-success)"
|
|
743
752
|
},
|
|
744
753
|
"variant:warning": {
|
|
745
|
-
backgroundColor:
|
|
754
|
+
backgroundColor: "var(--color-warning)"
|
|
746
755
|
},
|
|
747
756
|
"variant:error": {
|
|
748
|
-
backgroundColor:
|
|
757
|
+
backgroundColor: "var(--color-error)"
|
|
758
|
+
},
|
|
759
|
+
// The secondary text color (stop 70) reads under 3:1 on the dark track,
|
|
760
|
+
// so a neutral or disabled fill takes stop 80 there.
|
|
761
|
+
"variant:neutral": {
|
|
762
|
+
backgroundColor: lightDark(
|
|
763
|
+
"var(--color-text-secondary)",
|
|
764
|
+
neutral.dark[80]
|
|
765
|
+
)
|
|
766
|
+
},
|
|
767
|
+
"variant:disabled": {
|
|
768
|
+
backgroundColor: lightDark(
|
|
769
|
+
"var(--color-text-secondary)",
|
|
770
|
+
neutral.dark[80]
|
|
771
|
+
)
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
// A status fill is the status color, so its mark takes that status's
|
|
775
|
+
// on-color.
|
|
776
|
+
"progress-bar-mark": {
|
|
777
|
+
"placement:fill+variant:success": {
|
|
778
|
+
backgroundColor: "var(--color-on-success)"
|
|
779
|
+
},
|
|
780
|
+
"placement:fill+variant:warning": {
|
|
781
|
+
backgroundColor: "var(--color-on-warning)"
|
|
782
|
+
},
|
|
783
|
+
"placement:fill+variant:error": {
|
|
784
|
+
backgroundColor: "var(--color-on-error)"
|
|
749
785
|
}
|
|
750
786
|
},
|
|
751
787
|
// Field status bubble — match the corresponding banner colors so the
|
|
@@ -1190,5 +1226,6 @@ var butterPalettes = {
|
|
|
1190
1226
|
export {
|
|
1191
1227
|
butterIconRegistry,
|
|
1192
1228
|
butterPalettes,
|
|
1193
|
-
butterTheme
|
|
1229
|
+
butterTheme,
|
|
1230
|
+
colorModes
|
|
1194
1231
|
};
|
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
|
|
|
@@ -288,6 +287,7 @@
|
|
|
288
287
|
--radius-element: 0.5rem;
|
|
289
288
|
--radius-container: 0.75rem;
|
|
290
289
|
--radius-page: 1.5rem;
|
|
290
|
+
--radius-chat: 28px;
|
|
291
291
|
--radius-full: 9999px;
|
|
292
292
|
--shadow-low: 0 2px 4px #1d1c110d, 0 4px 8px #1d1c111a;
|
|
293
293
|
--shadow-med: 0 2px 4px #1d1c110d, 0 4px 12px #1d1c111a;
|
|
@@ -421,6 +421,10 @@
|
|
|
421
421
|
line-height: var(--text-display-3-leading);
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
+
.astryx-chat-send-button:where(.astryx-chat-composer *) {
|
|
425
|
+
border-radius: 16px;
|
|
426
|
+
}
|
|
427
|
+
|
|
424
428
|
.astryx-item[data-selected="selected"] {
|
|
425
429
|
--color-text-secondary: light-dark(#725538, #f0edd4);
|
|
426
430
|
}
|
|
@@ -577,6 +581,14 @@
|
|
|
577
581
|
border-radius: var(--radius-container);
|
|
578
582
|
--astryx-card-padding: var(--spacing-4);
|
|
579
583
|
--_card-radius: var(--radius-container);
|
|
584
|
+
--_card-radius-top-left: var(--radius-container);
|
|
585
|
+
--_card-radius-top-right: var(--radius-container);
|
|
586
|
+
--_card-radius-bottom-right: var(--radius-container);
|
|
587
|
+
--_card-radius-bottom-left: var(--radius-container);
|
|
588
|
+
--_card-radius-start-start: initial;
|
|
589
|
+
--_card-radius-start-end: initial;
|
|
590
|
+
--_card-radius-end-start: initial;
|
|
591
|
+
--_card-radius-end-end: initial;
|
|
580
592
|
}
|
|
581
593
|
|
|
582
594
|
.astryx-card[data-variant="info"] {
|
|
@@ -692,15 +704,35 @@
|
|
|
692
704
|
}
|
|
693
705
|
|
|
694
706
|
.astryx-progress-bar-fill[data-variant="success"] {
|
|
695
|
-
background-color:
|
|
707
|
+
background-color: var(--color-success);
|
|
696
708
|
}
|
|
697
709
|
|
|
698
710
|
.astryx-progress-bar-fill[data-variant="warning"] {
|
|
699
|
-
background-color:
|
|
711
|
+
background-color: var(--color-warning);
|
|
700
712
|
}
|
|
701
713
|
|
|
702
714
|
.astryx-progress-bar-fill[data-variant="error"] {
|
|
703
|
-
background-color:
|
|
715
|
+
background-color: var(--color-error);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.astryx-progress-bar-fill[data-variant="neutral"] {
|
|
719
|
+
background-color: light-dark(var(--color-text-secondary), #d6d3b8);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.astryx-progress-bar-fill[data-variant="disabled"] {
|
|
723
|
+
background-color: light-dark(var(--color-text-secondary), #d6d3b8);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.astryx-progress-bar-mark[data-placement="fill"][data-variant="success"] {
|
|
727
|
+
background-color: var(--color-on-success);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.astryx-progress-bar-mark[data-placement="fill"][data-variant="warning"] {
|
|
731
|
+
background-color: var(--color-on-warning);
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.astryx-progress-bar-mark[data-placement="fill"][data-variant="error"] {
|
|
735
|
+
background-color: var(--color-on-error);
|
|
704
736
|
}
|
|
705
737
|
|
|
706
738
|
.astryx-field-status[data-type="success"] {
|
|
@@ -1067,7 +1099,7 @@
|
|
|
1067
1099
|
--color-text-accent: light-dark(#225bff, #fdee8c);
|
|
1068
1100
|
}
|
|
1069
1101
|
|
|
1070
|
-
.astryx-table-row:nth-child(even of :not([data-expansion-panel])) {
|
|
1102
|
+
.astryx-table-row[data-striped="striped"]:nth-child(even of :not([data-expansion-panel])) {
|
|
1071
1103
|
--color-text-primary: light-dark(#1d1c11, #f3f2e2);
|
|
1072
1104
|
--color-text-secondary: light-dark(#605f52, #adac9e);
|
|
1073
1105
|
--color-text-accent: light-dark(#225bff, #fdee8c);
|
|
@@ -1319,5 +1351,21 @@
|
|
|
1319
1351
|
--color-icon-primary: var(--color-on-light);
|
|
1320
1352
|
--color-accent: var(--color-on-light);
|
|
1321
1353
|
}
|
|
1354
|
+
|
|
1355
|
+
: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"] {
|
|
1356
|
+
color-scheme: light;
|
|
1357
|
+
--color-text-primary: var(--color-on-light);
|
|
1358
|
+
--color-icon-primary: var(--color-on-light);
|
|
1359
|
+
--color-accent: var(--color-on-light);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
@media (prefers-color-scheme: dark) {
|
|
1363
|
+
: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"] {
|
|
1364
|
+
color-scheme: light;
|
|
1365
|
+
--color-text-primary: var(--color-on-light);
|
|
1366
|
+
--color-icon-primary: var(--color-on-light);
|
|
1367
|
+
--color-accent: var(--color-on-light);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1322
1370
|
}
|
|
1323
1371
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
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.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|