goku-css
v9.0.6
Published
CSS Framework
Downloads
2,332
Readme
Goku CSS framework
A small, class-light CSS framework. Styles plain HTML elements, adds a handful of components and utilities, and stays out of your way. ~5 KB gzipped for everything.
Getting started
CDN
No build step — this serves the pre-bundled, minified stylesheet in a single request:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/goku-css">Package manager
Install with pnpm add goku-css (or npm / yarn), then pick one of:
// Everything, as source files — your bundler inlines the imports
import 'goku-css'
// Pre-bundled and minified, if you'd rather skip that step
import 'goku-css/bundle'
// Or cherry-pick only what you need
import 'goku-css/css/variables.css'
import 'goku-css/css/elements/button.css'The bare goku-css entry resolves to the source css/goku.css so your bundler can
tree-shake, minify, and apply your own PostCSS/Lightning CSS config. CDNs resolve the
same package name to the pre-built docs/index.css instead, since a browser following
a chain of @imports would otherwise pay for a request waterfall.
Theming
Everything is a custom property on :root. Override the ones you care about:
:root {
--g-primary: #6d28d9;
--g-primary-contrast: #fff;
--g-border-radius: 4px;
}Colours use light-dark(), so a single declaration covers both schemes. See
css/variables.css for the full list.
Development
pnpm dev— docs site with hot reloadpnpm build— rebuilddocs/pnpm lint— stylelint
