1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 09:20:26 +00:00

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
This commit is contained in:
Jeremy Ruston 2025-01-08 16:02:05 +00:00
parent bd4b3e4107
commit 28167adc22

View File

@ -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]]