Skip to content

Commit 34cb5af

Browse files
committed
Tweak theming
1 parent c1934c8 commit 34cb5af

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { h } from 'vue'
33
import type { Theme } from 'vitepress'
44
import DefaultTheme from 'vitepress/theme'
5-
import '@catppuccin/vitepress/theme/mocha/red.css'
5+
import '@catppuccin/vitepress/theme/mocha/sapphire.css'
66
import './style.css'
77

88
export default {

.vitepress/theme/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
11
:root {
22
--vp-nav-logo-height: 36px;
3+
--vp-c-brand-alt-1: #d20f39;
4+
--vp-c-brand-alt-2: rgb(187, 13, 51);
5+
--vp-c-brand-alt-3: #d20f39;
6+
7+
--vp-home-hero-name-color: var(--vp-c-brand-alt-1);
8+
}
9+
10+
.dark {
11+
--vp-c-brand-alt-1: #f38ba8;
12+
--vp-c-brand-alt-2: rgb(241, 115, 151);
13+
--vp-c-brand-alt-3: #f38ba8;
314
}
415

16+
.pager,
17+
.header-anchor,
18+
.vp-doc :not(pre, h1, h2, h3, h4, h5, h6) > code,
19+
.VPSidebar
20+
{
21+
--vp-c-brand-1: var(--vp-c-brand-alt-1);
22+
--vp-c-brand-2: var(--vp-c-brand-alt-2);
23+
--vp-c-brand-3: var(--vp-c-brand-alt-3);
24+
}
25+
26+
27+
/* ===== API reference ===== */
28+
529
.odoc-breadcrumbs {
630
margin-bottom: 24px;
731
opacity: 0.75;

0 commit comments

Comments
 (0)