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

@shift-css/core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shift-css/core

Zero-runtime, OKLCH-native CSS framework with cascade layers and native light-dark() theming

latest
Source
npmnpm
Version
0.7.0
Version published
Weekly downloads
2
-88.24%
Maintainers
1
Weekly downloads
 
Created
Source

@shift-css/core

A zero-runtime, OKLCH-native CSS framework with automatic theming.

npm version gzip size License: MIT

Installation

npm install @shift-css/core
# or
bun add @shift-css/core
# or
pnpm add @shift-css/core

Usage

/* Full framework */
@import "@shift-css/core";

/* Or minified for production */
@import "@shift-css/core/min";
<div s-surface="raised">
  <h2>Hello Shift</h2>
  <button s-btn="primary">Get Started</button>
</div>

No configuration, no JavaScript, no build step for customization.

Features

  • Zero JavaScript - Theming works without any runtime code
  • Perceptually uniform colors - OKLCH ensures consistent brightness across your palette
  • Automatic contrast - Text colors adapt to any background automatically
  • Clean specificity - Cascade layers mean no more !important battles
  • One-line customization - Change a single hue variable to transform your entire palette
/* Change your entire brand palette with one line */
:root {
  --shift-hue-primary: 280; /* Purple instead of blue */
}

Customization

Override seed hues to transform your entire palette:

:root {
  --shift-hue-primary: 280; /* Purple */
  --shift-hue-secondary: 200; /* Teal */
  --shift-hue-accent: 45; /* Gold */
  --shift-hue-neutral: 280; /* Purple-tinted grays */
}

Modular Imports

Import only what you need:

/* Reset only */
@import "@shift-css/core/reset";

/* Tokens only */
@import "@shift-css/core/tokens";

Bundle Size

FileSize
shift.css~83 KB
shift.min.css~64 KB
Gzipped~12 KB

Browser Support

BrowserMinimum Version
Chrome131+
Firefox133+
Safari18+
Edge131+

Documentation

Full documentation at getshiftcss.com

CLI

Use the CLI to initialize Shift CSS with proper cascade layers:

npx shift-css init

See @shift-css/cli for details.

License

MIT

Keywords

css

FAQs

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