Skip to content

primer/css

Folders and files

NameName
Last commit message
Last commit date
Feb 5, 2025
Mar 15, 2025
Nov 16, 2021
Oct 8, 2021
Mar 12, 2025
Jul 13, 2023
Sep 17, 2024
Feb 5, 2025
Jul 13, 2023
Apr 7, 2021
Jul 13, 2023
Apr 11, 2021
Nov 8, 2024
Jun 10, 2021
Mar 9, 2022
Nov 30, 2023
Apr 1, 2021
Feb 5, 2025
Mar 31, 2023
Sep 10, 2021
Jun 11, 2024
Mar 20, 2025
Mar 20, 2025
Apr 9, 2024
Aug 11, 2021
Jun 3, 2024

Repository files navigation

Primer CSS

The CSS implementation of GitHub's Primer Design System

Documentation

⚠️ It is encouraged that you use primer/react and primer/view_components for styling and markup.

⚠️ The documentation of this repo is not maintained anymore. Please raise any documentation-specific pull requests in primer.style/design

Our documentation site lives at primer.style/css. You'll be able to find detailed documentation on getting started, all of the components, our theme, our principles, and more.

Install

This repository is distributed with npm. After installing npm, you can install @primer/css with this command:

npm install --save @primer/css

Usage

The included source files are written in Sass using SCSS syntax. After installing with npm, you can add your project's node_modules directory to your Sass include paths (AKA load paths in Ruby), then import it like this:

@import "@primer/css/index.scss";

You can import individual Primer modules directly from the @primer/css package:

@import "@primer/css/core/index.scss";
@import "@primer/css/product/index.scss";
@import "@primer/css/marketing/index.scss";

Development

See DEVELOP.md for development docs.

Releasing (for GitHub staff)

You can find docs about our release process in RELEASING.md.

License

MIT © GitHub