Design system
The colors, type and components that make Gitpay look like Gitpay, and where to find them in Storybook.
Every screen in the Gitpay app is built from one component library, documented in Storybook. These docs use the same colors and type.
frontend/src/components/design-library.View the code →
Colors
#2c5c46#16bfb4#d0722a#353a42#e2e5ea#f1f0ea- Green is for primary actions: Add bounty, Create, Send solution.
- Teal is the wordmark color, used for brand moments.
- Orange is the accent: money in motion, account actions, highlights.
- Ink is for text, and the dark top bar uses near-black.
The palette is defined in frontend/src/styleguide/styles/palette.js and applied through the MUI theme.
Typography
Roboto and Inter, with headings in medium weight and body text at 14px in the app. These docs use Inter at a larger size for reading.
Atomic structure
The library follows atomic design:
| Level | What it holds | Examples |
|---|---|---|
| Atoms | The smallest pieces | Buttons, badges, status chips, inputs, icons |
| Molecules | Small groups of atoms | Cards, drawers, dialogs, tables, headers |
| Organisms | Whole sections | Forms, the checkout, layouts, the top bar |
| Templates | Page skeletons | Public and private base layouts |
| Pages | Full screens with mock data | The issue page, dashboards, payout settings |
Feature code in frontend/src/components/areas/ connects these components to Redux and the API.
Add a component
- Put it at the right level in
design-library/. - Write a story next to it, with the states that matter: default, loading, empty, error.
- Keep data out of it: take props, and let
areas/fetch and connect. - Use React Intl for every string.
Screenshots in these docs
The app screenshots in these docs are taken from the page stories in Storybook, which use mock data. They show exactly what the app shows, without anyone’s real account.