Skip to content
Discussion options

You must be logged in to vote

You'd use static to include all Tailwind's default variables like:

@import "tailwindcss" theme(static);

This would then mean all CSS variables would be available.

Otherwise, to pick out the core breakpoints to be statically output, you could do:

@import "tailwindcss";

@theme static {
  --breakpoint-sm: 40rem;
  --breakpoint-md: 48rem;
  --breakpoint-lg: 64rem;
  --breakpoint-xl: 80rem;
  --breakpoint-2xl: 96rem;
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mhuggins
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