According to v4 docs, to override existing or define new spacing (which includes margin, padding, min-w/h, etc.) you use theme namespace:
--spacing-* So let's say I would like to define mx-max to represent:
margin-inline: 100vh; I could achieve this by including the following theme:
@theme { --spacing-max: 100vh; } However this also overrides a default utility, for example min-w-max:
Default: min-width: max-content; Override: min-width: 100vh; I don't want to override other spacing utils, just margin utils. How would I achieve this, considering in previous tailwind versions you could define it in tailwind.config.js:
module.exports = { theme: { extend: { margin: { 'max': '100vh', } } } }