Skip to content

v2.0.0-beta.184

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 16 Oct 12:01
· 466 commits to beta since this release

⚠️ This version includes significant changes to the configuration, so please pay attention to the sections that have been restructured and renamed.

Additions

Improvements

  • Variable syntax falls back to native if not found f123054 @1aron

    export default {
        variables: { found: 'center' }
    }
    <div class="text-align:$(not-found)">
    <div class="text-align:$(found)">

    Generated CSS

    .text-align\:\$\(not-found\) {
        text-align: var(--not-found)
    }
    .text-align\:\$\(found\) {
        text-align: center
    }

Deprecations

- import { fonts } from '@master/css'
+ import { variables } from '@master/css'

export default {
-    classes: {},
+    styles: {},

-    values: {},
+    variables: {},

-    fonts: {
-        sans: ['Inter', ...fonts.sans],
-        mono: ['Fira Code', ...fonts.mono]
-    },
+    variables: {
+        fontFamily: {
+            sans: ['Inter', ...variables.fontFamily.sans],
+            mono: ['Fira Code', ...variables.fontFamily.mono]
+        }
+    },

-   viewports: {
+   mediaQueries: {
        mobile: 600,
        tablet: 1024,
        desktop: 1440,
    }
}

Documentation

Tests