Skip to content

Commit 281c614

Browse files
committed
Added Logo and basic styling for docs
1 parent ddb5caf commit 281c614

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

docs/.vitepress/theme/index.ts

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

docs/.vitepress/theme/style.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Customize default theme styling by overriding CSS variables:
3+
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
4+
*/
5+
6+
:root {
7+
--vp-c-brand-1: var(--vp-c-indigo-1);
8+
--vp-c-brand-2: var(--vp-c-indigo-2);
9+
--vp-c-brand-3: var(--vp-c-indigo-3);
10+
--vp-c-brand-soft: var(--vp-c-indigo-soft);
11+
}
12+
13+
/**
14+
* Component: Home
15+
* -------------------------------------------------------------------------- */
16+
17+
:root {
18+
--vp-home-hero-name-color: transparent;
19+
--vp-home-hero-name-background: -webkit-linear-gradient(
20+
120deg,
21+
#0096D6 30%,
22+
#7672E3
23+
);
24+
25+
--vp-home-hero-image-background-image: linear-gradient(
26+
-45deg,
27+
rgba(249, 137, 9, 0.3) 50%,
28+
rgba(207, 95, 157, 0.3) 50%
29+
);
30+
--vp-home-hero-image-filter: blur(44px);
31+
}
32+
33+
@media (min-width: 640px) {
34+
:root {
35+
--vp-home-hero-image-filter: blur(120px);
36+
}
37+
}
38+
39+
@media (min-width: 960px) {
40+
:root {
41+
--vp-home-hero-image-filter: blur(120px);
42+
}
43+
}

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ hero:
99
- theme: brand
1010
text: Getting Started
1111
link: /guide/installation
12+
image:
13+
src: /logo.png
14+
alt: Krescent logo
1215

1316
features:
1417
- icon: 🚀

docs/public/logo.png

16.8 KB
Loading

0 commit comments

Comments
 (0)