Skip to content

Commit f3df5c5

Browse files
FilCobusT
andauthored
design tweaks (#2141)
* brand colors * apply font choices to the whole page; remove font-weight note that Inter is the default font in VitePress * additional tweaks to make it match the changes to Framework docs (#2142) * prettier * brand colors * closes #2146 --------- Co-authored-by: CobusT <[email protected]>
1 parent e50254d commit f3df5c5

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
11
:root {
2-
--vp-c-purple-1: #7135be;
3-
--vp-c-purple-2: #7f42cd;
4-
--vp-c-purple-3: #9555e2;
5-
--vp-c-purple-soft: rgba(155, 91, 233, 0.14);
62
--vp-c-red: #f43f5e;
73
--vp-c-green: #10b981;
84
--vp-c-blue: #0092ff;
95
--vp-c-purple: #a463f2;
10-
--vp-c-brand-1: var(--vp-c-purple-1);
11-
--vp-c-brand-2: var(--vp-c-purple-2);
12-
--vp-c-brand-3: var(--vp-c-purple-3);
13-
--vp-c-brand-soft: var(--vp-c-purple-soft);
14-
--vp-font-family-base: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu,
15-
roboto, noto, "segoe ui", arial, sans-serif;
16-
--sans-text: Inter, var(--vp-font-family-base);
6+
--theme-phosphate: #148576;
7+
--theme-phosphate-2: #1da492;
8+
--theme-phosphate-3: #26c1ad;
9+
--theme-phosphate-soft: #d7fbf7;
10+
--vp-c-brand-1: var(--theme-phosphate); /* link and brand color */
11+
--vp-c-brand-2: var(--theme-phosphate-2);
12+
--vp-c-brand-3: var(--theme-phosphate-3);
13+
--hero-brand-contrast: rgb(243, 139, 233); /* home page alt color */
14+
--vp-c-brand-soft: var(--theme-phosphate-soft);
1715
--mono-heading: "Spline Sans Mono", monospace;
16+
--vp-font-family-mono: var(--mono-heading);
17+
--vp-font-family-base: Inter, -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
18+
--vp-code-font-size: 14px;
19+
--vp-code-line-height: 1.5;
1820
}
1921

2022
.dark {
21-
--vp-c-purple-1: #db96ff;
22-
--vp-c-purple-2: #9a5ae8;
23-
--vp-c-purple-3: #884ad6;
24-
--vp-c-purple-soft: rgba(155, 91, 233, 0.16);
23+
--theme-phosphate: #37d5be;
24+
--theme-phosphate-2: #28b39e;
25+
--theme-phosphate-3: #1b9583;
26+
--hero-brand-contrast: rgb(183, 41, 169);
27+
--theme-phosphate-soft: #033a32;
2528
--vp-c-text-1: #f5f5f5;
2629
}
2730

28-
.vp-doc {
29-
font-family: var(--sans-text);
30-
font-weight: 500;
31-
}
32-
3331
.vp-doc h1 {
3432
font-family: var(--mono-heading);
3533
font-weight: 500;
3634
}
3735

36+
.vp-doc p {
37+
line-height: 1.5;
38+
}
39+
3840
.vp-doc a {
3941
color: var(--vp-c-text-1);
4042
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ features:
9090

9191
:root {
9292
--vp-home-hero-name-color: transparent;
93-
--vp-home-hero-name-background: linear-gradient(-30deg, hsl(200deg 100% 65%), var(--vp-c-purple));
93+
--vp-home-hero-name-background: linear-gradient(-30deg, var(--hero-brand-contrast), var(--vp-c-brand-1));
9494
}
9595

9696
:root.dark .VPHero .VPImage {

0 commit comments

Comments
 (0)