The problem is I want to display it with a color provided to a macro and use it instead. Meaning the button have multiple colors depending on the value provided.
This is the macro I want to display a colored button.
\define check-tag-button(tag:"select" color:"blue" display-filter:"[all[current]is[tiddler]]" )
\whitespace trim
<$list filter="$display-filter$" variable=display>
<$wikify name=style text="""fill: $color$;""">
<$fieldmangler>
<$list filter="[all[current]!tag[$tag$]]" variable=has-tag>
<$button message="tm-add-tag" param="$tag$" tooltip="Toggle $tag$" class="tc-btn-invisible">
<span style=<<style>> ><$transclude tiddler="$:/PSaT/check-tag/button/unchecked-icon" /></span>
</$button>
</$list>
<$list filter="[all[current]tag[$tag$]]" variable=not-tagged>
<$button message="tm-remove-tag" param="$tag$" tooltip="Toggle OFF $tag$" class="tc-btn-invisible">
<span style=<<style>> ><$transclude tiddler="$:/PSaT/check-tag/button/checked-icon" /></span>
</$button>
</$list>
</$fieldmangler>
</$wikify>
</$list>
\end
<!--
<$macrocall $name=check-tag-button tag="" color="" display-filter=""/>
<$macrocall $name=check-tag-button tag="reference" color="red" display-filter=""/>
-->