Repository navigation
Theme default you can switch, exact brand colour steps, seven icons - #246
Merged
Merged
Conversation
…ven icons; font vars no longer self-reference Found while two agents rebuilt the XESO front end on core 2.2.0: both worked around the same gaps. - defaultTheme on ThemeProvider and ThemeInit: a starting theme the visitor can change (theme=light/dark still forces). Choosing System with a non-system default is saved so a reload keeps it. - brandScale/accentScale/neutralScale: exact steps, same shape as native; a seed fills the steps a scale leaves out. - ThemeProvider's first render matches the server; the saved theme is applied in a layout effect (no React #418). - Icons arrowUp, arrowDown, cube, grid, newspaper, people, menu. - theme.scss no longer declares --font-* as var() of themselves. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CTnFQitvEiLzWCtQz1VgFy
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
The foundations API-surface tests expect --font-* to stay declared, so they move to :where(:root) instead of being removed: any app rule wins. Native ships the same built-in icon names as core. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CTnFQitvEiLzWCtQz1VgFy
Member
Author
|
The visual check flagged 3 of 798 shots, and I've added the
Generated by Claude Code |
Merged
30 tasks done
This was referenced Oct 19, 2026
lorant-one
pushed a commit
that referenced
this pull request
Oct 20, 2026
Main's fixes are carried into 3.0's props rather than taken as written:
- Breakpoint show classes only under a wider hide (Flex, Grid), sizes take
"auto" and "fit", Text and Heading take s={{ hide }} (#226, #245).
- ThemeInit/ThemeProvider: defaultTheme and exact scheme scales beside 3.0's
density (#246). Kbar's trigger is optional.
- AI harness: main's leaner bundle writer (grouped props, word-list types)
with 3.0's mixin and key-diff compression; gotchas keep 3.0's wording and
take main's inRules flags; the app-shell task and app starter, codemodded.
- FileTree follows the state contract: onExpandChange is onExpandedIdsChange
(codemod entry), onSelectedIdChange is new, onSelect stays the action.
- Main's new native components (#224) take 3.0's props (textVariant,
aria-label, onValueChange, onPageChange) and point units: their rem
defaults are written as "Nrem". Native docs pages say points, not rem.
- Effects and Swiper fixes ported to their 3.0 homes (packages/fx,
Carousel/SnapCarousel).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
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.
Requested by Lorant · project thread
Before: a site could not start in light mode and still let visitors switch, because
theme: "light"locks the theme. Matching a brand book meant overriding semantic CSS variables with selector hacks. Anything that showed the current theme caused a hydration error (React #418). Arrow-up, menu, people, grid, cube and newspaper icons were missing, and the--font-*variables were declared as themselves.After:
defaultTheme: "light"instylestarts visitors on light, and they can still switch.brandScale,accentScaleandneutralScaletake exact colours per step, in the same shape as the native package. The provider's first render matches the server. The seven icons ship built in, and fonts set by the app always apply.All of these came from the XESO rebuild test: two agents rebuilt the same app on core 2.2.0, and both lost time on the same workarounds. Details are in
/mnt/project-files/xeso/rebuild-test/RESULTS.md.How:
ThemeProviderpropThemeordefaultThemeon both the server and the client.data-themeuntil that sync has happened."system"when the default isn't "system".ThemeInit: readsdefaultThemeand the scales, keeps those keys off<html>, and no longer copies a saved"system"ontodata-themeas a literal.customSchemeProperties(seeds, scales): merges a scale over the seed's ramp.theme-default-and-scale.test.tsx; typecheck is clean.pnpm lintfails onpreviewtoday because ofai/examples/blocksindex keys. This PR adds no new lint errors.Generated by Claude Code