Releases: chakra-ui/panda
@pandacss/[email protected]
Patch Changes
- Updated dependencies [ee9341d]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
-
bee3ec8: Add support for aspect ratio tokens in the panda config or preset. Aspect ratio tokens are used to define
the aspect ratio of an element.export default defineConfig({ // ... theme: { extend: { // add aspect ratio tokens tokens: { aspectRatios: { '1:1': '1', '16:9': '16/9', }, }, }, }, })
Here's what the default aspect ratio tokens in the base preset looks like:
{ "square": { "value": "1 / 1" }, "landscape": { "value": "4 / 3" }, "portrait": { "value": "3 / 4" }, "wide": { "value": "16 / 9" }, "ultrawide": { "value": "18 / 5" }, "golden": { "value": "1.618 / 1" } }
Breaking Change
The built-in token values has been removed from the
aspectRatio
utility to the@pandacss/preset-base
as a token.For most users, this change should be a drop-in replacement. However, if you used a custom preset in the config, you
might need to update it to include the new aspect ratio tokens.
Patch Changes
- Updated dependencies [8430490]
- Updated dependencies [74ac0d9]
- @pandacss/[email protected]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
Patch Changes
- Updated dependencies [8430490]
- Updated dependencies [bee3ec8]
- Updated dependencies [74ac0d9]
- Updated dependencies [c9195a4]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
Patch Changes
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
-
bee3ec8: Add support for aspect ratio tokens in the panda config or preset. Aspect ratio tokens are used to define
the aspect ratio of an element.export default defineConfig({ // ... theme: { extend: { // add aspect ratio tokens tokens: { aspectRatios: { '1:1': '1', '16:9': '16/9', }, }, }, }, })
Here's what the default aspect ratio tokens in the base preset looks like:
{ "square": { "value": "1 / 1" }, "landscape": { "value": "4 / 3" }, "portrait": { "value": "3 / 4" }, "wide": { "value": "16 / 9" }, "ultrawide": { "value": "18 / 5" }, "golden": { "value": "1.618 / 1" } }
Breaking Change
The built-in token values has been removed from the
aspectRatio
utility to the@pandacss/preset-base
as a token.For most users, this change should be a drop-in replacement. However, if you used a custom preset in the config, you
might need to update it to include the new aspect ratio tokens.
Patch Changes
- Updated dependencies [8430490]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
Patch Changes
- Updated dependencies [8430490]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
-
bee3ec8: Add support for aspect ratio tokens in the panda config or preset. Aspect ratio tokens are used to define
the aspect ratio of an element.export default defineConfig({ // ... theme: { extend: { // add aspect ratio tokens tokens: { aspectRatios: { '1:1': '1', '16:9': '16/9', }, }, }, }, })
Here's what the default aspect ratio tokens in the base preset looks like:
{ "square": { "value": "1 / 1" }, "landscape": { "value": "4 / 3" }, "portrait": { "value": "3 / 4" }, "wide": { "value": "16 / 9" }, "ultrawide": { "value": "18 / 5" }, "golden": { "value": "1.618 / 1" } }
Breaking Change
The built-in token values has been removed from the
aspectRatio
utility to the@pandacss/preset-base
as a token.For most users, this change should be a drop-in replacement. However, if you used a custom preset in the config, you
might need to update it to include the new aspect ratio tokens.
Patch Changes
- Updated dependencies [8430490]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
Patch Changes
- Updated dependencies [8430490]
- @pandacss/[email protected]
@pandacss/[email protected]
Minor Changes
-
8430490: Improve performance, mostly for the CSS generation by removing a lot of
postcss
usage (and plugins).Public changes:
- Introduce a new
config.lightningcss
option to uselightningcss
(currently disabled by default) instead of
postcss
. - Add a new
config.browserslist
option to configure the browserslist used bylightningcss
. - Add a
--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
for
this run.
Internal changes:
markImportant
fn from JS instead of walking through postcss AST nodes- use a fork of
stitches
stringify
function instead ofpostcss-css-in-js
to write the CSS string from a JS
object - only compute once
TokenDictionary
properties - refactor
serializeStyle
to use the same code path as the rest of the pipeline withStyleEncoder
/StyleDecoder
and rename it totransformStyles
to better convey what it does
- Introduce a new
Patch Changes
- Updated dependencies [8430490]
- @pandacss/[email protected]