Skip to content

tailwindcss.config.ts is not loaded in a nuxt 3 project. #18753

Closed Answered by wongjn
Gianthard-cyh asked this question in Help
Discussion options

You must be logged in to vote

You are using Tailwind v4, and as such, it does not use a tailwind.config.ts file that you seem to be expecting. Rather, configuration is done in CSS. As per the documentation, to add a custom shadow theme token:

@import "tailwindcss";

@theme {
  --shadow-soft: 0 10px 20px 0 rgba (0, 0, 0, 0.05);
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Gianthard-cyh
Comment options

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

wongjn Aug 18, 2025
Collaborator

@Gianthard-cyh
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