Design system
The colours, type, corners and parts every PixiKit item is built from.
Every component, effect, block and template uses the same tokens and the same few parts. Whatever you install matches the rest of your project, in light and in dark.
Colour
Each token has a light and a dark value. Items never use a raw colour, only these names.
background#ffffff#0a0a0aPage groundcard#ffffff#121212Raised surfaces: cards, panels, the preview stagemuted#f5f5f5#1a1a1aQuiet fills: wells, icon tiles, empty statesforeground#0a0a0a#fafafaText and iconsmuted-foreground#666666#a1a1a1Descriptions, captions and metadataprimary#171717#fafafaThe main button; one main action per viewborder#e5e5e5#262626Hairlines: card edges, dividers, table rulesring#a3a3a3#737373Focus ringdestructive#c62828#ef5350Errors and destructive actions onlyviolet#7c3aed#a78bfaCard hover borders, drag handles, sponsor linksType
One sans for text and one mono for code. Titles are medium, never bold.
Corners
Small parts get small corners. The bigger the surface, the rounder it is.
6pxLabels, inline code8pxTabs, menu items10pxButtons, fields, icon tiles12pxWells, tables, code blocks14pxLists, side cards16pxItem cards, the preview stage18pxPath cards, empty statesA well inside a card takes the card's corner minus its padding.
Cards
A card is a hairline frame around a quiet well. On hover it lifts and its border turns violet.
16px corners, 1px border, 5px padding and a 120px well with 12px corners.
- Effects17FreeText, numbers, light and motion for any React app.
- Components14FreeDialogs, banners, copy buttons and theme tools.
- Page sections14Heroes, pricing, testimonials, FAQs and two more kinds.
A list card: 14px corners, rows divided by hairlines, a 36px icon tile.
An empty state: one line of text on the muted fill, no border.
Controls
Shown on the preview stage: the dotted ground every item page uses.
#7c3aedEvery control shows a 2px focus ring. A disabled control drops to half strength.
Motion
Short and quiet. Nothing moves for decoration.
160msease-outMenus opening200mseaseColour and border changes on hover300mscubic-bezier(0.2, 0.7, 0.2, 1)Cards lifting, the preview resizingUnder reduced motion, nothing animates and nothing is missing.
Space
Sizes sit on a 4px grid, with two smaller steps for tight parts.
Layout
The docs shell has three fixed parts. The article between them is fluid.
Use it in your project
The theme adds every token to your project as a CSS variable. Set your brand colour once and every item follows.
$ pnpm dlx shadcn@latest add https://pixikit.com/r/theme-neutral.json
:root {
--brand: #7c3aed;
--brand-foreground: #ffffff;
--radius: 0.625rem;
}