@apliteni/apliteni-ui 0.9.1 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/package.json +1 -1
- package/react/dist/index.css +0 -1
- package/src/components/account-nav.js +47 -0
- package/src/components/confirm.js +131 -0
- package/src/components/drawer.js +36 -98
- package/src/components/index.js +7 -1
- package/src/components/nav.js +25 -6
- package/src/components/overlay.js +231 -0
- package/src/components/shell.js +235 -32
- package/src/components/topbar.js +30 -4
- package/src/index.css +1 -0
- package/src/index.js +1 -0
- package/src/inline.js +2 -0
- package/src/styles/callout.css +30 -11
- package/src/styles/confirm.css +130 -0
- package/src/styles/drawer.css +30 -15
- package/src/styles/layout.css +197 -42
- package/src/styles/nav.css +33 -6
- package/src/tokens/accents.css +27 -4
- package/src/tokens/tokens.css +35 -8
package/src/tokens/accents.css
CHANGED
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
--accent: #ff6a3d;
|
|
22
22
|
--accent-strong: var(--accent);
|
|
23
23
|
--accent-contrast: #241006;
|
|
24
|
-
|
|
24
|
+
/* Thinned from 0.18 for WCAG AA: the ember accent cleared every flat surface
|
|
25
|
+
but not its own wash over a card, which lifts the ground toward the ink. The
|
|
26
|
+
hue is untouched. See issue #157. */
|
|
27
|
+
--glow-purple: rgba(255, 106, 61, 0.15);
|
|
25
28
|
--ring: 0 0 0 3px rgba(255, 106, 61, 0.38);
|
|
26
29
|
--grad-from: #ff7a45;
|
|
27
30
|
--grad-to: #ffcf6a;
|
|
@@ -49,7 +52,9 @@
|
|
|
49
52
|
--accent: #3b9dff;
|
|
50
53
|
--accent-strong: var(--accent);
|
|
51
54
|
--accent-contrast: #04121f;
|
|
52
|
-
|
|
55
|
+
/* Thinned from 0.18 for WCAG AA, the same wash-over-a-card pair as dark
|
|
56
|
+
Phoenix and from the same alpha. The hue is untouched. See issue #157. */
|
|
57
|
+
--glow-purple: rgba(59, 157, 255, 0.15);
|
|
53
58
|
--ring: 0 0 0 3px rgba(59, 157, 255, 0.38);
|
|
54
59
|
--grad-from: #3b9dff;
|
|
55
60
|
--grad-to: #20dcf5;
|
|
@@ -58,9 +63,25 @@
|
|
|
58
63
|
--purple: #1156b8;
|
|
59
64
|
--purple-light: #1568d6;
|
|
60
65
|
--purple-mid: #1560c8;
|
|
61
|
-
|
|
66
|
+
/* Deepened for WCAG AA on the raised grey panel and its wash: #1568d6 read
|
|
67
|
+
4.54:1 on --surface-3 and 3.98:1 on --glow-purple over it; #005bc8 clears
|
|
68
|
+
both at 5.43:1 and 4.76:1. Both washed figures are at the 0.10 alpha below,
|
|
69
|
+
which is what this cell ships — an earlier version of this comment quoted
|
|
70
|
+
them at the 0.05 the wash briefly carried, which flattered both inks.
|
|
71
|
+
Light Ocean is the one light accent #96 never deepened, because it happened
|
|
72
|
+
to clear plain white. Same kind of move, smaller: hue and chroma unchanged
|
|
73
|
+
in OKLCH (H 258, C 0.185) and four points of lightness down, where #96's
|
|
74
|
+
two took about ten points and gave up 15.9% of the chroma on Phoenix and
|
|
75
|
+
17.6% on Emerald. See issues #96 and #157. */
|
|
76
|
+
--accent: #005bc8;
|
|
62
77
|
--accent-strong: var(--accent);
|
|
63
78
|
--accent-contrast: #ffffff;
|
|
79
|
+
/* Back to 0.10, the alpha this cell carried before #157. #157 thinned it to
|
|
80
|
+
0.05 while --accent was still #1568d6, because no alpha could carry that
|
|
81
|
+
blue over the grey panel. Deepening the ink is what closed the pair, so the
|
|
82
|
+
wash does not have to be the thing that gives. The rgb stays --purple-light
|
|
83
|
+
rather than the accent — in light a glow tints --purple-light, which
|
|
84
|
+
stories/signal-contrast.test.js holds. See issue #157. */
|
|
64
85
|
--glow-purple: rgba(21, 104, 214, 0.10);
|
|
65
86
|
--ring: 0 0 0 3px rgba(21, 104, 214, 0.28);
|
|
66
87
|
--grad-from: #1568d6;
|
|
@@ -89,7 +110,9 @@
|
|
|
89
110
|
--accent: #087a52;
|
|
90
111
|
--accent-strong: var(--accent);
|
|
91
112
|
--accent-contrast: #ffffff;
|
|
92
|
-
|
|
113
|
+
/* Thinned from 0.10 for WCAG AA, the same grey-panel pair as light Ocean and
|
|
114
|
+
from the same alpha. See issue #157. */
|
|
115
|
+
--glow-purple: rgba(11, 156, 104, 0.08);
|
|
93
116
|
--ring: 0 0 0 3px rgba(11, 156, 104, 0.28);
|
|
94
117
|
--grad-from: #0b9c68;
|
|
95
118
|
--grad-to: #12b0a0;
|
package/src/tokens/tokens.css
CHANGED
|
@@ -105,8 +105,15 @@
|
|
|
105
105
|
color-scheme: dark;
|
|
106
106
|
|
|
107
107
|
--purple: #6a2dcc;
|
|
108
|
-
--purple-light
|
|
109
|
-
|
|
108
|
+
/* The ramp moves up one step so --accent is --purple-light again, which is
|
|
109
|
+
the shape light Nebula and light Ocean already ship and which dark Nebula
|
|
110
|
+
held until #157 lifted the accent onto the old --purple-mid. Left alone,
|
|
111
|
+
the two tokens would resolve to one colour and the ramp would carry a
|
|
112
|
+
duplicate step. #bd8cff is the value docs/adr/0006 reasons about and
|
|
113
|
+
rejects as the accent; it becomes the ramp's top step instead. Light
|
|
114
|
+
Nebula's ramp does not move. See issue #157. */
|
|
115
|
+
--purple-light: #b479ff;
|
|
116
|
+
--purple-mid: #bd8cff;
|
|
110
117
|
--cyan: #20dcf5;
|
|
111
118
|
--green: #98ff8f;
|
|
112
119
|
/* Lighter than it looks like it should be, and deliberately so: --pink is read
|
|
@@ -135,8 +142,15 @@
|
|
|
135
142
|
--dim: #c6c2d6;
|
|
136
143
|
--muted: #948fa8;
|
|
137
144
|
|
|
138
|
-
|
|
139
|
-
|
|
145
|
+
/* Lifted from #9b5dff, which cleared the flat surfaces and failed on its own
|
|
146
|
+
wash over a card. This value was already in the ramp as --purple-mid, so no
|
|
147
|
+
new colour entered it; the ramp then moved up a step above so --accent is
|
|
148
|
+
--purple-light, which is how every other Nebula and Ocean cell is written.
|
|
149
|
+
--glow-purple and --ring follow it down the file. Held by
|
|
150
|
+
stories/accent-contrast.test.js. See issue #157.
|
|
151
|
+
why: docs/adr/0006-the-accent-is-measured-against-its-own-wash.md */
|
|
152
|
+
--accent: #b479ff;
|
|
153
|
+
--accent-strong: #7c3aed; /* button bg — white text clears WCAG AA at 5.70:1 */
|
|
140
154
|
--accent-contrast: #ffffff;
|
|
141
155
|
--ink: #e9e7f0;
|
|
142
156
|
|
|
@@ -157,7 +171,11 @@
|
|
|
157
171
|
--danger-contrast: var(--signal-contrast);
|
|
158
172
|
|
|
159
173
|
--glow-green: rgba(152, 255, 143, 0.16);
|
|
160
|
-
|
|
174
|
+
/* Dropped from 0.18: the wash, not the surface beneath it, is what put --accent
|
|
175
|
+
under AA — it lifts the ground toward the ink faster than the ink lifts off
|
|
176
|
+
it. Re-tinted from the new --accent, which signal-contrast.test.js requires.
|
|
177
|
+
See issue #157. */
|
|
178
|
+
--glow-purple: rgba(180, 121, 255, 0.12);
|
|
161
179
|
--glow-cyan: rgba(32, 220, 245, 0.14);
|
|
162
180
|
--glow-pink: rgba(233, 124, 165, 0.16);
|
|
163
181
|
|
|
@@ -196,7 +214,12 @@
|
|
|
196
214
|
/* Resting elevation for a card. Dark cards are borderless — the surface does
|
|
197
215
|
the grouping on its own — so they cast nothing. */
|
|
198
216
|
--shadow-card: none;
|
|
199
|
-
|
|
217
|
+
/* The accent's own rgb at a fixed alpha, so it moves whenever --accent moves —
|
|
218
|
+
otherwise a token points at a colour the accent no longer is. At this alpha
|
|
219
|
+
the band sits under the 3:1 WCAG 1.4.11 asks of a focus indicator, before
|
|
220
|
+
this change and after it; nothing here closes that. See issue #157 and the
|
|
221
|
+
ADR's closing section. */
|
|
222
|
+
--ring: 0 0 0 3px rgba(180, 121, 255, 0.35);
|
|
200
223
|
|
|
201
224
|
/* The ink a cast shadow is made of, and the specular white that reads as
|
|
202
225
|
gloss on a raised surface. Effects mix these instead of writing rgba(). */
|
|
@@ -206,8 +229,12 @@
|
|
|
206
229
|
/* Backdrop that dims the page behind an overlay (drawer, modal, composer). */
|
|
207
230
|
--scrim: rgba(0, 0, 0, 0.58);
|
|
208
231
|
|
|
209
|
-
/* Accent gradient stops (hero headline, marketing) — overridden per sub-theme.
|
|
210
|
-
|
|
232
|
+
/* Accent gradient stops (hero headline, marketing) — overridden per sub-theme.
|
|
233
|
+
--grad-from is pinned to the literal rather than tracking --purple-light,
|
|
234
|
+
which #157 moved up a step: following it would lighten the hero gradient's
|
|
235
|
+
first stop, a visible change nobody asked for. Every --grad-from in
|
|
236
|
+
src/tokens/accents.css is already written as a literal for the same reason. */
|
|
237
|
+
--grad-from: #9b5dff;
|
|
211
238
|
--grad-to: var(--cyan);
|
|
212
239
|
}
|
|
213
240
|
|