chore(docs): rebrand Pages site to match usesmileid.com#6
Conversation
Apply Smile ID corporate styling to the OpenAPI reference site: - Add a fixed top header with "Smile ID" wordmark + orange-dot accent, "API Reference" subtitle, and quick links to docs.usesmileid.com / usesmileid.com. - Switch the sidebar to deep navy (#00065C) with orange left-border accent on the active spec, matching the brand palette pulled from usesmileid.com. - Theme Redoc with the same palette: navy primary (#151F72), brand-blue links (#1E40AF, hover #001096), orange warnings (#FF9B00), green success (#00A544), red error (#FB2C36). - Use Epilogue (the corporate font) loaded from Google Fonts, with proper system-font fallbacks. Apply it to Redoc body, headings, and as the wrapper font. - Style HTTP method colors to match the corporate palette (GET = brand blue, POST = green, PUT = orange, DELETE = red, PATCH = purple). - Switch Redoc's per-spec sidebar to warm cream (#F9F0E7) and the request-sample right panel to dark navy (#0B0F2C) for a Stripe-like contrast layout. - Add a small footer block at the bottom of the spec-list sidebar pointing back to the GitHub repo. - Mobile: collapse the outer sidebar to a top strip under 768px. The SPEC_LIST_START/END markers are preserved unchanged so the upstream sync workflow's regen step still works. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Pull request overview
Rebrands the GitHub Pages OpenAPI reference wrapper (HTML/CSS + Redoc theme) to match usesmileid.com’s visual identity while keeping the existing spec-selection behavior and URL scheme.
Changes:
- Adds a fixed top header with Smile ID branding and external links.
- Restyles the outer spec-selector sidebar and overall typography/colors (Epilogue + new palette).
- Updates Redoc theme configuration (colors, typography, sidebar/right-panel styling) and sets the document title per selected spec.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Three fixes bundled together: - Fix #app height bug. `height: 100vh` plus `padding-top` made the effective height exceed the viewport and produced a double scrollbar. Switch to `height: calc(100vh - var(--header-h))` plus `margin-top` so the layout stays inside the viewport. - Switch the meta description and sidebar footer copy from "Smile Identity" to "Smile ID" to match the rest of the page. - Drop the `paths:` filter on validate.yml. The filter scoped runs to spec/ruleset changes only, but `validate` is now a required check on main, so any PR that doesn't touch specs (this one included) sat permanently waiting for a check that would never fire. Spectral lint is ~10 seconds and parallelizes fine, so always-on is the simplest correct behavior. Workflow file changes on a PR run with the HEAD ref's version, so this PR will trigger the unfiltered validate on itself and unblock. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
User description
Summary
Pulls the visual identity from usesmileid.com and applies it to the OpenAPI reference Pages site.
Brand palette extracted from the corporate site stylesheet:
#151F72(primary) /#001096(deep) /#00065C(deepest)#1E40AF(CTAs, links)#FF9B00(accent — used here for active sidebar item, warning method color)#F9F0E7(warm panel background)#1F2937/#4A5565What changes visually
docs.usesmileid.comandusesmileid.com.Stays the same
<!-- SPEC_LIST_START -->/<!-- SPEC_LIST_END -->markers — kept exactly so the upstream sync regen step continues to work.?spec=<file>URL scheme, deep-linkable.docs/index.html, no per-spec files.Test plan
deploy-docs.ymlredeploys Pages🤖 Generated with Claude Code
PR Type
Enhancement
Description
Rebrand Pages site with Smile ID corporate visual identity
Add fixed header with wordmark, subtitle, and external links
Restyle sidebar in deep navy with orange accent highlights
Apply Epilogue font and brand color palette to Redoc theme
Diagram Walkthrough
File Walkthrough
index.html
Full visual rebrand with corporate palette and layoutdocs/index.html
dimensions
accent), subtitle, and external navigation links
active-item border, uppercase section heading, and a footer linking to
GitHub
brand-blue links, HTTP method colors, Epilogue typography, cream
sidebar, dark right panel)
div#content→main#content,h1→h2forsidebar heading)