Skip to content

Commit 0352edd

Browse files
committed
Color update
1 parent 645c3a6 commit 0352edd

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

‎.github/theme/custom.css‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* Obsidian brand colours: a deep jade green, distinct from Basalt's orange.
2+
*
3+
* brand-1 carries link and accent text, brand-2 is its hover state, and
4+
* brand-3 is the solid button background, which VitePress pairs with white
5+
* text -- so it stays dark enough to keep that readable. */
6+
7+
:root {
8+
--vp-c-brand-1: #17795a;
9+
--vp-c-brand-2: #13664c;
10+
--vp-c-brand-3: #0f5540;
11+
--vp-c-brand-soft: rgba(23, 121, 90, 0.14);
12+
13+
--vp-home-hero-name-color: transparent;
14+
--vp-home-hero-name-background: linear-gradient(
15+
120deg,
16+
#13664c 15%,
17+
#1e9b6b 55%,
18+
#46c48d 90%
19+
);
20+
}
21+
22+
.dark {
23+
--vp-c-brand-1: #5fd7a4;
24+
--vp-c-brand-2: #3cc48c;
25+
--vp-c-brand-3: #17805a;
26+
--vp-c-brand-soft: rgba(95, 215, 164, 0.16);
27+
28+
--vp-home-hero-name-background: linear-gradient(
29+
120deg,
30+
#1fae77 15%,
31+
#4fd69f 55%,
32+
#8fe9c4 90%
33+
);
34+
}

‎.github/theme/index.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import './custom.css'
3+
4+
export default DefaultTheme

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ jobs:
5050
# included, so it can start out empty and never needs seeding by hand.
5151
- name: Update documentation source
5252
run: |
53-
mkdir -p site/docs/.vitepress
53+
mkdir -p site/docs/.vitepress/theme
5454
mkdir -p site/docs/api
5555
mkdir -p site/docs/guides
5656
rsync --archive --delete \
5757
"$RUNNER_TEMP/obsidian-api/" site/docs/api/
5858
rsync --archive --delete \
5959
source/guides/ site/docs/guides/
6060
cp source/.github/vitepress.config.mts site/docs/.vitepress/config.mts
61+
cp source/.github/theme/index.ts site/docs/.vitepress/theme/index.ts
62+
cp source/.github/theme/custom.css site/docs/.vitepress/theme/custom.css
6163
cp source/.github/docs-index.md site/docs/index.md
6264
cp source/.github/docs-home.md site/docs/home.md
6365
cp source/.github/site/package.json site/package.json

0 commit comments

Comments
 (0)