OpenSpec changes › add-style-topics · version 1 · 2026-09-25 04:03 UTC
name
add-style-topics
description
Stylesheets written as topics, so a user's AI can make a new look
spec
style-topics
status
archived
date
2026-09-24
tags
ai, spec, openspec, change

Proposal

Why

The two built-in stylesheets were the only looks d2 had, and changing one meant changing code. A user should be able to ask their AI for a new look (colours, fonts, the logo text) and get it without an install or a deploy.

What Changes

Impact

Tasks

1. Build

2. Document

Design

Spec delta

ADDED 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