Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,31 @@ div[class*="language-"] .copy:hover {
--vp-local-search-highlight-text: var(--vp-c-brand-1);
}

/* Algolia DocSearch customization */
.DocSearch {
--docsearch-primary-color: var(--vp-c-brand-1) !important;
--docsearch-highlight-color: var(--vp-c-brand-1) !important;
--docsearch-muted-color: var(--vp-c-text-2) !important;
--docsearch-hit-color: var(--vp-c-text-1) !important;
--docsearch-hit-active-color: var(--vp-c-text-1) !important;
--docsearch-hit-background: var(--vp-c-bg-soft) !important;
}

/* Saturated cyan-teal background for selected search results */
.DocSearch-Hit[aria-selected="true"] {
background-color: rgba(0, 217, 255, 0.1) !important;
}

.DocSearch-Hit[aria-selected="true"] a {
background-color: rgba(0, 217, 255, 0.1) !important;
}

.dark .DocSearch-Hit[aria-selected="true"] {
background-color: rgba(0, 217, 255, 0.08) !important;
}

.dark .DocSearch-Hit[aria-selected="true"] a {
background-color: rgba(0, 217, 255, 0.08) !important;
}
Comment on lines +569 to 584
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

The cyan-teal color value rgba(0, 217, 255, ...) is hardcoded and repeated 4 times. Consider defining a CSS custom property for the base color to improve maintainability and consistency.

Copilot uses AI. Check for mistakes.

/* Page transitions */
Expand Down
Loading