Skip to content
Discussion options

You must be logged in to vote

This is due to Tailwind scanning for used CSS variables that match its theme tokens. So after changing to text-4xl:

  1. Run build.
  2. Scan files.
  3. See var(--text-5xl) and var(--text-5xl--line-height) usage in output.css. Save them for later.
  4. On output, add --text-5xl and --text-5xl--line-height.

Usually this doesn't happen because most of the time, the output CSS is git-ignored, and thus step 3 never happens.

Thus, as a workaround, you should exclude output.css from being scanned by one of:

  • Adding /output.css to your .gitignore:
    --- a/.gitignore
    +++ b/.gitignore
    @@ -1 +1,2 @@
    -node_modules
    \ No newline at end of file
    +node_modules
    +/output.css
  • Or use @source not to exclude output.css from bei…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danbisso
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