-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] Refactor CSS Theming in UI Framework #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…mponents to allow for individual folders per component
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
… be based off primary color choices
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component
Component Rendering
Docs
Modifies documentation
Examples
Examples usage
Query
Modifies query package
Reactivity
Modifies reactivity package
Templating
Modifies templating package
Tests
Modifies tests
Tooling
UI Components
Modifies UI components
Utils
Modifies utilities package
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.
Theming has been reworked inside the UI framework. CSS variables are now attached to
:hostinside the shadow dom instead of globally to:root. This means you can no longer access globally component css variables.Positive Trade Offs
darkandlightcan now be added to ANY component to trigger that specific component to be rendered as light or dark modeFor instance this example:
Will render the page as
darkmode, thenav-menuas light mode and theui-inputas dark mode. This can be used for complex layouts that might use light or dark sections.Trade Offs
button-primary-text-colorin your css. These will only be defined inside the component. This is because the theme is now scoped to the component.