ionbase-ui 0.27.0 → 0.28.0
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/components/AvatarGradient.d.ts +9 -6
- package/dist/components/AvatarGradient.d.ts.map +1 -1
- package/dist/components/AvatarGradient.js +1 -1
- package/dist/components/AvatarGradient.js.map +1 -1
- package/dist/figma-descriptions.json +30 -30
- package/dist/figma-map.json +5 -7
- package/dist/meta/AvatarGradient.json +35 -72
- package/dist/meta/Button.json +4 -0
- package/dist/meta/components.json +40 -73
- package/dist/meta/contrast.json +517 -589
- package/dist/meta/index.json +3 -4
- package/dist/meta/patterns/index.json +1 -1
- package/dist/styles/avatar-gradient.css +87 -95
- package/dist/styles/button.css +47 -18
- package/dist/styles/tokens/base.css +26 -26
- package/dist/styles/tokens/theme-dark.css +6 -6
- package/dist/tokens/index.d.ts +10 -10
- package/dist/tokens/index.js +10 -10
- package/llms.txt +1 -1
- package/package.json +1 -1
package/dist/meta/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "ionbase-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"usage": "Pick a component here, then read dist/meta/<Name>.json for its full contract.",
|
|
5
5
|
"hooks": [
|
|
6
6
|
"useToast"
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"hasIntent": true
|
|
120
120
|
},
|
|
121
121
|
"AvatarGradient": {
|
|
122
|
-
"summary": "Avatar's initials-only sibling: a
|
|
122
|
+
"summary": "Avatar's initials-only sibling: a tinted, bevelled disc in one of seven colours, for people with no photo.",
|
|
123
123
|
"status": "stable",
|
|
124
124
|
"variants": {
|
|
125
125
|
"size": [
|
|
@@ -135,8 +135,7 @@
|
|
|
135
135
|
"pink",
|
|
136
136
|
"orange",
|
|
137
137
|
"green",
|
|
138
|
-
"red"
|
|
139
|
-
"light"
|
|
138
|
+
"red"
|
|
140
139
|
]
|
|
141
140
|
},
|
|
142
141
|
"detail": "dist/meta/AvatarGradient.json",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Avatar Gradient
|
|
3
3
|
*
|
|
4
|
-
* Measured from Figma `Avatar Gradient` (1054:305)
|
|
5
|
-
*
|
|
4
|
+
* Measured from Figma `Avatar Gradient` (1054:305), re-read after the
|
|
5
|
+
* 2026-08-28 redesign. Circle only — the set has no Shape axis, because a
|
|
6
|
+
* gradient this directional does not survive a corner.
|
|
6
7
|
*
|
|
7
8
|
* Sizes and the type ramp are Avatar's, including regular weight at Mini:
|
|
8
9
|
*
|
|
@@ -11,19 +12,24 @@
|
|
|
11
12
|
* medium 40 type 16/24 medium
|
|
12
13
|
* large 48 type 20/32 medium
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
+
* IT USED TO BE THE OTHER WAY UP, AND THE CONTRAST GATE IS WHY IT IS NOT
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* The first version was a saturated disc — `color/<hue>/500` to `/600` — with
|
|
18
|
+
* white initials. Four of the seven failed WCAG AA at 3.5 to 3.8:1, and the fix
|
|
19
|
+
* was made in Figma rather than here: the disc is now a pale tint and the
|
|
20
|
+
* initials carry the colour. Do not "restore" the saturated version. It is not
|
|
21
|
+
* a style preference that changed.
|
|
20
22
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* THREE RUNGS, THREE TOKENS
|
|
24
|
+
*
|
|
25
|
+
* 0% color/<hue>/300 the deepest tint, at the TOP
|
|
26
|
+
* 60% color/<hue>/200
|
|
27
|
+
* 100% color/<hue>/50 nearly white, at the bottom
|
|
28
|
+
*
|
|
29
|
+
* Every stop is variable-bound in Figma, so all three are real tokens and the
|
|
30
|
+
* `color-mix` midpoint the old two-rung version needed is gone. Slate is the
|
|
31
|
+
* gray ramp; every other colour is its own hue at the same three rungs, which
|
|
32
|
+
* is what makes this a system rather than seven pictures.
|
|
27
33
|
*/
|
|
28
34
|
.ion-avatar-gradient {
|
|
29
35
|
--ion-avatar-gradient-size: var(--spacing-40);
|
|
@@ -32,19 +38,24 @@
|
|
|
32
38
|
--ion-avatar-gradient-font-weight: var(--font-weight-medium);
|
|
33
39
|
|
|
34
40
|
/* Slate, which is also the block default — Figma's default variant. */
|
|
35
|
-
--ion-avatar-gradient-from: var(--color-gray-
|
|
36
|
-
--ion-avatar-gradient-
|
|
41
|
+
--ion-avatar-gradient-from: var(--color-gray-300);
|
|
42
|
+
--ion-avatar-gradient-mid: var(--color-gray-200);
|
|
43
|
+
--ion-avatar-gradient-to: var(--color-gray-50);
|
|
37
44
|
|
|
38
45
|
/*
|
|
39
|
-
*
|
|
46
|
+
* The initials, from the primitive ramp rather than a semantic text token.
|
|
40
47
|
*
|
|
41
|
-
* NOT AN OVERSIGHT, AND DO NOT "FIX" IT TO
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
48
|
+
* NOT AN OVERSIGHT, AND DO NOT "FIX" IT TO `--text-*`. The disc under this
|
|
49
|
+
* text is built from primitives, so it does not theme; a semantic foreground
|
|
50
|
+
* would flip in the dark theme and leave the background alone. An earlier
|
|
51
|
+
* draft did exactly that and the contrast gate caught it at 1.05:1. A
|
|
52
|
+
* foreground has to theme exactly as much as the background it sits on.
|
|
53
|
+
*
|
|
54
|
+
* In Figma these are bound to a `palette/1`..`palette/7` collection the token
|
|
55
|
+
* export does not yet cover. Each one resolves to the primitive named here,
|
|
56
|
+
* so nothing is lost today — see AGENTS.md.
|
|
46
57
|
*/
|
|
47
|
-
--ion-avatar-gradient-text: var(--color-
|
|
58
|
+
--ion-avatar-gradient-text: var(--color-gray-600);
|
|
48
59
|
|
|
49
60
|
/*
|
|
50
61
|
* The sheen: a white radial highlight low and centre, over the linear
|
|
@@ -56,28 +67,21 @@
|
|
|
56
67
|
--ion-avatar-gradient-sheen-mid: 3.6%;
|
|
57
68
|
|
|
58
69
|
/*
|
|
59
|
-
* Bevel and
|
|
70
|
+
* Bevel. Two inner shadows and no drop shadow — the redesign dropped the
|
|
71
|
+
* lift, and these no longer scale with the box the way they did: Figma now
|
|
72
|
+
* carries the same 1px / -2px offsets at all four sizes.
|
|
60
73
|
*
|
|
61
74
|
* A LOCAL, BECAUSE A RAW COLOUR IN A `box-shadow` DECLARATION IS BANNED — and
|
|
62
75
|
* the ban is right. Its reason is that a raw colour is a place dark mode has
|
|
63
76
|
* to be fixed by hand, once per occurrence; naming it here makes this file
|
|
64
|
-
* exactly one such place instead of
|
|
77
|
+
* exactly one such place instead of four, which is the same trade
|
|
65
78
|
* `elevation.css` makes for the shared ramp. These are local Figma effects,
|
|
66
79
|
* not effect STYLES, so they are not in that ramp and cannot be: the exporter
|
|
67
80
|
* only sees named styles, and there is nothing here for it to name.
|
|
68
|
-
*
|
|
69
|
-
* All three offsets are derived from the box rather than written four times:
|
|
70
|
-
* Figma scales the effect with the component, so the arithmetic IS the
|
|
71
|
-
* design. S/24 and S/12 for the inner shade, S/48 for the top highlight, and
|
|
72
|
-
* S/16 and S/6 for the drop.
|
|
73
81
|
*/
|
|
74
|
-
--ion-avatar-gradient-
|
|
75
|
-
inset 0
|
|
76
|
-
|
|
77
|
-
inset 0 calc(var(--ion-avatar-gradient-size) / 48)
|
|
78
|
-
calc(var(--ion-avatar-gradient-size) / 48 * 1.4) 0 rgb(255 255 255 / 24%),
|
|
79
|
-
0 calc(var(--ion-avatar-gradient-size) / 16)
|
|
80
|
-
calc(var(--ion-avatar-gradient-size) / 6) 0 rgb(13 15 23 / 12%);
|
|
82
|
+
--ion-avatar-gradient-bevel:
|
|
83
|
+
inset 0 -2px 4px 0 rgb(0 0 0 / 12%),
|
|
84
|
+
inset 0 1px 1.4px 0 rgb(255 255 255 / 24%);
|
|
81
85
|
|
|
82
86
|
display: inline-flex;
|
|
83
87
|
align-items: center;
|
|
@@ -90,13 +94,17 @@
|
|
|
90
94
|
color: var(--ion-avatar-gradient-text);
|
|
91
95
|
|
|
92
96
|
/*
|
|
93
|
-
* The flat colour under the gradient is the `
|
|
97
|
+
* The flat colour under the gradient is the `to` end, and that choice is
|
|
94
98
|
* load-bearing twice over. It is the fallback if `background-image` never
|
|
95
|
-
* paints, and it is the
|
|
96
|
-
* case for
|
|
97
|
-
* pairing that actually needs measuring rather than a flattering one.
|
|
99
|
+
* paints, and it is the palest part of the disc — so it is also the worst
|
|
100
|
+
* case for the dark initials, which is what makes `verify-contrast` measure
|
|
101
|
+
* the pairing that actually needs measuring rather than a flattering one.
|
|
102
|
+
*
|
|
103
|
+
* It was the `from` end before the redesign, for the same reason read the
|
|
104
|
+
* other way round: the text was white then, so its worst case was the
|
|
105
|
+
* lightest stop it sat on. Flip this if the disc is ever inverted again.
|
|
98
106
|
*/
|
|
99
|
-
background-color: var(--ion-avatar-gradient-
|
|
107
|
+
background-color: var(--ion-avatar-gradient-to);
|
|
100
108
|
background-image:
|
|
101
109
|
radial-gradient(
|
|
102
110
|
55.556% 64.103% at 50% 70.513%,
|
|
@@ -107,15 +115,10 @@
|
|
|
107
115
|
linear-gradient(
|
|
108
116
|
180deg,
|
|
109
117
|
var(--ion-avatar-gradient-from) 0%,
|
|
110
|
-
|
|
111
|
-
in srgb,
|
|
112
|
-
var(--ion-avatar-gradient-from),
|
|
113
|
-
var(--ion-avatar-gradient-to)
|
|
114
|
-
)
|
|
115
|
-
60%,
|
|
118
|
+
var(--ion-avatar-gradient-mid) 60%,
|
|
116
119
|
var(--ion-avatar-gradient-to) 100%
|
|
117
120
|
);
|
|
118
|
-
box-shadow: var(--ion-avatar-gradient-
|
|
121
|
+
box-shadow: var(--ion-avatar-gradient-bevel);
|
|
119
122
|
font-family: var(--font-family-sans);
|
|
120
123
|
font-size: var(--ion-avatar-gradient-font-size);
|
|
121
124
|
line-height: var(--ion-avatar-gradient-line-height);
|
|
@@ -143,10 +146,16 @@
|
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
/*
|
|
146
|
-
* The
|
|
149
|
+
* The seven colours. Each declares its own `color` and `background-color`
|
|
147
150
|
* rather than inheriting them from the block: the contrast gate pairs what one
|
|
148
151
|
* rule declares, and a colour it has to find on a different scope resolves
|
|
149
152
|
* through the cascade to something that never renders together.
|
|
153
|
+
*
|
|
154
|
+
* All seven take `600`, including pink. It took `700` here until the 2026-08-28
|
|
155
|
+
* primitive re-export, and that was not a design choice — the pink ramp shifted
|
|
156
|
+
* down a rung, so the value this component wants (#c3135c) simply moved from
|
|
157
|
+
* `700` to `600`. Renaming under a stable name is the failure the token
|
|
158
|
+
* pipeline is built to catch; it caught this one.
|
|
150
159
|
*/
|
|
151
160
|
.ion-avatar-gradient--slate,
|
|
152
161
|
.ion-avatar-gradient--blue,
|
|
@@ -156,71 +165,54 @@
|
|
|
156
165
|
.ion-avatar-gradient--green,
|
|
157
166
|
.ion-avatar-gradient--red {
|
|
158
167
|
color: var(--ion-avatar-gradient-text);
|
|
159
|
-
background-color: var(--ion-avatar-gradient-
|
|
168
|
+
background-color: var(--ion-avatar-gradient-to);
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
.ion-avatar-gradient--slate {
|
|
163
|
-
--ion-avatar-gradient-from: var(--color-gray-
|
|
164
|
-
--ion-avatar-gradient-
|
|
172
|
+
--ion-avatar-gradient-from: var(--color-gray-300);
|
|
173
|
+
--ion-avatar-gradient-mid: var(--color-gray-200);
|
|
174
|
+
--ion-avatar-gradient-to: var(--color-gray-50);
|
|
175
|
+
--ion-avatar-gradient-text: var(--color-gray-600);
|
|
165
176
|
}
|
|
166
177
|
|
|
167
178
|
.ion-avatar-gradient--blue {
|
|
168
|
-
--ion-avatar-gradient-from: var(--color-blue-
|
|
169
|
-
--ion-avatar-gradient-
|
|
179
|
+
--ion-avatar-gradient-from: var(--color-blue-300);
|
|
180
|
+
--ion-avatar-gradient-mid: var(--color-blue-200);
|
|
181
|
+
--ion-avatar-gradient-to: var(--color-blue-50);
|
|
182
|
+
--ion-avatar-gradient-text: var(--color-blue-600);
|
|
170
183
|
}
|
|
171
184
|
|
|
172
185
|
.ion-avatar-gradient--violet {
|
|
173
|
-
--ion-avatar-gradient-from: var(--color-purple-
|
|
174
|
-
--ion-avatar-gradient-
|
|
186
|
+
--ion-avatar-gradient-from: var(--color-purple-300);
|
|
187
|
+
--ion-avatar-gradient-mid: var(--color-purple-200);
|
|
188
|
+
--ion-avatar-gradient-to: var(--color-purple-50);
|
|
189
|
+
--ion-avatar-gradient-text: var(--color-purple-600);
|
|
175
190
|
}
|
|
176
191
|
|
|
177
192
|
.ion-avatar-gradient--pink {
|
|
178
|
-
--ion-avatar-gradient-from: var(--color-pink-
|
|
179
|
-
--ion-avatar-gradient-
|
|
193
|
+
--ion-avatar-gradient-from: var(--color-pink-300);
|
|
194
|
+
--ion-avatar-gradient-mid: var(--color-pink-200);
|
|
195
|
+
--ion-avatar-gradient-to: var(--color-pink-50);
|
|
196
|
+
--ion-avatar-gradient-text: var(--color-pink-600);
|
|
180
197
|
}
|
|
181
198
|
|
|
182
199
|
.ion-avatar-gradient--orange {
|
|
183
|
-
--ion-avatar-gradient-from: var(--color-orange-
|
|
184
|
-
--ion-avatar-gradient-
|
|
200
|
+
--ion-avatar-gradient-from: var(--color-orange-300);
|
|
201
|
+
--ion-avatar-gradient-mid: var(--color-orange-200);
|
|
202
|
+
--ion-avatar-gradient-to: var(--color-orange-50);
|
|
203
|
+
--ion-avatar-gradient-text: var(--color-orange-600);
|
|
185
204
|
}
|
|
186
205
|
|
|
187
206
|
.ion-avatar-gradient--green {
|
|
188
|
-
--ion-avatar-gradient-from: var(--color-green-
|
|
189
|
-
--ion-avatar-gradient-
|
|
207
|
+
--ion-avatar-gradient-from: var(--color-green-300);
|
|
208
|
+
--ion-avatar-gradient-mid: var(--color-green-200);
|
|
209
|
+
--ion-avatar-gradient-to: var(--color-green-50);
|
|
210
|
+
--ion-avatar-gradient-text: var(--color-green-600);
|
|
190
211
|
}
|
|
191
212
|
|
|
192
213
|
.ion-avatar-gradient--red {
|
|
193
|
-
--ion-avatar-gradient-from: var(--color-red-
|
|
194
|
-
--ion-avatar-gradient-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
/*
|
|
198
|
-
* Light is the odd one and gets dark text, a stronger sheen and a gentler
|
|
199
|
-
* bevel — Figma halves the shade to 5% and doubles the highlight to 50%,
|
|
200
|
-
* because the same values that read as depth on a saturated disc read as dirt
|
|
201
|
-
* on a near-white one.
|
|
202
|
-
*
|
|
203
|
-
* Its text is `--color-gray-900`, not `--text-default`, for exactly the reason
|
|
204
|
-
* the seven colours use `--color-base-white` rather than `--text-on-color`.
|
|
205
|
-
* The first pass used the semantic token here and the contrast gate caught it
|
|
206
|
-
* in the dark theme at 1.05:1 — `--text-default` themes to near-white while
|
|
207
|
-
* `--color-gray-100` underneath it does not, so the initials disappeared. A
|
|
208
|
-
* foreground has to theme exactly as much as the background it sits on.
|
|
209
|
-
*/
|
|
210
|
-
.ion-avatar-gradient--light {
|
|
211
|
-
--ion-avatar-gradient-from: var(--color-gray-100);
|
|
212
|
-
--ion-avatar-gradient-to: var(--color-gray-200);
|
|
213
|
-
--ion-avatar-gradient-text: var(--color-gray-900);
|
|
214
|
-
--ion-avatar-gradient-sheen: 32%;
|
|
215
|
-
--ion-avatar-gradient-sheen-mid: 6.4%;
|
|
216
|
-
--ion-avatar-gradient-elevation:
|
|
217
|
-
inset 0 calc(-1 * var(--ion-avatar-gradient-size) / 24)
|
|
218
|
-
calc(var(--ion-avatar-gradient-size) / 12) 0 rgb(0 0 0 / 5%),
|
|
219
|
-
inset 0 calc(var(--ion-avatar-gradient-size) / 48)
|
|
220
|
-
calc(var(--ion-avatar-gradient-size) / 48 * 1.4) 0 rgb(255 255 255 / 50%),
|
|
221
|
-
0 calc(var(--ion-avatar-gradient-size) / 16)
|
|
222
|
-
calc(var(--ion-avatar-gradient-size) / 6) 0 rgb(13 15 23 / 12%);
|
|
223
|
-
|
|
224
|
-
color: var(--ion-avatar-gradient-text);
|
|
225
|
-
background-color: var(--ion-avatar-gradient-from);
|
|
214
|
+
--ion-avatar-gradient-from: var(--color-red-300);
|
|
215
|
+
--ion-avatar-gradient-mid: var(--color-red-200);
|
|
216
|
+
--ion-avatar-gradient-to: var(--color-red-50);
|
|
217
|
+
--ion-avatar-gradient-text: var(--color-red-600);
|
|
226
218
|
}
|
package/dist/styles/button.css
CHANGED
|
@@ -17,16 +17,29 @@
|
|
|
17
17
|
--ion-button-elevation: var(--ion-shadow-none);
|
|
18
18
|
|
|
19
19
|
/*
|
|
20
|
-
* ELEVATION IS INDEXED BY SIZE
|
|
20
|
+
* ELEVATION IS INDEXED BY SIZE; THE VARIANT PICKS THE FAMILY
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* the size modifiers reassign and the variants select from. This replaces the
|
|
22
|
+
* Each of these is a rung reassigned by the size modifiers, and a variant
|
|
23
|
+
* selects one. That is the whole structure — no variant restates a shadow
|
|
24
|
+
* value, and no size modifier knows which variant is asking. It replaces the
|
|
26
25
|
* old per-variant `button-raised` / `button-surface` pair, which encoded a
|
|
27
26
|
* distinction Figma no longer draws.
|
|
27
|
+
*
|
|
28
|
+
* `raised` and `shadow` are two DIFFERENT rest families, and which one a
|
|
29
|
+
* variant takes is a real design decision rather than a spelling of the same
|
|
30
|
+
* idea. `Raised/Lifted` is embossed — two inset highlights that read as a
|
|
31
|
+
* bevel — and it only works over a solid, saturated fill. `Shadow` is a plain
|
|
32
|
+
* drop shadow. The two light-surfaced variants, Secondary and Primary Soft,
|
|
33
|
+
* are on `shadow`; the four solid ones are on `raised`. Measured across all
|
|
34
|
+
* four sizes of both Figma sets on 2026-08-28.
|
|
35
|
+
*
|
|
36
|
+
* The two ramps are not the same shape, which is the trap here. `raised` runs
|
|
37
|
+
* xs / sm / lg / lg, but `shadow` runs xs / sm / md / md — Large and XLarge
|
|
38
|
+
* share `Shadow/md`, where the raised family jumps to `lg`. Assuming one ramp
|
|
39
|
+
* from the other puts Large one rung too heavy.
|
|
28
40
|
*/
|
|
29
41
|
--ion-button-raised: var(--ion-shadow-raised-lifted-sm);
|
|
42
|
+
--ion-button-shadow: var(--ion-shadow-shadow-sm);
|
|
30
43
|
--ion-button-inset-lifted: var(--ion-shadow-inset-lifted-sm);
|
|
31
44
|
--ion-button-inset-flush: var(--ion-shadow-inset-flush-sm);
|
|
32
45
|
|
|
@@ -137,6 +150,7 @@
|
|
|
137
150
|
--ion-button-font-size: var(--type-body-sm);
|
|
138
151
|
--ion-button-line-height: var(--type-body-sm-line-height);
|
|
139
152
|
--ion-button-raised: var(--ion-shadow-raised-lifted-xs);
|
|
153
|
+
--ion-button-shadow: var(--ion-shadow-shadow-xs);
|
|
140
154
|
--ion-button-inset-lifted: var(--ion-shadow-inset-lifted-xs);
|
|
141
155
|
--ion-button-inset-flush: var(--ion-shadow-inset-flush-xs);
|
|
142
156
|
}
|
|
@@ -149,6 +163,9 @@
|
|
|
149
163
|
--ion-button-font-size: var(--type-body-md);
|
|
150
164
|
--ion-button-line-height: var(--type-body-md-line-height);
|
|
151
165
|
--ion-button-raised: var(--ion-shadow-raised-lifted-lg);
|
|
166
|
+
|
|
167
|
+
/* `md`, not `lg` — the shadow ramp tops out a rung below the raised one. */
|
|
168
|
+
--ion-button-shadow: var(--ion-shadow-shadow-md);
|
|
152
169
|
--ion-button-inset-lifted: var(--ion-shadow-inset-lifted-lg);
|
|
153
170
|
--ion-button-inset-flush: var(--ion-shadow-inset-flush-lg);
|
|
154
171
|
}
|
|
@@ -179,13 +196,15 @@
|
|
|
179
196
|
* the one rung where the icon does NOT run ahead of its label (24 vs 20, where
|
|
180
197
|
* Large is 24 vs 18). Reproduced as measured.
|
|
181
198
|
*
|
|
182
|
-
* Elevation reuses the
|
|
183
|
-
* be the easy wrong answer. `Raised/Lifted/xl` and `Raised/Flush/xl` DO
|
|
184
|
-
* effect styles — it is the *inset* families that stop at lg, so there
|
|
185
|
-
* complete xl rung to press into. Figma binds Raised/Lifted/lg,
|
|
186
|
-
* and Inset/Flush/lg on XLarge exactly as on Large
|
|
199
|
+
* Elevation reuses the Large rungs, and this is where "there is no xl rung"
|
|
200
|
+
* would be the easy wrong answer. `Raised/Lifted/xl` and `Raised/Flush/xl` DO
|
|
201
|
+
* exist as effect styles — it is the *inset* families that stop at lg, so there
|
|
202
|
+
* is no complete xl rung to press into. Figma binds Raised/Lifted/lg,
|
|
203
|
+
* Inset/Lifted/lg and Inset/Flush/lg on XLarge exactly as on Large, and
|
|
204
|
+
* `Shadow/md` for the two shadow-family variants — also exactly as on Large,
|
|
205
|
+
* even though `Shadow/lg` and `Shadow/xl` both exist. These four lines restate
|
|
187
206
|
* the inherited defaults on purpose, so the next reader does not have to go and
|
|
188
|
-
* check which half of
|
|
207
|
+
* check which half of each family exists.
|
|
189
208
|
*/
|
|
190
209
|
.ion-button--xl {
|
|
191
210
|
--ion-button-size: var(--spacing-56);
|
|
@@ -195,6 +214,7 @@
|
|
|
195
214
|
--ion-button-font-size: var(--type-body-lg);
|
|
196
215
|
--ion-button-line-height: var(--type-body-lg-line-height);
|
|
197
216
|
--ion-button-raised: var(--ion-shadow-raised-lifted-lg);
|
|
217
|
+
--ion-button-shadow: var(--ion-shadow-shadow-md);
|
|
198
218
|
--ion-button-inset-lifted: var(--ion-shadow-inset-lifted-lg);
|
|
199
219
|
--ion-button-inset-flush: var(--ion-shadow-inset-flush-lg);
|
|
200
220
|
}
|
|
@@ -232,9 +252,9 @@
|
|
|
232
252
|
*
|
|
233
253
|
* HOVER DOES NOT CHANGE ELEVATION — only the surface colour moves. Measured:
|
|
234
254
|
* every Hover variant in Figma carries the same effect style as its Default,
|
|
235
|
-
* across all
|
|
236
|
-
* from the old `button-raised-hover` step, which encodes
|
|
237
|
-
* current design no longer draws.
|
|
255
|
+
* across all six elevated types and both Figma sets. Reproduced as measured
|
|
256
|
+
* rather than preserved from the old `button-raised-hover` step, which encodes
|
|
257
|
+
* a difference the current design no longer draws.
|
|
238
258
|
*/
|
|
239
259
|
|
|
240
260
|
/* Primary Brand Variant */
|
|
@@ -314,10 +334,12 @@
|
|
|
314
334
|
* (secondary). Measured on all four sizes.
|
|
315
335
|
*
|
|
316
336
|
* Elevation presses flush like Secondary, not lifted like Brand — a tinted
|
|
317
|
-
* surface has too little contrast for the lifted inset to register.
|
|
337
|
+
* surface has too little contrast for the lifted inset to register. It rests on
|
|
338
|
+
* the `shadow` family for the same reason: the embossed `Raised/Lifted` bevel
|
|
339
|
+
* needs a solid saturated fill under it, and a subtle tint is not one.
|
|
318
340
|
*/
|
|
319
341
|
.ion-button--primary-soft {
|
|
320
|
-
--ion-button-elevation: var(--ion-button-
|
|
342
|
+
--ion-button-elevation: var(--ion-button-shadow);
|
|
321
343
|
--ion-button-pressed: var(--ion-button-inset-flush);
|
|
322
344
|
|
|
323
345
|
background-color: var(--surface-primary-subtle);
|
|
@@ -343,9 +365,16 @@
|
|
|
343
365
|
border-color: var(--border-primary);
|
|
344
366
|
}
|
|
345
367
|
|
|
346
|
-
/*
|
|
368
|
+
/*
|
|
369
|
+
* Secondary Variant — presses flush, losing its lift; brand and destructive keep
|
|
370
|
+
* theirs.
|
|
371
|
+
*
|
|
372
|
+
* Rests on the `shadow` family, not `raised`. Figma moved it there along with
|
|
373
|
+
* Primary Soft: both sit on a light surface, and `Raised/Lifted`'s inset
|
|
374
|
+
* highlight reads as a smudge over white rather than as a bevel.
|
|
375
|
+
*/
|
|
347
376
|
.ion-button--secondary {
|
|
348
|
-
--ion-button-elevation: var(--ion-button-
|
|
377
|
+
--ion-button-elevation: var(--ion-button-shadow);
|
|
349
378
|
--ion-button-pressed: var(--ion-button-inset-flush);
|
|
350
379
|
|
|
351
380
|
background-color: var(--surface-default);
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
--color-red-200: #fed2d2;
|
|
31
31
|
--color-red-300: #ffadad;
|
|
32
32
|
--color-red-400: #f56b6b;
|
|
33
|
-
--color-red-500: #
|
|
34
|
-
--color-red-600: #
|
|
35
|
-
--color-red-700: #
|
|
36
|
-
--color-red-800: #
|
|
37
|
-
--color-red-900: #
|
|
33
|
+
--color-red-500: #eb3737;
|
|
34
|
+
--color-red-600: #c61616;
|
|
35
|
+
--color-red-700: #ad1515;
|
|
36
|
+
--color-red-800: #850e0e;
|
|
37
|
+
--color-red-900: #650a0a;
|
|
38
38
|
--color-orange-50: #fff4e5;
|
|
39
39
|
--color-orange-100: #ffeed6;
|
|
40
40
|
--color-orange-200: #fedbb4;
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
--color-pink-200: #fbd0e8;
|
|
81
81
|
--color-pink-300: #f9a9d5;
|
|
82
82
|
--color-pink-400: #f773b7;
|
|
83
|
-
--color-pink-500: #
|
|
84
|
-
--color-pink-600: #
|
|
85
|
-
--color-pink-700: #
|
|
86
|
-
--color-pink-800: #
|
|
87
|
-
--color-pink-900: #
|
|
83
|
+
--color-pink-500: #df2679;
|
|
84
|
+
--color-pink-600: #c3135c;
|
|
85
|
+
--color-pink-700: #a0134b;
|
|
86
|
+
--color-pink-800: #881141;
|
|
87
|
+
--color-pink-900: #5a0427;
|
|
88
88
|
--color-alpha-black-05: rgba(0, 0, 0, 0.05);
|
|
89
89
|
--color-alpha-black-10: rgba(0, 0, 0, 0.1);
|
|
90
90
|
--color-alpha-black-40: rgba(0, 0, 0, 0.4);
|
|
@@ -199,11 +199,11 @@
|
|
|
199
199
|
--error-200: #fed2d2;
|
|
200
200
|
--error-300: #ffadad;
|
|
201
201
|
--error-400: #f56b6b;
|
|
202
|
-
--error-500: #
|
|
203
|
-
--error-600: #
|
|
204
|
-
--error-700: #
|
|
205
|
-
--error-800: #
|
|
206
|
-
--error-900: #
|
|
202
|
+
--error-500: #eb3737;
|
|
203
|
+
--error-600: #c61616;
|
|
204
|
+
--error-700: #ad1515;
|
|
205
|
+
--error-800: #850e0e;
|
|
206
|
+
--error-900: #650a0a;
|
|
207
207
|
--information-50: #f6f1f8;
|
|
208
208
|
--information-100: #f1e8fd;
|
|
209
209
|
--information-200: #dfd4fc;
|
|
@@ -218,9 +218,9 @@
|
|
|
218
218
|
--chart-2: #14994e;
|
|
219
219
|
--chart-3: #5a4cd6;
|
|
220
220
|
--chart-4: #ea5600;
|
|
221
|
-
--chart-5: #
|
|
221
|
+
--chart-5: #df2679;
|
|
222
222
|
--chart-6: #a97a14;
|
|
223
|
-
--chart-7: #
|
|
223
|
+
--chart-7: #eb3737;
|
|
224
224
|
--chart-8: #6b7280;
|
|
225
225
|
--base-white: #ffffff;
|
|
226
226
|
--base-black: #000000;
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
--text-on-color: #ffffff;
|
|
262
262
|
--text-inverse: #f6f8f9;
|
|
263
263
|
--text-primary: #1c62e3;
|
|
264
|
-
--text-error: #
|
|
264
|
+
--text-error: #ad1515;
|
|
265
265
|
--text-success: #076426;
|
|
266
266
|
--text-warning: #af3e0e;
|
|
267
267
|
--text-information: #4715b2;
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
--icon-on-color: #ffffff;
|
|
279
279
|
--icon-inverse: #f6f8f9;
|
|
280
280
|
--icon-primary: #1c62e3;
|
|
281
|
-
--icon-error: #
|
|
281
|
+
--icon-error: #c61616;
|
|
282
282
|
--icon-success: #0d7d38;
|
|
283
283
|
--icon-warning: #af3e0e;
|
|
284
284
|
--icon-information: #4f3cc8;
|
|
@@ -306,9 +306,9 @@
|
|
|
306
306
|
--surface-primary-subtle: #ebf7ff;
|
|
307
307
|
--surface-primary-subtle-hover: #e2f1fd;
|
|
308
308
|
--surface-primary-tint: #e2f1fd;
|
|
309
|
-
--surface-error: #
|
|
310
|
-
--surface-error-hover: #
|
|
311
|
-
--surface-error-pressed: #
|
|
309
|
+
--surface-error: #c61616;
|
|
310
|
+
--surface-error-hover: #ad1515;
|
|
311
|
+
--surface-error-pressed: #850e0e;
|
|
312
312
|
--surface-error-subtle: #fef1f1;
|
|
313
313
|
--surface-error-subtle-hover: #fee7e7;
|
|
314
314
|
--surface-error-tint: #fee7e7;
|
|
@@ -340,8 +340,8 @@
|
|
|
340
340
|
--border-primary: #286ef0;
|
|
341
341
|
--border-primary-strong: #1541b2;
|
|
342
342
|
--border-primary-subtle: #c7e4fa;
|
|
343
|
-
--border-error: #
|
|
344
|
-
--border-error-strong: #
|
|
343
|
+
--border-error: #eb3737;
|
|
344
|
+
--border-error-strong: #ad1515;
|
|
345
345
|
--border-error-subtle: #fed2d2;
|
|
346
346
|
--border-success: #14994e;
|
|
347
347
|
--border-success-strong: #076426;
|
|
@@ -353,9 +353,9 @@
|
|
|
353
353
|
--border-information-strong: #4715b2;
|
|
354
354
|
--border-information-subtle: #dfd4fc;
|
|
355
355
|
--border-focus: #286ef0;
|
|
356
|
-
--border-focus-error: #
|
|
356
|
+
--border-focus-error: #eb3737;
|
|
357
357
|
--ring-focus: #286ef0;
|
|
358
|
-
--ring-error: #
|
|
358
|
+
--ring-error: #eb3737;
|
|
359
359
|
--ring-offset: #ffffff;
|
|
360
360
|
--grid-margin: 80px;
|
|
361
361
|
--grid-gutter: 24px;
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
--surface-primary-subtle: #071e69;
|
|
54
54
|
--surface-primary-subtle-hover: #0e2d8b;
|
|
55
55
|
--surface-primary-tint: #0e2d8b;
|
|
56
|
-
--surface-error: #
|
|
56
|
+
--surface-error: #eb3737;
|
|
57
57
|
--surface-error-hover: #f56b6b;
|
|
58
58
|
--surface-error-pressed: #ffadad;
|
|
59
|
-
--surface-error-subtle: #
|
|
60
|
-
--surface-error-subtle-hover: #
|
|
61
|
-
--surface-error-tint: #
|
|
59
|
+
--surface-error-subtle: #650a0a;
|
|
60
|
+
--surface-error-subtle-hover: #850e0e;
|
|
61
|
+
--surface-error-tint: #850e0e;
|
|
62
62
|
--surface-success: #14994e;
|
|
63
63
|
--surface-success-hover: #39b378;
|
|
64
64
|
--surface-success-pressed: #82d8b4;
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
--border-primary-strong: #1c62e3;
|
|
89
89
|
--border-primary-subtle: #0e2d8b;
|
|
90
90
|
--border-error: #f56b6b;
|
|
91
|
-
--border-error-strong: #
|
|
92
|
-
--border-error-subtle: #
|
|
91
|
+
--border-error-strong: #c61616;
|
|
92
|
+
--border-error-subtle: #850e0e;
|
|
93
93
|
--border-success: #39b378;
|
|
94
94
|
--border-success-strong: #0d7d38;
|
|
95
95
|
--border-success-subtle: #054d1a;
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1446,19 +1446,19 @@ export declare const tokenValues: {
|
|
|
1446
1446
|
readonly Value: "#f56b6b";
|
|
1447
1447
|
};
|
|
1448
1448
|
readonly "color/red/500": {
|
|
1449
|
-
readonly Value: "#
|
|
1449
|
+
readonly Value: "#eb3737";
|
|
1450
1450
|
};
|
|
1451
1451
|
readonly "color/red/600": {
|
|
1452
|
-
readonly Value: "#
|
|
1452
|
+
readonly Value: "#c61616";
|
|
1453
1453
|
};
|
|
1454
1454
|
readonly "color/red/700": {
|
|
1455
|
-
readonly Value: "#
|
|
1455
|
+
readonly Value: "#ad1515";
|
|
1456
1456
|
};
|
|
1457
1457
|
readonly "color/red/800": {
|
|
1458
|
-
readonly Value: "#
|
|
1458
|
+
readonly Value: "#850e0e";
|
|
1459
1459
|
};
|
|
1460
1460
|
readonly "color/red/900": {
|
|
1461
|
-
readonly Value: "#
|
|
1461
|
+
readonly Value: "#650a0a";
|
|
1462
1462
|
};
|
|
1463
1463
|
readonly "color/orange/50": {
|
|
1464
1464
|
readonly Value: "#fff4e5";
|
|
@@ -1596,19 +1596,19 @@ export declare const tokenValues: {
|
|
|
1596
1596
|
readonly Value: "#f773b7";
|
|
1597
1597
|
};
|
|
1598
1598
|
readonly "color/pink/500": {
|
|
1599
|
-
readonly Value: "#
|
|
1599
|
+
readonly Value: "#df2679";
|
|
1600
1600
|
};
|
|
1601
1601
|
readonly "color/pink/600": {
|
|
1602
|
-
readonly Value: "#
|
|
1602
|
+
readonly Value: "#c3135c";
|
|
1603
1603
|
};
|
|
1604
1604
|
readonly "color/pink/700": {
|
|
1605
|
-
readonly Value: "#
|
|
1605
|
+
readonly Value: "#a0134b";
|
|
1606
1606
|
};
|
|
1607
1607
|
readonly "color/pink/800": {
|
|
1608
|
-
readonly Value: "#
|
|
1608
|
+
readonly Value: "#881141";
|
|
1609
1609
|
};
|
|
1610
1610
|
readonly "color/pink/900": {
|
|
1611
|
-
readonly Value: "#
|
|
1611
|
+
readonly Value: "#5a0427";
|
|
1612
1612
|
};
|
|
1613
1613
|
readonly "spacing/0": {
|
|
1614
1614
|
readonly Value: 0;
|