Releases: master-co/css
Releases · master-co/css
v2.0.0-rc.46
New Features
-
Support ESLint v9 and flat configuration @1aron f0c83a4
// eslint.config.js import css from '@master/eslint-config-css' export default [ css ]
Additions
ESLint
-
Automatically load
master.css.*
configuration based on the current working directory @1aron 1578d11// before import { fileURLToPath } from 'node:url' import css from '@master/eslint-config-css' export default [ css, { settings: { '@master/css': { config: fileURLToPath(new URL('master.css.ts', import.meta.url)) } } } ]
// after import css from '@master/eslint-config-css' export default [ css ]
You can still manually specify
master.css.js
if it is not in the current working directory.
Extractor
Improvements
ESLint
-
Import css from
@master/eslint-config-css
instead of@master/eslint-config-css/flat
@1aron 5656195// eslint.config.js - import css from '@master/eslint-config-css/flat' + import css from '@master/eslint-config-css' export default [ css ]
-
Use
plugin:@master/css/legacy
instead of@master/css
@1aron ac85723/** @type {import('eslint').Linter.LegacyConfig} */ module.exports = { extends: [ - 'plugin:@master/css', + 'plugin:@master/css/legacy', ] }
Extractor Vite
Bug Fixes
Extractor Vite
Upgrades
Examples
- Add legacy config @1aron 4fde02d
- Improve ESLint v9 example @1aron 304e631
- Update ESLint configuration for React @1aron 0508ec3
- Update ESLint configuration for Svelte @1aron 67ae9cb
- Update ESLint configuration for Vue @1aron ee7615b
- Update Nuxt examples @1aron 60c006d
- Update Svelte example @1aron 73a2e89
- Update Vue examples @1aron 884d210
v2.0.0-rc.45
v2.0.0-rc.44
v2.0.0-rc.43
v2.0.0-rc.42
New Features
-
defaultMode
config option, resolved #357 @1aron 5d07398 #357Default light mode
// master.css.js export default { defaultMode: 'light' // default }
Generated CSS:
.light, :root { --primary: 0 0 0; }
Now using variables with theme mode such as
fg:blue
does not require addinghtml.light
in advance.-<html class="light"> +<html>
If your application supports light/dark,
html.light
is still required. This change mainly improves the startup experience of projects without theme mode.No default mode
// master.css.js export default { defaultMode: false }
Generated CSS:
.light { --primary: 0 0 0; }