Covered Theme module with tests
- Extracted `ColorReplacementGenerator`; - Extracted `ColorConverterImpl`; - Added documentation to some classes; - `hex_to_rgba` now supports shorthand hex colors (#fff).
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"elements": {
|
||||
"BUTTON-COLOR": {
|
||||
"default": "ACCENT-COLOR"
|
||||
},
|
||||
"ACCENT-COLOR": {
|
||||
"light": {
|
||||
"s": 52,
|
||||
"l": 67,
|
||||
"a": 1
|
||||
},
|
||||
"dark": {
|
||||
"s": 42,
|
||||
"l": 26,
|
||||
"a": 1
|
||||
}
|
||||
},
|
||||
"ACCENT_HOVER": {
|
||||
"light": {
|
||||
"s": 50,
|
||||
"l": 60,
|
||||
"a": 0.8
|
||||
},
|
||||
"dark": {
|
||||
"s": 66,
|
||||
"l": 22,
|
||||
"a": 0.4
|
||||
}
|
||||
}
|
||||
},
|
||||
"colors": {
|
||||
"red": {
|
||||
"h": 0
|
||||
},
|
||||
"gray": {
|
||||
"h": 0,
|
||||
"s": 0
|
||||
},
|
||||
"expected": {
|
||||
"BUTTON-COLOR": {
|
||||
"0,100": {
|
||||
"light": "rgba(215, 127, 127, 1)",
|
||||
"dark": "rgba(94, 38, 38, 1)"
|
||||
},
|
||||
"0,0": {
|
||||
"light": "rgba(171, 171, 171, 1)",
|
||||
"dark": "rgba(66, 66, 66, 1)"
|
||||
}
|
||||
},
|
||||
"ACCENT-COLOR": {
|
||||
"0,100": {
|
||||
"light": "rgba(215, 127, 127, 1)",
|
||||
"dark": "rgba(94, 38, 38, 1)"
|
||||
},
|
||||
"0,0": {
|
||||
"light": "rgba(171, 171, 171, 1)",
|
||||
"dark": "rgba(66, 66, 66, 1)"
|
||||
}
|
||||
},
|
||||
"ACCENT_HOVER": {
|
||||
"0,100": {
|
||||
"light": "rgba(204, 102, 102, 0.8)",
|
||||
"dark": "rgba(93, 19, 19, 0.4)"
|
||||
},
|
||||
"0,0": {
|
||||
"light": "rgba(153, 153, 153, 0.8)",
|
||||
"dark": "rgba(56, 56, 56, 0.4)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user