added the ability to use custom colors by extending the default color…#13
Open
vectorfrog wants to merge 1 commit intobratsche:mainfrom
Open
added the ability to use custom colors by extending the default color…#13vectorfrog wants to merge 1 commit intobratsche:mainfrom
vectorfrog wants to merge 1 commit intobratsche:mainfrom
Conversation
… map in an application's config file
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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"