@theme-ui/preset-polaris
Advanced tools
Changelog
v0.6.0-alpha.7 2021-02-15
Breaking TypeScript: Known colors (primary, text, background,
accent, secondary) in ColorMode
can now be nested scales.
The following no longer typechecks, as colors.primary
can be an object.
sx={{
color: theme => theme.colors?.primary?.toUpperCase()
}}
But the following code still works.
sx={{
color: theme => theme.colors?.primary
}}
If colors.primary
is an object, colors.primary.__default
is used.
Add theme.useRootStyles
configuration option (false by default). Set it to
true
to add styles.root
to html
instead of body
. theme.useBodyStyles
configuration option still defaults to true
, but it's going in to be
deprecated in favor of theme.useRootStyles
in the future.
Skip false
values before passing style objects to Emotion. Issue #1297, PR
#1460.
Changelog
v0.6.0-alpha.4
iframe
tag instead of wrapping div
. Issue
#966, PR #1122Changelog
v0.5.0-alpha.1 2020-11-26
"^16.14.0 || ^17.0.0"
."^16.14.0 || ^17.0.0"
.Changelog
v0.5.0-alpha.0 2020-11-20
csstype
3. PR #1261
@emotion/react@11
instead of @emotion/core@10
sx
prop types are still global, and we opt in for Emotion css
prop types
(This will change in the future.)