Zero-runtime, OKLCH-native CSS framework with cascade layers and native light-dark() theming
npm install @shift-css/coreA zero-runtime, OKLCH-native CSS framework with automatic theming.



``bash`
npm install @shift-css/coreor
bun add @shift-css/coreor
pnpm add @shift-css/core
`css
/ Full framework /
@import "@shift-css/core";
/ Or minified for production /
@import "@shift-css/core/min";
`
`html`
Hello Shift
No configuration, no JavaScript, no build step for customization.
- 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
`css`
/ Change your entire brand palette with one line /
:root {
--shift-hue-primary: 280; / Purple instead of blue /
}
Override seed hues to transform your entire palette:
`css`
:root {
--shift-hue-primary: 280; / Purple /
--shift-hue-secondary: 200; / Teal /
--shift-hue-accent: 45; / Gold /
--shift-hue-neutral: 280; / Purple-tinted grays /
}
Import only what you need:
`css
/ Reset only /
@import "@shift-css/core/reset";
/ Tokens only /
@import "@shift-css/core/tokens";
`
| File | Size |
| --------------- | ------ |
| shift.css | ~83 KB |shift.min.css
| | ~64 KB |
| Gzipped | ~12 KB |
| Browser | Minimum Version |
| ------- | --------------- |
| Chrome | 131+ |
| Firefox | 133+ |
| Safari | 18+ |
| Edge | 131+ |
Full documentation at getshiftcss.com
Use the CLI to initialize Shift CSS with proper cascade layers:
`bash``
npx shift-css init
See @shift-css/cli for details.
MIT