mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-24 18:21:43 +00:00
Give plugin authors the chance to extend a palette (#6624)
* Give plugin authors the chance to extend a palette * Update CSS.tid * Update ColourMacro.tid * Update CSS.tid * Update ColourMacro.tid * Add whitespace trim to colour macro
This commit is contained in:
@@ -2,7 +2,14 @@ title: $:/core/macros/CSS
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define colour(name)
|
||||
<$transclude tiddler={{$:/palette}} index="$name$"><$transclude tiddler="$:/palettes/Vanilla" index="$name$"><$transclude tiddler="$:/config/DefaultColourMappings/$name$"/></$transclude></$transclude>
|
||||
\whitespace trim
|
||||
<$transclude tiddler={{$:/palette}} index=<<__name__>>>
|
||||
<$transclude tiddler="$:/palettes/Vanilla" index=<<__name__>>>
|
||||
<$transclude tiddler={{{ [[$:/config/DefaultColourPaletteMappings/]addsuffix<__palette__>addsuffix[/]addsuffix<__name__>] }}}/>
|
||||
<$transclude tiddler={{{ [[$:/config/DefaultColourMappings/]addsuffix<__name__>] }}}/>
|
||||
</$transclude>
|
||||
</$transclude>
|
||||
</$transclude>
|
||||
\end
|
||||
|
||||
\define color(name)
|
||||
|
||||
Reference in New Issue
Block a user