vanilla-extract

Zero-runtime Stylesheets-in-TypeScript

MIT License

Downloads
15.5M
Stars
9.6K
Committers
113

Bot releases are hidden (Show)

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Minor Changes

  • #812 009e122 Thanks @markdalgleish! - Add support for container query conditions

    Example usage

    import { createContainer, style } from '@vanilla-extract/css';
    import { defineProperties } from '@vanilla-extract/sprinkles';
    
    const containerName = createContainer();
    
    export const container = style({
      containerName,
      containerType: 'size',
    });
    
    const containerProperties = defineProperties({
      conditions: {
        small: {},
        medium: {
          '@container': `${containerName} (min-width: 768px)`,
        },
        large: {
          '@container': `${containerName} (min-width: 1024px)`,
        },
      },
      defaultCondition: 'small',
      // etc.
    });
    
vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Minor Changes

  • #810 c38b152 Thanks @markdalgleish! - Support excluding file names from generateIdentifier output. This is available by passing a newly-added options object rather than a string.

    Example usage

    import { generateIdentifier } from '@vanilla-extract/css';
    
    const identifier = generateIdentifier({
      debugId,
      debugFileName: false,
    });
    

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Minor Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Minor Changes

  • #807 b0b3662 Thanks @mattcompiles! - Add createContainer API

    createContainer creates a single scoped container name for use with CSS Container Queries. This avoids potential naming collisions with other containers.

    import { style, createContainer } from '@vanilla-extract/css';
    
    export const sidebarContainer = createContainer();
    
    export const sidebar = style({
      containerName: sidebarContainer,
    });
    
    export const navigation = style({
      '@container': {
        [`${sidebarContainer} (min-width: 400px)`]: {
          display: 'flex',
        },
      },
    });
    
  • #807 b0b3662 Thanks @mattcompiles! - Add support for container queries via the new @container key.

    import { style } from '@vanilla-extract/css';
    
    export const myStyle = style({
      '@container': {
        '(min-width: 400px)': {
          display: 'flex',
        },
      },
    });
    
vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Patch Changes

  • #804 412962f Thanks @m7yue! - Fix styleVariants type when using the map data function
vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Patch Changes

  • #781 4fb9a2c Thanks @benjervis! - Adds a check for the existence of import.meta.hot before attempting to add an event listener to inject styles
vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci about 2 years ago

Minor Changes

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes

  • #729 02ea735 Thanks @danielroe! - Generate CSS and not HMR code if vite server is present in production mode
vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Minor Changes

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Major Changes

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Minor Changes

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Minor Changes

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes

vanilla-extract - @vanilla-extract/[email protected]

Published by seek-oss-ci over 2 years ago

Patch Changes