Skip to content

Unknown utility class issue in a Phoenix application when upgrading from Tailwindcss v3.3 to v4.1 #17720

Answered by wongjn
saleyn asked this question in Help
Discussion options

You must be logged in to vote

if I remove this and define in the app.css as you suggested, do I need to do it just for the "top-level" color names (e.g. --color-brand) or all numeric variants as well (i.e. --color-brand-50, --color-brand-100, ...)?

You'd need to do it for all numeric variants.

If references to color-brand-* are in the app.css and input.css do I need to define it in theme.css and use @reference to reference it in each file?

If app.css @imports all the CSS files used in your project, consider defining the @theme in app.css. The other CSS files that app.css @imports do not need to @reference anything then.

Otherwise, if you define @theme in theme.css, @import it in app.css. Any CSS files that app.css @…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

wongjn Apr 19, 2025
Collaborator

Answer selected by saleyn
Comment options

You must be logged in to vote
2 replies
@wongjn
Comment options

wongjn Apr 19, 2025
Collaborator

@saleyn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants