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 vanilla-extract-ci 9 months ago

Patch Changes

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

Published by vanilla-extract-ci 9 months ago

Patch Changes

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

Published by vanilla-extract-ci 9 months ago

Patch Changes

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

Published by vanilla-extract-ci 9 months ago

Patch Changes

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

Published by vanilla-extract-ci 10 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Patch Changes

  • #1231 cdd5150 Thanks @mrm007! - Bump postcss-load-config to enable loading PostCSS configs defined as ES Modules
vanilla-extract - @vanilla-extract/[email protected]

Published by vanilla-extract-ci 11 months ago

Patch Changes

  • #1193 a22dd4d Thanks @syfxlin! - Fixes Next.js 13.5.x CSS output on Windows when using React Server Components
vanilla-extract - @vanilla-extract/[email protected]

Published by vanilla-extract-ci 11 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Minor Changes

  • #1175 ca854f5 Thanks @youngkyo0504! - assignInlineVars now accepts null and undefined values

    Variables with a value of null or undefined will be omitted from the resulting inline style.

    NOTE: This only applies to the case where a theme contract is not provided.

    import { assignInlineVars } from '@vanilla-extract/dynamic';
    import { container, brandColor, textColor } from './styles.css.ts';
    
    // If `tone` is `undefined`, the following inline style becomes:
    // { '--brandColor__8uideo0': 'pink' }
    
    const MyComponent = ({ tone }: { tone?: critical }) => (
      <section
        className={container}
        style={assignInlineVars({
          [brandColor]: 'pink',
          [textColor]: tone === 'critical' ? 'red' : null,
        })}
      >
        ...
      </section>
    );
    
  • #1175 ca854f5 Thanks @youngkyo0504! - setElementVars now accepts null and undefined values

    Variables with a value of null or undefined will not be assigned a value.

    NOTE: This only applies to the case where a theme contract is not provided.

    import { setElementVars } from '@vanilla-extract/dynamic';
    import { brandColor, textColor } from './styles.css.ts';
    
    const el = document.getElementById('myElement');
    
    setElementVars(el, {
      [brandColor]: 'pink',
      [textColor]: null,
    });
    
vanilla-extract - @vanilla-extract/[email protected]

Published by vanilla-extract-ci 11 months ago

Patch Changes

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

Published by vanilla-extract-ci 11 months ago

Minor Changes

Patch Changes

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

Published by vanilla-extract-ci about 1 year ago

Patch Changes

  • #1180 89224fe Thanks @syfxlin! - Fixes Next.js 13 CSS output on Windows when using React Server Components
vanilla-extract - @vanilla-extract/[email protected]

Published by vanilla-extract-ci about 1 year ago

Patch Changes

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

Published by vanilla-extract-ci about 1 year ago

Patch Changes

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

Published by vanilla-extract-ci about 1 year ago

Minor Changes

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

Published by vanilla-extract-ci about 1 year ago

Minor Changes

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

Published by vanilla-extract-ci about 1 year ago

Minor Changes