Skip to content

Repository files navigation

Socle

Documentation site for the CSS foundation.

share-socle

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.

How it works

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.

Development

yarn install
yarn watch

To 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-base

Run yarn unlink @uncinq/css-base to go back to the published version.

Command Does
yarn watch Local server with live reload
yarn build Production build
yarn build:search Build, then index with Pagefind

Deployment

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.

License

MIT © Un Cinq

About

CSS foundation, framework-agnostic packages covering tokens, reset, layouts and components

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages