Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Basic Styling | Core Concepts and Basic Styling
Tailwind CSS for Web Development
course content

Contenido del Curso

Tailwind CSS for Web Development

Tailwind CSS for Web Development

1. Introduction and Setup
2. Core Concepts and Basic Styling
3. Building Basic Components
4. Layout Basics
5. Responsiveness and Customization

book
Challenge: Basic Styling

Task

Using the Tailwind CSS utilities for colors, borders, and shadows, create a styled card component with the following specifications:

  1. The outer container should have:
    • A white background color;
    • A medium shadow.
  2. The card should contain:
    • A heading (h2) with text-size of 2xl and text color of gray-900;
    • A paragraph (p) with a text color of gray-700.
  3. Inside the card, create a bordered box with:
    • A light blue background color (e.g., blue-50);
    • Blue border color;
    • Medium rounded corners;
    • Text color of blue-700.
  4. Add another box with:
    • A light green background color (e.g., green-100);
    • Green border color;
    • Rounded corners;
    • Small shadow;
    • Text color of green-700.
html

index

css

index

js

index

copy
  1. Background Colors: Use bg-white, bg-blue-50, bg-green-100 for background colors;
  2. Text Colors: Use text-gray-900, text-gray-700, text-blue-700, text-green-700 for text colors;
  3. Border Colors: Use border-blue-500, border-green-500 for border colors;
  4. Border Radius: Use rounded-md, rounded for rounded corners;
  5. Shadows: Use shadow-md, shadow-sm for shadows;
  6. Text Size: Use text-2xl for the heading size.
html

index

css

index

js

index

copy

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 6
We're sorry to hear that something went wrong. What happened?
some-alt