Specification test cases
The test cases below are imported from the Turbo CSS specification.
They have been executed upon loading this page.
Passing color name.
t1 fill-blue
.t1.fill-blue {
fill: #12A4E2;
}
Passing color name and shade.
t1 fill-blue-500
.t1.fill-blue-500 {
fill: #12A4E2;
}
Passing color name, shade, opacity.
t1 fill-blue-500-50
.t1.fill-blue-500-50 {
fill: #12A4E280;
}
Passing HEX color value in lowercase format.
t1 fill-hex-abcdef
.t1.fill-hex-abcdef {
fill: #ABCDEF;
}
Passing HEX color value in uppercase format.
t1 fill-hex-ABCDEF
.t1.fill-hex-ABCDEF {
fill: #ABCDEF;
}
Passing HEX color value with alpha channel.
t1 fill-hex-12345678
.t1.fill-hex-12345678 {
fill: #12345678;
}
Passing rgb color value.
t1 fill-rgb-12-34-56
.t1.fill-rgb-12-34-56 {
fill: rgb(12, 34, 56);
}
Passing rgba color value.
t1 fill-rgb-12-34-56-78
.t1.fill-rgb-12-34-56-78 {
fill: rgba(12, 34, 56, 78%);
}
Passing hsl color value.
t1 fill-hsl-60-20-40
.t1.fill-hsl-60-20-40 {
fill: hsl(60deg, 20%, 40%);
}
Passing hsla color value.
t1 fill-hsl-60-20-40-66
.t1.fill-hsl-60-20-40-66 {
fill: hsla(60deg, 20%, 40%, 66%);
}
Unknown color name.
t1 fill-unknownname
Error: unknown color definition [unknownname]
in class name [fill-unknownname]