Complete the code to set a light background color using Tailwind CSS.
<div class="bg-[1]-100 p-4"> Light background color box </div>
The class bg-blue-100 sets a light blue background color.
Complete the code to set a dark text color using Tailwind CSS.
<p class="text-[1]-900"> Dark text color example </p>
The class text-gray-900 sets a very dark gray text color, suitable for dark text.
Fix the error in the Tailwind class to apply dark mode background color.
<div class="[1]:bg-gray-800 p-6"> Dark mode background </div>
light: which is not a valid Tailwind prefix.The dark: prefix applies styles when dark mode is active.
Fill both blanks to create a button with light background and dark text that changes in dark mode.
<button class="bg-[1]-200 text-[2]-900 dark:bg-[1]-800 dark:text-[2]-100 p-3 rounded"> Click me </button>
Using blue for background and gray for text creates a good light/dark contrast.
Fill all three blanks to create a card with light background, dark border, and text that adapts in dark mode.
<div class="bg-[1]-50 border-[2]-700 text-[3]-900 dark:bg-[1]-900 dark:border-[2]-300 dark:text-[3]-100 p-5 rounded-lg"> Adaptive color card </div>
Using teal for background, and gray for border and text ensures good contrast and adapts well in dark mode.