@sparkstone/css

@sparkstone/css is a lightweight SCSS framework inspired by Pico.css, but rebuilt from the ground up with oklch() color primitives and a powerful theme system based on native CSS variables.

๐Ÿ“ฆ View on NPM ยท ๐Ÿ’ป View on GitHub

Get Started

Install the package with your preferred package manager:

# pnpm
pnpm add @sparkstone/css

# yarn
yarn add @sparkstone/css

# npm
npm install @sparkstone/css

Then import the theme:

// SCSS
import "@sparkstone/css/src/theme.scss";

// or precompiled CSS
import "@sparkstone/css/theme.css";

Theming

The entire theme can be customized via CSS variables. For example:

:root {
  --color: rebeccapurple;
  --primary-color: blue;
  --accent-color: oklch(from var(--color) l c calc(h + 180));
  --error-color: maroon;
}

Light and dark mode follow system settings by default. Override manually with:

<html data-color-scheme="light">
<!-- or -->
<html data-color-scheme="dark">

Docs

Explore styled components and utilities:

Live Theme Preview

Try customizing the theme color: