Tailwind / theme lookup tables for color values?

a somewhat useful feature that doesn’t exist, but given the integration level, I believe it would be within the scope of wot exists now to do….

I created a janky as hell partial which, in conjunction with some handmade json data files, allows the divination of rgb(a)vals from a tailwind color … ie:

{{- with $rgb := (partialcached divineRgbVals “red-500” “red-500” )-}}
{{- printf “%s” $rgb -}}
{{- end -}}
would emit “ 200 0 0” (or something :slight_smile: )

is something like this a thing yall have considered making available?

I don’t see how that would be … possible (or practical). But in what situation would you need such thing? These values are available as CSS variables.

1 Like