Complete the code to override the default blue color in Tailwind CSS.
module.exports = {
theme: {
extend: {
colors: {
blue: [1]
}
}
}
}To override the blue color, you provide an object with shade keys like '500' and their color values.
Complete the code to add a custom color named 'brand' with hex #123456.
module.exports = {
theme: {
extend: {
colors: {
brand: [1]
}
}
}
}Custom colors can be objects with a 'DEFAULT' key to define the base color.
Fix the error in the code to correctly override the red color's 600 shade.
module.exports = {
theme: {
extend: {
colors: {
red: [1]
}
}
}
}To override a specific shade, provide an object with the shade as key and the color as value.
Fill both blanks to add a custom green color with shades 400 and 700.
module.exports = {
theme: {
extend: {
colors: {
green: {
400: [1],
700: [2]
}
}
}
}
}Shade 400 is '#48BB78' and shade 700 is '#276749' for green in Tailwind.
Fill all three blanks to override the gray color with shades 100, 500, and 900.
module.exports = {
theme: {
extend: {
colors: {
gray: {
100: [1],
500: [2],
900: [3]
}
}
}
}
}Shade 100 is '#F7FAFC', 500 is '#A0AEC0', and 900 is '#1A202C' for gray in Tailwind.