Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #1514

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Version Packages #1514

merged 1 commit into from
Dec 20, 2024

Conversation

vanilla-extract-ci
Copy link
Collaborator

@vanilla-extract-ci vanilla-extract-ci commented Dec 20, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@vanilla-extract/[email protected]

Minor Changes

  • #1092 fd673f6 Thanks @z4o4z! - Add support for createVar calls that declare @property rules

@vanilla-extract/[email protected]

Minor Changes

  • #1092 fd673f6 Thanks @z4o4z! - keyframes: Add support for a vars property to steps within keyframes declarations

    Example usage:

    import {
      createVar,
      keyframes
    } from '@vanilla-extract/css';
    
    const angle = createVar({
      syntax: '<angle>',
      inherits: false,
      initialValue: '0deg'
    });
    
    export const angleKeyframes = keyframes({
      '0%': {
        vars: {
          [angle]: '0deg'
        }
      },
      '100%': {
        vars: {
          [angle]: '360deg'
        }
      }
    });
  • #1512 4abfc0b Thanks @askoufis! - createTheme, createGlobalTheme: Add support for assigning themes to a layer

    Themes can now be assigned to a layer by name using the @layer key at the top-level of the theme definition.

    EXAMPLE USAGE:

    // themes.css.ts
    import {
      createTheme,
      createGlobalTheme,
      layer
    } from '@vanilla-extract/css';
    
    export const themeLayer = layer();
    
    export const [themeA, vars] = createTheme({
      '@layer': themeLayer,
      color: {
        brand: 'blue'
      },
      font: {
        body: 'arial'
      }
    });
    
    export const vars2 = createGlobalTheme(':root', {
      '@layer': themeLayer,
      space: {
        small: '10px',
        large: '20px'
      }
    });

    This will generate the following CSS:

    @layer themes_themeLayer__1k6oxph0;
    @layer themes_themeLayer__1k6oxph0 {
      .themes_themeA__1k6oxph1 {
        --color-brand__1k6oxph2: blue;
        --font-body__1k6oxph3: arial;
      }
    
      :root {
        --space-small__z05zdf1: 10px;
        --space-large__z05zdf2: 20px;
      }
    }
  • #1092 fd673f6 Thanks @z4o4z! - createVar: Add support for defining @property rules

    Example usage:

    import { createVar } from '@vanilla-extract/css';
    
    export const myVar = createVar({
      syntax: '<number>',
      inherits: false,
      initialValue: '0.5'
    });

    This will generate the following CSS:

    @property --myVar__jteyb14 {
      syntax: '<number>';
      inherits: false;
      initial-value: 0.5;
    }

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract/[email protected]

Patch Changes

@vanilla-extract-ci vanilla-extract-ci force-pushed the changeset-release/master branch 2 times, most recently from 3df913b to 02c72b8 Compare December 20, 2024 04:15
@askoufis askoufis merged commit 9e5438d into master Dec 20, 2024
11 checks passed
@askoufis askoufis deleted the changeset-release/master branch December 20, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants