twix icon indicating copy to clipboard operation
twix copied to clipboard

added the ability to use custom colors by extending the default color…

Open vectorfrog opened this issue 1 year ago • 1 comments

Twix currently only recognizes the default colors, so if I use a custom color that I've defined in the tailwind.config.js file, it will not be merged. This code change allows a developer to extend the colors that Twix uses by adding a list in their config.exs file: `config :twix, colors: ["primary"]

Example of current behavior:

tw "text-primary-500 text-green-200" "text-primary-500 text-green-200"

Example of new behavior: tw "text-primary-500 text-green-200" "text-green-200"

vectorfrog avatar Nov 13 '23 14:11 vectorfrog