@apliteni/apliteni-ui 0.9.1 → 0.11.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.
@@ -105,8 +105,15 @@
105
105
  color-scheme: dark;
106
106
 
107
107
  --purple: #6a2dcc;
108
- --purple-light: #9b5dff;
109
- --purple-mid: #b479ff;
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
- --accent: #9b5dff;
139
- --accent-strong: #7c3aed; /* button bg white text clears WCAG AA (~6.5:1) */
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
- --glow-purple: rgba(155, 93, 255, 0.18);
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
- --ring: 0 0 0 3px rgba(155, 93, 255, 0.35);
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
- --grad-from: var(--purple-light);
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