Closed brunouber closed 1 month ago
Hey!
This is because you set your base font size to 13px
and the extension uses 16px
by default.
You can configure this in your extension settings: https://github.com/tailwindlabs/tailwindcss-intellisense?tab=readme-ov-file#tailwindcssrootfontsize
Hope this helps!
Hey @RobinMalfait , Thanks a lot, this solved my issue.
What version of VS Code are you using?
v1.89.1
What version of Tailwind CSS IntelliSense are you using?
v0.10.5
What version of Tailwind CSS are you using?
v3.4.3
What package manager are you using?
npm
What operating system are you using?
macOS, Sonoma 14.4.1
Tailwind config
VS Code settings
Describe your issue
I'm trying to adopt tailwindcss in an existing project.
In this website the font-size defined on body is 13px - I can't change this at the moment.
When I use
text-base
, on hover, the extension correctly reports the corresponding value.But when I use other tailwindcss's utilities, such as
p-4
the extension reports the wrong value. When I visit the page later,p-4
is equal to13px
as it should be.