Skip to content

Commit 107e3bd

Browse files
committed
1 parent c975bde commit 107e3bd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

after/syntax/css/color-5.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-\(mix\|contrast\|adjust\)\|red\|green\|blue\|alpha\|hue\|saturation\|lightness\|whiteness \|blackness\|chroma\)\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline

test/test.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@
101101
src: url("http://example.org/swop-coated.icc");
102102
}
103103

104+
.color-5 {
105+
display: color-mix(red yellow 65%);
106+
display: color-contrast(wheat tan, sienna, var(--myAccent), #d2691e);
107+
display: color-adjust(peru lightness(-20%));
108+
}
109+
104110
.color-adjust-1 {
105111
color-scheme: auto;
106112
forced-color-adjust: auto;

0 commit comments

Comments
 (0)