02 / THEMES
Themes
Six visual styles, eight color palettes, and Light, Dark, and Auto modes.
Agent Instructions / themes
You are implementing a theme-aware KIRUPA surface. Preserve the independent style, palette, and mode dimensions. Use the enabled styles and presets from header.shtml and kirupa.js; nature is displayed as Smooooth. Use the actual custom-color generator and the exact production class composition. Keep preview state inside its document; never persist it, dispatch a site-wide theme change, or change another specimen. Reuse the style CSS and asset mappings rather than simulating a theme with a background color. Mark fixed-color artwork honestly. Verify all preset combinations and a custom color, plus Auto and reduced motion. Customize Theme also holds the Background icons and Content reveals choices: read /design/sections/motion.md before changing them, keep them storing only non-default choices, and keep Reset to default resetting them. Follow WCAG 2.2 AA for new or changed content: semantic HTML, keyboard access, visible focus, readable contrast in every theme, text alternatives, labeled controls, and explicit errors. Support zoom/reflow, respect reduced motion, and keep sound optional. Read /design/sections/accessibility.md for acceptance checks. Report unresolved barriers; automated checks alone do not establish conformance.
Pixel is the classic retro shell: chunky type, pixel icons, hard shadows, drifting clouds, and stars at night. Smooooth is stored as nature: rounded controls, leafy masks, soft hills, and warmer, quieter typography.
Sci-Fi is a starship console: a sun-orange mark, wide-tracked titles, technical type, thin rules, and a moving geographic atlas. Minimal gives the words room, uses hairlines and Inter, and adds a reading-progress line only to articles.
Ukiyo-e uses woodblock waves, ink, paper, a seal, sails, birds, and mist. Plakat is a Bauhaus and Swiss poster (it was called Platformer until 2026-12-02): a warm off-white page ruled into hairline grids, huge heavy Inter headlines, square corners everywhere, a header band of flat primitives (squares, triangles, bars, grids, stars, and the circle as its one curve) in the theme color, yellow, vermilion, and olive (a custom color turns those three to its own hue), and full-bleed color blocks on library cards, all one height, holding flat paper cut-outs in the spirit of Bauhaus and Matisse: leaves, fronds, algae, stars, and zigzag waves cut as sharp polygons beside squares, triangles, and circles, one family per content type (specimen).
Terminal is a console in exactly two colors, a background and one foreground, with reverse-video selections, window-dot code panes, a blinking block cursor, a status line, and a 1-bit dither; picking it turns Dark on.
Sketch is an architect's notepad: graph paper, hand lettering, boxes drawn twice with overshooting corners, a header page of pen sketches (a floor plan, a robot arm, 3D wireframes of everyday objects) with cartoon doodles, a yellow marker, and a blueprint in Dark.
The graph paper is one mat fixed to the window, so its lines stay put and line up everywhere they show: around the page, behind the header's sketches, and in the left nav. The reading column is a plain sheet with pen-drawn edges that scrolls over the mat, like the forum's posts, and so are the forum rail (a spiral-bound pad), the newsletter, and the footer, so text never sits on grid lines.
3D is a box of soft plastic toys that tilts a little toward the mouse: chunky tiles on extruded edges that spring up on hover, candy buttons, extruded titles, glossy toys floating in the header, and a glossy candy globe on Who's Online.
Their artwork contains intentional fixed hues as well as theme-colored layers. Here is the actual homepage in every style. Each window has its own Light/Dark selector; these fixed captures use the Blue palette:
Pixel

The screenshot could not load. Open the live example or the full-size image below.
Smooooth

The screenshot could not load. Open the live example or the full-size image below.
Sci-Fi

The screenshot could not load. Open the live example or the full-size image below.
Minimal

The screenshot could not load. Open the live example or the full-size image below.
Ukiyo-e

The screenshot could not load. Open the live example or the full-size image below.
Plakat

The screenshot could not load. Open the live example or the full-size image below.
Terminal

The screenshot could not load. Open the live example or the full-size image below.
Sketch

The screenshot could not load. Open the live example or the full-size image below.
3D

The screenshot could not load. Open the live example or the full-size image below.
Archive: the homepage before Nov 15, 2026
The previous homepage in every style it had then, captured 2026-10-19 and restored from git history. Its markup is preserved at index_backup_2026-11-15.htm, which now loads today's shared header, footer, and site-wide motion, so it no longer matches these captures exactly. Archived layout record / Archive metadata
Pixel

The screenshot could not load. Open the archived page or the full-size image below.
Smooooth

The screenshot could not load. Open the archived page or the full-size image below.
Sci-Fi

The screenshot could not load. Open the archived page or the full-size image below.
Minimal

