Skip to content

Releases: master-co/css

v2.0.0-rc.69

26 Jun 23:14

Choose a tag to compare

v2.0.0-rc.69 Pre-release
Pre-release

Changes Overview

  1. From this version, color variables are defined under the variables.color namespace:
export default {
    variables: {
-        primary: '#000000'
+        color: {
+            primary: '#000000'
+        }
    }
}
  1. Variables for different modes should be moved to the modes section:
export default {
    modes: {
        dark: {
            color: { primary: '#ffffff' }
        },
        light: {
            color: { primary: '#000000' }
        }
    }
}
  1. Add some alternative syntax:
  • align-content:* -> content-*
  • align-items:* -> items-*
  • align-self:* -> self-*
  • justify-content:* -> justify-*
  1. Deprecate and replace certain syntax to reduce syntax diversity
- flex:col flex:row flex:column-reverse
+ flex-col flex-row flex-col-reverse

- center-content
+ justify-center items-center

- position:abs position:rel
+ abs rel
  1. The default value of modeTrigger has been changed to the more general media; it was previously set to class.
export default {
    modeTrigger: 'media' // default
}

New Features

Performance Upgrades

Additions

Improvements

  • modeTrigger default changed to media @1aron a147414
  • text:<size> with auto letter-spacing @1aron c8972da
  • Colors should be defined in the variables.color namespace @1aron 4b4fd6b
  • Rename config.rules.variables to config.rules.namespaces @1aron 9fd8ad4
  • Rename config.rules[].ambiguousKeys and config.rules[].ambiguousValues to config.rules[].aliasGroups and config.rules[].values @1aron 24fc4db
  • Use color-mix to modify alpha @1aron 8aeb6f8
  • Use config.modes.light.x to define variables for different modes instead of variables.x.['@dark'] @1aron aba02ef
  • Use config.modeTrigger instead of config.modes @1aron bfd2bd1
  • Use createCSS to create a MasterCSS instance with default config @1aron 6a8e896

Bug Fixes

Runtime

Deprecations

  • config.override option @1aron 6c44d8c
  • config.rules[].analyze @1aron 4bd9dfd
  • config.rules[].transformValue for JSON-safe configuration @1aron 1202aa7
  • flex:col flex:column-reverse @1aron 2d4941a
  • Remove position:abs position:rel @1aron b0aca3d
  • Use config.functions[].transformer instead of config.functions[].transform for JSON-safe configuration @1aron ebe3e6b
  • Use config.rules[].declarations instead of config.rules[].declare for JSON-safe configuration @1aron fadc372
  • Use config.rules[].transformer instead of config.rules[].transformValueComponents for JSON-safe configuration @1aron f2cbad9
  • Use justify-center items-center instead of center-content @1aron 410065f

Documentation

v2.0.0-rc.68

26 Apr 10:15

Choose a tag to compare

v2.0.0-rc.68 Pre-release
Pre-release

Additions

Bug Fixes

  • #id selector does not work in :of() @1aron e3fa3b1
  • Components should maintain the core atomic philosophy, intentional merging will lead to unexpected behavior @1aron e42b882

v2.0.0-rc.67

24 Apr 13:24

Choose a tag to compare

v2.0.0-rc.67 Pre-release
Pre-release

Additions

  • overflow-wrap wrap-break-word wrap-anywhere wrap-normal @1aron b01a740

Improvements

Bug Fixes

  • Components inheriting from the same address lead to incorrect styling @1aron 43bfa6b

v2.0.0-rc.66

23 Apr 06:35

Choose a tag to compare

v2.0.0-rc.66 Pre-release
Pre-release

Bug Fixes

Language

v2.0.0-rc.65

22 Apr 06:11

Choose a tag to compare

v2.0.0-rc.65 Pre-release
Pre-release

Bug Fixes

ESLint
Runtime
  • The first rule inserted is repeated because layer is attached @1aron 07100d7
  • The new rule was not done based on the inserted index @1aron 57e1c1d

v2.0.0-rc.64

21 Apr 00:11

Choose a tag to compare

v2.0.0-rc.64 Pre-release
Pre-release

New Features

Additions

Nuxt
Vite

Improvements

Builder
  • Rename options.classes.fixed options.classes.ignored to options.includeClasses options.excludeClasses @1aron e76fef4
Vite
  • Deprecate @master/css-extractor.vite in favor of @master/css.vite @1aron b6fbcdf
Webpack
  • Deprecate @master/css-extractor.webpack in favor of @master/css.webpack @1aron f30f587

Bug Fixes

Runtime
  • Seriously missing styles due to miscalculation of class counts @1aron 1818f2d

Documentation

v2.0.0-rc.63

11 Apr 21:42

Choose a tag to compare

v2.0.0-rc.63 Pre-release
Pre-release

Bug Fixes

ESLint
VSCode
  • Deprecated the styled template literal highlight to prevent crashing @1aron 1a8406e

Documentation

  • Deprecate extended breakpoints and queries in favor of config.screens and config.at; update syntax for foreground colors and introduce :of() pseudo-class for ancestor-based styling @1aron 014a641

Tests

v2.0.0-rc.62

10 Apr 11:47

Choose a tag to compare

v2.0.0-rc.62 Pre-release
Pre-release

Performance Upgrades

Additions

Language Service

Updates

Improvements

  • Enhance components sorting logic for readable classes @1aron 150d231
  • Enhance feature comparison sorting to handle numeric values correctly @1aron ac3f1aa
  • Rename @reduced-motion to @reduce-motion @1aron 843893e
  • Rename reorderForReadableClasses to sortReadableClasses and improve sort readability @1aron 5180e39
  • Sort completion items using numeric comparison for better accuracy @1aron 5645b09
  • Sort unknown classes in a locale-aware manner and append to ordered classes @1aron 8809725
  • The reliability of rule comparison @1aron 4d0227d
  • Update sorting logic for readable classes and improve rule comparison @1aron 0ebbdec
  • Use config.screens instead of config.variables.screens @1aron d1b15be
Language Server
  • Change workspaces to use Map for improved management and add global workspace support @1aron 3a86e4c
VSCode
  • Extend included languages to support untitled files @1aron 36668b1

Bug Fixes

  • @supports generates duplicate at identifiers @1aron b03f73c
  • Enhance parsing logic to handle escaped characters and string boundaries @1aron 29acc98
  • Ensure proper spacing in generated selectors based on combinator usage @1aron 56d12c7
  • Not deleted according to the syntax rules corresponding to the class name @1aron 28a704e
  • Prevent duplicate class rule insertion in MasterCSS @1aron 215f97b
  • Rules were not inserted/removed correctly, fixed #385 @1aron b74aae7 #385
ESLint
Runtime

Deprecations

  • Use :of() instead of reactive styles selector{...} @1aron 810f494
  • Use AtDefinition for config.at instead of string; deprecate tree-style definition for simplicity @1aron e5a5dfd

Upgrades

Tests

  • Add unit tests for adding and removing CSS rules in MasterCSS @1aron e01da56

v2.0.0-rc.61

25 Mar 23:39

Choose a tag to compare

v2.0.0-rc.61 Pre-release
Pre-release

Bug Fixes

  • The problem with the assignment of the base and preset layers @1aron 0de4f7f
Runtime

v2.0.0-rc.60

24 Mar 20:32

Choose a tag to compare

v2.0.0-rc.60 Pre-release
Pre-release

⚠️ It is recommended to update to this version. The runtime engine is stability.

Bug Fixes

  • Remove development environment error logging for syntax rule creation @1aron a26f6d2
Runtime
  • Runtime class name counter overflow caused styles to leak memory @1aron 7db9bed