Primer
GitHub Primer · Primer Design System
GitHub's design system, born as a small CSS framework and grown into a full React library. Recognisable for the green button, thin grey borders, pill labels and a dense interface built for people who write code.
- Era
- 2013 – today
- Origin
- GitHub, San Francisco (USA)
- Use
- Mainstream
- Domain
- Web / UI
- Geography
- San Francisco
Live demo
View code
<div class="box"><div class="head"><span class="dot"></span><b>Correggi il calcolo dei totali</b><span class="lbl bug">bug</span><span class="lbl ok">pronto</span></div>
<div class="body"><p class="flash">La verifica è passata: 12 controlli su 12.</p><input value="Lascia un commento"><div class="acts"><button>Chiudi</button><button class="pri">Unisci richiesta</button></div></div></div> body{background:#fff;font-family:Inter,sans-serif;display:grid;place-items:center;margin:0;min-height:100vh;color:#1F2328;font-size:14px}
.box{width:380px;max-width:92vw;border:1px solid #D0D7DE;border-radius:6px;overflow:hidden}
.head{display:flex;align-items:center;gap:6px;background:#F6F8FA;border-bottom:1px solid #D0D7DE;padding:10px 12px}
b{font-family:'Mona Sans',sans-serif;font-weight:600;margin-right:auto}.dot{width:12px;height:12px;border-radius:50%;border:2px solid #1A7F37;box-sizing:border-box}
.lbl{border-radius:999px;padding:0 7px;font-size:12px;font-weight:500;border:1px solid}.bug{color:#CF222E;border-color:#CF222E;background:#FFEBE9}.ok{color:#1A7F37;border-color:#1A7F37;background:#DAFBE1}
.body{padding:12px}.flash{margin:0 0 10px;padding:10px 12px;background:#DAFBE1;border:1px solid #4AC26B66;border-radius:6px}
input{width:100%;box-sizing:border-box;border:1px solid #D0D7DE;border-radius:6px;padding:5px 12px;font:14px Inter;color:#59636E;background:#F6F8FA}
.acts{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
button{border:1px solid #D1D9E0;border-radius:6px;background:#F6F8FA;padding:5px 16px;font:500 14px Inter;color:#25292E}.pri{background:#1F883D;border-color:#1F883D33;color:#fff} Characteristics
- Green #1F883D primary button, light grey secondary ones
- 1 px #D0D7DE borders and 6 px corners
- Pill labels with coloured outlines
- Blue #0969DA links and focus rings
- Dense layout, 14 px text, light/dark/colour-blind themes
Palette
Click a swatch to copy it
Typography
Headings · Mona Sans Primer
Body · Inter GitHub's design system, born as a small CSS framework and grown into a full React library. Recognisable for the green button, thin grey borders, pill labels and a dense interface built for people who write code.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Primer (GitHub Primer, Primer Design System). GitHub's design system, born as a small CSS framework and grown into a full React library. Recognisable for the green button, thin grey borders, pill labels and a dense interface built for people who write code. Characteristics: Green #1F883D primary button, light grey secondary ones, 1 px #D0D7DE borders and 6 px corners, Pill labels with coloured outlines, Blue #0969DA links and focus rings, Dense layout, 14 px text, light/dark/colour-blind themes. Palette: #1F883D, #0969DA, #F6F8FA, #D0D7DE, #1F2328, #CF222E. Typography: headings in Mona Sans, body text in Inter (Google Fonts or equivalents). Mood: rational, clean, subtle. References: https://primer.style, GitHub.com, GitHub Desktop, GitHub Mobile.
Relations
References
- https://primer.style
- GitHub.com
- GitHub Desktop
- GitHub Mobile