css

The CSS Language and Framework

MIT License

Downloads
6.8K
Stars
1.7K
Committers
14

Bot releases are visible (Hide)

css - v2.0.0-beta.115

Published by github-actions[bot] over 1 year ago

Bug Fixes

  • CSS - TypeError: Cannot read properties of null (reading 'cssRules') 31ed9a6
css - v2.0.0-beta.114

Published by github-actions[bot] over 1 year ago

Bug Fixes

  • CSS - TypeError: Vs is not a function 44caabc
css - v2.0.0-beta.113

Published by github-actions[bot] over 1 year ago

Performance Upgrades

  • Compiler - Prevent repeated validation of the same extraction 1a5663b

Improvements

  • CLI - mcss -w terminal output 6bb2d7d
  • CLI - mcss init terminal output #163 a4584f3
  • Compiler - Default options.exclude 0912fbf
  • Compiler - Export MasterCSSCompiler in a non-default way 3ad10f8
  • CSS - Migrate @master/css-cli to @master/css 13a1ba0

Bug Fixes

  • CLI - Newly created files aren't detected while watching 3f84f8e
  • Compiler - options was incorrect after refreshing 0096392
  • CSS - calc() with unit awareness doesn't work in group syntax #168 9affd98
  • CSS - Set config incorrectly when refreshing abeb2fe
  • CSS - Wrong override config behavior 4e08b1c
css - v2.0.0-beta.112

Published by github-actions[bot] over 1 year ago

Bug Fixes

  • CSS - css.refresh() throws Uncaught ReferenceError: style is not defined fe552af
css - v2.0.0-beta.111

Published by github-actions[bot] over 1 year ago

Improvements

  • CSS - TextSize utility syntax with golden-ratio line heights 26c94d3
css - v2.0.0-beta.108

Published by github-actions[bot] over 1 year ago

Improvements

  • CSS - Changed line height units of TextSize utility syntax to em for a more general visual 1b49fea

Bug Fixes

  • CSS - Missed the config.important default value 976e354

Examples

css - v2.0.0-beta.107

Published by github-actions[bot] over 1 year ago

Updates

  • CLI - Rename AOT options to compilerOptions f2a0dff
  • Compiler - Remove init() and use refresh() when config changed eef2c5b

Bug Fixes

  • CLI - Cannot find module '@master/css-compiler' #161 1731de2
  • CSS - Remix breaks after hydration #159 c15643e
  • Webpack - options.module not applied b76b644

Examples

css - v2.0.0-beta.106

Published by github-actions[bot] over 1 year ago

Additions

  • Compiler - Exclude public dir ba21347
  • Compiler - Read config file as default options 5ae96de

Improvements

  • CSS - Export MasterCSS in a non-default way 8becfdb

Examples

  • Create the Angular example 41e27e0
css - v2.0.0-beta.105

Published by github-actions[bot] over 1 year ago

New Features

Additions

  • CLI - Add the mastercss alias 9c9f0f7

Updates

  • Compiler - Renamed .fixedClasses .ignoredClasses to .classes.fixed .classes.ignored 721da2b
  • CSS - Merged options.override options.observe into config e1f3744

Bug Fixes

  • CLI - Use compiler.sources as watching path d1436a4
  • Compiler - Removed depreciated MasterCSS Options d18b244
  • CSS - Options was deprecated 7c7a4d6
  • Webpack - HMR doesn't update correctly when changing configuration #153 a748e4a
css - v2.0.0-beta.104

Published by github-actions[bot] over 1 year ago

Bug Fixes

  • CSS - font:serif causes Maximum call stack size exceeded 8725cd8
css - v2.0.0-beta.103

Published by github-actions[bot] almost 2 years ago

Bug Fixes

  • CSS - observe(root) type error 01a3d05

Examples

css - v2.0.0-beta.102

Published by github-actions[bot] almost 2 years ago

