Skip to content

Commit 75fe4fe

Browse files
teallarsonclaude
andcommitted
Use design system --primary var for Algolia highlight colors
Replaces hardcoded hsl(347 ...) values with var(--primary) from @arcadeai/design-system tokens and color-mix() for transparent tints. Dark mode text override removed since --primary resolves identically in both modes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31d25ad commit 75fe4fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/globals.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,16 @@ nav > div:has(.algolia-search-button) {
160160
/* Algolia search hit highlight — brand red */
161161
.ais-Highlight-highlighted,
162162
.ais-Snippet-highlighted {
163-
background: hsl(347 100% 50% / 0.15);
164-
color: hsl(347 100% 45%);
163+
background: color-mix(in oklch, var(--primary) 15%, transparent);
164+
color: var(--primary);
165165
border-radius: 2px;
166166
font-style: normal;
167167
font-weight: 600;
168168
}
169169

170170
.dark .ais-Highlight-highlighted,
171171
.dark .ais-Snippet-highlighted {
172-
background: hsl(347 100% 50% / 0.2);
173-
color: hsl(347 100% 65%);
172+
background: color-mix(in oklch, var(--primary) 20%, transparent);
174173
}
175174

176175
/* Override Nextra code highlight colors to use green instead of red */

0 commit comments

Comments
 (0)