Skip to content

The loop theme is the agent theme - #52

Merged
echarles merged 4 commits into
mainfrom
feat/agent-theme
Nov 22, 2026
Merged

echarles merged 4 commits into
mainfrom
feat/agent-theme

Conversation

@echarles

Copy link
Copy Markdown
Member

The loop theme is renamed agent, with no alias or re-export.

  • Theme id 'loop' becomes 'agent' (ThemeVariant, themeConfigs, themeTokens, the hue and palette tables, the logo variant).
  • loopTheme, loopThemeStyles, loopColors, loopEyes become agentTheme, agentThemeStyles, agentColors, agentEyes; the other loop* exports and the keys of agentColors (agentBrand, agentAccent, ...) follow.
  • The theme's custom properties --loop-* become --agent-*.
  • style/loop-face.css becomes style/agent-face.css.
  • Tests (agentClean, agentContrast, agentType and the others), stories, gallery, README and changelog follow. Comments no longer carry planning ids.

Breaking for consumers; it ships with the matching rename in its consumers, so it should not be merged on its own.

Tests: vitest run src, 27 files, 195 tests green.

The theme id 'loop' is 'agent', with no alias. loopTheme, loopThemeStyles,
loopColors and loopEyes are agentTheme, agentThemeStyles, agentColors and
agentEyes, and the other loop* exports follow. The theme's custom properties
are --agent-*, and style/loop-face.css is style/agent-face.css. The tests,
stories, gallery, README and changelog follow, and the comments no longer
carry planning ids.
Copilot AI balanced review requested due to automatic review settings November 22, 2026 10:30
…hydration, the default standing (a page that remembered 'loop' broke reading an undefined theme)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Removing the loop theme key without migrating persisted current and variant preferences leaves invalid theme values that can crash ThemedProvider on reload or variant activation.

1 open issue
What changed in this PR

Renames the loop theme to agent across Primer Addons’ web and portable interfaces, without compatibility aliases. This breaking change is intended to ship alongside matching consumer updates.

Changes:

  • Renames theme identifiers, exports, custom properties, and the font stylesheet.
  • Updates existing tests, stories, and gallery text to use Agent naming.
  • Refreshes documentation and removes planning identifiers from comments.
