GoGoUI
A React design system: shadcn/ui conventions on Base UI,
styled with Tailwind CSS 4, light and dark, built for WCAG AA. French by
default, English included.
One package, @gogoui/ui: about 190 React components, one
import each, with the design tokens as CSS variables (light and dark) and
their Tailwind CSS 4 theme (@gogoui/ui/tokens.css, @gogoui/ui/theme.css).
Requirements
React 19 and Tailwind CSS 4.
Install
bun add @gogoui/ui @phosphor-icons/react
A few components need a library of their own, installed only if you use
them:
| Library |
For |
react-day-picker |
Calendar, DateField, DateRangePicker, FilterDateRange |
sonner |
Toaster |
@tanstack/react-table |
@gogoui/ui/data-table |
@tanstack/react-form |
@gogoui/ui/tanstack-form |
react-dropzone |
FileDrop, PhotoDropZone |
react-joyride |
GuidedTour |
recharts, cmdk |
Chart, Command |
embla-carousel-react |
Carousel |
react-resizable-panels |
Resizable |
@tiptap/react, @tiptap/pm, @tiptap/starter-kit, @tiptap/extension-placeholder |
RichTextEditor |
Use
In your main CSS file:
@import 'tailwindcss';
@import '@gogoui/ui/styles.css';
Then import each component from its own path:
import { Button } from '@gogoui/ui/button'
export function Save() {
return <Button>Enregistrer</Button>
}
Forms
Every field takes value, onValueChange and error, so it works with
any form library. With TanStack Form, the fields come already bound:
import { useAppForm } from '@gogoui/ui/tanstack-form'
export function NewClient() {
const form = useAppForm({ defaultValues: { email: '' } })
return (
<form.AppForm>
<form.Form>
<form.AppField name="email">
{(field) => <field.TextField label="E-mail" type="email" />}
</form.AppField>
<form.SubmitButton loadingText="Création…">Créer</form.SubmitButton>
</form.Form>
</form.AppForm>
)
}
Lists
@gogoui/ui/data-table gives DataTable, useDataTable and
createDataColumns: a table with search, sort, columns to hide, rows to
tick and pages, and dense rows on a phone.
Your brand
GoGoUI's primary is neutral. Give it your colour in both themes, after the
import:
:root,
:where(.light) {
--primary: #1a66fe;
--primary-hover: #1557db;
--primary-active: #1249b8;
--primary-foreground: #ffffff;
}
.dark {
--primary: #1a66fe;
--primary-hover: #3b7cff;
--primary-active: #1557db;
--primary-foreground: #ffffff;
}
Dark mode
Put the dark class on <html>. A part of the page that must stay light
takes the light class.
Language
GoGoUI writes a few words itself (« Fermer », « Chargement »…). They are in
French until you say otherwise:
import { GoGoUIProvider } from '@gogoui/ui/provider'
export function App({ children }: { children: React.ReactNode }) {
return <GoGoUIProvider locale="en">{children}</GoGoUIProvider>
}
messages={{ close: 'Retour' }} overrides a single word.
For AI agents
The Storybook publishes a components manifest (names, props, usage
examples, when to use each component), read by Storybook's agent skills
and MCP server.
Develop
bun install
bun run storybook # http://localhost:6006
bun run test # token contrast checks
bun run build # packages/ui/dist
Each user-visible change gets a changeset: bun run changeset.
License
MIT. GoGoUI adapts code from shadcn/ui and Bklit UI, see
THIRD_PARTY_NOTICES.md.