Shared visual theme for the FlatPPL website, specification, and playground.
The example site shows the current shell, theme switch, syntax colours, and shared components.
This repository owns the design tokens, product header and footer, shared web components, theme script, and brand assets. Consumer repositories vendor pinned release bundles. They keep their host adapters and page layouts locally.
Do not load this theme from a CDN or use this repository as a submodule. Each consumer build must remain self-contained and reproducible.
tokens.cssdefines the shared light and dark values.syntax-map.jsonmaps grammar scopes and host classes to syntax tokens.components.cssdefines shared controls and prose components.header.htmlandfooter.htmldefine the product shell fragments.shell.cssandshell.jsstyle and operate the product shell.assets/contains the brand mark, wordmark, original art, and favicon set.scripts/builds and verifies the release bundle.
Host adapters must set data-fp-active="site|spec|learn|play|docs" on the root
element. shell.js then adds aria-current="page" to the active product link.
Load shell.js synchronously in the document head to apply the saved theme
before rendering.
bun install --frozen-lockfile
bun test
bun run check
bun run previewOpen http://localhost:8002/preview/ for the shell preview.
bun run build writes dist/manifest.json with the source commit and a
SHA-256 digest for every bundled file. Consumers commit the complete dist/
tree under vendor/flatppl-theme/ and verify its manifest in their own build
tool. scripts/verify-bundle.ts checks release candidates in this repository.
Tags matching v* create a release archive after the full check passes. Do not
create a tag until every consumer accepts the bundle candidate.
assets/logo-master.svg is the editable logo source. Headers and favicons
share its flat graph and plot layers on the squircle background of
assets/proposals/squircle.svg, in assets/logo.svg and assets/favicon.svg.
That background is a superellipse with exponent 4.5, sampled at 128 points.
The 16 pixel icons keep the plot-only mark with a thicker curve, because the
graph smears at that size.
Run bun run icons with
rsvg-convert installed to regenerate the SVG, PNG, ICO, and touch icons.
The ICO contains 16, 32, and 48 pixel images.
The master keeps background, board texture, graph nodes, arrows, plot, text,
and solid outlines on named layers. Root data-* attributes toggle each layer
and effect. Chalk blur follows the grain, and the 0.9-unit outline stays inside
the shapes. The board uses seeded diagonal grain, fine dust, and faint wipe marks.
assets/proposals/circle.svg and assets/proposals/squircle.svg preserve
alternative header designs for future use. Current headers use the squircle
graph and plot mark beside the FlatPPL name.
Code, CSS, JavaScript, and HTML templates use the MIT License. FlatPPL brand
assets use the Creative Commons Attribution 4.0 International License. See
LICENSE.md for the file-level rules.