File Description
style/​agent-face.css Renames the stylesheet and updates import guidance.
src/​utils/​Portals.tsx Removes a planning identifier from a comment.
src/​theme/​themeTokens.ts Renames the theme entry and palette references.
src/​theme/​themes/​sunThemeStyles.ts Updates the shared-shape comment.
src/​theme/​themes/​sandThemeStyles.ts Updates the shared-shape comment.
src/​theme/​themes/​roundedShape.ts Renames shared radius custom properties.
src/​theme/​themes/​metalThemeStyles.ts Uses renamed Agent styles and properties.
src/​theme/​themes/​ivoryThemeStyles.ts Updates the shared-shape comment.
src/​theme/​themes/​agentThemeStyles.ts Renames style exports and custom properties.
src/​theme/​themes/​agentTheme.ts Renames the Primer theme export.
src/​theme/​themeRegistry.ts Registers the Agent Primer theme.
src/​theme/​portable.ts Forwards the renamed eye-geometry module.
src/​theme/​palettes/​ColorPalette.tsx Uses Agent identifiers and colors.
src/​theme/​index.ts Exports renamed theme and geometry modules.
src/​theme/​DatalayerThemeProvider.tsx Removes a planning identifier from a comment.
src/​theme/​css/​primerBaseVars.ts Updates theme naming in a comment.
src/​theme/​css/​createThemeCSSVars.ts Removes planning identifiers from documentation.
src/​theme/​colors/​themeAccents.ts Updates comments; accent behavior is unchanged.
src/​theme/​colors/​metalColors.ts Inherits the renamed Agent color keys.
src/​theme/​colors/​index.ts Exports and registers Agent colors.
src/​theme/​colors/​hueColors.ts Renames the theme-specific hue entry.
src/​theme/​colors/​agentColors.ts Renames the color object and branded keys.
src/​theme/​agentEyes.ts Renames the module and revises wordmark comments.
src/​theme/​__tests__/​themeStylesheet.test.tsx Uses Agent in stylesheet assertions.
src/​theme/​__tests__/​themeShape.test.ts Uses Agent in shared-shape assertions.
src/​theme/​__tests__/​portable.test.ts Checks renamed portable tokens.
src/​theme/​__tests__/​paletteColors.test.ts Uses the Agent palette identifier.
src/​theme/​__tests__/​metalTheme.test.ts Compares Metal against renamed Agent styles.
src/​theme/​__tests__/​agentType.test.ts Renames typography tests and stylesheet references.
src/​theme/​__tests__/​agentContrast.test.ts Renames contrast and motion references.
src/​theme/​__tests__/​agentClean.test.ts Renames visual-rule tests and token references.
src/​reactor/​ThemePlugin.ts Updates product naming in a comment.
src/​reactor/​page-layout/​PageLayoutPlugin.ts Updates workspace naming in comments.
src/​reactor/​page-layout/​PageLayout.tsx Updates workspace and motion comments.
src/​reactor/​index.ts Updates workspace naming in documentation.
src/​reactor/​__tests__/​pagePanelMotion.test.ts Checks pane motion under Agent.
src/​components/​toolbar/​ToolbarButton.tsx Updates the control-radius comment.
src/​components/​sheet/​Sheet.tsx Updates the theme example in documentation.
src/​components/​logo/​DatalayerLogo.tsx Renames the logo variant and color references.
src/​components/​logo/​DatalayerLogo.stories.tsx Selects Agent in the logo story.
src/​components/​hover-card/​HoverCard.tsx Updates the theme example in documentation.
src/​components/​entity-avatar/​EntityAvatar.tsx Updates the radius comment.
src/​components/​color/​ColorSwatch.tsx Updates the card-radius comment.
src/​components/​card/​Card.tsx Updates theme naming in documentation.
src/​components/​calendar-picker/​CalendarPicker.tsx Updates the control-radius comment.
src/​components/​box/​boxTokens.ts Updates token comments and removes a planning identifier.
src/​components/​box/​Box.tsx Updates theme examples in documentation.
src/​components/​box/​Box.stories.tsx Updates the corners story comment.
src/​components/​box/​__tests__/​boxCss.test.ts Checks renamed hairline and radius properties.
src/​components/​appearance/​ThemePreviewCard.tsx Updates the corner-spacing comment.
src/​components/​appearance/​ThemePreviewCard.stories.tsx Uses Agent as the story default.
src/​components/​appearance/​ThemeCircle.stories.tsx Includes Agent in the theme cycle.
src/​components/​appearance/​ColorModeCircle.tsx Updates the control-shape comment.
src/​components/​appearance/​CollaboratorPalette.stories.tsx Renames the Agent dark-mode story.
src/​components/​appearance/​AppearanceMenu.stories.tsx Uses Agent in the color-mode-only example.
src/​components/​appearance/​AppearanceControls.tsx Updates the control-radius comment.
src/​components/​appearance/​__tests__/​AppearanceColorModeOnly.test.tsx Uses Agent in appearance-control tests.
README.md Documents renamed APIs, properties, and examples.
examples/​gallery/​src/​gallery/​GalleryPage.tsx Updates the card-radius comment.
examples/​gallery/​src/​components/​PrimerDemo.tsx Updates theme guidance in a comment.
examples/​gallery/​src/​components/​HoverCardDemo.tsx Updates theme guidance in a comment.
examples/​gallery/​src/​components/​EntityAvatarDemo.tsx Updates theme naming in a comment.
examples/​gallery/​src/​components/​CardDemo.tsx Updates comments and the overlay caption.
examples/​gallery/​src/​components/​BoxDemo.tsx Updates comments and theme-related captions.
CHANGELOG.md Records the breaking rename and migration names.
.github/​workflows/​build.yaml Removes planning identifiers from comments only.

Review effort: Balanced

Comment thread src/theme/themeTokens.ts
label: 'Loop',
description: 'Very clean: one soft accent, neutral everything else. The look of an application built in LOOP.',
brandColor: loopColors.loopBrand,
agent: {
…_THEMES), a person's choice following the renamed theme; the legacy upgrade's anonymous variant is site-anonymous
…y no longer has is dropped, a stored loop read as agent
@echarles
echarles merged commit 5a39a17 into main Nov 22, 2026
8 checks passed
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