Skip to content

[V4] Setting Up Tailwind v4.1 in WordPress #17575

Answered by wongjn
deepentim asked this question in Help
Discussion options

You must be logged in to vote

You don't need the first @import "tailwindcss";:

@layer theme, base, components, utilities;

@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);

:is(#a, *) {
  @tailwind utilities;
}

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@deepentim
Comment options

@wongjn
Comment options

@deepentim
Comment options

@wongjn
Comment options

Answer selected by deepentim
@deepentim
Comment options

@wongjn
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