Releases: master-co/css
v2.0.0-rc.25
v2.0.0-rc.24
v2.0.0-rc.23
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.
This package automatically switches themes using class=""
and color-scheme:
; that's it.
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>
)
}
- The Theme Mode now supports @master/theme-mode.svelte.
Normal CSS ( Stable v2 )
The packages/normal.css
is separated into a new repository "master-co/normal.css"
Bug Fixes
ESLint
Runtime
Deprecations
React
Theme Service
Vue
v2.0.0-rc.22
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
v2.0.0-rc.21
New Features
-
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 thecolors
object:import colors from '@master/colors' console.log(colors.blue[60])