Skip to content

Releases: master-co/css

v2.0.0-rc.46

17 Dec 18:09
Compare
Choose a tag to compare
v2.0.0-rc.46 Pre-release
Pre-release

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
  • Exclusions for .next, .nuxt, and .svelte-kit directories in options @1aron 070fbb9

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
  • Exclude CSS files from being processed in CSSExtractorPlugin transform @1aron cb5fec8

Bug Fixes

Extractor Vite

Upgrades

Examples

v2.0.0-rc.45

06 Aug 07:04
Compare
Choose a tag to compare
v2.0.0-rc.45 Pre-release
Pre-release

Bug Fixes

v2.0.0-rc.44

05 Jul 07:51
Compare
Choose a tag to compare
v2.0.0-rc.44 Pre-release
Pre-release

Additions

v2.0.0-rc.43

20 Jun 15:38
Compare
Choose a tag to compare
v2.0.0-rc.43 Pre-release
Pre-release

Additions

v2.0.0-rc.42

18 Jun 01:00
Compare
Choose a tag to compare
v2.0.0-rc.42 Pre-release
Pre-release

New Features

  • defaultMode config option, resolved #357 @1aron 5d07398 #357

    Default 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 adding html.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;
    }

Bug Fixes

v2.0.0-rc.41

16 Jun 19:14
Compare
Choose a tag to compare
v2.0.0-rc.41 Pre-release
Pre-release
export default {
-    rules: {}
+    syntaxes: {}
}

Additions

Improvements

Bug Fixes

Extractor Vite

Documentation

v2.0.0-rc.40

27 May 15:00
Compare
Choose a tag to compare
v2.0.0-rc.40 Pre-release
Pre-release

Performance Upgrades

  • Fixed extending preset configurations repeatedly @1aron 5e79fc6

Improvements

  • Rename config.queries to config.at @1aron 361968f
    export default {
    -    queries: { ... }
    +    at: { ... }
    }
  • Responsive breakpoints are automatically derived from variables.screen @1aron a71e1ca

Documentation

v2.0.0-rc.39

21 May 15:35
Compare
Choose a tag to compare
v2.0.0-rc.39 Pre-release
Pre-release

Bug Fixes

ESLint
Language Server
  • An error should not be thrown if the external file does not have a corresponding workspace @1aron aa9c3ed

Tests

Language Server

v2.0.0-rc.38

08 May 03:54
Compare
Choose a tag to compare
v2.0.0-rc.38 Pre-release
Pre-release

Bug Fixes

VSCode

v2.0.0-rc.37

08 May 01:21
Compare
Choose a tag to compare
v2.0.0-rc.37 Pre-release
Pre-release

New Features

VSCode
  • Support monorepo workspaces and multiple configurations @1aron 4b31640

Bug Fixes

VSCode