Skip to content

About

Shared visual theme for FlatPPL web properties

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FlatPPL theme

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.

Files

  • tokens.css defines the shared light and dark values.
  • syntax-map.json maps grammar scopes and host classes to syntax tokens.
  • components.css defines shared controls and prose components.
  • header.html and footer.html define the product shell fragments.
  • shell.css and shell.js style 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.

Development

bun install --frozen-lockfile
bun test
bun run check
bun run preview

Open 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.

Licensing

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.

About

Shared visual theme for FlatPPL web properties

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages