Skip to content

Latest commit

 

History

1,049 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 reload
  • pnpm build — rebuild docs/
  • pnpm lint — stylelint

Releases

Packages

Used by

Contributors

Languages