Skip to content

Releases: master-co/css

v2.0.0-beta.215

08 Jan 14:16
Compare
Choose a tag to compare
v2.0.0-beta.215 Pre-release
Pre-release

‼️ This release contains syntactically breaking changes.

Performance Upgrades

Server
  • Add decodeHTML function and fix class duplication dd5d607 @1aron

Bug Fixes

Server

v2.0.0-beta.214

21 Dec 13:28
Compare
Choose a tag to compare
v2.0.0-beta.214 Pre-release
Pre-release

‼️ This release contains syntactically breaking changes.

Improvements

  • Refactor default media queries to use screen sizes tokens dd9dbbb @1aron
  • Remove unused variables size and simplify code 5619e66 @1aron
  • Rename variables box-size to screen a798d99 @1aron
    export default {
        variables: {
            screen: {
                '4xs': 360,
                '3xs': 480,
                '2xs': 600,
                'xs': 768,
                'sm': 834,
                'md': 1024,
                'lg': 1280,
                'xl': 1440,
                '2xl': 1600,
                '3xl': 1920,
                '4xl': 2560
            }
        }
    }
    Apply the screen variables:
    - max-w:md
    + max-w:screen-md
  • Use size:W|H, max:W|H, min:W|H instead of WxH, max:WxH, min:WxH da8331e @1aron
    - 16x16
    + size:16 = size:4x
    - max:16x32
    + max:16|32 = max:4x|8x
    - min:16x16
    + min:16 = min:4x
    The x separator in 16x32 collides with the latest unit multiplier x, like 16xx32x, and it is unintuitive.

Documentation

Tests

v2.0.0-beta.213

19 Dec 09:27
Compare
Choose a tag to compare
v2.0.0-beta.213 Pre-release
Pre-release

Bug Fixes

  • Prevent % or indeterminate CSS variables from converting units 51f4118 @BenSeage

v2.0.0-beta.212

15 Dec 16:21
Compare
Choose a tag to compare
v2.0.0-beta.212 Pre-release
Pre-release

πŸ“’ This release helps you fix hydration errors caused by progressive rendering in Next.js, Nuxt.js, etc.

Bug Fixes

Server
  • Class names from HTML must be decoded beforehand 13e07c7 @1aron

Documentation

  • New documentation Development strategies for minimizing CSS bb446d5 @1aron

v2.0.0-beta.211

15 Dec 05:19
Compare
Choose a tag to compare
v2.0.0-beta.211 Pre-release
Pre-release

Improvements

v2.0.0-beta.210

14 Dec 18:20
Compare
Choose a tag to compare
v2.0.0-beta.210 Pre-release
Pre-release

πŸ“’ This release helps you fix hydration errors caused by progressive rendering in Next.js, Nuxt.js, etc.

Bug Fixes

Server
  • Use htmlparser2 instead of node-html-parser to reliably parse HTML d213c8b @1aron

v2.0.0-beta.209

14 Dec 06:17
Compare
Choose a tag to compare
v2.0.0-beta.209 Pre-release
Pre-release

Bug Fixes

Documentation

v2.0.0-beta.208

13 Dec 03:50
Compare
Choose a tag to compare
v2.0.0-beta.208 Pre-release
Pre-release

New Features

  • Multiplier unit x and config.baseUnit #316 51bf4a2 @BenSeage

    For example, with the default baseUnit: 4, the spacing scale 1x, 2x, … will be 4, 8, ….

    <div class="m:4x"></div>

    Generated CSS:

    .m\:4x {
        margin: 1rem;
    }

    How is 1rem calculated?

    4x = 4(multiplier)*4(base unit) = 16px, 16px / 16(root size) = 1rem

    So you don't need to define the spacing scale one by one:

    export default {
    -    variables: {
    -        spacing: {
    -            '1x': 4,
    -            '2x': 8,
    -            '3x': 12,
    -            ...,
    -            '40x': 160
    -        }
    -    }
    }

v2.0.0-beta.207

08 Dec 04:32
Compare
Choose a tag to compare
v2.0.0-beta.207 Pre-release
Pre-release

New Features

v2.0.0-beta.206

06 Dec 07:48
Compare
Choose a tag to compare
v2.0.0-beta.206 Pre-release
Pre-release

Performance Upgrades

  • Share utilities instead of duplicate instantiations 2d263fb @1aron

Deprecations

  • Nested variable definitions to align rules 1ad1e7a @1aron
    import { variables } from '@master/css'
    
    /** @type {import('@master/css').Config} */
    export default {
        variables: {
    -      font: {
    -          family: {
    -              sans: ['Inter', ...variables.font.family.sans]
    -          }
    -      }
    +      'font-family': {
    +          sans: ['Inter', ...variables['font-family'].sans]
    +      }
        }
    }

Documentation