-
Notifications
You must be signed in to change notification settings - Fork 957
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
feat(theme): token-tool integration #191
Conversation
* fix(playground): app component name
* refactor(theme): adopt to new tokens type
} | ||
} | ||
|
||
const Result = Shadow; |
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.
Wrapper
@@ -0,0 +1,8 @@ | |||
import React from 'react'; | |||
import { ThemeType } from '..'; |
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.
?
* | ||
* @return any. | ||
*/ | ||
export function createFlatStyle(theme: ThemeType, |
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.
createStyle
TokenType, | ||
} from '@rk-kit/design'; | ||
|
||
export const defaultVariant = 'default'; |
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.
Uppercase
|
||
const mapVariant = (v: string) => createStyleFromVariant(theme, design, v); | ||
const mergeStyles = (origin: StyleType, next: StyleType) => ({ ...origin, ...next }); | ||
|
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.
pre-process arrays and check for default
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.
And tests for array!
3ebed2c
to
ea2dbc5
Compare
ea2dbc5
to
c47e5c3
Compare
Please read and mark the following check list before creating a pull request:
Short description of what this resolves: