Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

@vega-ui/tokens-core

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vega-ui/tokens-core

CSS tokens for @vega-ui/react

latest
npmnpm
Version
2.3.1
Version published
Maintainers
2
Created
Source

@vega-ui/tokens-core

Core tokens for Vega UI Kit Web

Color palette

Each color has 11 steps from 0 to 1000. Use raw palette tokens (--color-blue-500) only to define semantic tokens. In components always use semantic tokens: --color-primary-*, --color-secondary-*, --color-gray-accent-*, etc.

In dark mode the scale is automatically inverted: accent-N maps to raw-(1000−N), so components don't need dark mode overrides when using accent tokens.

Scale anatomy

StepsZonePurpose
0BackgroundLightest surface, ghost button resting state
100–200SurfaceHover/active states on light backgrounds, disabled fills, subtle borders
300–400BorderDefault and hover borders for form controls
500ActionPrimary interactive color — filled buttons, checked states, progress, links
600–700Action statesHover (600) and active/pressed (700) for filled elements
800Text on fillText color inside filled alert/badge backgrounds
900–1000DeepNot used directly in components; needed for dark mode inversion

How to apply steps in a component

Filled element (button, checkbox, progress bar):

background: var(--color-primary-500);   /* default */
background: var(--color-primary-600);   /* hover   */
background: var(--color-primary-700);   /* active  */

Ghost / transparent element (ghost button, option row):

background: transparent;                /* default */
background: var(--color-primary-0);     /* hover   */
background: var(--color-primary-100);   /* active  */
color: var(--color-primary-500);        /* text — all states */

Outline element (outline button, outline badge):

border-color: var(--color-primary-500); /* default */
background:   var(--color-primary-0);   /* hover   */
background:   var(--color-primary-100); /* active  */

Form control border (input, select):

border-color: var(--color-gray-accent-300); /* default */
border-color: var(--color-gray-accent-400); /* hover   */
border-color: var(--color-gray-accent-500); /* active  */
border-color: var(--color-primary-500);     /* focus   */

Notification / badge variants:

/* filled  */ background: var(--color-red-accent-100); color: var(--color-red-accent-800);
/* surface */ background: var(--color-red-accent-0);   color: var(--color-red-accent-700); border-color: var(--color-red-accent-700);
/* fill    */ background: var(--color-red-accent-500); color: var(--color-white);

Keywords

ui-kit

FAQs

Package last updated on 27 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