tailwindlabs / tailwindcss.com

The Tailwind CSS documentation website.
https://tailwindcss.com
3.25k stars 1.72k forks source link

Add more details to docs on why CSS variables are necessary for dynamic values #1827

Closed hkan closed 3 months ago

hkan commented 3 months ago

Almost every day in Tailwind's official Discord server, someone asks why their classes are not working and their code snippet shows something like h-[{someVariable}px]. Explaining why this won't work in the documentation will be easier for telling people what they did wrong, by simply linking to this section of the document.

I'm not 100% confident on the wording, happy to apply suggestions.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 10:41am
hkan commented 3 months ago

Noticed this exists, which makes this change a duplicate. Closing.