Releases: master-co/css
Releases · master-co/css
v2.0.0-rc.69
Changes Overview
- From this version, color variables are defined under the
variables.colornamespace:
export default {
variables: {
- primary: '#000000'
+ color: {
+ primary: '#000000'
+ }
}
}- Variables for different modes should be moved to the
modessection:
export default {
modes: {
dark: {
color: { primary: '#ffffff' }
},
light: {
color: { primary: '#000000' }
}
}
}- Add some alternative syntax:
align-content:*->content-*align-items:*->items-*align-self:*->self-*justify-content:*->justify-*
- 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- The default value of
modeTriggerhas been changed to the more generalmedia; it was previously set toclass.
export default {
modeTrigger: 'media' // default
}New Features
Performance Upgrades
Additions
font:<size>Variables3xsto10xl@1aron f8e21d7r:<size>variablesxsto4xl@1aron b6e1f54text:<size>Variables3xsto10xl@1aron 0375506- Most CSS color space functions are supported @1aron 229f17f
- Shorthand
content-*foralign-content:*@1aron 3d365bd - Shorthand
items-*foralign-items:*@1aron c1fa1f8 - Shorthand
justify-*forjustify-content:*@1aron 1e99edb - Shorthand
self-*foralign-self:*@1aron 2e47ab2 - Spacing variables
4xsto5xl@1aron 4c396b6 - Use
Interas the default sans font @1aron c130a0f - Utilities
bg-clip-borderbg-clip-contentbg-clip-paddingbg-clip-text@1aron 36ede5e - Utilities
bg-origin-borderbg-origin-contentbg-origin-padding@1aron 29788f7 - Utilities
box-contentbox-border@1aron ef5736f - Utilities
clip-noneclip-marginclip-borderclip-paddingclip-contentclip-fillclip-strokeclip-view@1aron 221ee3a - Utilities
flex-colflex-row@1aron 1f8350a - Utilities
shape-noneshape-marginshape-contentshape-bordershape-padding@1aron 80dec8e - Utilities
transform-contenttransform-bordertransform-filltransform-stroketransform-view@1aron 4750024
Improvements
modeTriggerdefault changed tomedia@1aron a147414text:<size>with auto letter-spacing @1aron c8972da- Colors should be defined in the
variables.colornamespace @1aron 4b4fd6b - Rename
config.rules.variablestoconfig.rules.namespaces@1aron 9fd8ad4 - Rename
config.rules[].ambiguousKeysandconfig.rules[].ambiguousValuestoconfig.rules[].aliasGroupsandconfig.rules[].values@1aron 24fc4db - Use
color-mixto modify alpha @1aron 8aeb6f8 - Use
config.modes.light.xto define variables for different modes instead ofvariables.x.['@dark']@1aron aba02ef - Use
config.modeTriggerinstead ofconfig.modes@1aron bfd2bd1 - Use
createCSSto create a MasterCSS instance with default config @1aron 6a8e896
Bug Fixes
Runtime
Deprecations
config.overrideoption @1aron 6c44d8cconfig.rules[].analyze@1aron 4bd9dfdconfig.rules[].transformValuefor JSON-safe configuration @1aron 1202aa7flex:colflex:column-reverse@1aron 2d4941a- Remove
position:absposition:rel@1aron b0aca3d - Use
config.functions[].transformerinstead ofconfig.functions[].transformfor JSON-safe configuration @1aron ebe3e6b - Use
config.rules[].declarationsinstead ofconfig.rules[].declarefor JSON-safe configuration @1aron fadc372 - Use
config.rules[].transformerinstead ofconfig.rules[].transformValueComponentsfor JSON-safe configuration @1aron f2cbad9 - Use
justify-center items-centerinstead ofcenter-content@1aron 410065f
Documentation
- Add examples for
font-family@1aron 2da2c59 - Add examples for
font-size@1aron 79fa13b - Add examples for
font-weight@1aron 9f4052c - Add examples for
line-height@1aron 0576b50 - Add examples for
text-size@1aron 9b8ca7f - New document Corner Radius @1aron d3968c4
- New document Spacing @1aron 8c0dfef
- New guide Typography @1aron 5372bd8
v2.0.0-rc.68
v2.0.0-rc.67
v2.0.0-rc.66
v2.0.0-rc.65
v2.0.0-rc.64
New Features
Additions
Nuxt
Vite
ConfigVirtualModulePluginfor watching config file and virtual module import @1aron a751561extractmode @1aron aa63c7eoptions.injectoptions.avoidFOUC@1aron f1a67c6runtimemode @1aron fdb9a25
Improvements
Builder
- Rename
options.classes.fixedoptions.classes.ignoredtooptions.includeClassesoptions.excludeClasses@1aron e76fef4
Vite
Webpack
Bug Fixes
Runtime
Documentation
- Add Astro reference @1aron ce1b564
- Add brand and trademark policy @1aron b1f5416
- Add deview view height @1aron f96e966
- Add Nuxt reference @1aron b5f87bc
- Add Vite reference @1aron 8a6345d
- New blog post - Bootstrapping Master CSS with Vite in seconds @1aron 0abccab
- Update installation guide and CDN integration metadata @1aron 475c364
v2.0.0-rc.63
Bug Fixes
- Some combination orders can never be corrected, fixed #377 @1aron 15a34a0 #377
- Unable to resolve universal selectors @1aron 1ef0fb1
ESLint
- Sorting warning selected the wrong range for TemplateLiteral, fixed #375 @1aron da74995 #375
- Validation error selected the wrong range for TemplateLiteral, fixed #387 @1aron 3a34780 #387
VSCode
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
Performance Upgrades
- Optimization rule priority comparison algorithm @1aron 532bb18
- Parse
@tokeninto AST @1aron ae7befd - Update UNIT_REGEX to use non-capturing groups @1aron 255e464
- Using media feature ranges to minify output and improve algorithm @1aron 3ae9fac
Additions
.containerutility syntax forcontainer-type: inline-size@1aron b784807@w@haliases @1aron ea6e16ccontainercontainer-namecontainer-typerules for container queries @1aron d6a87f2generateAtutil function @1aron d4205a7generateSelectorutil for selector AST nodes @1aron 01a3af9parseAt()util function @1aron 899ad92parsePairs()util function @1aron fc50074parseSelectorutil for selector AST nodes @1aron 3a9f283parseValue()util function @1aron e8c32aareplaceCharOutsideQuotesutil function @1aron 9316d66splitCharOutsideQuotesutil function @1aron ae6177e- Alias
@startfor@starting-style@1aron b9fdb61
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-motionto@reduce-motion@1aron 843893e - Rename
reorderForReadableClassestosortReadableClassesand 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.screensinstead ofconfig.variables.screens@1aron d1b15be
Language Server
- Change workspaces to use Map for improved management and add global workspace support @1aron 3a86e4c
VSCode
Bug Fixes
@supportsgenerates 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
- Anchoring reliability of class names nodes @1aron 0019f64
- Fixed output error in class order @1aron 4688587
Runtime
Deprecations
- Use
:of()instead of reactive stylesselector{...}@1aron 810f494 - Use
AtDefinitionforconfig.atinstead of string; deprecate tree-style definition for simplicity @1aron e5a5dfd