feat(ai-autopilot): compose vike-themes/vike-layouts for styling + app shell#193
Merged
Merged
Conversation
…p shell (#192) Add a vike-shell-composer persona to vikeExtensionPersonas so the composed build declares a theme (defineTheme + extends themesExt: system dark mode, picker, CSS-var contract) and picks a vike-layouts shell (centered/topbar/ sidebar + logo/nav slots) instead of hand-writing a CSS design system and a layout/nav shell. Notes the one-line vike-toolbar install. No runtime change. Closes #192.
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.
Next composer after auth/data (#188) and the CRUD/admin UI (#191). The remaining big hand-rolled surface is styling and the app shell: an agent writes its own CSS design system, dark-mode toggle, and layout/nav chrome every build, and that fresh CSS is the root of the loop's over-polish churn. Same lever as before: a persona, no runtime change, the agent stays a black box.
What changed
vike-shell-composerpersona inai-autopilot, wired intovikeExtensionPersonas(after crud, before the ui-intent guardrail).defineTheme({ name, radius, light, dark })+extends: [themesExt]+appearance: 'system'/theme/themes. Flash-free system dark mode, a picker, and a CSS-var contract to style against (var(--primary)), instead of a hand-written color system + dark-mode toggle.extends: [layoutsExt]+layout: 'centered' | 'topbar' | 'sidebar'+logo/ cumulativenavslots, instead of a hand-written topbar/sidebar. Shells are vike-blockslayoutvariants (#401), the same block system the crud screens render through.extends: [toolbarExt]so the theme/locale controls have a home. Install-and-forget, not its own concern.defineTheme/ themesextends/layoutselection / toolbar and forbids a hand-rolled color system;vikeExtensionPersonasorder updated.API verification
Every snippet cross-checked against the real vike-themes / vike-layouts / vike-toolbar public API in the vike-data repo (READMEs + exports):
defineTheme+vike-themes/reactextends,appearance/theme/themes;vike-layouts/reactextends,layout,logo/navslots;vike-toolbar/reactextends.Notes
Part of #186. Closes #192.