Skip to content

Primevue Lara tailwind preset different from Figma file #1459

Discussion options

You must be logged in to vote

Hi, since this is related to the presets, and I am the preset guy, I am here to help :)

The primevue tailwind showcase uses 14px as the base. It is relatively easy to set. You only need to add the font size you want your rem units to be based on inside your HTML tag's style. When you add this, the rem units will base from that; otherwise, they will base from a tailwind or the browser, mostly 16px.

html {
  font-size: 14px;
}

I hope this will help 🌟

Have a nice day!

Note: If you see any inconsistencies after that, you can always open up an issue in the primevue-tailwind repo. Sometimes, the line heights can be problematic.

Replies: 2 comments 1 reply

Comment options

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

Answer selected by atakantepe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants