diff --git a/core/palettes/TwentyTwenties.tid b/core/palettes/TwentyTwenties.tid index e4003b67e..cbb064eb9 100644 --- a/core/palettes/TwentyTwenties.tid +++ b/core/palettes/TwentyTwenties.tid @@ -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]] diff --git a/core/palettes/background/contrast-tests.tid b/core/palettes/background/contrast-tests.tid new file mode 100644 index 000000000..c6aa8d6b1 --- /dev/null +++ b/core/palettes/background/contrast-tests.tid @@ -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]]