Skip to content

refactor(core): rename --app-shell-type-* to --type-* - #606

Open
wemra3 wants to merge 1 commit into
mainfrom
refactor/type-token-prefix
Open

wemra3 wants to merge 1 commit into
mainfrom
refactor/type-token-prefix

Conversation

@wemra3

@wemra3 wemra3 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Rename the typography role variables from --app-shell-type-<role>-<slot> to --type-<role>-<slot>. This follows the review note on #572.

--app-shell-font-sans has the prefix because --font-* is a Tailwind theme namespace. --type-* is not a Tailwind namespace, and the bridge writes --text-<role>, so the prefix is not needed. Without it, the names match the colour roles (--danger-*, ...) and --semantic-shadow-*.

Compatibility

The roles from #572 are not released yet. The latest release is 1.16.0, and the changeset quiet-roles-align.md is still pending. So no app depends on --app-shell-type-*, and this PR edits that changeset instead of adding a new one.

Changes

  • themes/default.css, theme.bridge.css, theme.css, _template.css: rename the variables.
  • decisions/typography-roles.md: replace the reason for the prefix with the reason for no prefix.
  • Styling guide (docs-src and the generated docs) and the pending changeset: use the new names.
  • Tests (theme-bridge.test.ts, utils.test.ts, typography-compile.test.ts): use the new names.

Follow-up in other open PRs

Test

  • vitest run for theme-bridge.test.ts, utils.test.ts, typography-compile.test.ts, semantic-contrast.test.ts: 107 passed
  • docs:check: no blocking issues
  • fmt:check: passed

🤖 Generated with Claude Code

The typography role variables were prefixed to follow
--app-shell-font-sans, but that prefix exists only because --font-* is a
Tailwind theme namespace. --type-* is not, so drop the prefix to match the
colour roles and --semantic-shadow-*. The roles are not released yet
(latest is 1.16.0), so no app depends on the old names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wemra3
wemra3 requested a review from a team as a code owner October 14, 2026 00:04
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report

main (95bc8f2) #606 (4acbee3) +/-
Coverage 88.7% 88.7% 0.0%
Test Execution Time 2m21s 2m21s 0s
Details
  |                     | main (95bc8f2) | #606 (4acbee3) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          88.7% |          88.7% | 0.0% |
  |   Files             |            208 |            208 |    0 |
  |   Lines             |           6285 |           6285 |    0 |
  |   Covered           |           5575 |           5575 |    0 |
  | Test Execution Time |          2m21s |          2m21s |   0s |

Reported by octocov

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.

1 participant