TiddlyWiki5/core/wiki/palettepreview.tid

21 wiersze
445 B
Plaintext
Czysty Zwykły widok Historia

title: $:/snippets/palettepreview
\define swatchStyle()
background-color: $(swatchColour)$;
\end
\define swatch(colour)
<$set name="currentTiddler" value={{$:/palette}}>
<$set name="swatchColour" value={{##$colour$}}>
<div class="tw-swatch" style=<<swatchStyle>>/>
</$set>
</$set>
\end
<div class="tw-swatches-horiz">
<<swatch foreground>>
<<swatch background>>
<<swatch muted-foreground>>
<<swatch primary>>
<<swatch page-background>>
</div>