Replies: 3 comments 4 replies
-
You could generate the spacings you need programmatically in the Tailwind configuration: /** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
spacing: Object.fromEntries(
Array(32 * 4).fill().map((_, i) => [
(i + 1) / 4,
`${(i + 1) / 16}rem`,
])
), This would generate |
Beta Was this translation helpful? Give feedback.
4 replies
-
The performance is what I'm concerned about, image one day if I need to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
related: #6383 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm not sure if there's already a way to achieve it, but here's what I want: (I've given a try by writing my own plugin, but no luck)
Basically, since I'm not a fan of arbitrary value, so instead of using
mb-[13px]
, I would rather usemb-3.25
(simply divide by 4, to generatemargin-bottom: 0.8125rem
which resolve to13px
).I want something like in
UnoCSS
, it can be configured by https://unocss.dev/config/rules#dynamic-rules:This is my current settings... which is pretty tough, and I need to add new value if it's not set yet...

Beta Was this translation helpful? Give feedback.
All reactions