Skip to content

Align theme docs and palette templates#330

Merged
interacsean merged 4 commits into
mainfrom
fix/theme-docs-alignment
Jun 24, 2026
Merged

Align theme docs and palette templates#330
interacsean merged 4 commits into
mainfrom
fix/theme-docs-alignment

Conversation

@IzumiSy

@IzumiSy IzumiSy commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

This is a small follow-up to the theme foundation work in #306. The theme model itself is already in place, but some of the public guidance still reflected earlier assumptions, which made palette authoring look more complex than the shipped API really is.

This PR tightens that up by:

  • aligning theming docs with the actual public CSS entrypoints: @tailor-platform/app-shell/styles and optional @tailor-platform/app-shell/themes/*
  • simplifying palette authoring guidance so shared aliases are treated as inherited from default.css instead of something each branded theme has to repeat
  • updating the palette template and color demo to match the current light/dark model and show the author-facing gradient inputs (base + tint)
  • removing the now-unused --shell-gradient-start / --shell-gradient-end derived vars, since themes and core styles both read directly from base + tint

Why this follow-up matters

The previous theme foundation PR established the implementation, but there was still drift between:

  • the runtime model
  • the palette template
  • the docs / example app

That drift showed up as concepts that looked public but are not really part of the author-facing API anymore, such as defaultThemePalette, data-theme, and derived shell gradient tokens. This PR removes that ambiguity so future palette work starts from the same mental model as the shipped code.

@IzumiSy IzumiSy requested a review from a team as a code owner June 24, 2026 04:31
@IzumiSy IzumiSy force-pushed the fix/theme-docs-alignment branch from 50190f3 to 3e96c83 Compare June 24, 2026 04:33
| --------------------- | --------------------- | ------------------------------------------------------------- |
| **1. Brand** | Yes | `primary`, `secondary`, `accent` (+ foregrounds) — both modes |
| **2. Shell gradient** | Branded palettes only | `--shell-gradient-base`, `--shell-gradient-tint` |
| **3. Derived** | Copy verbatim | Ring, sidebar aliases, gradient stops — do not edit |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed Derived here

@IzumiSy IzumiSy force-pushed the fix/theme-docs-alignment branch from e49ff84 to 0c3b5db Compare June 24, 2026 04:53
@interacsean interacsean merged commit 761da47 into main Jun 24, 2026
5 checks passed
@interacsean interacsean deleted the fix/theme-docs-alignment branch June 24, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants