Repository navigation
fix(site): match the landing page demos to the lime app - #98
Merged
Merged
Conversation
The demos' .oi-app colours were a hand-kept copy that drifted when the app went lime. They are now generated at build time from PALETTES and CHART_PALETTE, so a palette change in the app reaches the site with no edit here.
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.
The landing page's embedded app demos still used the pre-restyle tokens, so they rendered with a blue primary and no longer looked like the app.
.oi-apptoken block to the app's default dark palette and its derived tokens, and map the tokens it was missing (accent-strong,destructive-solid, the hover mixes). Chart line, pressed toggles and progress bars are lime again.--accent-ink, as in the app.w-72) like the app, so the restyled unit cards no longer get cut off under the table.<select>but are styled like the app's Select trigger. The app's Select positions its list withposition: fixed, which misplaces it inside the scaled demo panels.site/src/lib/app-tokensbuilds the.oi-apprule from the app'sPALETTES.default.darkandCHART_PALETTEat build time andBase.astroinlines it, so the demos can't drift from the app's colours again. The derived tokens (--fill-*,--accent-ink, ...) stay as formulas insite/src/styles/index.cssand follow the generated values.Not fixed here: the odds chart axis labels on the Cases demo overlap ("Far fewerFewer"), the same as in the app. Checked at desktop width only.