Skip to content

a example of tailwindcss v4.0 #197

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

Open
compile-js opened this issue Apr 10, 2025 · 0 comments
Open

a example of tailwindcss v4.0 #197

compile-js opened this issue Apr 10, 2025 · 0 comments

Comments

@compile-js
Copy link

compile-js commented Apr 10, 2025

@layer theme, base, components;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);

can you apply this example into README.md
if you don't use it,you will get

Error: undefined:4:1: missing '{'

or

selector missing 

you are not allowed to use @import "tailwindcss" or @import "tailwindcss/preflight.css" layer(base);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant