A directory tree of markdown files — the unit of distribution.
The OKF4net site has one idea: every page is a concept document. Editor-tab navigation, a framed document window, ## chapter markers with § spec references, a raw⇄rendered duality. This page is the system's mirror — it renders the real stylesheet, so it can't drift from what ships.
Colour. One brand hue (Klein blue), near-black ink, and a narrow set of neutrals. Every colour is a CSS variable in :root; never hard-code a hex in a page.
Inside pre.block (dark) the syntax palette shifts to hold contrast on ink: .k #7e9bff keywords · .s #ffd166 strings · .c #7a7a85 comments · .ok #6fd18a success.
Type. Three families, three jobs. Never introduce a fourth.
Layout & rhythm. One centred column, .frame at max-width: 1200px with fluid gutters (clamp(16px, 3.5vw, 48px)). Prose measures are capped (64ch body, 44ch blockquote) for readability. Borders are 1.5px solid ink for structure, 1px hair for internal grids. Zero border-radius — the system is orthogonal by design.
If you cancata file, you can read OKF — so every page looks like a file you couldcat.
The whole identity derives from the product. Pages don't decorate; they impersonate an OKF concept document:
*.md concept id, the current page marked with an inset blue underline..doc-window) with a chrome bar showing the file path (my_bundle/page.md) and its type:.## markdown-heading badge and annotated with the spec section they map to (§4–§5).Structure encodes something true: the § references are real spec citations, the file paths are plausible concept ids, the sidebar in /docs is a real bundle tree. Decoration that doesn't map to the product gets cut.
The document window frames every page. Its chrome names the file and its type.
<div class="doc-window"> <div class="doc-chrome"> <span class="path">tables/<b>orders.md</b></span> <span>type: Table</span> </div> <div class="rendered"> … </div> </div>
<div class="chead"> <span class="h">##</span> <h2>Load a bundle</h2> <span class="ref">§3, §5 — Bundle · LinkScanner</span> </div>
A directory tree of markdown files — the unit of distribution.
One document: YAML frontmatter, then a markdown body.
<div class="concept-grid"> <div class="cell"> <div class="term">bundle</div> <p>A directory tree of markdown files.</p> </div> … </div>
var bundle = Bundle.Load("./my_bundle"); // permissive: a bad file never aborts Console.WriteLine($"{bundle.Count} concepts");
<pre class="block"><span class="k">var</span> bundle = Bundle.Load( <span class="s">"./my_bundle"</span>); <span class="c">// comment</span></pre>
| Command | Does |
|---|---|
| okf validate | Conformance check (§9), non-zero exit on failure |
| okf graph | Cross-link graph, --dot for Graphviz |
| Type | Concept | Description |
|---|---|---|
| Guide | getting-started | Install and validate your first bundle. |
| Reference | agentssoon | The Agent Framework tools. |
main.tests/fixtures/ without reading the diff.If you cancata file, you can read OKF; if you cangit clonea repo, you can ship it.
Never edit tests/fixtures/. If C# output differs from a golden file, the C# is wrong — fix the port.
→ cli.md — the same engine, as one AOT binary for CI
The spec is short, the codebase is dependency-free, and the test suite tells you immediately whether you're right.
Page skeletons. Two openings, one body.
| Skeleton | When |
|---|---|
| hero + raw/rendered | Home only — the marquee concept document with the live toggle and site.js. |
| .page-doc | Every subpage — a slimmer document window (path + type + h1 + lede), no toggle. |
| .docs-shell | Reference pages under /docs — bundle-tree sidebar + the .page-doc opening. |
Below the opening, content is always a .docbody of section.chapter blocks, each led by a .chead.
Responsive. Three stops. At 960px the editor-tab nav is hidden and the docs sidebar stacks above content. At 720px the frame goes full-bleed: it drops its gutters, the document window loses its side borders, and code blocks bleed edge to edge while text keeps a 16px inset.
Accessibility floor (non-negotiable):
:focus-visible draws a 2px blue outline; never remove it.prefers-reduced-motion disables smooth scroll and all transitions..conform badge and .tag chips are never the sole carrier of meaning.aria-current, aria-pressed).→ DESIGN.md — the written spec: token table, build conventions, and voice rules