REM PX units configuration #16
Unanswered
peterpalkovic
asked this question in
Q&A
Replies: 1 comment
-
Hey @peterpalkovic, unfortunately I think you'd need two sets of breakpoints at the moment, one in // tailwind.config.ts
screens: {
sm: '30rem',
'sm-px': '480px',
md: '40rem',
'md-px': '640px',
// ...
},
fluid: {
// You'd also have to specify the default screens yourself, because the plugin
// could no longer sort your breakpoints as they have different units (same with Tailwind itself, see below)
defaultScreens: ['30rem', '60rem']
} Then you could apply the px ones to spacing-related utilities i.e. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @barvian,
What is the best approach to configure your plugin to use both 'rem' and 'px' units?
Use case: rems for typography and px for spacing.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions