
Primer React
GitHub's official design system implementation for React. Crisp, accessible, and structured for developer workflows.

Overview
Primer React is GitHub's official React design system implementation. It provides the foundational UI components, color palettes, and typographic scales that power GitHub.com.
Key Features
- Authentic GitHub Look & Feel: Recreate authentic developer interfaces with GitHub's signature design language.
- Design Token Synchronization: Strict synchronization with Figma and CSS custom properties.
- High Accessibility Standard: Rigorous keyboard navigation and assistive technology testing.
- Octicons Native: Seamless integration with GitHub's official Octicons icon set.
Installation & Quick Start
npm install @primer/reactimport { BaseStyles, ThemeProvider, Button } from '@primer/react';
export default function App() {
return (
<ThemeProvider>
<BaseStyles>
<Button variant="primary">Merge pull request</Button>
</BaseStyles>
</ThemeProvider>
);
}Why Choose Primer React?
- Best for: Developer platforms, open-source documentation sites, and GitHub Apps/Integrations.
- Not suitable for: Highly custom, expressive non-developer commercial storefronts.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stackAstryx (Meta)
Meta's open source enterprise design system and React 19 component library with 170+ accessible components, StyleX integration, and agent-ready tooling.
Duolingo UI (ShadLingo)
A comprehensive Duolingo-inspired design system and component suite built on shadcn/ui v4 and Tailwind CSS, featuring signature 3D buttons, vivid owl-green tokens, and gamified interaction cards.
8bitcn/ui
Accessible retro 8-bit components and blocks built on shadcn/ui and Tailwind CSS. Open source, copy-paste, and crafted for modern React apps.