New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gnome-ui/core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnome-ui/core

Design tokens for the GNOME UI design system (framework-agnostic)

latest
npmnpm
Version
1.11.3
Version published
Maintainers
1
Created
Source

@gnome-ui/core

Framework-agnostic CSS design tokens for the GNOME UI design system, based on the GNOME Human Interface Guidelines and the Adwaita design language.

npm License: MIT

Installation

npm install @gnome-ui/core

Usage

Import the tokens once at the root of your app:

@import "@gnome-ui/core/styles";
import "@gnome-ui/core/styles";

All tokens are then available as CSS custom properties:

.my-button {
  background-color: var(--gnome-accent-bg-color);
  color: var(--gnome-accent-fg-color);
  border-radius: var(--gnome-radius-md);
  font-family: var(--gnome-font-family);
  padding: var(--gnome-space-1) var(--gnome-space-2);
}

Dark mode is handled automatically via @media (prefers-color-scheme: dark).

Token reference

Colors

TokenLightDark
--gnome-accent-color#3584e4#78aeed
--gnome-accent-bg-color#3584e4#3584e4
--gnome-accent-fg-color#ffffff#ffffff
--gnome-destructive-bg-color#e01b24#e01b24
--gnome-destructive-fg-color#ffffff#ffffff
--gnome-success-bg-color#2ec27e#2ec27e
--gnome-warning-bg-color#f6d32d#f6d32d
--gnome-window-bg-color#fafafa#242424
--gnome-window-fg-colorrgba(0,0,0,.8)rgba(255,255,255,.87)
--gnome-card-bg-color#ffffff#383838
--gnome-headerbar-bg-color#ebebeb#303030

Spacing (6 px grid)

TokenValue
--gnome-space-16px
--gnome-space-212px
--gnome-space-318px
--gnome-space-424px
--gnome-space-536px
--gnome-space-648px

Border radius

TokenValueUse
--gnome-radius-sm4pxSmall elements
--gnome-radius-md8pxDefault (buttons, inputs)
--gnome-radius-lg12pxCards, popovers
--gnome-radius-xl15pxWindows
--gnome-radius-pill9999pxPill/circular buttons

Typography

TokenValue
--gnome-font-family"Adwaita Sans", Cantarell, "Inter", system-ui, sans-serif
--gnome-font-size-large-title2.25rem
--gnome-font-size-title-11.875rem
--gnome-font-size-title-21.5rem
--gnome-font-size-title-31.25rem
--gnome-font-size-title-41.125rem
--gnome-font-size-body1rem
--gnome-font-size-caption0.875rem
--gnome-font-weight-normal400
--gnome-font-weight-semibold600
--gnome-font-weight-bold700

Focus ring

TokenValue
--gnome-focus-ring-colorvar(--gnome-accent-color)
--gnome-focus-ring-width2px
--gnome-focus-ring-offset2px

Motion

TokenValue
--gnome-duration-fast100ms
--gnome-duration-normal200ms
--gnome-duration-slow400ms
--gnome-easing-defaultease
--gnome-easing-springcubic-bezier(0.34, 1.56, 0.64, 1)

Shadows

TokenUse
--gnome-shadow-smSubtle card/button shadow
--gnome-shadow-mdPopovers, dropdowns
--gnome-shadow-lgDialogs, modals

Misc

TokenValue
--gnome-opacity-disabled0.5

License

MIT

FAQs

Package last updated on 31 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts