title: $:/snippets/currpalettepreview \whitespace trim \procedure colour(name) \whitespace trim <$transclude $tiddler=<> $index=<>> <$transclude $tiddler="$:/palettes/Vanilla" $index=<>> <$transclude $tiddler={{{ [[$:/config/DefaultColourMappings/]addsuffix] }}}/> \end colour \widget $colour.div(class,styleName,styleColour) <%if [!match[]] %> <$wikify name="colour-result" text={{{ [[<addsuffix[>>]] }}} mode="inline">
> style={{{ [addsuffix[:]addsuffixaddsuffix[;]] }}}> <$slot $name="ts-raw"/>
<%else%>
>> <$slot $name="ts-raw"/>
<%endif%> \end $colour.div \procedure palette-preview-thumbnail() <$colour.div class="tc-palette-preview-thumbnail" styleName="background-color" styleColour="page-background"> <$colour.div class="tc-palette-preview-thumbnail-story"> <$list filter="HelloThere GettingStarted" variable="title"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Preview/Story]!has[draft.of]]" variable="componentTitle"> <$transclude $tiddler=<> title=<>/> </$list> </$list> </$colour.div> <$colour.div class="tc-palette-preview-thumbnail-sidebar" styleName="color" styleColour="sidebar-foreground"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Preview/SideBar]!has[draft.of]]" variable="componentTitle"> <$transclude $tiddler=<<componentTitle>> title=<<title>>/> </$list> </$colour.div> </$colour.div> \end palette-preview-thumbnail <<palette-preview-thumbnail>>