kopia lustrzana https://github.com/miklobit/TiddlyWiki5
18 wiersze
438 B
Plaintext
18 wiersze
438 B
Plaintext
title: $:/snippets/currpalettepreview
|
|
|
|
\define swatchStyle()
|
|
background-color: $(swatchColour)$;
|
|
\end
|
|
\define swatch()
|
|
<$set name="swatchColour" value={{##$(colour)$}}
|
|
><div class="tc-swatch" style=<<swatchStyle>> title=<<colour>>/></$set>
|
|
\end
|
|
<div class="tc-swatches-horiz"><$list filter="
|
|
foreground
|
|
background
|
|
muted-foreground
|
|
primary
|
|
page-background
|
|
tab-background
|
|
tiddler-info-background
|
|
" variable="colour"><<swatch>></$list></div> |