@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
oklch()
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";
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">
Explore styled components and utilities:
Try customizing the theme color: