Skip to content

Commit

Permalink
design tweaks (#2141)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Fil and CobusT authored Aug 26, 2024
1 parent e50254d commit f3df5c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
42 changes: 22 additions & 20 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
:root {
--vp-c-purple-1: #7135be;
--vp-c-purple-2: #7f42cd;
--vp-c-purple-3: #9555e2;
--vp-c-purple-soft: rgba(155, 91, 233, 0.14);
--vp-c-red: #f43f5e;
--vp-c-green: #10b981;
--vp-c-blue: #0092ff;
--vp-c-purple: #a463f2;
--vp-c-brand-1: var(--vp-c-purple-1);
--vp-c-brand-2: var(--vp-c-purple-2);
--vp-c-brand-3: var(--vp-c-purple-3);
--vp-c-brand-soft: var(--vp-c-purple-soft);
--vp-font-family-base: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu,
roboto, noto, "segoe ui", arial, sans-serif;
--sans-text: Inter, var(--vp-font-family-base);
--theme-phosphate: #148576;
--theme-phosphate-2: #1da492;
--theme-phosphate-3: #26c1ad;
--theme-phosphate-soft: #d7fbf7;
--vp-c-brand-1: var(--theme-phosphate); /* link and brand color */
--vp-c-brand-2: var(--theme-phosphate-2);
--vp-c-brand-3: var(--theme-phosphate-3);
--hero-brand-contrast: rgb(243, 139, 233); /* home page alt color */
--vp-c-brand-soft: var(--theme-phosphate-soft);
--mono-heading: "Spline Sans Mono", monospace;
--vp-font-family-mono: var(--mono-heading);
--vp-font-family-base: Inter, -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
--vp-code-font-size: 14px;
--vp-code-line-height: 1.5;
}

.dark {
--vp-c-purple-1: #db96ff;
--vp-c-purple-2: #9a5ae8;
--vp-c-purple-3: #884ad6;
--vp-c-purple-soft: rgba(155, 91, 233, 0.16);
--theme-phosphate: #37d5be;
--theme-phosphate-2: #28b39e;
--theme-phosphate-3: #1b9583;
--hero-brand-contrast: rgb(183, 41, 169);
--theme-phosphate-soft: #033a32;
--vp-c-text-1: #f5f5f5;
}

.vp-doc {
font-family: var(--sans-text);
font-weight: 500;
}

.vp-doc h1 {
font-family: var(--mono-heading);
font-weight: 500;
}

.vp-doc p {
line-height: 1.5;
}

.vp-doc a {
color: var(--vp-c-text-1);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ features:

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

:root.dark .VPHero .VPImage {
Expand Down

0 comments on commit f3df5c5

Please sign in to comment.