-
Notifications
You must be signed in to change notification settings - Fork 10
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
WB-1634: Add supported themes list to wb-theming #2098
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@khanacademy/wonder-blocks-theming": minor | ||
"@khanacademy/wonder-blocks-button": patch | ||
"@khanacademy/wonder-blocks-switch": patch | ||
--- | ||
|
||
Export supported themes list, change WB components to use these new exports |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import {StyleDeclaration} from "aphrodite"; | ||
|
||
export type ThemedStylesFn<T> = (theme: T) => StyleDeclaration; | ||
|
||
export type SupportedThemes = "default" | "khanmigo"; | ||
export type Themes<T> = Partial<Record<SupportedThemes, T>>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question: Is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice catch! I'll add that, and yes, it expects an object. |
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: Does
T
need to be constrained here to object or something?