Skip to content

Add RocketSim branding and custom styling to Starlight docs#912

Merged
ngnijland merged 17 commits intomasterfrom
claude/apply-docs-branding-WJFh9
Feb 4, 2026
Merged

Add RocketSim branding and custom styling to Starlight docs#912
ngnijland merged 17 commits intomasterfrom
claude/apply-docs-branding-WJFh9

Conversation

@ngnijland
Copy link
Collaborator

@ngnijland ngnijland commented Jan 28, 2026

  • Apply RocketSim branding with custom theme colors, logos, and styling
  • Add custom Starlight components for enhanced documentation experience
    • Configure sidebar navigation with organized feature categories
    • Add social links, edit links, and footer navigation

claude and others added 17 commits January 28, 2026 17:37
- Add custom CSS with RocketSim color palette (primary blue #0093ff, dark backgrounds)
- Configure logo, favicon, and social links in Starlight config
- Create custom SiteTitle component for proper logo display
- Create custom Head component for favicon and meta tags
- Update PageTitle with rounded buttons using CSS variables
- Update FeatureCard with brand-consistent styling and border radius

https://claude.ai/code/session_012viNqjBQiSjVo33oC3bYCc
Add more specific CSS selectors to ensure active sidebar items
are visible with the accent color styling.

https://claude.ai/code/session_012viNqjBQiSjVo33oC3bYCc
The active state has accent background, so text needs to be white
for proper contrast and visibility.

https://claude.ai/code/session_012viNqjBQiSjVo33oC3bYCc
- Use proper :root[data-theme="light"] selector for light mode
- Properly configure accent color scale (low, default, high)
- Use Starlight's gray scale convention (gray-1 through gray-6)
- Use CSS variables consistently throughout
- Add proper light theme accent colors
- Improve code organization with section comments
- Reference Starlight CSS guide in header

Based on https://starlight.astro.build/guides/css-and-tailwind/

https://claude.ai/code/session_012viNqjBQiSjVo33oC3bYCc
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive RocketSim branding and custom styling to the Starlight documentation theme. The changes establish a consistent visual identity across the documentation site, matching the main RocketSim website's design language.

Changes:

  • Added extensive custom CSS file (430 lines) with RocketSim color palette, typography, and component styling for dark and light themes
  • Created custom Starlight components (SiteTitle, Head, Footer) with RocketSim branding and navigation
  • Implemented custom 404 pages for both main site and docs with appropriate redirects
  • Updated color scheme throughout existing stylesheets for brand consistency

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/src/styles/starlight-custom.css New comprehensive CSS file defining RocketSim theme colors, typography, and custom styling for all Starlight components with dark/light mode support
docs/src/styles/main.css Updated primary color accent and active states to harmonize with new Starlight theme colors
docs/src/styles/buttons.css Added focus-visible styles to primary buttons for improved accessibility
docs/src/pages/404.astro New custom 404 page with redirect logic to route docs paths to Starlight's 404 page
docs/src/content/docs/docs/404.md New Starlight 404 page with splash template and navigation action
docs/src/content/docs/docs/index.mdx Added pagefind: false to exclude homepage from search indexing
docs/src/content/docs/docs/getting-started/testimonials.mdx Added pagefind: false to exclude testimonials from search indexing
docs/src/config/theme.json Updated theme colors to match new brand color scheme
docs/src/components/starlight/SiteTitle.astro New custom site title component with RocketSim logo and DOCS badge
docs/src/components/starlight/PageTitle.astro Updated action buttons with rounded styling and new color scheme
docs/src/components/starlight/Head.astro New custom head component with proper favicon references and meta tags
docs/src/components/starlight/Footer.astro New custom footer with links to home, teams, Mac App Store, and contact
docs/src/components/starlight/FeatureCard.astro Enhanced card styling with updated colors, border radius, and hover effects
docs/src/assets/rocketsim-logo-dark.svg New dark version of RocketSim logo for light theme
docs/astro.config.ts Extensive Starlight configuration including logo, social links, custom components, and 404 exclusions from sitemap

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

:root[data-theme="light"] .sl-link-button:hover {
background: var(--sl-color-accent-low);
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The light mode hover state for .sl-link-button uses --sl-color-accent-low (#cce4ff), which is a very light blue color. This may result in insufficient color contrast against light backgrounds, potentially causing accessibility issues. The white text (color: #fff) on this very light blue background might not meet WCAG AA contrast requirements. Consider using a darker hover color like --sl-color-accent-high (#003d80) for better contrast in light mode.

Suggested change
background: var(--sl-color-accent-low);
background: var(--sl-color-accent-high);

Copilot uses AI. Check for mistakes.
Comment on lines 84 to 95
.action-button.secondary {
background: transparent;
color: var(--sl-color-white);
border: 1px solid var(--sl-color-gray-5);
background: #373739;
color: white;
border: 1px solid #373739;
transition: all 0.3s ease;
}

.action-button.secondary:hover {
border-color: var(--sl-color-text-accent);
background: var(--sl-color-gray-6);
:global([data-theme="light"]) .action-button.secondary {
background: #e9ecef;
color: #373739;
border-color: #e9ecef;
}
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The secondary action button lacks a hover state definition. Users won't receive visual feedback when hovering over the "Product Tour" button. Consider adding a hover state similar to the primary button, such as changing the background opacity or adjusting the border/background color to provide visual feedback.

Copilot uses AI. Check for mistakes.
@ngnijland ngnijland merged commit 0de3cbf into master Feb 4, 2026
7 checks passed
@ngnijland ngnijland deleted the claude/apply-docs-branding-WJFh9 branch February 4, 2026 13:18
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