Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor theme to use tokens (#6559)
* refactor: accordion theme * refactor: alert theme * refactor: button theme * refactor: checkbox theme * refactor: close button theme * feat: add prose to sizes * feat: add smaller font size tokens * refactor: container theme * refactor: drawer * refactor: form control * refactor: form error * refactor: form label * refactor: input * refactor: list * refactor: list * refactor: menu * refactor: modal * refactor: select * refactor: skip link * feat: add polyfill for 100vh * feat: add polyfill for 100vh * refactor: slider * refactor: spinner to use token * refactor: tag to use token * refactor: textarea to use token * refactor: tooltip * feat: improve support for vh values * refactor: themes to use tokens * chore: add changeset
- Loading branch information
1 parent
dda7d71
commit 0cae420
Showing
36 changed files
with
252 additions
and
204 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@chakra-ui/css-reset": patch | ||
"@chakra-ui/provider": patch | ||
"@chakra-ui/styled-system": patch | ||
"@chakra-ui/theme": patch | ||
--- | ||
|
||
Refactors the theme to use design tokens and css variables as much as possible. | ||
|
||
Improve support for `100vh` values by using a polyfill css variable | ||
`--chakra-vh`. |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const pipe = | ||
<R>(...fns: Array<(a: R) => R>) => | ||
(v: R) => | ||
fns.reduce((a, b) => b(a), v) |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
0cae420
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.
Successfully deployed to the following URLs:
chakra-ui-storybook – ./
chakra-ui-storybook.vercel.app
storybook.chakra-ui.com
chakra-ui-storybook-chakra-ui.vercel.app
chakra-ui-storybook-git-main-chakra-ui.vercel.app