-
Notifications
You must be signed in to change notification settings - Fork 10
[WB-1896] Add ThunderBlocks theme #2501
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
base: feature/css-vars
Are you sure you want to change the base?
Conversation
…emantic color tokens as css variables
…ge themes using CSS variables
…h references to css variables. Creates a build step to convert semanticColor tokens to css variables that can be consumed via CSS imports.
🦋 Changeset detectedLatest commit: 45b391a The changes in this PR will be included in the next version bump. This PR includes changesets to release 26 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Change: 0 B Total Size: 103 kB ℹ️ View Unchanged
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-qsjikfxfiw.chromatic.com/ Chromatic results:
|
@@ -0,0 +1,119 @@ | |||
import {fade} from "../util/utils"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Should we put theme tokens into directories to organize them? Now that I'm looking into Typography tokens, I'm noticing this folder could get a bit crowded.
const black = "#191918"; | ||
const white = "#FFFFFF"; | ||
|
||
export const color = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: I realize this is a draft PR...but can you add some comments or docs on how this works when you get a chance? I'm a little confused after looking at color.ts
vs. color-thunderblocks.ts
. The object entries are SO different, it's a bit difficult to understand the overlap! Does that only matter when you get to the theme merging part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm planning to add all of that later, but as you mentioned, this PR is very drafty, so I'll make sure to mark it as ready for review when I cover all the required parts. I need to work on other PRs first (and land them) before coming back to this one.
Summary:
Adds the new ThunderBlocks theme to support the new classroom experience.
Issue: https://khanacademy.atlassian.net/browse/WB-1896
Test plan:
TBD