Cards

Cards

SkyLineCSS provides utility classes to create flexible and responsive cards for displaying content. Cards are a popular UI component for organizing and presenting information in a structured format.

Basic Card

To create a basic card, use the .card class:

<div class="card">
  <div class="card-body">
    <h5 class="card-title">Card Title</h5>
    <p class="card-text">This is a basic card with some text content.</p>
  </div>
</div>

Card with Image

You can include an image in the card using the .card-img-top class:

<div class="card">
  <img src="image.jpg" class="card-img-top" alt="Card Image">
  <div class="card-body">
    <h5 class="card-title">Card Title</h5>
    <p class="card-text">This card includes an image at the top.</p>
  </div>
</div>

You can add links and buttons inside the card body:

You can add headers and footers to the card using the .card-header and .card-footer classes:

Card Borders

You can add borders to the card using the .border class:

Card Colors

SkyLineCSS provides predefined color classes for cards:

  • .bg-primary: Primary background color

  • .bg-secondary: Secondary background color

  • .bg-success: Success background color

  • .bg-danger: Danger background color

  • .bg-warning: Warning background color

Example:

Card Shadows

You can add shadows to the card using the .shadow and .shadow-md classes:

Responsive Cards

You can make cards responsive using the .card-deck and .card-columns classes:

Complete Example

Here's a complete example combining different card styles:

These are some of the available card styling utilities in SkyLineCSS. You can combine these classes to create stylish and responsive cards for your projects.

I assume you're asking for a dark mode version of the documentation for cards. Here's how you can modify the cards.md file for dark mode:

docs/cards.md (Dark Mode)

Cards

SkyLineCSS provides utility classes to create flexible and responsive cards for displaying content. Cards are a popular UI component for organizing and presenting information in a structured format.

Basic Card

To create a basic card, use the .card class:

Card with Image

You can include an image in the card using the .card-img-top class:

You can add links and buttons inside the card body:

You can add headers and footers to the card using the .card-header and .card-footer classes:

Card Borders

You can add borders to the card using the .border class:

Card Colors

SkyLineCSS provides predefined color classes for cards:

  • .bg-primary: Primary background color

  • .bg-secondary: Secondary background color

  • .bg-success: Success background color

  • .bg-danger: Danger background color

  • .bg-warning: Warning background color

Example:

Card Shadows

You can add shadows to the card using the .shadow and .shadow-md classes:

Responsive Cards

You can make cards responsive using the .card-deck and .card-columns classes:

Complete Example

Here's a complete example combining different card styles:

These are some of the available card styling utilities in SkyLineCSS. You can combine these classes to create stylish and responsive cards for your projects in dark mode.

Last updated