The screenshot could not load. Open the archived page or the full-size image below.
Ukiyo-e

The screenshot could not load. Open the archived page or the full-size image below.
Plakat

The screenshot could not load. Open the archived page or the full-size image below.
Each style keeps a few rules of its own, and its checks enforce them:
- Terminal uses a background and one foreground for its chrome. Emphasis comes from weight, rules, and reverse video, and hovers redraw instantly. Opaque article images get a 6px inset frame that mixes 18% foreground with the background for subtle contrast in Light and Dark. The frame does not change image dimensions. Transparent artwork and screenshots with transparent corners or shadows stay unframed, with no solid backing.
- Sketch speaks pen and paper. Boxes are drawn twice with uneven corners, hovers and selections are a yellow marker stroke, and the current header section is circled in solid pen while hovering or focusing another pencils in the same loop, dotted. Section headings sit on a dimension line that starts 10px before the words. Article images with a solid background (every JPEG, and PNGs whose edges are opaque, read from a small canvas as Terminal does) get a pen line and an offset second stroke, so white screenshots don't melt into the paper; transparent diagrams stay bare. Grid lines never run behind reading text: the reading column, rail, newsletter, and footer are pen-edged sheets, and every grid (the page's and the nav's) is attached to the window with the same origin, so the lines stay continuous while you scroll. A link's squiggle hugs its letters (2px below, skipping descenders), and a wrapped link keeps each line's padding and at least 1.6 lines of room, so the squiggle never touches the line below.
- 3D moves only through the individual
translate,rotate, andscaleproperties on hover, leavingtransformto the pointer tilt so the two never fight. A lifted key has left part of its old spot, so while it's hovered an invisible::afterpad covers that spot and keeps the hover from flickering at its edges. Colors and shadows change on the very next frame; only the motion springs. - In every style, icons fit inside their boxes, extrusions and shadows included; an automated check compares each icon's drawn bounds with its clipping box.
There are eight preset palettes: Blue, Yellow, Pink, Green, Purple, PICO-8, Black, and Brown. Custom color uses the site's existing OKLCH generator. Light, Dark, and Auto are modes. Auto follows the device; a preview never reads or writes the site's saved choices.
Production selection is owned by header.shtml and kirupa.js. Pixel has no style class. Other styles use html.style_NAME. A dark preset uses theme_NAME_dark plus theme_dark, not the light palette class at the same time. The feature switches in header.shtml determine which styles are offered.
Readers set all of this in Customize Theme, which every page's header opens. Choices save in that browser only, and the motion groups store only what differs from their defaults, so readers who never change them follow future defaults:
| Group | Choices | Default | Saved as |
|---|---|---|---|
| Style | Pixel, Smooooth, Sci-Fi, Minimal, Ukiyo-e, Plakat, Terminal, Sketch, 3D | Pixel | kirupaStyle |
| Color | Eight presets or a custom color | Blue | kirupaTheme, plus kirupaCustomColor and kirupaCustomThemeCSS for a custom color |
| Mode | Light, Dark, Auto | Auto | kirupaDarkMode, absent for Auto |
| Background icons | Motion, Icons, Strength, Lines, Drift rests | Playful, Some, Faint, On, After 3s | kirupaBackgroundIcons |
| Content reveals | Off, Figures only, All sections | All sections | kirupaContentReveals |
Reset to default returns every group to its default; the last custom color stays remembered for the rainbow swatch. The header applies style, color, and mode before first paint and announces each change with kirupa:themechange. Background icons follow the style: Pixel uses its 16px art, Plakat draws its geometric icons, the other styles use their own icon sets (Sketch and 3D included), Minimal switches to light-ink art on dark pages, and each style draws the lines between icons its own way. Pages that run their own motion or reveal (html[data-motion] or html[data-reveal]) leave that group out of the dialog. Motion lists every motion setting.
Each preview is a separate document using the real CSS and, where needed, the real visual renderer. Controls change only that document. Asset previews identify fixed artwork, themed masks, and sprite cells explicitly. The outer tutorial shell uses the actual site theme customizer and saved preferences; choosing a specimen's style never calls that customizer or changes its stored state.
The actual navigation and sky
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
- Do exercise style x palette x mode; dark mode alone is not a visual style.
- Do let plakat.js draw Plakat's card art from .github/tools/plakat-cutouts.py: every color block is one height (--pfArtH), and the cut-outs stay flat paper in palette slot colors. Never hand-place art on a card, stagger block heights, or add isometric 3D, grain, gradients, or shadows.
- Do use buildCustomThemeCSS for a custom color, not a hand-tinted approximation.
- Do not call the production preference or onboarding APIs from a specimen.