ai:specs › style-topics · version 1 · 2026-09-25 04:03 UTC
name
style-topics
description
Stylesheets written as topics, so a user's AI can make a new look for d2. The same spec as AiSpec:style-topics, in OpenSpec's format.
tags
ai, spec, openspec

style-topics Specification

Purpose

Let a user change how every d2 page looks by asking their AI (the colours, the fonts and the logo text) with nothing to install and no code to change. This is style-topics in OpenSpec's requirement-and-scenario format.

Requirements

Requirement: Stylesheets as topics

The system SHALL accept a stylesheet written as a topic in category Style, through the ordinary topics API.

Scenario: AI makes a stylesheet

Requirement: Logo text

The system SHALL show a Style topic's brand as the logo text on every page while that stylesheet is in use.

Scenario: Picking a branded stylesheet

Requirement: Broken stylesheets are harmless

The system MUST NOT apply a Style topic that has errors; it SHALL list it with its errors instead.

Scenario: Unknown token

Scenario: A broken stylesheet in the cookie