Skip to content
  • InstallationGuideCLI, shadcn, npm, React and Next.js
  • ThemingGuideThe theme contract, every token, writing a theme
  • ButtonActions & displayActions. Default, primary, ghost and danger, in three sizes, plus a square icon button.
  • BadgeActions & displayShort status labels and tags, in status colours or the theme’s six palette colours.
  • AvatarActions & displayA photo or initials in a palette colour, in three sizes, and a stacked group.
  • CardActions & displayThe raised surface for grouped content, with header, body and footer slots and six palette tints.
  • SurfaceActions & displayThe three materials every theme defines: raised, inset and overlay. Build your own components on them.
  • InputFormsText fields and textareas with a visible label, hint and invalid state.
  • SelectFormsA styled native <select>: keyboard, mobile pickers and screen readers work for free.
  • Checkbox and radioFormsNative checkboxes and radios, restyled, including the indeterminate state and radio groups.
  • SwitchFormsAn on/off setting that applies at once: a checkbox with role="switch".
  • SliderFormsA native range input whose filled track follows the thumb.
  • Dialog and drawerOverlaysModal <dialog>: the browser traps focus, handles Esc and returns focus to the trigger. Drawers slide from an edge.
  • Popover and menuOverlaysNative popover API (light dismiss, Esc, top layer), placed next to its trigger. A menu is a popover with role="menu".
  • TooltipOverlaysA CSS-only label on hover and keyboard focus. Esc hides it.
  • ToastFeedbackNotifications in one polite live region; errors use role="alert". They pause while hovered or focused.
  • AlertFeedbackInline messages in four tones.
  • ProgressFeedbackA native <progress>; leave out value for an indeterminate bar.
  • SkeletonFeedbackPlaceholders while content loads.
  • TabsNavigation & dataWAI-ARIA tabs with automatic activation and roving focus.
  • AccordionNavigation & dataNative <details>: works without JavaScript. The same name keeps one item open.
  • TableNavigation & dataData tables that scroll sideways on small screens; compact density tightens rows.
  • PaginationNavigation & dataPage links in a labelled nav with the current page marked.

Actions & display

Card

The raised surface for grouped content, with header, body and footer slots and six palette tints.

Card

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending
html
<article class="og-card" style="max-width: 22rem">
  <header class="og-card__header">
    <h3 class="og-card__title">Invoice #1042</h3>
    <p class="og-card__description">Acme Ltd · due in 12 days</p>
  </header>
  <div class="og-card__body">₹4,200 for design work in November.</div>
  <footer class="og-card__footer">
    <span class="og-badge og-badge--warning">Pending</span>
    <button class="og-button og-button--primary og-button--sm">Send</button>
  </footer>
</article>

Tints

Roadmap

12 open items

Revenue

Up 8% this month

html
<article class="og-card og-card--tint-1" style="max-width: 14rem"><h3 class="og-card__title">Roadmap</h3><p class="og-card__description">12 open items</p></article>
<article class="og-card og-card--tint-3" style="max-width: 14rem"><h3 class="og-card__title">Revenue</h3><p class="og-card__description">Up 8% this month</p></article>

React

tsx
import { Card, Button } from '@og-ui/react';

<Card
  title="Invoice #1042"
  description="Acme Ltd · due in 12 days"
  footer={<Button variant="primary" size="sm">Send</Button>}
>
  ₹4,200 for design work in November.
</Card>

In every theme

Clean SaaS

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Glassmorphism 2.0

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Liquid glass

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Neumorphism / Soft UI

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Claymorphism

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Neubrutalism

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Aurora / mesh gradient

Invoice #1042

Acme Ltd · due in 12 days

₹4,200 for design work in November.
Pending

Keyboard and screen readers

  • Not focusable itself; Tab moves through the controls inside.

Install

bash
npx @og-ui/cli add card
npx @og-ui/cli add card --react   # with the React component