Primer.style 🎨
Primer.style - GitHub's Stylesheet.
ven profile picture

Anaxes β€’ πŸ“† Published on August 4, 2022 β€’ 🍿 1 min read

Ever been mesmerised by GitHub's UI? Well you longer need to! GitHub has published all of it's styling, free for anyone to use!

🍧 How to use

To get started you want to install the following packages:

πŸ’»β€Žconsole
# with npm
npm install @primer/components react react-dom styled-components

# with yarn
yarn add @primer/components react react-dom styled-components

Now you want to import/require the packages in your files:

πŸ’»β€Ž.tsx
import {Box, Flex} from '@primer/components';

πŸŽ‰ And that's all you need!

Now, you can use GitHub's UI within your project!

Don't forget to check out πŸ“Žprimer.style documentation for code on specific components, buttons, etc.

πŸ“† Initially published: 7th of November.