Utilities for controlling an element's padding.
export default {
theme: {
padding: {
sm: '8px',
md: '16px',
lg: '24px',
xl: '48px',
},
},
}
Utilities for controlling an element's vertical padding.
Utilities for controlling an element's horizontal padding.
Utilities for controlling an element's top padding.
Utilities for controlling an element's left padding.
Utilities for controlling an element's bottom padding.
Utilities for controlling an element's right padding.
Utilities for controlling an element's margin.
export default {
theme: {
margin: {
sm: '8px',
md: '16px',
lg: '24px',
xl: '48px',
},
},
}
Utilities for controlling an element's vertical margin.
Utilities for controlling an element's horizontal margin.
Utilities for controlling an element's top margin.
Utilities for controlling an element's left margin.
Utilities for controlling an element's bottom margin.
Utilities for controlling an element's right margin.
Utilities for controlling the space between vertical align child elements.
export default {
theme: {
space: {
sm: '8px',
md: '16px',
lg: '24px',
xl: '48px',
},
},
}
If your elements are in reverse order (using say flex-col-reverse
), use the space-y-reverse
utilities to ensure the space is added to the correct side of each element.
Utilities for controlling the space between horizontal align child elements.
export default {
theme: {
space: {
sm: '8px',
md: '16px',
lg: '24px',
xl: '48px',
},
},
}
If your elements are in reverse order (using say flex-row-reverse
), use the space-x-reverse
utilities to ensure the space is added to the correct side of each element.