Search results
By default, Tailwind’s space scale uses the default spacing scale. You can customize your spacing scale by editing theme.spacing or theme.extend.spacing in your tailwind.config.js file.
- Customizing Spacing
Use the spacing key in the theme section of your...
- Gap
By default, Tailwind’s gap scale uses the default spacing...
- Spacing
Customizing the default spacing scale for your project. The...
- Customizing Spacing
Use the spacing key in the theme section of your tailwind.config.js file to customize Tailwind’s default spacing/sizing scale.
By default, Tailwind’s gap scale uses the default spacing scale. You can customize your spacing scale by editing theme.spacing or theme.extend.spacing in your tailwind.config.js file.
Spacing scale. If you’d like to customize your values for space between, padding, margin, width, and height all at once, use the theme.spacing section of your tailwind.config.js file. // tailwind.config.js module.exports = { theme: { spacing: { + sm: '8px', + md: '16px', + lg: '24px', + xl: '48px', } } }
If you'd like to customize your values for space between, padding, margin, width, and height all at once, use the theme.spacing section of your tailwind.config.js file. // tailwind.config.js module.exports = { theme: { spacing: { + sm: '8px', + md: '16px', + lg: '24px', + xl: '48px', } } }
Customizing the default spacing scale for your project. The theme.spacing section of your tailwind.config.js file allows you to override Tailwind's default spacing/sizing scale. theme: {. spacing: { '1': '8px', '2': '12px', '3': '16px', '4': '24px', '5': '32px', '6': '48px', } } }
Tailwind CSS Spacing. Use responsive spacing utilities with TW elements. Learn how to use responsive margin and padding utility classes to modify an element’s appearance. Basic example. Tailwind comes with a generous and extensive numeric spacing scale as its default setting.