mono.hypered.design contains a reference implementation of a design system. This repository is a Haskell implementation, intended to be used in prototyping.
This repository contains both a library and an executable. The library presents
is written with blaze-html
. The executable is used to recreate components and
example pages.
A GitHub Action is setup to generate pages and serve them at monohs.hypered.design.
The code is organized as a Cabal project, with two packages:
design-hs-lib
: the library itself.design-hs-exe
: the executable server that provides us with a page like https://mono.hypered.design/development/docs/, but using the lib.
To keep the compilation and test costs low at this point; I'll take the liberty to put the exe into the library package and we'll split this out as things mature.
All the packages made available via this package are listed in contents.nix
.
$ nix-build -A design-hs-html
$ nix-shell -p busybox --run 'httpd -f -p 8000 -h result/html'
$ scripts/brittany.sh
$ scripts/hlint.sh
$ scripts/ghcid.sh