mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-06 18:56:56 +00:00
Move generic tests into a background palette
These are the generic tests that should be applied to every palette
This commit is contained in:
parent
4665bab700
commit
7df987803d
@ -51,7 +51,6 @@ alert-background: [function[colour],[base-secondary]]
|
||||
alert-border: [tf.interpolate-colours[base-ink],[alert-background],[0.6]]
|
||||
alert-highlight: [tf.interpolate-colours[base-ink],[base-primary],[0.3]]
|
||||
alert-muted-foreground: [tf.interpolate-colours[base-ink],[alert-background],[0.4]]
|
||||
?alert-contrast: [tf.check-colour-contrast[alert-background],[foreground],[45]]
|
||||
background: [function[colour],[base-paper]]
|
||||
blockquote-bar: [function[colour],[muted-foreground]]
|
||||
button-background:
|
||||
@ -60,7 +59,6 @@ button-border:
|
||||
code-background: [tf.interpolate-colours[base-paper],[base-tertiary],[0.1]]
|
||||
code-border: [tf.interpolate-colours[base-paper],[base-tertiary],[0.6]]
|
||||
code-foreground: [function[colour],[base-tertiary]]
|
||||
?code-contrast: [tf.check-colour-contrast[code-background],[code-foreground],[45]]
|
||||
diff-delete-background: [function[colour],[base-red]]
|
||||
diff-delete-foreground: [function[colour],[foreground]]
|
||||
diff-equal-background:
|
||||
@ -87,7 +85,6 @@ external-link-foreground-visited: [function[colour],[primary]]
|
||||
external-link-foreground: [function[colour],[primary]]
|
||||
footnote-target-background: [tf.interpolate-colours[base-paper],[base-ink],[0.2]]
|
||||
foreground: [function[colour],[base-ink]]
|
||||
?background-foreground-contrast: [tf.check-colour-contrast[background],[foreground],[45]]
|
||||
highlight-background: [tf.interpolate-colours[base-paper],[base-yellow],[0.5]]
|
||||
highlight-foreground: [tf.interpolate-colours[base-yellow],[base-ink],[0.8]]
|
||||
message-background: [tf.interpolate-colours[base-paper],[base-blue],[0.2]]
|
||||
|
7
core/palettes/background/contrast-tests.tid
Normal file
7
core/palettes/background/contrast-tests.tid
Normal file
@ -0,0 +1,7 @@
|
||||
title: $:/palettes/background/contrast-tests
|
||||
type: application/x-tiddler-dictionary
|
||||
tags: $:/tags/BackgroundPalette
|
||||
|
||||
?background-foreground-contrast: [tf.check-colour-contrast[background],[foreground],[45]]
|
||||
?alert-contrast: [tf.check-colour-contrast[alert-background],[foreground],[45]]
|
||||
?code-contrast: [tf.check-colour-contrast[code-background],[code-foreground],[45]]
|
Loading…
x
Reference in New Issue
Block a user