@astryxdesign/theme-butter 0.7.11 → 0.7.12-canary.07e325e
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/dist/butter.d.ts +2 -2
- package/dist/butter.js +3 -4
- package/dist/butter.variants.d.ts +2 -2
- package/dist/source.js +3 -2
- package/dist/source.mjs +3 -2
- package/dist/theme.css +59 -28
- package/dist/theme.css.d.ts +2 -2
- package/package.json +3 -3
- package/src/butterTheme.ts +2 -2
package/dist/butter.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/butterTheme.ts
|
|
4
4
|
* Command: astryx theme build src/butterTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.12
|
|
6
|
+
* Core: @astryxdesign/core@0.7.12
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference path="./butter.variants.d.ts" />
|
package/dist/butter.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/butterTheme.ts
|
|
4
4
|
* Command: astryx theme build src/butterTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.12
|
|
6
|
+
* Core: @astryxdesign/core@0.7.12
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { butterIconRegistry } from "./icons.mjs";
|
|
@@ -60,7 +60,7 @@ export const butterTheme = {
|
|
|
60
60
|
"--text-code-size": "var(--font-size-base)",
|
|
61
61
|
"--text-code-weight": "var(--font-weight-normal)",
|
|
62
62
|
"--text-code-leading": "1.4286",
|
|
63
|
-
"--text-supporting-size": "
|
|
63
|
+
"--text-supporting-size": "0.75rem",
|
|
64
64
|
"--text-supporting-weight": "var(--font-weight-normal)",
|
|
65
65
|
"--text-supporting-leading": "1.4545",
|
|
66
66
|
"--text-display-1-size": "var(--font-size-5xl)",
|
|
@@ -337,7 +337,6 @@ export const butterTheme = {
|
|
|
337
337
|
},
|
|
338
338
|
"button": {
|
|
339
339
|
"base": {
|
|
340
|
-
"paddingBlock": "var(--spacing-3)",
|
|
341
340
|
"paddingInline": "var(--spacing-4)"
|
|
342
341
|
},
|
|
343
342
|
"variant:secondary": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/butterTheme.ts
|
|
4
4
|
* Command: astryx theme build src/butterTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.12
|
|
6
|
+
* Core: @astryxdesign/core@0.7.12
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
// Generated by astryx theme build
|
package/dist/source.js
CHANGED
|
@@ -322,7 +322,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
322
322
|
],
|
|
323
323
|
"--color-tint-hover": [neutral.light[0], neutral.dark[100]],
|
|
324
324
|
// Typography override
|
|
325
|
-
"--text-supporting-size": "
|
|
325
|
+
"--text-supporting-size": "0.75rem",
|
|
326
|
+
// 12px at the default root size
|
|
326
327
|
// Element sizes — slightly taller defaults so the new input padding
|
|
327
328
|
// (--spacing-2 block) has room to breathe.
|
|
328
329
|
"--size-element-sm": "32px",
|
|
@@ -443,8 +444,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
443
444
|
// Radius intentionally not pinned, so buttons keep core's
|
|
444
445
|
// `var(--_button-radius, --radius-element)`: standalone buttons stay 8px,
|
|
445
446
|
// while the chat composer (which sets --_button-radius) rounds them fully.
|
|
447
|
+
// Inline padding only. Button sets its own block padding and height.
|
|
446
448
|
base: {
|
|
447
|
-
paddingBlock: "var(--spacing-3)",
|
|
448
449
|
paddingInline: "var(--spacing-4)"
|
|
449
450
|
},
|
|
450
451
|
"variant:secondary": SECONDARY_BUTTON,
|
package/dist/source.mjs
CHANGED
|
@@ -324,7 +324,8 @@ var butterTheme = defineTheme({
|
|
|
324
324
|
],
|
|
325
325
|
"--color-tint-hover": [neutral.light[0], neutral.dark[100]],
|
|
326
326
|
// Typography override
|
|
327
|
-
"--text-supporting-size": "
|
|
327
|
+
"--text-supporting-size": "0.75rem",
|
|
328
|
+
// 12px at the default root size
|
|
328
329
|
// Element sizes — slightly taller defaults so the new input padding
|
|
329
330
|
// (--spacing-2 block) has room to breathe.
|
|
330
331
|
"--size-element-sm": "32px",
|
|
@@ -445,8 +446,8 @@ var butterTheme = defineTheme({
|
|
|
445
446
|
// Radius intentionally not pinned, so buttons keep core's
|
|
446
447
|
// `var(--_button-radius, --radius-element)`: standalone buttons stay 8px,
|
|
447
448
|
// while the chat composer (which sets --_button-radius) rounds them fully.
|
|
449
|
+
// Inline padding only. Button sets its own block padding and height.
|
|
448
450
|
base: {
|
|
449
|
-
paddingBlock: "var(--spacing-3)",
|
|
450
451
|
paddingInline: "var(--spacing-4)"
|
|
451
452
|
},
|
|
452
453
|
"variant:secondary": SECONDARY_BUTTON,
|
package/dist/theme.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/butterTheme.ts
|
|
4
4
|
* Command: astryx theme build src/butterTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.12
|
|
6
|
+
* Core: @astryxdesign/core@0.7.12
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@layer reset, astryx-base, astryx-theme;
|
|
@@ -86,18 +86,30 @@
|
|
|
86
86
|
|
|
87
87
|
@scope ([data-astryx-theme="butter"]) to ([data-astryx-theme]) {
|
|
88
88
|
:scope {
|
|
89
|
-
--font-size-4xs: 0.3125rem;
|
|
90
|
-
--font-size-
|
|
91
|
-
--font-size-
|
|
92
|
-
--font-size-
|
|
93
|
-
--font-size-
|
|
94
|
-
--font-size-
|
|
95
|
-
--font-size-
|
|
96
|
-
--font-size-
|
|
97
|
-
--font-size-
|
|
98
|
-
--font-size-
|
|
99
|
-
--font-size-
|
|
100
|
-
--font-size-
|
|
89
|
+
--_scaled-font-size-4xs: min(calc(0.3125rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
90
|
+
--font-size-4xs: var(--_scaled-font-size-4xs);
|
|
91
|
+
--_scaled-font-size-3xs: min(calc(0.375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
92
|
+
--font-size-3xs: var(--_scaled-font-size-3xs);
|
|
93
|
+
--_scaled-font-size-2xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
94
|
+
--font-size-2xs: var(--_scaled-font-size-2xs);
|
|
95
|
+
--_scaled-font-size-xs: min(calc(0.5625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
96
|
+
--font-size-xs: var(--_scaled-font-size-xs);
|
|
97
|
+
--_scaled-font-size-sm: min(calc(0.6875rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
98
|
+
--font-size-sm: var(--_scaled-font-size-sm);
|
|
99
|
+
--_scaled-font-size-base: min(calc(0.875rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
100
|
+
--font-size-base: var(--_scaled-font-size-base);
|
|
101
|
+
--_scaled-font-size-lg: min(calc(1.125rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
102
|
+
--font-size-lg: var(--_scaled-font-size-lg);
|
|
103
|
+
--_scaled-font-size-xl: min(calc(1.375rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
104
|
+
--font-size-xl: var(--_scaled-font-size-xl);
|
|
105
|
+
--_scaled-font-size-2xl: min(calc(1.6875rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
106
|
+
--font-size-2xl: var(--_scaled-font-size-2xl);
|
|
107
|
+
--_scaled-font-size-3xl: min(calc(2.125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
108
|
+
--font-size-3xl: var(--_scaled-font-size-3xl);
|
|
109
|
+
--_scaled-font-size-4xl: min(calc(2.6875rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
110
|
+
--font-size-4xl: var(--_scaled-font-size-4xl);
|
|
111
|
+
--_scaled-font-size-5xl: calc(3.3125rem * var(--_dynamic-type-large-title, 1));
|
|
112
|
+
--font-size-5xl: var(--_scaled-font-size-5xl);
|
|
101
113
|
--text-heading-1-size: var(--font-size-2xl);
|
|
102
114
|
--text-heading-1-weight: var(--font-weight-semibold);
|
|
103
115
|
--text-heading-1-leading: 1.3333;
|
|
@@ -128,7 +140,7 @@
|
|
|
128
140
|
--text-code-size: var(--font-size-base);
|
|
129
141
|
--text-code-weight: var(--font-weight-normal);
|
|
130
142
|
--text-code-leading: 1.4286;
|
|
131
|
-
--text-supporting-size:
|
|
143
|
+
--text-supporting-size: calc(0.75rem * var(--_dynamic-type-footnote, 1));
|
|
132
144
|
--text-supporting-weight: var(--font-weight-normal);
|
|
133
145
|
--text-supporting-leading: 1.4545;
|
|
134
146
|
--text-display-1-size: var(--font-size-5xl);
|
|
@@ -427,12 +439,19 @@
|
|
|
427
439
|
background-color: var(--color-overlay-hover);
|
|
428
440
|
}
|
|
429
441
|
|
|
442
|
+
@media not all and (pointer: coarse) {
|
|
430
443
|
.astryx-top-nav-item[data-selected="selected"]:active {
|
|
431
444
|
background-color: var(--color-overlay-pressed);
|
|
432
445
|
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
@media (pointer: coarse) {
|
|
449
|
+
.astryx-top-nav-item[data-selected="selected"]:is([data-astryx-press="on"], [data-astryx-press="on"] :where(:not([data-astryx-pressable], [data-astryx-press="on"] [data-astryx-pressable] *)), :where(:not([data-astryx-pressable])):has([data-astryx-press="on"])) {
|
|
450
|
+
background-color: var(--color-overlay-pressed);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
433
453
|
|
|
434
454
|
.astryx-button {
|
|
435
|
-
padding-block: var(--spacing-3);
|
|
436
455
|
padding-inline: var(--spacing-4);
|
|
437
456
|
}
|
|
438
457
|
|
|
@@ -910,18 +929,30 @@
|
|
|
910
929
|
@media (width < 1024px) and (pointer: coarse) {
|
|
911
930
|
@scope ([data-astryx-theme="butter"]) to ([data-astryx-theme]) {
|
|
912
931
|
:scope {
|
|
913
|
-
--font-size-4xs: 0.375rem;
|
|
914
|
-
--font-size-
|
|
915
|
-
--font-size-
|
|
916
|
-
--font-size-
|
|
917
|
-
--font-size-
|
|
918
|
-
--font-size-
|
|
919
|
-
--font-size-
|
|
920
|
-
--font-size-
|
|
921
|
-
--font-size-
|
|
922
|
-
--font-size-
|
|
923
|
-
--font-size-
|
|
924
|
-
--font-size-
|
|
932
|
+
--_scaled-font-size-4xs: min(calc(0.375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
933
|
+
--font-size-4xs: var(--_scaled-font-size-4xs);
|
|
934
|
+
--_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
935
|
+
--font-size-3xs: var(--_scaled-font-size-3xs);
|
|
936
|
+
--_scaled-font-size-2xs: min(calc(0.5625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
937
|
+
--font-size-2xs: var(--_scaled-font-size-2xs);
|
|
938
|
+
--_scaled-font-size-xs: min(calc(0.6875rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
939
|
+
--font-size-xs: var(--_scaled-font-size-xs);
|
|
940
|
+
--_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
941
|
+
--font-size-sm: var(--_scaled-font-size-sm);
|
|
942
|
+
--_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
943
|
+
--font-size-base: var(--_scaled-font-size-base);
|
|
944
|
+
--_scaled-font-size-lg: min(calc(1.25rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
945
|
+
--font-size-lg: var(--_scaled-font-size-lg);
|
|
946
|
+
--_scaled-font-size-xl: min(calc(1.5rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
947
|
+
--font-size-xl: var(--_scaled-font-size-xl);
|
|
948
|
+
--_scaled-font-size-2xl: min(calc(1.8125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
949
|
+
--font-size-2xl: var(--_scaled-font-size-2xl);
|
|
950
|
+
--_scaled-font-size-3xl: min(calc(2.25rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
951
|
+
--font-size-3xl: var(--_scaled-font-size-3xl);
|
|
952
|
+
--_scaled-font-size-4xl: min(calc(2.75rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
953
|
+
--font-size-4xl: var(--_scaled-font-size-4xl);
|
|
954
|
+
--_scaled-font-size-5xl: calc(3.3125rem * var(--_dynamic-type-large-title, 1));
|
|
955
|
+
--font-size-5xl: var(--_scaled-font-size-5xl);
|
|
925
956
|
--text-heading-1-size: var(--font-size-2xl);
|
|
926
957
|
--text-heading-1-weight: var(--font-weight-semibold);
|
|
927
958
|
--text-heading-1-leading: 1.3793;
|
package/dist/theme.css.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/butterTheme.ts
|
|
4
4
|
* Command: astryx theme build src/butterTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.12
|
|
6
|
+
* Core: @astryxdesign/core@0.7.12
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-butter",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12-canary.07e325e",
|
|
4
4
|
"displayName": "Butter Theme",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Warm, creamy yellows with a friendly blue accent. Playful enough for consumer surfaces, soft enough to stay readable.",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"lucide-react": "^1.18.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@astryxdesign/core": "0.7.
|
|
74
|
+
"@astryxdesign/core": "0.7.12-canary.07e325e",
|
|
75
75
|
"react": ">=19"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@astryxdesign/cli": "0.7.
|
|
78
|
+
"@astryxdesign/cli": "0.7.12-canary.07e325e"
|
|
79
79
|
},
|
|
80
80
|
"module": "./dist/source.mjs",
|
|
81
81
|
"scripts": {
|
package/src/butterTheme.ts
CHANGED
|
@@ -260,7 +260,7 @@ export const butterTheme = defineTheme({
|
|
|
260
260
|
'--color-tint-hover': [neutral.light[0], neutral.dark[100]],
|
|
261
261
|
|
|
262
262
|
// Typography override
|
|
263
|
-
'--text-supporting-size': '
|
|
263
|
+
'--text-supporting-size': '0.75rem', // 12px at the default root size
|
|
264
264
|
|
|
265
265
|
// Element sizes — slightly taller defaults so the new input padding
|
|
266
266
|
// (--spacing-2 block) has room to breathe.
|
|
@@ -394,8 +394,8 @@ export const butterTheme = defineTheme({
|
|
|
394
394
|
// Radius intentionally not pinned, so buttons keep core's
|
|
395
395
|
// `var(--_button-radius, --radius-element)`: standalone buttons stay 8px,
|
|
396
396
|
// while the chat composer (which sets --_button-radius) rounds them fully.
|
|
397
|
+
// Inline padding only. Button sets its own block padding and height.
|
|
397
398
|
base: {
|
|
398
|
-
paddingBlock: 'var(--spacing-3)',
|
|
399
399
|
paddingInline: 'var(--spacing-4)',
|
|
400
400
|
},
|
|
401
401
|
'variant:secondary': SECONDARY_BUTTON,
|