Repository navigation
Surface tones, orange badge, kicker-blue, dark-surface contrast fixes, showcase headings - #6
Open
lumpster-csa wants to merge 7 commits into
Open
lumpster-csa wants to merge 7 commits into
lumpster-csa wants to merge 7 commits into
Conversation
Adds border-left-width to .csa-action's transition list so the selected state's 1px-to-4px left border animates in alongside the color change, instead of snapping. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The plain n50 rule was nearly invisible against dark and black surfaces. Dark uses b600 and black uses n700, the same colors .csa-section-divider used for its seam. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A color-only modifier combined with either .csa-kicker or .csa-kicker-sub: b500 on light/gradient, b200 on dark/black. Includes a showcase row and a README note that the always-dark hero/CTA kicker colors override it by design. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An optional second attribute that nudges a surface one step without becoming a new surface. data-tone="neutral" on light gives an n25 band with white cards (.csa-bg-n25 stays as an alias and now sets the band itself); data-tone="deep" on dark gives a b800 band with b700 cards. The progress track, toggle tracks and disabled pagination step up to b700 on deep so they don't vanish into the band. Tags and toggles respond to either hook. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
b300 text on the dark b700 surface measured ~3.3:1, below the 4.5:1 AA minimum for these sizes. Blue tags and .csa-badge-outlined now use b100 on dark and black (5.2:1 at rest on b700), and the outlined dark demos use the b100 calendar icon. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Light surfaces: solid o700 pill, o600 border, white text and icon. Dark and black: o400 at 20% fill, o400 border, o200 text and icon, mirroring how Secondary also covers the always-dark hero/CTA and restores light in .csa-hero-light. Adds src/assets/icons/o200/ (120 icons recolored from o300 to #FFB833) for the dark-surface icon. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Heading styles are scoped to .csa-title/.csa-subtitle, so the showcase's bare h1-h4 were rendering with browser defaults (section titles at 24px, weight 700, gray). All 83 bare headings now carry csa-title. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Seven small, independent changes, one commit each so they can be reviewed (or reverted) separately:
border-left-widthadded to.csa-action's transition list, so the selected state's 1px → 4px left border animates in with the color change instead of snapping..csa-hr— dark (b600) and black (n700) variants. The plainn50rule was nearly invisible on dark surfaces..csa-kicker-blue— a color-only modifier combined with.csa-kickeror.csa-kicker-sub:b500on light/gradient,b200on dark/black. Not wired into.csa-hero/.csa-cta, whose always-dark kicker colors override it by design.data-tone) — an optional second attribute that nudges a surface one step without becoming a new surface, so every existingdata-surfacerule keeps applying:data-surface="light" data-tone="neutral":n25band, white cards..csa-bg-n25stays as an alias and now sets the band color itself instead of needing an inline background.data-surface="dark" data-tone="deep":b800band,b700cards. The progress track, toggle tracks, and disabled pagination fills step up tob700on deep so they don't vanish into the band..csa-badge-outlinedtext wereb300, only ~3.3:1 against the darkb700surface (AA needs 4.5:1). Both now useb100on dark and black (5.2:1 at rest), and the outlined dark demos use theb100calendar icon..csa-badge-orange— light surfaces: solido700pill,o600border, white text and icon. Dark and black:o400at 20% fill,o400border,o200text and icon. Like Secondary, it also covers the always-dark.csa-hero/.csa-ctaand restores the light treatment in.csa-hero-light. Addssrc/assets/icons/o200/— 120 icons recolored from theo300set to#FFB833..csa-title/.csa-subtitle, so the showcase page's bareh1–h4were rendering with browser defaults (section titles at 24px, weight 700, gray). All bare headings now carrycsa-title.Showcase demos and README entries are included for the tones, kicker modifier, and orange badge.
Test plan
src/docs/index.htmllocally and checked computed styles for each change:border-left-widthanimates 1px → 2.5px → 4px over ~0.15s on selection.csa-hrcomputesn50/b600/n700on light / dark / black.csa-kicker-bluecomputesb500on light and gradient,b200on dark and black; plain kickers unchanged.csa-bg-n25alias render identically (n25 band, white card,n50tag); deep givesb800band withb700card, progress track, and disabled paginationb100on dark and blacko200/icons are generated by recoloringo300, so a quick visual skim of a few would be welcome🤖 Generated with Claude Code