v2.0.0-rc.23
Pre-release
Pre-release
github-actions
released this
04 Mar 07:37
·
838 commits
to rc
since this 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.
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"