Releases: master-co/css
v2.0.0-rc.26
Performance Upgrades
ESLint
Additions
- Function to check if rules are duplicated @1aron f9b958c
- Function to compare rule modes @1aron 59d99f8
- Function to compare rule queries @1aron 0f91468
- Function to compare rule selectors @1aron f1c9baa
- Function to compare rule states @1aron b6f97dc
Improvements
-
Rename
config.mediaQueries
toconfig.queries
and share it with@media
@supports
@container
@1aron 2f561d9export default { - mediaQueries: { + queries: { tablet: 1024, desktop: 1280, - landscape: '(orientation:landscape)', + landscape: 'media (orientation:landscape)' } }
-
Rename
config.themeDriver
toconfig.modeDriver
@1aron 67f2c2cexport default { - themeDriver: 'class', + modeDriver: 'class', }
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])