Skip to content
Projetos

Sobre

Free, open-source React + Tailwind v4 components and tokens from Grounded UI

Desenvolvimento web e de aplicativos

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Grounded UI

npm: @grounded-ui/ui npm: @grounded-ui/tokens License: MIT

Designing in Figma? The same tokens and components are in the Grounded UI Figma kit: free Lite on Figma Community, and the full kit with agent guides at groundedui.com/kit.

Free, open-source React components and design tokens for product UIs. Grounded UI is built for React 19 and Tailwind CSS v4 in the shadcn style (plain components, Tailwind classes, className to extend), on top of Radix UI primitives for accessibility. It is MIT licensed.

A settings screen built with Grounded UI components

Light and dark themes ship in the tokens; switch with data-theme="dark" (or class="dark") on an ancestor.

The same settings card in the light and dark themes, side by side

Package What it is
@grounded-ui/ui 23 React components and the Tailwind CSS entry (@grounded-ui/ui/styles.css)
@grounded-ui/tokens Design tokens: CSS custom properties, a Tailwind v4 theme, typed token names

Components

Grounded UI: design system and free React components, shown in light and dark

Component Exports
AppShell AppShell, AppTopBar, AppSideNav, AppSideNavSection, AppSideNavItem
Badge Badge, badgeVariants
Button Button, buttonVariants
Card Card
Checkbox Checkbox
DatePicker DatePicker, Calendar
Dialog Dialog and its parts, AlertDialog and its parts
EmptyState EmptyState
Field Field, FieldSet, FieldLegend, FieldGroup, FieldContent, FieldLabel, FieldDescription, FieldError
IconButton IconButton, iconButtonVariants
Input Input
Page PageContainer, PageHeader
Popover Popover and its parts
Progress Progress
RadioGroup RadioGroup, RadioGroupItem
Select Select and its parts
Skeleton Skeleton
SourceChip SourceChip, SourceChipGroup
Spinner Spinner
Switch Switch
Table Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption
Textarea Textarea
Toast Toast, Toaster, ToastProvider, ToastViewport, useToast

@grounded-ui/ui also exports cn, a clsx + tailwind-merge helper that knows the Grounded UI theme.

Install

pnpm add @grounded-ui/ui
# or
npm install @grounded-ui/ui

@grounded-ui/tokens comes with it as a dependency. Your app provides react and react-dom (19) and Tailwind CSS v4.

Tailwind CSS v4 setup

In your app's main CSS file, import Tailwind, then the Grounded UI styles:

@import "tailwindcss";
@import "@grounded-ui/ui/styles.css";

styles.css brings in the tokens and the Tailwind theme, and tells Tailwind to scan the built components for their class names. The theme replaces Tailwind's default palette, spacing, radii and type scale with the Grounded UI tokens, so utilities use token names: bg-bg-surface, text-fg-muted, p-12 (12px), rounded-md, text-body-md. See the tokens README for the full naming.

Dark mode and rebranding

Themes are switched with attributes or classes on any ancestor, usually <html>:

<!-- Dark mode (class="dark" works too) with the violet brand (default cyan) -->
<html data-theme="dark" data-brand="violet">
  ...
</html>
  • Light is the default; data-theme="light" or .light forces it inside a dark subtree.
  • data-brand accepts red, orange, amber, lime, green, teal, cyan, blue, violet and pink. It can also be set on a single section of the page.
  • Tailwind's dark: variant follows the same .dark / data-theme="dark" switch.

Example

import { Button, Card, EmptyState, Field, Input } from "@grounded-ui/ui";

export function InviteTeammate() {
  return (
    <Card title="Invite a teammate" description="They get an email with a link to join Acme.">
      <form className="flex flex-col gap-16">
        <Field label="Work email" description="Use your acme.com address." required>
          <Input type="email" name="email" placeholder="[email protected]" />
        </Field>
        <Button type="submit">Send invite</Button>
      </form>
    </Card>
  );
}

export function NoInvoices() {
  return (
    <Card title="Invoices">
      <EmptyState
        title="No invoices yet"
        description="Invoices from Acme appear here after your first payment."
        action={
          <Button size="sm" variant="secondary">
            View plans
          </Button>
        }
      />
    </Card>
  );
}

Field wires the label, description and error message to its control (id, aria-describedby, aria-invalid).

Tokens only

The tokens work without the components:

pnpm add @grounded-ui/tokens
/* With Tailwind CSS v4 */
@import "tailwindcss";
@import "@grounded-ui/tokens/tokens.css";
@import "@grounded-ui/tokens/theme.css";
/* Without Tailwind: plain CSS variables, plus optional .text-body-md-style classes */
@import "@grounded-ui/tokens/tokens.css";
@import "@grounded-ui/tokens/typography-utilities.css";

.panel {
  background: var(--color-bg-surface);
  color: var(--color-fg-default);
  padding: var(--space-16);
  border-radius: var(--radius-md);
}
import { cssVarRef, semanticColorTokens } from "@grounded-ui/tokens";

cssVarRef("color/primary"); // "var(--color-primary)"

@grounded-ui/tokens/tokens.json lists every token with its CSS variable and collection. See the tokens README.

Requirements

  • React 19 and React DOM 19
  • Tailwind CSS 4
  • TypeScript 5.0 or later, if you use TypeScript
  • Node.js 22 or later to develop this repository

Grounded UI Kit

The paid Grounded UI Kit adds the full Figma file that matches these components and tokens, and the agent guides.

Development

This repository is a pnpm workspace (Turborepo).

pnpm install
pnpm build         # build both packages
pnpm test          # script tests, unit tests (Vitest), then pack-check
pnpm lint          # ESLint
pnpm typecheck     # TypeScript
pnpm knip          # unused files, exports and dependencies
pnpm format        # Prettier (format:check to check only)
pnpm verify        # everything CI runs

pnpm test ends with scripts/pack-check.mjs, which packs both packages, checks the tarball contents, installs the tarballs in a temporary project and imports and type-checks every entry.

See CONTRIBUTING.md for how to report bugs and request features.

License

MIT, Copyright (c) 2026 XPND (엑스피엔디) / Seungeun Lee

Name and logo

The MIT License covers the Grounded UI Core source code and the documentation in this repository only. It does not license the name "Grounded UI", the Grounded UI logo, or other trademarks of XPND (엑스피엔디) or Seungeun Lee.

You may say that your project uses Grounded UI Core. You may not use the Grounded UI name or logo in a way that suggests your project is official or endorsed, or as the name of a fork or competing product, without permission. For that, email [email protected]. See NOTICE.

Fonts and third-party software

The bundled Geist and Geist Mono fonts (in @grounded-ui/tokens, dist/fonts/) are licensed under the SIL Open Font License 1.1, not the MIT License. See LICENSES-third-party.md for all third-party licenses.

Explore projetos relacionados

Carregando…