File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed
Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 7575 --badge-cyan : oklch (0.571 0.181 210 );
7676}
7777
78+ @media (prefers-contrast : more) {
79+ : root[data-theme = 'dark' ] {
80+ /* text colors */
81+ --fg : oklch (1 0 0 );
82+ --fg-muted : oklch (0.769 0 0 );
83+ --fg-subtle : oklch (0.693 0 0 );
84+
85+ /* border, separator colors */
86+ --border : oklch (0.769 0 0 );
87+ --border-subtle : oklch (0.739 0 0 );
88+ --border-hover : oklch (0.771 0 0 );
89+ }
90+
91+ : root[data-theme = 'light' ] {
92+ /* text colors */
93+ --fg : oklch (0 0 0 );
94+ --fg-muted : oklch (0.329 0 0 );
95+ --fg-subtle : oklch (0.4 0 0 );
96+
97+ /* border, separator colors */
98+ --border : oklch (0.3514 0 0 );
99+ --border-subtle : oklch (0.422 0 0 );
100+ --border-hover : oklch (0.315 0 0 );
101+ }
102+ }
103+
78104html {
79105 -webkit-font-smoothing : antialiased;
80106 -moz-osx-font-smoothing : grayscale;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const pkgDescription = useMarkdown(() => ({
3232 <article
3333 class =" group card-interactive scroll-mt-48 scroll-mb-6 relative focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-fg/50 focus-within:bg-bg-muted focus-within:border-border-hover"
3434 :class =" {
35- 'border-accent/30 bg-accent/5': isExactMatch,
35+ 'border-accent/30 contrast-more:border-accent/90 bg-accent/5': isExactMatch,
3636 }"
3737 >
3838 <!-- Glow effect for exact matches -->
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ defineProps<{
1515 <article
1616 class =" group card-interactive relative focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-fg/50 focus-within:bg-bg-muted focus-within:border-border-hover"
1717 :class =" {
18- 'border-accent/30 bg-accent/5': isExactMatch,
18+ 'border-accent/30 contrast-more:border-accent/90 bg-accent/5': isExactMatch,
1919 }"
2020 >
2121 <!-- Glow effect for exact matches -->
You can’t perform that action at this time.
0 commit comments