Skip to content

v6: Restyle doc-explorer to v6 design tokens#4294

Merged
trevor-scheer merged 6 commits into
graphiql-6from
trevor/restyle-doc-explorer
May 17, 2026
Merged

v6: Restyle doc-explorer to v6 design tokens#4294
trevor-scheer merged 6 commits into
graphiql-6from
trevor/restyle-doc-explorer

Conversation

@trevor-scheer
Copy link
Copy Markdown
Contributor

@trevor-scheer trevor-scheer commented May 17, 2026

Summary

  • Migrate @graphiql/plugin-doc-explorer CSS from v5 HSL tokens to v6 OKLCH tokens.
  • Use PanelHeader for the panel header.
  • Type names: --accent-orange. Field and enum names: --accent-green-light. Argument names: --accent-purple.

Test plan

  • Open the Docs panel in the example app; confirm type/field colors match the v6 palette and navigation (back button, search) still works.
  • Check the DocExplorer Storybook stories: schema overview, type detail variants (object, enum, input), field detail, and token colors story.
  • Verify the search overlay still expands over the header title (focus the search icon while on a nested type page).

Refs: #4219

Migrates all CSS in `@graphiql/plugin-doc-explorer` from v5 HSL tokens
to v6 OKLCH tokens. Type names use `--accent-orange`, field and enum
names use `--accent-green-light`, argument names use `--accent-purple`.
Wraps the panel chrome in the new `PanelHeader` primitive.
Adds `.storybook/` config and stories under `src/stories/` to the
`@graphiql/plugin-doc-explorer` package. Covers schema overview, type
detail (object, enum, input), field detail, and a token-color reference.
Convert remaining `hsl(var(...))` references in `directive.css` and
`default-value.css` to v6 OKLCH tokens: `--accent-purple` for
directives and `--accent-green` for default values.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 17, 2026

🦋 Changeset detected

Latest commit: a08df81

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

The latest changes of this PR are not available as canary, since there are no linked changesets for this PR.

@trevor-scheer trevor-scheer marked this pull request as ready for review May 17, 2026 23:47
@trevor-scheer trevor-scheer enabled auto-merge (squash) May 17, 2026 23:47
@trevor-scheer trevor-scheer merged commit 92567d5 into graphiql-6 May 17, 2026
21 of 22 checks passed
@trevor-scheer trevor-scheer deleted the trevor/restyle-doc-explorer branch May 17, 2026 23:53
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