Documentation site for the CSS foundation.
Socle is French for foundation, which is what the four packages it documents are: the ground you build a design system on, not the design system itself.
- @uncinq/design-tokens: primitive and semantic tokens
- @uncinq/component-tokens: component-scoped tokens
- @uncinq/css-base: reset, native elements, layouts
- @uncinq/css-components: component implementations
This repository holds almost no documentation. Each package carries its own prose in its docs/ folder and ships it in its npm tarball. The site mounts those folders from node_modules and renders them.
Nothing is copied, so the documentation cannot drift from the package it describes. To fix a page, edit it in that package's repository.
The token reference tables are generated the same way, from dist/tokens.json, produced by each token package from the same sources as its CSS.
What lives here: the overview and Getting started pages, the tokens shortcode, the theme configuration and the branding.
The site runs on Hugolify v2 with hugolify-theme-design-system, which builds its stylesheet from @uncinq/css-base and @uncinq/css-components: the site is styled by the very packages it documents, under the Un Cinq theme (hugolify-theme-uncinqify) and the dark palette of assets/css/tokens/site.css.
yarn install
yarn watchTo preview a package's documentation before publishing it, link the local checkout:
cd ../css-base && yarn link # once per package
cd ../socle.uncinq.dev && yarn link @uncinq/css-baseRun yarn unlink @uncinq/css-base to go back to the published version. A linked package also restyles the site, since the design system imports it.
| Command | Does |
|---|---|
yarn install:hugolify |
Fetch the Hugo modules and regenerate their npm workspace, packages/hugoautogen |
yarn watch |
Local server with live reload |
yarn build |
Production build |
yarn build:search |
Build, then index with Pagefind |
Netlify, from main. The build refreshes the four packages before building, and each package release triggers a build hook, so publishing a package republishes the documentation.
/llms-full.txt serves the whole documentation as plain text in one request.
Socle is free and open source. If it saves you time, you can support its development on GitHub Sponsors.
MIT © Un Cinq