Skip to content

Commit 718e78b

Browse files
crhqbuddywhitman
andcommitted
fix(styles): move the last raw colour literals into tokens.css (§4.1.1)
Merged from PR #58. ConnectCallout's comment hex is reworded to prose and the SiteHeader More-menu shadow now uses a new --shadow-float token (value unchanged — no visual change). Clears the §4.1.1 grep so main's ci runs green again. Co-Authored-By: buddywhitman <buddywhitman@users.noreply.github.com> Co-Authored-By: CRHQ <noreply@crhq.ai>
1 parent 82a0aad commit 718e78b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/components/ConnectCallout.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const LINES = {
7171
/* The sponsor-tint register: accent at a whisper over surface, not a fill. Kept flat
7272
(no gradient) so it never competes with PluginSubmitCTA, which is the louder invite
7373
and owns the gradient. `color-mix` keeps both themes correct from one declaration —
74-
in dark, --color-surface is #141417 and the tint stays a tint. */
74+
in dark, --color-surface is near-black and the tint stays a tint. */
7575
background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
7676
}
7777

‎src/components/SiteHeader.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ const utility = [
432432
border-radius: var(--radius-sm);
433433
background: var(--color-surface);
434434
/* the one place the header floats over content — it needs to read as a layer */
435-
box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
435+
box-shadow: var(--shadow-float);
436436
}
437437
.navMore__link {
438438
display: flex;

‎src/styles/tokens.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
--radius-sm: 2px;
8484
--radius-none: 0;
8585
--shadow-none: none;
86+
/* A surface that floats over content (the header's More menu). */
87+
--shadow-float: 0 8px 24px rgb(0 0 0 / 0.12);
8688
}
8789

8890
:root {

0 commit comments

Comments
 (0)