The CSS color spec version 4 introduces this, support has hit Safari, Chrome and Firefox, so this looks like a feature that's here to stay. https://drafts.csswg.org/css-color/#hex-notation
74 lines
657 B
CSS
74 lines
657 B
CSS
@define-color mygreen rgb(0,1,0);
|
|
|
|
a {
|
|
color: initial;
|
|
}
|
|
|
|
b {
|
|
color: inherit;
|
|
}
|
|
|
|
c {
|
|
color: unset;
|
|
}
|
|
|
|
d {
|
|
color: currentColor;
|
|
}
|
|
|
|
e {
|
|
color: rgba(0,0,0,0);
|
|
}
|
|
|
|
f {
|
|
color: rgb(255,0,0);
|
|
}
|
|
|
|
g {
|
|
color: rgb(0,1,0);
|
|
}
|
|
|
|
h {
|
|
color: rgb(1,0,1);
|
|
}
|
|
|
|
i {
|
|
color: rgb(170,187,204);
|
|
}
|
|
|
|
j {
|
|
color: rgba(0,17,34,0.2);
|
|
}
|
|
|
|
k {
|
|
color: rgb(1,35,69);
|
|
}
|
|
|
|
l {
|
|
color: rgba(255,238,221,0.8);
|
|
}
|
|
|
|
m {
|
|
color: shade(rgb(255,0,0), 1.3);
|
|
}
|
|
|
|
n {
|
|
color: shade(rgb(255,0,0), 0.69999999999999996);
|
|
}
|
|
|
|
o {
|
|
color: shade(rgb(0,128,0), 0.5);
|
|
}
|
|
|
|
p {
|
|
color: alpha(rgb(0,128,0), 0.5);
|
|
}
|
|
|
|
q {
|
|
color: mix(rgb(255,0,0), rgb(0,0,255), 0.25);
|
|
}
|
|
|
|
r {
|
|
color: @mygreen;
|
|
}
|