Skip to content

Releases: styled-components/xstyled

@xstyled/system@3.8.3

21 May 02:34

Choose a tag to compare

Patch Changes

  • d05f052: Module load and one-off compose() calls are noticeably faster on systems with many composed style generators. Per-render style application is unchanged.

    Theme-aware function interpolations inside css\…` templates (for example `` csscolor: ${(props) => props.theme.colors.primary};` ``) are now correctly typed.

  • e8cfc97: Themes with numeric keys (for example { blue: { 50: '#…', 100: '#…' } }) now produce precise string-literal types like 'blue.50' | 'blue.100' instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors.

All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.

@xstyled/styled-components@4.1.1

21 May 02:34

Choose a tag to compare

Patch Changes

  • 3517689: Type-checks cleanly against styled-components@6.4+. 6.4 added an AttrsKeys generic to its Styled interface; the recursion through .attrs(...) inside createStyled now casts back to the 4-generic shape so the published dist/index.d.ts compiles whether consumers are on ^6.1.11 or ^6.4.
  • e8cfc97: Themes with numeric keys (for example { blue: { 50: '#…', 100: '#…' } }) now produce precise string-literal types like 'blue.50' | 'blue.100' instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors.
  • Updated dependencies [d05f052]
  • Updated dependencies [e8cfc97]
    • @xstyled/system@3.8.3

All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.

@xstyled/emotion@3.8.3

21 May 02:34

Choose a tag to compare

Patch Changes

  • d05f052: Module load and one-off compose() calls are noticeably faster on systems with many composed style generators. Per-render style application is unchanged.

    Theme-aware function interpolations inside css\…` templates (for example `` csscolor: ${(props) => props.theme.colors.primary};` ``) are now correctly typed.

  • e8cfc97: Themes with numeric keys (for example { blue: { 50: '#…', 100: '#…' } }) now produce precise string-literal types like 'blue.50' | 'blue.100' instead of silently dropping out of the union. Deeply nested themes also type-check cleanly without producing "union too complex" errors.

  • Updated dependencies [d05f052]

  • Updated dependencies [e8cfc97]

    • @xstyled/system@3.8.3

All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.

@xstyled/babel-preset-emotion-css-prop@3.7.3

21 May 02:34

Choose a tag to compare

Patch Changes

  • 3517689: Bumps two runtime dep floors so the installed surface matches what's been tested:

    • @emotion/babel-plugin-jsx-pragmatic ^0.2.0 β†’ ^0.3.0. Consumer carets wouldn't have picked the 0.3.x line up automatically (semver treats 0.y bumps as breaking), so the floor change is required to land the latest.
    • @babel/plugin-transform-react-jsx ^7.19.0 β†’ ^7.28.0. Caret resolution would already reach 7.28.x; bumping the floor makes that the supported minimum.

    Build and snapshot tests are unchanged; the plugin surfaces are identical at the versions involved.

All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.

3.7.0 (2022-10-05)

Note: Version bump only for package @xstyled/babel-preset-emotion-css-prop

v4.1.0

08 Jan 05:30

Choose a tag to compare

What's Changed

  • Fix IntelliSense override in Space type by refining Pixel by @Gavriel-M in #428
  • fix(styled-components): reimplement useTheme type wrapper by @quantizor in #421

New Contributors

Full Changelog: v4.0.0-styled-components...v4.1.0

v4.0.0 (styled-components)

09 May 18:29

Choose a tag to compare

What's Changed

feat(styled-components): adopt styled-components v6 by @quantizor in #419

The minimum version of styled-components is now v6.1.11. See the migration guide for more information.

yarn add @xstyled/styled-components@^4.0.0 styled-components@^6.1.11

Full Changelog: v3.8.1...v4.0.0-styled-components

v3.8.1

08 May 20:26
77489c9

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.8.0...v3.8.1

v3.8.0

03 Apr 20:32

Choose a tag to compare

What's Changed

Full Changelog: v3.7.5...v3.8.0

v3.7.5 (3.7.4-3.7.5)

27 Mar 15:45

Choose a tag to compare

  • feat: stricter color type; this will help avoid accidents like typos when trying to consume colors from the theme

Full Changelog: v3.7.3...v3.7.5

v3.7.3

17 Mar 18:21

Choose a tag to compare