Skip to content

Releases: master-co/css

v2.0.0-rc.26

16 Mar 10:25
Compare
Choose a tag to compare
v2.0.0-rc.26 Pre-release
Pre-release

⚠️ This release requires some naming changes.

Performance Upgrades

  • Parse at-tokens and manipulate abstract syntax nodes @1aron 947bb5a
ESLint

Additions

Improvements

  • Rename config.mediaQueries to config.queries and share it with @media @supports @container @1aron 2f561d9

    export default {
    -   mediaQueries: {
    +   queries: {
            tablet: 1024, 
            desktop: 1280,
    -       landscape: '(orientation:landscape)',
    +       landscape: 'media (orientation:landscape)'
        }
    }
  • Rename config.themeDriver to config.modeDriver @1aron 67f2c2c

    export default {
    -   themeDriver: 'class',
    +   modeDriver: 'class',
    }

v2.0.0-rc.25

11 Mar 16:57
Compare
Choose a tag to compare
v2.0.0-rc.25 Pre-release
Pre-release

Bug Fixes

Extractor

Upgrades

v2.0.0-rc.24

04 Mar 12:35
Compare
Choose a tag to compare
v2.0.0-rc.24 Pre-release
Pre-release

Bug Fixes

Svelte

v2.0.0-rc.23

04 Mar 07:37
Compare
Choose a tag to compare
v2.0.0-rc.23 Pre-release
Pre-release

Theme Mode ( Stable v1 )

Renamed ThemeServiceProvider to ThemeModeProvider and separated it into a new repository "master-co/theme-mode" and package "theme-mode" to prevent it from hindering the progress of future Master CSS.

Screenshot 2024-03-04 at 4 13 16β€―PM

This package automatically switches themes using class="" and color-scheme:; that's it.

theme-mode

For example:

npm install @master/theme-mode.react
-import { ThemeServiceProvider } from '@master/css.react'
+import ThemeModeProvider from '@master/theme-mode.react'

export default function App({ children }) {
    return (
-       <ThemeServiceProvider options={{ default: 'system' }}>{children}</ThemeModeProvider>
+       <ThemeModeProvider preference='system'>{children}</ThemeModeProvider>
    )
}

Normal CSS ( Stable v2 )

The packages/normal.css is separated into a new repository "master-co/normal.css"

Screenshot 2024-03-04 at 4 12 14β€―PM

Bug Fixes

ESLint
Runtime
  • Original style#master was removed when refreshing config @1aron b1f44f1

Deprecations

React
  • Remove ThemeServiceProvider and use @master/theme-mode.react instead @1aron d823b83
Theme Service
Vue
  • Remove ThemeServiceProvider and use @master/theme-mode.vue instead @1aron 72f4cf2

v2.0.0-rc.22

01 Mar 05:56
Compare
Choose a tag to compare
v2.0.0-rc.22 Pre-release
Pre-release

To accommodate this release, you'll need to adjust the path of importing styled. We have separated the styled into a new repository at https://github.com/master-co/styled to prevent it from hindering the progress of the Master CSS in the future.

Additions

  • @container queries support, resolved #43 @1aron 27a389a #43

    <div class="font:32@container|sidebar(min-width:800px)">
    @container sidebar (min-width:800px) {
        .font\:32\@container\|sidebar\(min-width\:800px\) {
            font-size: 2rem
        }
    }

    ⚠️ This is an experimental release and we have not yet designed a smooth syntax for @container.

Improvements

React
  • styled is separated into @master/styled.react @1aron d07a2aa

    -import { styled } from '@master/css.react'
    -import styled from '@master/styled.react'
Vue
  • styled is separated into @master/styled.vue @1aron 01aa33a

    -import { styled } from '@master/css.vue'
    -import styled from '@master/styled.vue'

v2.0.0-rc.21

28 Feb 12:47
Compare
Choose a tag to compare
v2.0.0-rc.21 Pre-release
Pre-release

New Features

  • Master Colors @1aron 02bf77a

    Starting from this version, the Master CSS color palette has been spun off into a new product called Master Colors. This release is specifically targeted toward users who prefer v1 colors, and separating it will facilitate the future progress of Master CSS.

    You can also install @master/colors from NPM if needed and access the colors object:

    import colors from '@master/colors'
    
    console.log(colors.blue[60])

palette

Documentation

v2.0.0-rc.20

27 Feb 07:54
Compare
Choose a tag to compare
v2.0.0-rc.20 Pre-release
Pre-release

Bug Fixes

ESLint
  • Node must be provided when reporting error if location is not provided @BenSeage 72ce64c
  • The same declaration but different selectors or states should not be considered a conflict, fixed #322 @BenSeage bd10f7d #322

v2.0.0-rc.19

26 Feb 15:23
Compare
Choose a tag to compare
v2.0.0-rc.19 Pre-release
Pre-release

Bug Fixes

  • Some packages were not released due to NPM Provenance in the previous version @1aron 15092eb

v2.0.0-rc.18

26 Feb 15:07
Compare
Choose a tag to compare
v2.0.0-rc.18 Pre-release
Pre-release

Improvements

Create

Bug Fixes

ESLint
  • Failed to load config "@master/css" to extend from @1aron 16ee5e8

    image

Vue
  • Failed to resolve entry for package "@master/css.vue" @1aron 05de7e4

Tests

  • Master CSS ESLint Config is loaded correctly by ESLint @1aron 63bd733

v2.0.0-rc.17

23 Feb 15:43
Compare
Choose a tag to compare
v2.0.0-rc.17 Pre-release
Pre-release

Bug Fixes

  • npm create @master/css my-app causes "Cannot found examples" @1aron f775ecb