Complete the code to extend the Tailwind theme colors with a new color named 'brand'.
module.exports = {
theme: {
extend: {
colors: {
brand: [1]
}
}
}
}The 'brand' color is added with the hex value '#1DA1F2'. This extends the default colors without replacing them.
Complete the code to extend the Tailwind theme fontSize with a new size called 'xxs' set to '0.65rem'.
module.exports = {
theme: {
extend: {
fontSize: {
xxs: [1]
}
}
}
}The new font size 'xxs' is added as a string with the value '0.65rem'. This extends the default font sizes.
Fix the error in the code to correctly extend the Tailwind spacing scale by adding '72' as '18rem'.
module.exports = {
theme: {
extend: {
spacing: {
72: [1]
}
}
}
}Spacing values must be strings with units like 'rem'. So '18rem' must be wrapped in quotes.
Fill in the blank to extend the Tailwind theme with a new boxShadow named 'soft' and set it to '0 2px 8px rgba(0, 0, 0, 0.1)'.
module.exports = {
theme: {
extend: {
boxShadow: {
soft: [1]
}
}
}
}The boxShadow 'soft' is set to the string '0 2px 8px rgba(0, 0, 0, 0.1)'.
Fill all three blanks to extend the Tailwind theme with a new zIndex named 'max' set to 9999 and a new borderRadius named 'xl' set to '1rem'.
module.exports = {
theme: {
extend: {
zIndex: {
max: [1]
},
borderRadius: {
xl: [2]
},
colors: {
highlight: [3]
}
}
}
}The zIndex 'max' is set to the number 9999 (no quotes). The borderRadius 'xl' is set to the string '1rem'. The color 'highlight' is set to the hex color '#ff0'.