Skip to content

v2.0.0-rc.42

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jun 01:00
· 48 commits to rc since this 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