themesberg / themesberg/flowbite
tailwind+flowbite: max-w uses --spacing instead --container
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When using @import "flowbite"; in my tailwind 4 demo project i get inconsistent variable use. max-w-2xl uses --spacing-2xl instead of --container-2xl
tailwind discussion
To Reproduce
Steps to reproduce the behavior:
"@tailwindcss/cli": "^4.0.6",
"flowbite": "^3.1.2",
"tailwindcss": "^4.0.6",
"flowbite-typography": "^1.0.5"
styles.css
@import "tailwindcss";
@import "flowbite";
remove @import "flowbite" and max-w-2xl will revert to using --container-2xl
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the dependency versions and styles.css shown, with both @import statements present. Compare the generated behavior for max-w-2xl with and without the flowbite import, focusing on whether it uses --container-2xl. Done means the combined imports no longer cause the inconsistent variable use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tailwindcss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100