-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Tailwind v3 extended color palette for all valid utilities #7
Conversation
…ities to align with the Tailwind v3 versions
…placeholder utilities
Thank you for doing this! I really appreciate it. Unfortuantely, the elm-default-tailwind-modules package is already close to its size limits for package.elm-lang.org uploads. |
@NoaVidovic I've uploaded a new version, let me know if that works for you: #6 (comment) |
Thank you so much for the work you put in here! However, I do not see version 3.0.0 on the elm packages website - it still shows 2.0.3 as the latest and there is no bg_color function nor anything else. |
You can see the published versions here: https://package.elm-lang.org/packages/matheus23/elm-default-tailwind-modules/ |
What happens if you try this link? https://package.elm-lang.org/packages/matheus23/elm-default-tailwind-modules/3.0.0/Tailwind-Utilities#bg_color |
So, confusingly, while clearing the cache fixed the issue and I can now see version 3.0.0 (and functions such as bg_color and text_color show up), the Tailwind.Theme module doesn't show up (as shown in the attached image) Updating my elm.json does download the Tailwind.Theme module as it should, but elm make doesn't recognize it when compiling... |
Works like a charm now! Thanks a lot! |
The repository was missing many default colors that were added in Tailwind v3, such as cyan or orange. This pull request simply adds the missing colors.
It is important to note that Tailwind changed the default value of green, purple and yellow colors (these were renamed to emerald, violet and amber respectively, and the old names were repurposed for other color values) - details available here. Therefore, any code that uses this package should be modified to reflect this change. This may be considered a breaking change.
Also, I do not have a utility to automatically sort the functions alphabetically, as is the case in the base repository, so the ordering is sort of all out of whack. Feel free to modify this when merging.