Skip to content

v2.0.0-rc.23

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions 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.

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