Complete the code to add a custom spacing value of 18rem named 'xxl' in Tailwind config.
module.exports = {
theme: {
extend: {
spacing: {
'xxl': '[1]'
}
}
}
}The custom spacing value 'xxl' is set to '18rem' to define a large spacing size.
Complete the code to apply the custom spacing 'xxl' as padding on all sides of a div.
<div class="p-[1]">Content</div>
The class 'p-xxl' applies padding using the custom spacing scale 'xxl' defined in Tailwind config.
Fix the error in the Tailwind config to correctly add a custom spacing 'xxl' with 18rem.
module.exports = {
theme: {
extend: {
spacing: {
xxl: [1]
}
}
}
}Custom spacing values must be strings with quotes, so use '18rem' or "18rem". Without quotes, it causes errors.
Fill both blanks to create a margin-top and margin-bottom using the custom spacing 'xxl'.
<div class="mt-[1] mb-[2]">Content</div>
Both margin-top (mt) and margin-bottom (mb) use the custom spacing 'xxl' for consistent vertical spacing.
Fill all three blanks to create a padding-x, padding-y, and margin using custom spacing 'xxl' and default spacing 'lg'.
<div class="px-[1] py-[2] m-[3]">Content</div>
Padding-x (px) and padding-y (py) use the custom spacing 'xxl' for large padding, while margin (m) uses default 'lg' for moderate spacing.