Skip to content

Releases: vanilla-extract-css/vanilla-extract

@vanilla-extract/[email protected]

28 Apr 06:23
d1973ea

Choose a tag to compare

Minor Changes

  • #52 2d98bcc Thanks @markdalgleish! - Rename createThemeVars to createThemeContract

    BREAKING CHANGE

    import {
    -  createThemeVars,
    +  createThemeContract,
      createTheme
    } from '@vanilla-extract/css';
    
    -export const vars = createThemeVars({
    +export const vars = createThemeContract({
      color: {
        brand: null
      },
      font: {
        body: null
      }
    });

Patch Changes

@vanilla-extract/[email protected]

28 Apr 06:23
d1973ea

Choose a tag to compare

Minor Changes

  • #52 2d98bcc Thanks @markdalgleish! - Rename createThemeVars to createThemeContract

    BREAKING CHANGE

    import {
    -  createThemeVars,
    +  createThemeContract,
      createTheme
    } from '@vanilla-extract/css';
    
    -export const vars = createThemeVars({
    +export const vars = createThemeContract({
      color: {
        brand: null
      },
      font: {
        body: null
      }
    });

@vanilla-extract/[email protected]

26 Apr 00:12
71bf442

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

26 Apr 22:29
c80a862

Choose a tag to compare

Patch Changes

  • #47 a18bc03 Thanks @mattcompiles! - Improve dev prefixes on generated class names

    • Add file name to class names even if no debug id is present
    • If file is the index file use directory name instead
  • #49 2ae4db3 Thanks @michaeltaranto! - Update the unit-less property map

    The original list was borrowed from the postcss-js parser, but decided to reverse engineer an updated list from csstype for more thorough coverage.

@vanilla-extract/[email protected]

26 Apr 00:12
71bf442

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

22 Apr 02:47
e0ed6c9

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

22 Apr 02:47
e0ed6c9

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

22 Apr 02:47
e0ed6c9

Choose a tag to compare

Minor Changes

  • #38 156b491 Thanks @markdalgleish! - Add composeStyles function

  • #37 ae9864c Thanks @markdalgleish! - Rename mapToStyles to styleVariants

    BREAKING CHANGE

    -import { mapToStyles } from '@vanilla-extract/css';
    +import { styleVariants } from '@vanilla-extract/css';
    
    -export const variant = mapToStyles({
    +export const variant = styleVariants({
      primary: { background: 'blue' },
      secondary: { background: 'aqua' },
    });

Patch Changes

@vanilla-extract/[email protected]

22 Apr 12:00
ccd7c58

Choose a tag to compare

Patch Changes

@vanilla-extract/[email protected]

22 Apr 02:47
e0ed6c9

Choose a tag to compare

Minor Changes

  • #37 ae9864c Thanks @markdalgleish! - Rename mapToStyles to styleVariants

    BREAKING CHANGE

    -import { mapToStyles } from '@vanilla-extract/css';
    +import { styleVariants } from '@vanilla-extract/css';
    
    -export const variant = mapToStyles({
    +export const variant = styleVariants({
      primary: { background: 'blue' },
      secondary: { background: 'aqua' },
    });