Skip to content

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

Open
vectorfrog wants to merge 1 commit intobratsche:mainfrom
vectorfrog:main
Open

added the ability to use custom colors by extending the default color…#13
vectorfrog wants to merge 1 commit intobratsche:mainfrom
vectorfrog:main

Conversation

@vectorfrog
Copy link

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"

@bkilshaw
Copy link

Any update on the status of this? Evaluating using Twix in our app, we do have customer colours so this seems like it would be necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments