Skip to content

Releases: master-co/css

v2.0.0-rc.30

24 Apr 19:04
Compare
Choose a tag to compare
v2.0.0-rc.30 Pre-release
Pre-release

Bug Fixes

Runtime
  • contentDocument was incorrectly recognized as a non-document @BenSeage 1b101c4

v2.0.0-rc.29

24 Apr 08:13
Compare
Choose a tag to compare
v2.0.0-rc.29 Pre-release
Pre-release

Additions

ESLint
  • Setting option classDeclarations for checking variable/member declarations @1aron bd41565
    image
Language Service
  • Setting options for classAttributes classAttributeBindings classDeclarations classFunctions @1aron ce33aea
VSCode

Bug Fixes

Language Service

Deprecations

ESLint
  • Use classAttributes classFunctions instead of classMatching calleeMatching @1aron 4b89f5e

v2.0.0-rc.28

22 Apr 17:10
Compare
Choose a tag to compare
v2.0.0-rc.28 Pre-release
Pre-release

Deprecations

  • Refactor config.modeDriver to config.modes @BenSeage 06d67bf
    export default {
    -   modeDriver: 'class',
    +   modes: { dark: 'class', light: 'class' }
    }

v2.0.0-rc.27

22 Apr 12:54
Compare
Choose a tag to compare
v2.0.0-rc.27 Pre-release
Pre-release

New Features

  • @master/css-explore-config - A utility for exploring a Master CSS config file @1aron e1e3994

Performance Upgrades

Language Service
  • Improve CSS generation and hint interaction latency @1aron 7b2c1a2

Additions

  • leading alias for line-height @1aron 4f04d20
      <div class="line-height:1">
    + <div class="leading:1">
  • text-truncate: alias for lines: @1aron 3de751e
      <div class="lines:3">
    + <div class="text-truncate:3">
  • text-underline-position: @1aron bf0d43c
    <p class="text-underline:front-font">
    <p class="text-underline:under">
    <p class="text-underline:left">
    <p class="text-underline:right">
  • tracking: alias for letter-spacing: @1aron ffe607f
      <p class="letter-spacing:1">
    + <p class="tracking:1">
  • Function generatedCSS(config) @1aron 3a12c6e
Language Service

Improvements

  • @all, @print, @screen, @speech should be set in the default query @1aron 53ef2d0
  • Rename config.semantics to config.utilities to prevent confusion with component classes @1aron 6728364
    export default {
    -    semantics: { ... },
    +    utilities: { ... }
    }
  • Rules API @1aron 02f033d
Language Service

Bug Fixes

Core
ESLint
Language Service
Read more

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