Design Specification — Free React button group components | Untitled UI
| Field | Value |
| Site / Project | https://www.untitledui.com/react/components/button-groups |
| Analyzed on | 2026-12-03 |
| Analysis mode | Automated code extraction (no AI) |
Overview
This design system was extracted programmatically from the source page. It is built on a light canvas (#FFFFFF), ink text (#000000), a vivid accent (#A5C0EE). All type is set in Inter. Detected font weights: 100, 400, 500, 600, 650, 700, 800, 900. Detected style signatures: gradient-rich / aurora; rounded / pill-heavy; technical / mono accents.
Logo asset(s): https://www.untitledui.com/react/favicon.ico?favicon.3j7a28f85dln5.ico
Color System
Detected palette (by frequency)
| Hex | RGB | HSL | Count |
#000000 | 0, 0, 0 | 0° 0% 0% | 154 |
#FFFFFF | 255, 255, 255 | 0° 0% 100% | 81 |
#0A0D12 | 10, 13, 18 | 218° 29% 5% | 29 |
#101828 | 16, 24, 40 | 220° 43% 11% | 11 |
#7F56D9 | 127, 86, 217 | 259° 63% 59% | 6 |
#E5E7EB | 229, 231, 235 | 220° 13% 91% | 5 |
#D1D5DC | 209, 213, 220 | 218° 14% 84% | 5 |
#364153 | 54, 65, 83 | 217° 21% 27% | 5 |
#99A1AF | 153, 161, 175 | 218° 12% 64% | 4 |
#4A5565 | 74, 85, 101 | 216° 15% 34% | 4 |
#FAFAFA | 250, 250, 250 | 0° 0% 98% | 4 |
#E5E5E5 | 229, 229, 229 | 0° 0% 90% | 4 |
#737373 | 115, 115, 115 | 0° 0% 45% | 4 |
#0A0A0A | 10, 10, 10 | 0° 0% 4% | 4 |
#A5C0EE | 165, 192, 238 | 218° 68% 79% | 4 |
#A6C0FE | 166, 192, 254 | 222° 98% 82% | 4 |
#FBC5EC | 251, 197, 236 | 317° 87% 88% | 4 |
#FFEAF6 | 255, 234, 246 | 326° 100% 96% | 4 |
#121212 | 18, 18, 18 | 0° 0% 7% | 4 |
#ECE8D1 | 236, 232, 209 | 51° 42% 87% | 4 |
Assigned roles
Roles are taken from the page's own semantic CSS custom properties when present, otherwise inferred from usage frequency + luminance/saturation.
| Token | Hex | RGB | HSL |
--color-primary | #7F56D9 | 127, 86, 217 | 259° 63% 59% |
--color-accent | #A5C0EE | 165, 192, 238 | 218° 68% 79% |
--color-background | #FFFFFF | 255, 255, 255 | 0° 0% 100% |
--color-surface | #FAFAFA | 250, 250, 250 | 0° 0% 98% |
--color-text-primary | #000000 | 0, 0, 0 | 0° 0% 0% |
--color-secondary | #000000 | 0, 0, 0 | 0° 0% 0% |
--color-text-secondary | #E5E7EB | 229, 231, 235 | 220° 13% 91% |
--color-border | #D1D5DC | 209, 213, 220 | 218° 14% 84% |
--color-on-primary | #FFFFFF | 255, 255, 255 | 0° 0% 100% |
--color-on-secondary | #FFFFFF | 255, 255, 255 | 0° 0% 100% |
--color-on-accent | #000000 | 0, 0, 0 | 0° 0% 0% |
Surface ramp (derived from detected light neutrals)
| Token | Hex |
--color-surface-container-lowest | #FFFFFF |
--color-surface-container-low | #FAFAFA |
--color-surface-container | #F5F5F5 |
--color-surface-container-high | #F3F4F6 |
--color-surface-container-highest | #E5E7EB |
Gradients
linear-gradient(in lab, red, red))
linear-gradient(#000 0%,#0000 25% 75%,#000 100%)
linear-gradient(#fff, #fff)
> 9 additional gradient definitions were framework utility templates (unresolvable var(--tw-gradient-stops)) and were omitted.
Typography
Primary typeface: Inter — stack: Inter
Font stacks (most used first)
Inter
var(--font-sans)
var(--font-mono)
inherit
var(--font-body)
Inter Fallback
var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")
var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)
var(--font-display)
Derived type scale
| Token | Size |
| headline-lg | 42.7px |
| headline-md | 26.7px |
| title-lg | 21.3px |
| body-lg | 18px |
| body-md | 16px |
| label-md | 14.4px |
| label-sm | 11px |
Font sizes (by frequency)
| Size | Count |
| .888889em | 10 |
| .875em | 8 |
| .875rem | 3 |
| 1.25em | 2 |
| 1.125rem | 2 |
| 1.22222em | 2 |
| 2.66667em | 2 |
| 1.66667em | 2 |
| 1.33333em | 2 |
| .866667em | 2 |
| 1em | 1 |
| 2.25em | 1 |
| 1.5em | 1 |
| .9em | 1 |
| 1rem | 1 |
| 8px | 1 |
| 9px | 1 |
| 10px | 1 |
| 11px | 1 |
| 13px | 1 |
Weights in use: 100, 400, 500, 600, 650, 700, 800, 900
Line heights (by frequency)
| Value | Count |
| 1.5 | 9 |
| 1 | 5 |
| 1.33333 | 3 |
| 1.75 | 3 |
| 1.25rem | 3 |
| 1.6 | 2 |
| 1.71429 | 2 |
| 1.77778 | 2 |
| 1.45455 | 2 |
| 1.55556 | 2 |
Letter spacing (by frequency)
| Value | Count |
| -1.2px | 2 |
| -1.44px | 2 |
| -.72px | 1 |
| -.96px | 1 |
| .6px | 1 |
| 1px | 1 |
Spacing
Derived spacing scale
| Token | Value |
| xs | 2px |
| sm | 13px |
| md | 17px |
Raw values (by frequency)
| Value | Count |
| 3px | 3 |
| 1px | 2 |
| 5px | 2 |
| 13px | 1 |
| .9px | 1 |
| 1.5px | 1 |
| 17px | 1 |
| 3.5px | 1 |
| 4.5px | 1 |
| 5.4px | 1 |
| 2px | 1 |
| 4px | 1 |
Borders & Radius
Derived radius tokens
| Token | Value |
| sm | 5px |
| md | 10px |
| lg | 20px |
Raw values (resolved, by frequency)
| Radius | Count |
10px | 5 |
6px | 5 |
20px | 4 |
0 | 3 |
.3125rem | 3 |
.375rem | 3 |
14px | 3 |
Shadows
Derived elevation
| Token | Value |
| sm | 0 0 0 1px |
| md | 0 0 0 1px , 0 3px 0 |
All detected shadows
0 0 0 1px
0 0 0 1px , 0 3px 0
Layout
Container max-width: 768px
Grid columns (largest detected grid): 12
Breakpoints
- 320px
- 400px
- 600px
- 40rem
- 48rem
- 64rem
- 80rem
- 96rem
Animation & Motion
Transitions
text-decoration-color .1s linear
Easing curves
cubic-bezier(.4, 0, 1, 1)
cubic-bezier(0, 0, .2, 1)
cubic-bezier(.4, 0, .2, 1)
cubic-bezier(.4, 0, .2, 1)
var(--tw-ease,var(--default-transition-timing-function))
inherit
var(--ease-in)
var(--ease-in-out)
Keyframes
@keyframes enter { 0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0), var(--tw-enter-translate-y,0), 0) scale3d(var(--tw-enter-scale,1), var(--tw-enter-scale,1), var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))} }
@keyframes exit { to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0), var(--tw-exit-translate-y,0), 0) scale3d(var(--tw-exit-scale,1), var(--tw-exit-scale,1), var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes bounce { 0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none} }
@keyframes marquee { 0%{transform:translate(0)}to{transform:translate(-100%)} }
@keyframes caret-blink { 0%,50%{opacity:1}51%,to{opacity:0} }
Animations
var(--animate-bounce)
var(--animate-caret-blink)
var(--animate-marquee)
var(--animate-spin)
none
Components
Extracted from the page's own interactive elements (classes → resolved CSS values).
button-primary — sample text: “Documentation”
| Property | Value |
| rounded | 6px |
| fontSize | 12px |
| fontWeight | 600 |
| padding | 6px 8px |
| transition | all 100ms cubic-bezier(0.4, 0, 0.2, 1) |
button-secondary — sample text: “Introduction”
| Property | Value |
| rounded | 6px |
| padding | 6px 8px |
navigation-link
| Property | Value |
| rounded | 6px |
| padding | 4px 4px |
| transition | all 100ms cubic-bezier(0.4, 0, 0.2, 1) |
CTA labels found on page
Source Design Tokens (CSS custom properties)
:root {
--font-inter: "Inter", "Inter Fallback";
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-mono: ui-monospace, "Roboto Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--color-red-50: #fef2f2;
--color-red-100: #ffe2e2;
--color-red-200: #ffcaca;
--color-red-300: #ffa3a3;
--color-red-400: #ff6568;
--color-red-500: #fb2c36;
--color-red-600: #e40014;
--color-red-700: #bf000f;
--color-red-800: #9f0712;
--color-red-900: #82181a;
--color-red-950: #460809;
--color-orange-50: #fff7ed;
--color-orange-100: #ffedd5;
--color-orange-200: #ffd7a8;
--color-orange-300: #ffb96d;
--color-orange-400: #ff8b1a;
--color-orange-500: #fe6e00;
--color-orange-600: #f05100;
--color-orange-700: #c53c00;
--color-orange-800: #9f2d00;
--color-orange-900: #7e2a0c;
--color-orange-950: #441306;
--color-amber-50: #fffbeb;
--color-amber-100: #fef3c6;
--color-amber-200: #fee685;
--color-amber-300: #ffd236;
--color-amber-400: #fcbb00;
--color-amber-500: #f99c00;
--color-amber-600: #dd7400;
--color-amber-700: #b75000;
--color-amber-800: #953d00;
--color-amber-900: #7b3306;
--color-amber-950: #461901;
--color-yellow-50: #fefce8;
--color-yellow-100: #fef9c2;
--color-yellow-200: #fff085;
--color-yellow-300: #ffe02a;
--color-yellow-400: #fac800;
--color-yellow-500: #edb200;
--color-yellow-600: #cd8900;
--color-yellow-700: #a36100;
--color-yellow-800: #874b00;
--color-yellow-900: #733e0a;
--color-yellow-950: #432004;
--color-green-50: #f0fdf4;
--color-green-100: #dcfce7;
--color-green-200: #b9f8cf;
--color-green-300: #7bf1a8;
--color-green-400: #05df72;
--color-green-500: #00c758;
--color-green-600: #00a544;
--color-green-700: #008138;
--color-green-800: #016630;
--color-green-900: #0d542b;
--color-green-950: #032e15;
--color-emerald-50: #ecfdf5;
--color-emerald-100: #d0fae5;
}
Do's and Don'ts
Do
- Do reserve the accent
#A5C0EE for interactive highlights and key moments — it is used sparingly on the source page.
- Do keep the canvas at
#FFFFFF; surfaces should stay within the detected neutral ramp.
- Do stick to the detected font weight(s): 100, 400, 500, 600, 650, 700, 800, 900.
Don't
- Don't introduce colors outside the detected palette — every hue above was found in the source.
Design Tokens (copy-paste)
:root {
--color-primary: #7F56D9;
--color-accent: #A5C0EE;
--color-background: #FFFFFF;
--color-surface: #FAFAFA;
--color-text-primary: #000000;
--color-secondary: #000000;
--color-text-secondary: #E5E7EB;
--color-border: #D1D5DC;
--color-on-primary: #FFFFFF;
--color-on-secondary: #FFFFFF;
--color-on-accent: #000000;
--color-surface-container-lowest: #FFFFFF;
--color-surface-container-low: #FAFAFA;
--color-surface-container: #F5F5F5;
--color-surface-container-high: #F3F4F6;
--color-surface-container-highest: #E5E7EB;
--font-sans: Inter;
--font-size-headline-lg: 42.7px;
--font-size-headline-md: 26.7px;
--font-size-title-lg: 21.3px;
--font-size-body-lg: 18px;
--font-size-body-md: 16px;
--font-size-label-md: 14.4px;
--font-size-label-sm: 11px;
--radius-sm: 5px;
--radius-md: 10px;
--radius-lg: 20px;
--shadow-sm: 0 0 0 1px;
--shadow-md: 0 0 0 1px , 0 3px 0;
--space-xs: 2px;
--space-sm: 13px;
--space-md: 17px;
--tracking-display: -1.2px;
--tracking-label: .6px;
--container-max: 768px;
}