New Features

  • CSS - vw vh max-vw max-vh min-vw min-vh semantics #124 ad024c4

    <div class="width:100vw height:100vh">
    <div class="vw vh">
    
    <div class="max-width:100vw max-height:100vh min-width:100vw min-height:100vh">
    <div class="max-vw max-vh min-vw min-vh">
    
  • CSS - Config colors support rgba() function #105 d6af6bf

    export const config = {
        colors: {
            primary: '#000', // HEX
            primary: 'rgb(0,0,0)', // RGB
            primary: 'rgb(0 0 0)', // RGB
            primary: 'rgb(0 0 0/.5)', // RGB
            primary: 'rgba(0,0,0,.5)', // RGBA
            primary: 'blue/.5' // Existing Color Syntax
         }
    }
    
  • CSS - Support making all declarations important with config.important #131 ccbff2e

    Make all CSS declarations add !important. This can be useful when using Master CSS with existing CSS that has high-specificity selectors.

    export const config = {
        important: true
    }
    

    Generated CSS:

    .mt\:1 {
        margin-top: 0.0625rem !important
    }
    
    .text\:center {
        text-align: center !important
    }
    
    .hide {
        display: none !important
    }
    
    .full {
        width: 100% !important;
        height: 100% !important;
    }
    
  • CSS - Support scoping all CSS rules with config.scope #133 #132 c41baea

    Limit Master CSS syntax to a specific CSS scope:

    export const config = {
        scope: '#app'
    }
    

    Your HTML:

    <html>
    <body id="app">
        <div class="mt:1 text:center"></div>
    </body>
    </html>
    

    Generated CSS:

    #app .mt\:1 {
        margin-top: 0.0625rem
    }
    
    #app .text\:center {
        text-align: center
    }
    

Bug Fixes

  • CSS - Declaring theme colors via the Group syntax with classes is invalid #138 571f092
  • Language Service - Incorrectly triggering the compiler to scan files 033ddaa

Deprecations

  • CSS - Semantic declarations for string types are no longer supported 9abb7b1

    export const config = {
        semantics: {
    -      'hide-text': 'font-size:0',
    +      'hide-text': { font-size: 0 },
        }
    }
    
css - v2.0.0-beta.101

Published by github-actions[bot] almost 2 years ago

Bug Fixes

  • Webpack - Missed initialization of Master CSS Compiler 56a032d
css - v2.0.0-beta.100

Published by github-actions[bot] almost 2 years ago

Additions

  • CSS - Automatically create master.css.js config after installation 052cc0e

Bug Fixes

  • Vite - Change master.css.js won't update style by HMR 68b0480
css - v2.0.0-beta.99

Published by github-actions[bot] almost 2 years ago

Improvements

  • Compiler - Check the validity of CSS rules with stylelint caab954

Bug Fixes

  • Compiler - Missing extracting some class names like scale(.5)@sm dc9dfae
  • Compiler - Strange behavior with breakpoints #111 4929a36
css - v2.0.0-beta.98

Published by github-actions[bot] almost 2 years ago

Bug Fixes

css - v2.0.0-beta.97

Published by github-actions[bot] almost 2 years ago

⚠️ Install the latest beta version instead of this one for emergency fixes

Additions

  • Compiler - options.module for custom virtual module entry 5231b94

Improvements

Updates

  • Compiler - @master/css.compiler to @master/css-compiler ee3735a7

Examples

  • Next.js - Upgrade to v13.1 884579f
css - v2.0.0-beta.96

Published by github-actions[bot] almost 2 years ago

Bug Fixes

  • Compiler - Accidentally extracted strings with unclosed brackets #109 593ee21
css - v2.0.0-beta.95

Published by github-actions[bot] almost 2 years ago

Bug Fixes

  • Webpack - CSS virtual module has been read before initializing #107 3186391
css - v2.0.0-beta.94

Published by github-actions[bot] almost 2 years ago

Bug Fixes

  • CSS - Color configurations without dashes don't work f62fc62