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.

Navigation & data

Accordion

Native <details>: works without JavaScript. The same name keeps one item open.

One open at a time

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.
html
<div class="og-accordion" style="width: 100%; max-width: 28rem">
  <details name="accordion" open><summary>What is OG UI?</summary><div class="og-accordion__content">One component library with seven design themes.</div></details>
  <details name="accordion"><summary>Does it need React?</summary><div class="og-accordion__content">No. It’s CSS classes plus a 3 KB script; React wrappers are optional.</div></details>
  <details name="accordion"><summary>Is it accessible?</summary><div class="og-accordion__content">Every theme is contrast-checked and every component keyboard-tested.</div></details>
</div>

React

tsx
import { Accordion, AccordionItem } from '@og-ui/react';

<Accordion single>
  <AccordionItem title="What is OG UI?" open>One library, seven themes.</AccordionItem>
  <AccordionItem title="Does it need React?">No.</AccordionItem>
</Accordion>

In every theme

Clean SaaS

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Glassmorphism 2.0

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Liquid glass

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Neumorphism / Soft UI

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Claymorphism

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Neubrutalism

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Aurora / mesh gradient

What is OG UI?
One component library with seven design themes.
Does it need React?
No. It’s CSS classes plus a 3 KB script; React wrappers are optional.
Is it accessible?
Every theme is contrast-checked and every component keyboard-tested.

Keyboard and screen readers

  • Tab moves between headers; Enter or Space opens and closes.

Install

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