From 28167adc22b2fad3c7f313065f8216be47217154 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 8 Jan 2025 16:02:05 +0000 Subject: [PATCH] Add a palette that automatically switches between dark and light Will requires #7999 to work fully; for the moment when you switch between dark and light you will see the preview change, and then next time you select the palette it will be in the correct mode --- core/palette-templates/TwentyTwentiesAutoDark.tid | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 core/palette-templates/TwentyTwentiesAutoDark.tid diff --git a/core/palette-templates/TwentyTwentiesAutoDark.tid b/core/palette-templates/TwentyTwentiesAutoDark.tid new file mode 100644 index 000000000..0acdb05b5 --- /dev/null +++ b/core/palette-templates/TwentyTwentiesAutoDark.tid @@ -0,0 +1,12 @@ +title: $:/palettes/TwentyTwenties/AutoDark +name: TwentyTwenties (Automatic Darkmode) +description: Modern and flexible, Automatically Darkish +tags: $:/tags/Palette +type: application/x-tiddler-dictionary +color-scheme: dark +palette-type: modern +palette-import: $:/palettes/TwentyTwenties + +base-paper: [{$:/info/darkmode}match[yes]then[#111122]else[#FCFFF0]] +base-background: [{$:/info/darkmode}match[yes]then[#f5f0f9]else[#875ea9]] +base-ink: [{$:/info/darkmode}match[yes]then[#FCFFF0]else[#111122]]