yaakdoc-theme-winxp
v0.3.0
Published
A Windows XP Luna inspired theme for yaakdoc.
Maintainers
Readme
yaakdoc-theme-winxp
A yaakdoc theme inspired by the Windows XP Luna visual style.

DEMO: https://yaakdoc-theme-winxp.vercel.app
Installation
npm i -D yaakdoc yaakdoc-theme-winxpThen set the theme in yaakdoc.config.json:
{
"theme": "winxp"
}Options
{
"theme": "winxp",
"themeOptions": {
"scheme": "blue",
"codePanel": "right",
"sidebarWidth": "17rem",
"navOpenDepth": 1,
"showEnvironment": true,
"windowControls": true
}
}| Option | Default | Description |
| --- | --- | --- |
| scheme | "blue" | Luna color scheme for light mode: "blue", "olive" or "silver". Dark mode always uses Royale Noir. |
| codePanel | "right" | "right" puts code examples in a sticky column on wide screens. "inline" puts them below each request. |
| sidebarWidth | "17rem" | Width of the task pane (any CSS length). |
| navOpenDepth | 1 | Folder levels expanded in the navigation by default. Folders containing the current page always open. |
| showEnvironment | true | Show the environment used for the examples in the toolbar. |
| windowControls | true | Show the decorative minimize, maximize and close buttons in the title bar. |
Pages, tabs and search
- Tabs. With several navigation tabs, they're shown in a menu bar under the title bar, and the task pane shows the current tab.
- Groups. Top-level groups are task groups in the task pane. Nested groups are folders in the tree.
- Pages. Custom pages get the same heading as the overview, and wizard-style "< Back" and "Next >" buttons at the bottom.
- Icons.
iconon pages, groups and tabs takes a Lucide icon name, such asbook-openorkey-round. The theme draws its own XP-style icons, so names are matched by their words (key,book,terminal,history,house,folder,list,globe, ...), and other names get a document icon. - Example responses. Each response is a tab in an "Example response" window. Response headers written at the top of a
```responseblock are listed above the body. - Search. Press Cmd+K / Ctrl+K or
/, or use the search box in the task pane or the Search button in the toolbar. With"search": false, the task pane shows a filter instead.
Customizing
- Colors.
branding.colors.primaryreplaces the scheme's link and selection color, andbranding.colors.accentreplaces the color of hovered task pane links. - Logo. The logo is shown in the title bar, next to the site title, at
branding.logo.height(18 px by default, at most 22 px so it fits the title bar).branding.logo.showTitle: falsehides the title. - Fonts. The theme uses system fonts: Tahoma and Trebuchet MS for the UI, and Lucida Console for code. Other fonts are used where those aren't installed.
branding.fontsoverrides them. - Color mode. Light mode uses the chosen Luna scheme, and dark mode uses Royale Noir.
branding.defaultColorModeandbranding.colorModeTogglework as usual. The toggle is a sun/moon button in the toolbar. Per-mode branding colors (branding.colors.light/.dark) apply to each mode. - Everything else. Use
branding.customCss, or runnpx yaakdoc ejectto copy the theme into your project.
Development
pnpm install
pnpm dev # dev server for the example docs in ./example
pnpm build # static build of the example into ./example/dist
pnpm check-types
pnpm lintDisclaimer
This project isn't affiliated with or endorsed by Microsoft. Windows and Windows XP are trademarks of Microsoft Corporation. The theme recreates the look of the Luna visual style with original CSS and SVG artwork and contains no Microsoft assets.
License
MIT
