qmetrics.net

Primer CSS

Sass modules implementing GitHub Primer design styles

Primer CSS screenshot

Primer CSS is the stylesheet layer of GitHub's Primer design system, distributed as @primer/css. Source files use Sass SCSS syntax for utilities and component styling in web projects.

Overview

Primer CSS implements the visual foundation of GitHub's Primer design system as installable stylesheets. Consumers add @primer/css through npm and import Sass modules into their build, either the full bundle or individual Primer packages from the distribution.

The project is maintained in keep-the-lights-on mode: existing utility classes remain available where needed, while richer patterns that combine markup and styling are directed toward Primer React or Primer view components. Documentation on primer.style covers components, themes, principles, and usage guidance.

Sass include paths must reach node_modules so @import or @use can pull Primer partials. Teams already on GitHub's design language use this package to align spacing, typography, color, and component classes without reimplementing the system. Development and release processes are documented for maintainers but do not affect how downstream apps consume the published npm artifact.

Key features

  • Primer design system CSS modules
  • Sass SCSS source distribution
  • Full or modular package imports
  • npm @primer/css packaging
  • Utility-oriented class vocabulary
  • primer.style documentation site
  • GitHub-aligned component styling
  • KTLO maintenance mode

Use cases

  • Styling apps with Primer utilities
  • Aligning internal tools with GitHub UI
  • Importing selective Primer Sass modules
  • Migrating legacy Primer class usage
  • Design system consistency in static sites

Tags

Similar software

Ant Design

Enterprise React UI library and web design language

Ant Design is an enterprise-oriented UI design language and React component library written in TypeScript, aimed at web applications with theming, internationalization, and design resources.

★ 100.4k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

Material Design Icons

Google Material Symbols and classic Material Icons assets

Official Google icon sets for web, Android, and iOS, including variable-font Material Symbols and legacy Material Icons styles.

★ 54.4k⟳ 1 month agoApache-2.0
Frameworks & PlatformsDesktop/CLI app

iced

Cross-platform Elm-inspired GUI toolkit for Rust

Iced lets Rust developers build desktop and web GUIs with a type-safe, reactive model. It ships widgets, async support, and pluggable renderers.

★ 32.1k⟳ 8 days agoMIT

HeroUI

Accessible React UI components with Tailwind CSS v4

HeroUI (formerly NextUI) is a production-oriented React component library combining React Aria accessibility with Tailwind CSS v4 styling. It targets React 19 and Next.js without requiring a provider wrapper.

★ 31.3k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

React Native Elements

Cross-platform React Native UI component toolkit

React Native Elements offers shared UI components for Android, iOS, and web React Native apps. Packages ship in TypeScript with optional theming.

★ 25.9k⟳ 6 months agoMIT
Frameworks & PlatformsDesktop/CLI app

Blueprint

React component toolkit for dense desktop web interfaces

Blueprint ships TypeScript React components and styles aimed at complex, data-heavy web UIs in modern desktop browsers rather than mobile-first layouts.

★ 22.2k⟳ 2 days agoApache-2.0
Frameworks & PlatformsDesktop/CLI app