-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature: theming enhancements and additions #459
Merged
Merged
Conversation
This file contains 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
stephiescastle
added
storybook
This issue relates to Storybook.js
minor
Contains new features or enhancements
feature parity
Work needed to maintain consistency between our implementations of Explorer 1
labels
Jun 12, 2024
stephiescastle
changed the title
Feature/additional theming
Feature: theming enhancements and additions
Jun 12, 2024
jamesray
approved these changes
Jun 12, 2024
Great work @stephiescastle ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature parity
Work needed to maintain consistency between our implementations of Explorer 1
feature
minor
Contains new features or enhancements
storybook
This issue relates to Storybook.js
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.
Checklist
Description
Fixes https://github.com/nasa-jpl/www/issues/50
Fixes https://github.com/nasa-jpl/www/issues/53
Starts https://github.com/nasa-jpl/www/issues/48
Starts https://github.com/nasa-jpl/www/issues/21
class="bg-star bg-primary"
).Using the themes
Themes can be:
Tailwind modifiers and directives
The theme can be used as an inline Tailwind modifier
defaultTheme:
edu:
internal:
They also work with the
@apply
directive:In Vue logic
Options API
Composition API
Used as a class
These classes are generally applied to the
<html>
element, but they can also be used at the block level. However, if you plan to do this, you will need to provide fallbacks for all theme variations within the block.For example: the code from above would need to be changed to work as expected in the below example:
Note that using theme classes directly only affects CSS -- They will not be taken into account with
useThemeStore()
.Implementation Notes
Instructions to test
pnpm i
make vue-storybook
You can also test this with the EDU frontend:
make checkout-submodules
pnpm i
make frontend
make edu
Tested in the following environments/browsers:
Operating System
Browser