mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-04 19:12:51 +00:00
Add contrast checks to TwentyTwenties palette
I think I might be building a programming language for writing palettes...
This commit is contained in:
parent
aa69c3ae91
commit
cd5bbcda8d
@ -17,6 +17,10 @@ base-secondary: rgb(236, 212, 58)
|
|||||||
# Tertiary base colour, used for monospaced text and other tertiary elements
|
# Tertiary base colour, used for monospaced text and other tertiary elements
|
||||||
base-tertiary: rgb(135, 239, 70)
|
base-tertiary: rgb(135, 239, 70)
|
||||||
|
|
||||||
|
# Contrast tests
|
||||||
|
?background-foreground-contrast: [function[colour],[background]] [function[colour],[base-background]] +[colour-contrast:DeltaPhi[]compare:number:gt[25]then[ok]else[Foreground/background contrast is too low]]
|
||||||
|
|
||||||
|
# Colour definitions
|
||||||
alert-background: [function[colour],[base-secondary]colour-oklch:l[0.9]]
|
alert-background: [function[colour],[base-secondary]colour-oklch:l[0.9]]
|
||||||
alert-border: [function[colour],[base-secondary]colour-oklch:l[0.5]]
|
alert-border: [function[colour],[base-secondary]colour-oklch:l[0.5]]
|
||||||
alert-highlight: [function[colour],[base-primary]colour-oklch:l[0.6]]
|
alert-highlight: [function[colour],[base-primary]colour-oklch:l[0.6]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user