Repository navigation
Conversation
…= dev switch, kit:theme Six stable presets from the design picker and six Funky Retro round-2 drafts, each with first-pass dark tokens that pass Brand::contrastProblems(). The preset in force merges into Brand::tokens()/css() and loads its families through <x-kit::fonts /> from Bunny; its display face is set on the workspace name. ?theme= keeps a preset for the session in kit.themes.switch_envs and never in production. With no theme, output is byte-identical (test:themes pins origin/main's output).
…e only on the workspace name Themes::accessibilityProblems() checks 4.5:1 for body, muted, link and button text and 3:1 for the button fill, focus ring and active marker, light and dark. Presets set foreground and muted_foreground (new kit.brand keys, printed only when set). Appraisal and Funky Retro mark the active item with accent_strong on the page. test:themes asserts the display face is set only on the workspace and product name.
…, restore files Pint reformatted Renames the picker's first preset to ink-gold and adds dm-civic and sunny-dm (draft). header_rule accepts a list of 2 to 6 colours, printed as equal stripes. Reverts unrelated src files that a broad Pint run had reformatted. test:themes is not yet updated for the new inventory.
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.
WIP: spec for an app-first build. Do not merge. The owner has decided to build theme presets in an app first and graduate them to the kit later. This branch is the reference spec.
Done
Tey\Kit\Themes\Preset(readonly) and theThemesresolver (inventory fromresources/themes/*.php+kit.themes.paths;offered(),default(),switched(),active()).community-paper,funky-retro,ink-gold,market-grotesk,soft-studio,sunny-commons. Draft:retro-sunburst,retro-marquee,retro-cooper,retro-groovy,retro-evening,retro-sunny,dm-civic,sunny-dm.kit.themes.default(KIT_THEME),offered,switch_envsandpaths. The preset in force merges intoBrand::tokens()/css(), andBrand::tokens(null, $preset)lets mail/OG pass a workspace's preset.?theme=session switch (?theme=clears it), hard-disabled in production, with drafts visible.kit:theme {name?}.<x-kit::fonts />from Bunny (no Google URLs). The display face becomes--font-mark, applied only to the workspace and product name.kit.brandkeysforeground,muted_foreground(+_dark).header_ruleaccepts a list of 2 to 6 colours, printed as equal stripes (6px). The stripes are treated as decorative and exempt from contrast.Themes::accessibilityProblems()checks WCAG 2.2 AA (4.5:1 for body, muted, link and button text; 3:1 for the button fill, focus ring and marker), light and dark. All 14 presets return an empty list.Not done
test:themesis not updated for the 14-preset inventory and theink-goldrename: the "offered" assertion currently fails.fonts.tracking(recorded on the preset but not printed). Docs and the CHANGELOG don't mentiondm-civic,sunny-dmor the stripes yet.--radius, the preview page, the workspace setting and the MCP.AA adjustments to picker colours
All dark palettes are new and unreviewed.