Skip to content

Astro Design System Kitchen Sink

A single page that renders all current Astro design-system components used in this docs site.

Alert

Info

Informational callout with subtle appearance.

Tip

Tip with optional action link.

Warning

Solid warning surface for higher emphasis.

Danger

Danger alert with icon slot content.

Aside

Note

Aside note variant.

Tip

Aside tip variant.

Caution

Aside caution variant.

Danger

Aside danger variant.

Badge

neutral accent success warning danger tip

Card, CardGrid, and LinkCard

Steps

  1. Install typestyles and the related packages.

  2. Import your component styles in your app entry.

  3. Compose components and theme tokens in pages.

FileTree

  • src/
    • components/
    • styles.ts

Code

ts
import { button } from '@examples/design-system';

const classes = button({ tone: 'primary', size: 'md' });
console.log(classes.root);

Link button classes

Primary Secondary Ghost