Releases: master-co/css
Releases · master-co/css
v2.0.0-rc.36
v2.0.0-rc.35
v2.0.0-rc.34
v2.0.0-rc.33
v2.0.0-rc.32
v2.0.0-rc.31
v2.0.0-rc.30
v2.0.0-rc.29
v2.0.0-rc.28
v2.0.0-rc.27
New Features
Performance Upgrades
- Generate CSS rules using the same CSS instance @1aron 23e63c5
- Simplify semantic rule comparison and manipulation @1aron 738a1ba
Language Service
Additions
leading
alias forline-height
@1aron 4f04d20<div class="line-height:1"> + <div class="leading:1">
text-truncate:
alias forlines:
@1aron 3de751e<div class="lines:3"> + <div class="text-truncate:3">
text-underline-position:
@1aron bf0d43c<p class="text-underline:front-font"> <p class="text-underline:under"> <p class="text-underline:left"> <p class="text-underline:right">
tracking:
alias forletter-spacing:
@1aron ffe607f<p class="letter-spacing:1"> + <p class="tracking:1">
- Function
generatedCSS(config)
@1aron 3a12c6e
Language Service
styles
variables and configuration support all features @1aron f89bbfb- CSS previews and property information for completion items @1aron f3079e7
- Hint
@media()
@supports()
@1aron 8ead242 - Hint animations @1aron ecd6eef
- Hint at-queries @1aron 199e3cb
- Hint config styles @1aron 5faa2af
- Hint for group syntax @1aron a960090
- Hint full keys and abbreviated keys @1aron e9364cf
- Hint pseudo-class and pseudo-element selectors @1aron 9e0ae7f
- Hint rule scope variables like
fg:blue
@1aron b43049e - Hint semantics @1aron 307932b
- Hint syntax values @1aron 53ef9fe
- Hints for all global variables @1aron 6661765
- Support Astro class bindings @1aron a847a81
- Support classes within function calls for
clsx
,styled
,cva
, and custom @1aron 89cea2d
Improvements
@all
,@print
,@screen
,@speech
should be set in the default query @1aron 53ef2d0- Rename
config.semantics
toconfig.utilities
to prevent confusion with component classes @1aron 6728364export default { - semantics: { ... }, + utilities: { ... } }
- Rules API @1aron 02f033d
Language Service
- Hints are based on the part of the syntax where the cursor is located @1aron 409190f
- Preview final CSS generation with configuration @1aron 0c09d6e
- Rely on reliable selector sources and improve prompt item ordering @1aron ff923b7
- Sorting completion items @1aron d167afa
- Sorting values @1aron f12521d
- Use
color-rgba
to convert all color spaces torgba
@1aron 6b3e527
Bug Fixes
text-decoration
has no effect in Safari @1aron 287c7a3- Cannot read properties of undefined (reading 'sheet') @1aron 09b4227
- CSS declarations with vendor prefixes are not preferred, fixed #342 @1aron 2afedb6 #342
- Incorrect class count @BenSeage a514b25
- Negative variables are not scoped to rules @1aron 5412eb9
- Unstable rule scope variable groups @1aron 6129e5a
- Update
css.customConfig
on refresh @1aron b84e912
Core
ESLint
- Flat config uses "languageOptions.parserOptions" to specify parser options, fixed #339 @1aron 6de5a47 #339
- Template literal parsing @0Miles 34b7414
Language Service
- Class is incorrectly positioned in literals @1aron cab746e
- Color editing results are inconsistent with syntax @1aron e5e1668
- Incorrect syntax highlighting, resolved 343 @0Miles 16731e3
- Instance regex capture excess range @0Miles 83f5636
- Missing handling of
|
syntax delimiters resulted in no rendering of colors @1aron 54e0321 - Missing handling of color value component in function @1aron 6598bed
- Null reference exception in renderSyntaxColors function @0Miles 1d9277e
- Re-type and no hint values @1aron 28d3cb1
- Single quotes in classes are mistaken for syntax @1aron 415b559
- Supports various assignments @1aron 531c3c6
- Syntax highlight @0Miles [7772d79](7772d79...