diff --git a/core/palettes/Blanca.tid b/core/palettes/Blanca.tid index 5c5afa878..f86705443 100644 --- a/core/palettes/Blanca.tid +++ b/core/palettes/Blanca.tid @@ -1,5 +1,6 @@ title: $:/palettes/Blanca name: Blanca +color-scheme: light description: A clean white palette to let you focus tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/Blue.tid b/core/palettes/Blue.tid index 38a6a3e4a..e3aa21952 100644 --- a/core/palettes/Blue.tid +++ b/core/palettes/Blue.tid @@ -1,5 +1,6 @@ title: $:/palettes/Blue name: Blue +color-scheme: light description: A blue theme tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/BrightMute.tid b/core/palettes/BrightMute.tid index 9c1d3003e..64193c1ce 100644 --- a/core/palettes/BrightMute.tid +++ b/core/palettes/BrightMute.tid @@ -1,5 +1,6 @@ title: $:/palettes/Muted name: Muted +color-scheme: light description: Bright tiddlers on a muted background tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/ContrastDark.tid b/core/palettes/ContrastDark.tid index e12944bf7..ded11b835 100644 --- a/core/palettes/ContrastDark.tid +++ b/core/palettes/ContrastDark.tid @@ -1,5 +1,6 @@ title: $:/palettes/ContrastLight name: Contrast (Light) +color-scheme: light description: High contrast and unambiguous (light version) tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/ContrastLight.tid b/core/palettes/ContrastLight.tid index 04280d08e..d3eb2f731 100644 --- a/core/palettes/ContrastLight.tid +++ b/core/palettes/ContrastLight.tid @@ -1,5 +1,6 @@ title: $:/palettes/ContrastDark name: Contrast (Dark) +color-scheme: dark description: High contrast and unambiguous (dark version) tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/CupertinoDark.tid b/core/palettes/CupertinoDark.tid index f0930f548..956602a0f 100644 --- a/core/palettes/CupertinoDark.tid +++ b/core/palettes/CupertinoDark.tid @@ -1,5 +1,6 @@ title: $:/palettes/CupertinoDark tags: $:/tags/Palette +color-scheme: dark name: Cupertino Dark description: A macOS inspired dark palette type: application/x-tiddler-dictionary diff --git a/core/palettes/DarkPhotos.tid b/core/palettes/DarkPhotos.tid index 2a135f253..4e1949c04 100644 --- a/core/palettes/DarkPhotos.tid +++ b/core/palettes/DarkPhotos.tid @@ -5,6 +5,7 @@ name: DarkPhotos tags: $:/tags/Palette title: $:/palettes/DarkPhotos type: application/x-tiddler-dictionary +color-scheme: light alert-background: #ffe476 alert-border: #b99e2f diff --git a/core/palettes/DesertSand.tid b/core/palettes/DesertSand.tid index ab345d11f..40056962b 100644 --- a/core/palettes/DesertSand.tid +++ b/core/palettes/DesertSand.tid @@ -1,5 +1,6 @@ title: $:/palettes/DesertSand tags: $:/tags/Palette +color-scheme: light name: Desert Sand description: A desert sand palette type: application/x-tiddler-dictionary diff --git a/core/palettes/GruvBoxDark.tid b/core/palettes/GruvBoxDark.tid index 494a9349b..1fa5633c9 100644 --- a/core/palettes/GruvBoxDark.tid +++ b/core/palettes/GruvBoxDark.tid @@ -1,5 +1,6 @@ title: $:/palettes/GruvboxDark name: Gruvbox Dark +color-scheme: dark description: Retro groove color scheme tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/Nord.tid b/core/palettes/Nord.tid index 7af3b01e4..e330b3d0a 100644 --- a/core/palettes/Nord.tid +++ b/core/palettes/Nord.tid @@ -1,5 +1,6 @@ title: $:/palettes/Nord name: Nord +color-scheme: dark description: An arctic, north-bluish color palette. tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/Rocker.tid b/core/palettes/Rocker.tid index 79a253721..bc7d2ded6 100644 --- a/core/palettes/Rocker.tid +++ b/core/palettes/Rocker.tid @@ -1,5 +1,6 @@ title: $:/palettes/Rocker name: Rocker +color-scheme: dark description: A dark theme tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/SolarFlare.tid b/core/palettes/SolarFlare.tid index 5622b29af..e72815657 100644 --- a/core/palettes/SolarFlare.tid +++ b/core/palettes/SolarFlare.tid @@ -1,5 +1,6 @@ title: $:/palettes/SolarFlare name: Solar Flare +color-scheme: light description: Warm, relaxing earth colours tags: $:/tags/Palette type: application/x-tiddler-dictionary diff --git a/core/palettes/SolarizedDark.tid b/core/palettes/SolarizedDark.tid index 2a0fd5e8a..f193bff1c 100644 --- a/core/palettes/SolarizedDark.tid +++ b/core/palettes/SolarizedDark.tid @@ -4,6 +4,7 @@ type: application/x-tiddler-dictionary description: Precision dark colors for machines and people license: MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE name: SolarizedDark +color-scheme: dark alert-background: #073642 alert-border: #93a1a1 diff --git a/core/palettes/SolarizedLight.tid b/core/palettes/SolarizedLight.tid index 3c6979ec6..4bcec81d6 100644 --- a/core/palettes/SolarizedLight.tid +++ b/core/palettes/SolarizedLight.tid @@ -4,6 +4,7 @@ type: application/x-tiddler-dictionary description: Precision colors for machines and people license: MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE name: SolarizedLight +color-scheme: light alert-background: #eee8d5 alert-border: #586e75 diff --git a/core/palettes/SpartanDay.tid b/core/palettes/SpartanDay.tid index 8f722d029..3cd8337a7 100644 --- a/core/palettes/SpartanDay.tid +++ b/core/palettes/SpartanDay.tid @@ -3,6 +3,7 @@ tags: $:/tags/Palette type: application/x-tiddler-dictionary description: Cold, spartan day colors name: Spartan Day +color-scheme: light alert-background: <> alert-border: <> diff --git a/core/palettes/SpartanNight.tid b/core/palettes/SpartanNight.tid index f4f672af3..1962c4782 100644 --- a/core/palettes/SpartanNight.tid +++ b/core/palettes/SpartanNight.tid @@ -3,6 +3,7 @@ tags: $:/tags/Palette type: application/x-tiddler-dictionary description: Dark spartan colors name: Spartan Night +color-scheme: dark alert-background: <> alert-border: <> diff --git a/core/palettes/Twilight.tid b/core/palettes/Twilight.tid index d90fef328..ff8a0b956 100644 --- a/core/palettes/Twilight.tid +++ b/core/palettes/Twilight.tid @@ -4,6 +4,7 @@ author: Thomas Elmiger type: application/x-tiddler-dictionary name: Twilight description: Delightful, soft darkness. +color-scheme: dark alert-background: rgb(255, 255, 102) alert-border: rgb(232, 232, 125) diff --git a/core/palettes/Vanilla.tid b/core/palettes/Vanilla.tid index 399bf1ac8..d3c7b1441 100644 --- a/core/palettes/Vanilla.tid +++ b/core/palettes/Vanilla.tid @@ -3,6 +3,7 @@ name: Vanilla description: Pale and unobtrusive tags: $:/tags/Palette type: application/x-tiddler-dictionary +color-scheme: light alert-background: #ffe476 alert-border: #b99e2f diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 7ed449afb..30a65926a 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -333,6 +333,10 @@ table tfoot tr td { height: 600px; } +:root { + color-scheme: {{{ [{$:/palette}get[color-scheme]] }}}; +} + /* ** Links */