Jermolene / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.78k stars 1.16k forks source link

[IDEA] Make stability badges themeable #8272

Closed Leilei332 closed 1 week ago

Leilei332 commented 1 week ago

The color of the color of the stability cannot be changed since they are fixed in the tidder $:/themes/tiddlywiki/vanilla/base.

Describe the solution you'd like A clear and concise description of what you want to happen.

The stability badges should be themeable by using palettes. I think we can add palette color names (for example stability-stable) and edit the tiddler $:/themes/tiddlywiki/vanilla/base (replace blue with <<color stability-stable>>) to implement it.

For example, we can add the following code to the tiddler $:/palettes/SolarizedLight to let the stability badges use solarized colors.

stability-stable: #859900
stability-experimental: #b58900
stability-legacy: #268bd2
stability-deprecated: #dc322f
Jermolene commented 1 week ago

Thanks @Leilei332 this is fixed in c8cbf6853ecb9e634a65ee3120d4cf41415dd4b2