mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
f223310d34
Part of #764
20 lines
451 B
Plaintext
20 lines
451 B
Plaintext
title: $:/snippets/currpalettepreview
|
|
|
|
\define swatchStyle()
|
|
background-color: $(swatchColour)$;
|
|
\end
|
|
\define swatch(colour)
|
|
<$set name="swatchColour" value={{##$colour$}}>
|
|
<div class="tc-swatch" style=<<swatchStyle>>/>
|
|
</$set>
|
|
\end
|
|
<div class="tc-swatches-horiz">
|
|
<<swatch foreground>>
|
|
<<swatch background>>
|
|
<<swatch muted-foreground>>
|
|
<<swatch primary>>
|
|
<<swatch page-background>>
|
|
<<swatch tab-background>>
|
|
<<swatch tiddler-info-background>>
|
|
</div>
|