COCO is a lightweight, modular CSS framework built with Sass. It ships CSS only, with no JavaScript runtime, dependencies, or required initialization.
Install the package with npm:
npm install @blockchainhub/cocoThen load either the expanded or minified stylesheet:
<link rel="stylesheet" href="./node_modules/@blockchainhub/coco/dist/coco.min.css">@import '@blockchainhub/coco/dist/coco.css';Pin the exact version for reproducible production builds:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@blockchainhub/coco@2.3.0/dist/coco.min.css">To receive compatible updates within major version 2:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@blockchainhub/coco@2/dist/coco.min.css">The package files are dist/coco.css and dist/coco.min.css. No JavaScript is
published.
COCO uses a responsive grid familiar to Bootstrap users and includes typography, forms, tables, buttons, layout utilities, and image filters.
<body class="has-sticky-footer">
<header>Header</header>
<main>Main content</main>
<footer>Footer</footer>
</body><em class="oji flat" aria-hidden="true">📥</em><span class="coco version">Version </span>Browse the online documentation for the preview, KSS component style guide, and SassDoc API reference. Documentation is generated directly from comments beside the relevant SCSS source.
The documentation build also produces llms.txt, llms-full.txt,
components.json, and sass-api.json for coding assistants and automated
tools. Repository-specific instructions for coding agents are in
AGENTS.md.
COCO requires Node.js 22.22.2 or newer for its development toolchain.
npm install
npm run test:allLock files are intentionally not committed, so use npm install for a fresh checkout.
Useful commands:
npm run buildcreates the expanded and minified production CSS.npm run preview:buildgenerates the static preview.npm run docs:buildcreates the complete documentation site in.site/.npm startwatches the Sass and Pug sources and serves the preview athttp://localhost:3000/html/page/color.html.npm testruns the Sass unit tests with Node's built-in test runner.npm run lintchecks all Sass and SCSS files.
Build tools use JavaScript during development, but the website-facing package and preview require none.
See the contribution guide before opening a pull request.
Released under the CORE license.