@astryxdesign/theme-butter 0.7.1-canary.ff40b78 → 0.7.1
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.js +41 -0
- package/dist/butterTheme.d.ts.map +1 -1
- package/dist/source.js +34 -13
- package/dist/source.mjs +34 -13
- package/dist/theme.css +41 -0
- package/package.json +3 -3
- package/src/butterTheme.ts +53 -11
package/dist/butter.js
CHANGED
|
@@ -98,6 +98,11 @@ export const butterTheme = {
|
|
|
98
98
|
"--color-syntax-property": "light-dark(#00482d, #94d3bb)",
|
|
99
99
|
"--color-syntax-punctuation": "light-dark(#605f52, #adac9e)",
|
|
100
100
|
"--color-syntax-background": "light-dark(#FDFBE4, #131107)",
|
|
101
|
+
"--color-syntax-added": "color-mix(in srgb, var(--color-success-muted) 25%, transparent)",
|
|
102
|
+
"--color-syntax-removed": "color-mix(in srgb, var(--color-error-muted) 25%, transparent)",
|
|
103
|
+
"--color-syntax-diff-header": "transparent",
|
|
104
|
+
"--color-syntax-added-marker": "var(--color-syntax-punctuation)",
|
|
105
|
+
"--color-syntax-removed-marker": "var(--color-syntax-punctuation)",
|
|
101
106
|
"--color-accent": "light-dark(#225BFF, #FDEE8C)",
|
|
102
107
|
"--color-accent-muted": "light-dark(#225BFF33, #FDEE8C40)",
|
|
103
108
|
"--color-neutral": "light-dark(#1d1c110F, #f3f2e21A)",
|
|
@@ -581,6 +586,18 @@ export const butterTheme = {
|
|
|
581
586
|
},
|
|
582
587
|
"status:error": {
|
|
583
588
|
"--color-error": "#fc473b"
|
|
589
|
+
},
|
|
590
|
+
"variant:secondary": {
|
|
591
|
+
":not(.astryx-input-group *)": {
|
|
592
|
+
"backgroundColor": "transparent",
|
|
593
|
+
"borderWidth": "1.5px",
|
|
594
|
+
"borderStyle": "solid",
|
|
595
|
+
"borderColor": "light-dark(#225BFF, #FDEE8C)",
|
|
596
|
+
"color": "light-dark(#225BFF, #FDEE8C)"
|
|
597
|
+
},
|
|
598
|
+
":hover:not([data-disabled], [data-readonly], .astryx-input-group *)": {
|
|
599
|
+
"backgroundColor": "light-dark(#225BFF14, #FDEE8C14)"
|
|
600
|
+
}
|
|
584
601
|
}
|
|
585
602
|
},
|
|
586
603
|
"multi-selector": {
|
|
@@ -597,6 +614,30 @@ export const butterTheme = {
|
|
|
597
614
|
},
|
|
598
615
|
"status:error": {
|
|
599
616
|
"--color-error": "#fc473b"
|
|
617
|
+
},
|
|
618
|
+
"variant:secondary": {
|
|
619
|
+
":not(.astryx-input-group *)": {
|
|
620
|
+
"backgroundColor": "transparent",
|
|
621
|
+
"borderWidth": "1.5px",
|
|
622
|
+
"borderStyle": "solid",
|
|
623
|
+
"borderColor": "light-dark(#225BFF, #FDEE8C)",
|
|
624
|
+
"color": "light-dark(#225BFF, #FDEE8C)"
|
|
625
|
+
},
|
|
626
|
+
":hover:not([data-disabled], [data-readonly], .astryx-input-group *)": {
|
|
627
|
+
"backgroundColor": "light-dark(#225BFF14, #FDEE8C14)"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"complex-selector": {
|
|
632
|
+
"variant:secondary": {
|
|
633
|
+
"backgroundColor": "transparent",
|
|
634
|
+
"borderWidth": "1.5px",
|
|
635
|
+
"borderStyle": "solid",
|
|
636
|
+
"borderColor": "light-dark(#225BFF, #FDEE8C)",
|
|
637
|
+
"color": "light-dark(#225BFF, #FDEE8C)",
|
|
638
|
+
":hover:not(:has(> :disabled))": {
|
|
639
|
+
"backgroundColor": "light-dark(#225BFF14, #FDEE8C14)"
|
|
640
|
+
}
|
|
600
641
|
}
|
|
601
642
|
},
|
|
602
643
|
"typeahead": {
|
|
@@ -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":"AA8FA,eAAO,MAAM,WAAW,yDAuhBtB,CAAC;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmUjB,CAAC"}
|
package/dist/source.js
CHANGED
|
@@ -96,6 +96,34 @@ var butterSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
|
96
96
|
background: ["#FDFBE4", "#131107"]
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
+
var SECONDARY_BUTTON = {
|
|
100
|
+
backgroundColor: "transparent",
|
|
101
|
+
borderWidth: "1.5px",
|
|
102
|
+
borderStyle: "solid",
|
|
103
|
+
borderColor: "light-dark(#225BFF, #FDEE8C)",
|
|
104
|
+
color: "light-dark(#225BFF, #FDEE8C)",
|
|
105
|
+
":hover": {
|
|
106
|
+
backgroundColor: "light-dark(#225BFF14, #FDEE8C14)"
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
var SECONDARY_SELECTOR = {
|
|
110
|
+
":not(.astryx-input-group *)": {
|
|
111
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
112
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
113
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
114
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
115
|
+
color: SECONDARY_BUTTON.color
|
|
116
|
+
},
|
|
117
|
+
":hover:not([data-disabled], [data-readonly], .astryx-input-group *)": SECONDARY_BUTTON[":hover"]
|
|
118
|
+
};
|
|
119
|
+
var SECONDARY_COMPLEX_SELECTOR = {
|
|
120
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
121
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
122
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
123
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
124
|
+
color: SECONDARY_BUTTON.color,
|
|
125
|
+
":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
|
|
126
|
+
};
|
|
99
127
|
var butterTheme = (0, import_theme.defineTheme)({
|
|
100
128
|
name: "butter",
|
|
101
129
|
typography: {
|
|
@@ -302,17 +330,7 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
302
330
|
paddingBlock: "var(--spacing-3)",
|
|
303
331
|
paddingInline: "var(--spacing-4)"
|
|
304
332
|
},
|
|
305
|
-
|
|
306
|
-
"variant:secondary": {
|
|
307
|
-
backgroundColor: "transparent",
|
|
308
|
-
borderWidth: "1.5px",
|
|
309
|
-
borderStyle: "solid",
|
|
310
|
-
borderColor: "light-dark(#225BFF, #FDEE8C)",
|
|
311
|
-
color: "light-dark(#225BFF, #FDEE8C)",
|
|
312
|
-
":hover": {
|
|
313
|
-
backgroundColor: "light-dark(#225BFF14, #FDEE8C14)"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
333
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
316
334
|
// Ghost: same accent color as secondary, no background.
|
|
317
335
|
"variant:ghost": {
|
|
318
336
|
color: "light-dark(#225BFF, #FDEE8C)"
|
|
@@ -552,7 +570,8 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
552
570
|
},
|
|
553
571
|
"status:success": { "--color-success": "#91D143" },
|
|
554
572
|
"status:warning": { "--color-warning": "#ffc502" },
|
|
555
|
-
"status:error": { "--color-error": "#fc473b" }
|
|
573
|
+
"status:error": { "--color-error": "#fc473b" },
|
|
574
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
556
575
|
},
|
|
557
576
|
"multi-selector": {
|
|
558
577
|
base: {
|
|
@@ -562,8 +581,10 @@ var butterTheme = (0, import_theme.defineTheme)({
|
|
|
562
581
|
},
|
|
563
582
|
"status:success": { "--color-success": "#91D143" },
|
|
564
583
|
"status:warning": { "--color-warning": "#ffc502" },
|
|
565
|
-
"status:error": { "--color-error": "#fc473b" }
|
|
584
|
+
"status:error": { "--color-error": "#fc473b" },
|
|
585
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
566
586
|
},
|
|
587
|
+
"complex-selector": { "variant:secondary": SECONDARY_COMPLEX_SELECTOR },
|
|
567
588
|
typeahead: {
|
|
568
589
|
base: {
|
|
569
590
|
paddingBlock: "var(--spacing-2)",
|
package/dist/source.mjs
CHANGED
|
@@ -98,6 +98,34 @@ var butterSyntax = defineSyntaxTheme({
|
|
|
98
98
|
background: ["#FDFBE4", "#131107"]
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
+
var SECONDARY_BUTTON = {
|
|
102
|
+
backgroundColor: "transparent",
|
|
103
|
+
borderWidth: "1.5px",
|
|
104
|
+
borderStyle: "solid",
|
|
105
|
+
borderColor: "light-dark(#225BFF, #FDEE8C)",
|
|
106
|
+
color: "light-dark(#225BFF, #FDEE8C)",
|
|
107
|
+
":hover": {
|
|
108
|
+
backgroundColor: "light-dark(#225BFF14, #FDEE8C14)"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var SECONDARY_SELECTOR = {
|
|
112
|
+
":not(.astryx-input-group *)": {
|
|
113
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
114
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
115
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
116
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
117
|
+
color: SECONDARY_BUTTON.color
|
|
118
|
+
},
|
|
119
|
+
":hover:not([data-disabled], [data-readonly], .astryx-input-group *)": SECONDARY_BUTTON[":hover"]
|
|
120
|
+
};
|
|
121
|
+
var SECONDARY_COMPLEX_SELECTOR = {
|
|
122
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
123
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
124
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
125
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
126
|
+
color: SECONDARY_BUTTON.color,
|
|
127
|
+
":hover:not(:has(> :disabled))": SECONDARY_BUTTON[":hover"]
|
|
128
|
+
};
|
|
101
129
|
var butterTheme = defineTheme({
|
|
102
130
|
name: "butter",
|
|
103
131
|
typography: {
|
|
@@ -304,17 +332,7 @@ var butterTheme = defineTheme({
|
|
|
304
332
|
paddingBlock: "var(--spacing-3)",
|
|
305
333
|
paddingInline: "var(--spacing-4)"
|
|
306
334
|
},
|
|
307
|
-
|
|
308
|
-
"variant:secondary": {
|
|
309
|
-
backgroundColor: "transparent",
|
|
310
|
-
borderWidth: "1.5px",
|
|
311
|
-
borderStyle: "solid",
|
|
312
|
-
borderColor: "light-dark(#225BFF, #FDEE8C)",
|
|
313
|
-
color: "light-dark(#225BFF, #FDEE8C)",
|
|
314
|
-
":hover": {
|
|
315
|
-
backgroundColor: "light-dark(#225BFF14, #FDEE8C14)"
|
|
316
|
-
}
|
|
317
|
-
},
|
|
335
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
318
336
|
// Ghost: same accent color as secondary, no background.
|
|
319
337
|
"variant:ghost": {
|
|
320
338
|
color: "light-dark(#225BFF, #FDEE8C)"
|
|
@@ -554,7 +572,8 @@ var butterTheme = defineTheme({
|
|
|
554
572
|
},
|
|
555
573
|
"status:success": { "--color-success": "#91D143" },
|
|
556
574
|
"status:warning": { "--color-warning": "#ffc502" },
|
|
557
|
-
"status:error": { "--color-error": "#fc473b" }
|
|
575
|
+
"status:error": { "--color-error": "#fc473b" },
|
|
576
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
558
577
|
},
|
|
559
578
|
"multi-selector": {
|
|
560
579
|
base: {
|
|
@@ -564,8 +583,10 @@ var butterTheme = defineTheme({
|
|
|
564
583
|
},
|
|
565
584
|
"status:success": { "--color-success": "#91D143" },
|
|
566
585
|
"status:warning": { "--color-warning": "#ffc502" },
|
|
567
|
-
"status:error": { "--color-error": "#fc473b" }
|
|
586
|
+
"status:error": { "--color-error": "#fc473b" },
|
|
587
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
568
588
|
},
|
|
589
|
+
"complex-selector": { "variant:secondary": SECONDARY_COMPLEX_SELECTOR },
|
|
569
590
|
typeahead: {
|
|
570
591
|
base: {
|
|
571
592
|
paddingBlock: "var(--spacing-2)",
|
package/dist/theme.css
CHANGED
|
@@ -166,6 +166,11 @@
|
|
|
166
166
|
--color-syntax-property: light-dark(#00482d, #94d3bb);
|
|
167
167
|
--color-syntax-punctuation: light-dark(#605f52, #adac9e);
|
|
168
168
|
--color-syntax-background: light-dark(#FDFBE4, #131107);
|
|
169
|
+
--color-syntax-added: color-mix(in srgb, var(--color-success-muted) 25%, transparent);
|
|
170
|
+
--color-syntax-removed: color-mix(in srgb, var(--color-error-muted) 25%, transparent);
|
|
171
|
+
--color-syntax-diff-header: transparent;
|
|
172
|
+
--color-syntax-added-marker: var(--color-syntax-punctuation);
|
|
173
|
+
--color-syntax-removed-marker: var(--color-syntax-punctuation);
|
|
169
174
|
--color-accent: light-dark(#225BFF, #FDEE8C);
|
|
170
175
|
--color-accent-muted: light-dark(#225BFF33, #FDEE8C40);
|
|
171
176
|
--color-neutral: light-dark(#1d1c110F, #f3f2e21A);
|
|
@@ -706,6 +711,18 @@
|
|
|
706
711
|
--color-error: #fc473b;
|
|
707
712
|
}
|
|
708
713
|
|
|
714
|
+
.astryx-selector[data-variant="secondary"]:not(.astryx-input-group *) {
|
|
715
|
+
background-color: transparent;
|
|
716
|
+
border-width: 1.5px;
|
|
717
|
+
border-style: solid;
|
|
718
|
+
border-color: light-dark(#225BFF, #FDEE8C);
|
|
719
|
+
color: light-dark(#225BFF, #FDEE8C);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.astryx-selector[data-variant="secondary"]:hover:not([data-disabled], [data-readonly], .astryx-input-group *):where(:not(:disabled,[aria-disabled="true"])) {
|
|
723
|
+
background-color: light-dark(#225BFF14, #FDEE8C14);
|
|
724
|
+
}
|
|
725
|
+
|
|
709
726
|
.astryx-multi-selector {
|
|
710
727
|
padding-block: var(--spacing-2);
|
|
711
728
|
padding-inline: var(--spacing-3);
|
|
@@ -724,6 +741,30 @@
|
|
|
724
741
|
--color-error: #fc473b;
|
|
725
742
|
}
|
|
726
743
|
|
|
744
|
+
.astryx-multi-selector[data-variant="secondary"]:not(.astryx-input-group *) {
|
|
745
|
+
background-color: transparent;
|
|
746
|
+
border-width: 1.5px;
|
|
747
|
+
border-style: solid;
|
|
748
|
+
border-color: light-dark(#225BFF, #FDEE8C);
|
|
749
|
+
color: light-dark(#225BFF, #FDEE8C);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.astryx-multi-selector[data-variant="secondary"]:hover:not([data-disabled], [data-readonly], .astryx-input-group *):where(:not(:disabled,[aria-disabled="true"])) {
|
|
753
|
+
background-color: light-dark(#225BFF14, #FDEE8C14);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.astryx-complex-selector[data-variant="secondary"] {
|
|
757
|
+
background-color: transparent;
|
|
758
|
+
border-width: 1.5px;
|
|
759
|
+
border-style: solid;
|
|
760
|
+
border-color: light-dark(#225BFF, #FDEE8C);
|
|
761
|
+
color: light-dark(#225BFF, #FDEE8C);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.astryx-complex-selector[data-variant="secondary"]:hover:not(:has(> :disabled)):where(:not(:disabled,[aria-disabled="true"])) {
|
|
765
|
+
background-color: light-dark(#225BFF14, #FDEE8C14);
|
|
766
|
+
}
|
|
767
|
+
|
|
727
768
|
.astryx-typeahead {
|
|
728
769
|
padding-block: var(--spacing-2);
|
|
729
770
|
padding-inline: var(--spacing-3);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-butter",
|
|
3
|
-
"version": "0.7.1
|
|
3
|
+
"version": "0.7.1",
|
|
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.",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"lucide-react": "^1.18.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@astryxdesign/core": "0.7.1
|
|
60
|
+
"@astryxdesign/core": "0.7.1",
|
|
61
61
|
"react": ">=19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@astryxdesign/cli": "0.7.1
|
|
64
|
+
"@astryxdesign/cli": "0.7.1"
|
|
65
65
|
},
|
|
66
66
|
"module": "./dist/source.mjs",
|
|
67
67
|
"scripts": {
|
package/src/butterTheme.ts
CHANGED
|
@@ -43,6 +43,55 @@ const butterSyntax = defineSyntaxTheme({
|
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The secondary Button treatment. Selector, MultiSelector, and ComplexSelector
|
|
48
|
+
* reuse it for their `secondary` trigger so every secondary control in this
|
|
49
|
+
* theme matches (AST-079 FR2).
|
|
50
|
+
*
|
|
51
|
+
* Secondary: blue outline + label in light, butter yellow in dark.
|
|
52
|
+
*/
|
|
53
|
+
const SECONDARY_BUTTON = {
|
|
54
|
+
backgroundColor: 'transparent',
|
|
55
|
+
borderWidth: '1.5px',
|
|
56
|
+
borderStyle: 'solid',
|
|
57
|
+
borderColor: 'light-dark(#225BFF, #FDEE8C)',
|
|
58
|
+
color: 'light-dark(#225BFF, #FDEE8C)',
|
|
59
|
+
':hover': {
|
|
60
|
+
backgroundColor: 'light-dark(#225BFF14, #FDEE8C14)',
|
|
61
|
+
},
|
|
62
|
+
} as const;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The secondary Button treatment on Selector and MultiSelector triggers
|
|
66
|
+
* (AST-079 FR2). Inside an InputGroup a trigger keeps the neutral fill and the
|
|
67
|
+
* group's edges instead (FR6). The hover stays off disabled and read-only
|
|
68
|
+
* triggers, which carry `data-disabled` and `data-readonly`.
|
|
69
|
+
*/
|
|
70
|
+
const SECONDARY_SELECTOR = {
|
|
71
|
+
':not(.astryx-input-group *)': {
|
|
72
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
73
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
74
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
75
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
76
|
+
color: SECONDARY_BUTTON.color,
|
|
77
|
+
},
|
|
78
|
+
':hover:not([data-disabled], [data-readonly], .astryx-input-group *)':
|
|
79
|
+
SECONDARY_BUTTON[':hover'],
|
|
80
|
+
} as const;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The secondary Button treatment on ComplexSelector triggers (AST-079 FR2), with
|
|
84
|
+
* the hover kept off a disabled trigger, whose inner button is disabled.
|
|
85
|
+
*/
|
|
86
|
+
const SECONDARY_COMPLEX_SELECTOR = {
|
|
87
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
88
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
89
|
+
borderStyle: SECONDARY_BUTTON.borderStyle,
|
|
90
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
91
|
+
color: SECONDARY_BUTTON.color,
|
|
92
|
+
':hover:not(:has(> :disabled))': SECONDARY_BUTTON[':hover'],
|
|
93
|
+
} as const;
|
|
94
|
+
|
|
46
95
|
export const butterTheme = defineTheme({
|
|
47
96
|
name: 'butter',
|
|
48
97
|
|
|
@@ -276,17 +325,7 @@ export const butterTheme = defineTheme({
|
|
|
276
325
|
paddingBlock: 'var(--spacing-3)',
|
|
277
326
|
paddingInline: 'var(--spacing-4)',
|
|
278
327
|
},
|
|
279
|
-
|
|
280
|
-
'variant:secondary': {
|
|
281
|
-
backgroundColor: 'transparent',
|
|
282
|
-
borderWidth: '1.5px',
|
|
283
|
-
borderStyle: 'solid',
|
|
284
|
-
borderColor: 'light-dark(#225BFF, #FDEE8C)',
|
|
285
|
-
color: 'light-dark(#225BFF, #FDEE8C)',
|
|
286
|
-
':hover': {
|
|
287
|
-
backgroundColor: 'light-dark(#225BFF14, #FDEE8C14)',
|
|
288
|
-
},
|
|
289
|
-
},
|
|
328
|
+
'variant:secondary': SECONDARY_BUTTON,
|
|
290
329
|
// Ghost: same accent color as secondary, no background.
|
|
291
330
|
'variant:ghost': {
|
|
292
331
|
color: 'light-dark(#225BFF, #FDEE8C)',
|
|
@@ -534,6 +573,7 @@ export const butterTheme = defineTheme({
|
|
|
534
573
|
'status:success': {'--color-success': '#91D143'},
|
|
535
574
|
'status:warning': {'--color-warning': '#ffc502'},
|
|
536
575
|
'status:error': {'--color-error': '#fc473b'},
|
|
576
|
+
'variant:secondary': SECONDARY_SELECTOR,
|
|
537
577
|
},
|
|
538
578
|
'multi-selector': {
|
|
539
579
|
base: {
|
|
@@ -544,7 +584,9 @@ export const butterTheme = defineTheme({
|
|
|
544
584
|
'status:success': {'--color-success': '#91D143'},
|
|
545
585
|
'status:warning': {'--color-warning': '#ffc502'},
|
|
546
586
|
'status:error': {'--color-error': '#fc473b'},
|
|
587
|
+
'variant:secondary': SECONDARY_SELECTOR,
|
|
547
588
|
},
|
|
589
|
+
'complex-selector': {'variant:secondary': SECONDARY_COMPLEX_SELECTOR},
|
|
548
590
|
typeahead: {
|
|
549
591
|
base: {
|
|
550
592
|
paddingBlock: 'var(--spacing-2)',
|