@peakui/react 0.1.1
React components that take on your brand.
PeakUI is an open-source library of 77 accessible React components. Give it one color and it builds the whole theme, light and dark, with readable contrast.
- Maya Kovacmaya@example.comOwner
- Jonas Olsenjonas@example.comEditor
- Aiko Reyesaiko@example.comInvited
Invite sent
Aiko has 7 days to accept it.See it in another brand's colors
Pick one and the whole page follows.
What you get
Accessible without extra work
Keyboard support, focus handling and screen-reader labels are built in, on top of React Aria. Every component targets WCAG 2.2 AA.
Tab↑↓Try it: Tab into the list, then use the arrow keys.
A whole theme from one color
Give the engine an accent. It derives every color for light and dark, and keeps text contrast at 4.5:1 or better.
- accent
- accent-soft
- default
- success
- danger
Text on each of these colors is chosen and checked by the engine.
CSS you can read and override
Styles ship as plain CSS files. Each part of a component has a class name and its own CSS variables, so a restyle is a few lines.
.button--primary {
--button-bg: var(--color-success);
--button-radius: 0.5rem;
}Docs your AI assistant can read
Every page is also published as Markdown, next to an index for assistants and a JSON list of components.
Start in three steps
Install the packages
npm install @peakui/react @peakui/styles react-aria-components @react-aria/utilsImport the styles, after Tailwind
@import "tailwindcss"; @import "@peakui/styles/css";Use a component
import {Button, Input, Label, TextField} from "@peakui/react"; export function SignUp() { return ( <form className="flex w-64 flex-col gap-3"> <TextField isRequired name="email" type="email"> <Label>Email</Label> <Input placeholder="jane@example.com" /> </TextField> <Button type="submit">Sign up</Button> </form> ); }