Skip to content

Preact + Tailwind + Docker not working properly #15373

Answered by wongjn
befabry asked this question in Help
Discussion options

You must be logged in to vote

You have an empty presets value and as per the documentation:

If you’d like to completely disable the default configuration and start with no base configuration at all, set presets to an empty array:

/** @type {import('tailwindcss').Config} */
module.exports = {
  presets: [],
  // ...
}

This will completely disable all of Tailwind’s defaults, so no colors, font families, font sizes, spacing values, etc. will be generated at all.

This means that most of the classes in src/pages/Home/index.tsx et. al. don't correspond to valid Tailwind values anymore. You could consider removing the presets: [] line from your Tailwind configuration to restore the default Tailwind values.

Replies: 1 comment 1 reply

Comment options

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

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