Skip to content

Commit 5818139

Browse files
committedFeb 11, 2024
Update vuepress theme
1 parent 0260ac9 commit 5818139

File tree

4 files changed

+60
-68
lines changed

4 files changed

+60
-68
lines changed
 

‎docs/.vuepress/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = defineUserConfig({
1818
'link',
1919
{
2020
rel: 'stylesheet',
21-
href: 'https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;600&display=swap',
21+
href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap',
2222
},
2323
],
2424
],

‎docs/.vuepress/styles/index.scss

+57-65
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
--c-border-dark: var(--c-border);
1010
--code-bg-color: black;
1111
--code-ln-color: white;
12-
--font-family: 'Inter', sans-serif;
13-
--font-family-code: 'Fira Code', monospace;
12+
--font-family: 'Work Sans', sans-serif; //'Inter', sans-serif;
13+
--font-family-code: 'IBM Plex Mono', monospace;
1414

1515
--gradient-data: rgba(245, 214, 142, 1) 0%, rgba(240, 165, 155, 1) 14%,
1616
rgba(250, 100, 100, 1) 31%, rgba(190, 80, 172, 1) 45%,
@@ -34,82 +34,51 @@ html.dark {
3434
--c-text-lightest: var(--c-brand);
3535
}
3636

37-
// Navbar
38-
.navbar {
39-
background: color-mix(in srgb, var(--c-bg) 30%, transparent);
40-
backdrop-filter: blur(10px);
41-
background-size: 100% 4px;
42-
background-repeat: repeat-x;
43-
background-image: var(--gradient-bg);
44-
border-bottom: 1px solid var(--c-border);
45-
46-
.site-name {
47-
font-size: 1.8rem;
48-
}
49-
50-
padding-top: calc(var(--navbar-padding-v) + 2px);
51-
}
52-
53-
.navbar-item a {
54-
font-size: 1.2rem;
55-
font-family: Gestures, sans-serif;
56-
}
57-
58-
.toggle-color-mode-button {
59-
opacity: 1;
37+
a {
38+
font-weight: inherit;
6039
}
6140

62-
// Uses weird font
6341
h1,
6442
h2,
6543
h3,
6644
h4,
6745
h5,
68-
h6,
69-
.site-name {
70-
font-family: Gestures, sans-serif;
46+
h6 {
47+
font-weight: 500;
7148
}
7249

73-
.site-name,
74-
h1::first-letter,
75-
thead th::first-letter,
76-
.navbar-item a::first-letter {
77-
font-family: Gestures, sans-serif;
78-
font-feature-settings: 'salt';
79-
}
50+
// Navbar
51+
.navbar {
52+
background-color: transparent;
53+
background-repeat: repeat-x;
54+
border-bottom: none;
8055

81-
.home .hero {
82-
#main-title {
83-
font-family: Gestures, sans-serif;
84-
font-feature-settings: 'salt';
85-
font-size: 5rem;
86-
// Draws a outline of the text
87-
-webkit-text-stroke: 1px var(--c-text);
88-
-webkit-text-fill-color: transparent;
56+
.site-name {
57+
font-size: 1.4rem;
58+
font-weight: 400;
59+
background: var(--c-bg);
60+
width: min-content !important;
8961
}
9062

91-
.description {
92-
font-family: Gestures, sans-serif;
63+
padding-top: calc(var(--navbar-padding-v) + 2px);
64+
}
9365

94-
&::first-letter {
95-
font-feature-settings: 'salt';
96-
}
66+
.navbar-item {
67+
a {
68+
background: var(--c-bg);
69+
font-size: 1rem;
9770
}
9871
}
9972

73+
.toggle-color-mode-button {
74+
opacity: 1;
75+
}
76+
10077
.custom-container {
10178
border: none !important;
10279
padding-left: 2rem !important;
10380
border-radius: var(--border-radius);
10481

105-
.custom-container-title {
106-
font-family: Gestures, sans-serif;
107-
108-
&::first-letter {
109-
font-feature-settings: 'salt';
110-
}
111-
}
112-
11382
// Make the border gradient
11483
background-image: linear-gradient(
11584
to right,
@@ -131,7 +100,6 @@ thead th::first-letter,
131100

132101
// Code Blocks
133102
div[class*='language-']::before {
134-
font-family: 'Gestures', sans-serif;
135103
font-size: 1rem;
136104
font-feature-settings: 'salt';
137105
}
@@ -155,30 +123,54 @@ main {
155123

156124
// Sidebar
157125
.sidebar {
158-
// Change the color of scrollbar
159-
&::-webkit-scrollbar-track {
160-
background: transparent;
126+
border-right: none;
127+
128+
.navbar-items {
129+
border: none;
161130
}
162131

163-
&::-webkit-scrollbar-thumb {
164-
background: var(--c-border);
165-
border-radius: 99px 0 0 99px;
132+
.navbar-items a {
133+
font-weight: 500;
166134
}
167135
}
168136

137+
.sidebar-item.sidebar-heading {
138+
font-weight: 500;
139+
}
140+
169141
// Code
170142
code {
171143
border-radius: var(--border-radius);
172144
}
173145

174146
p strong code {
175-
font-family: 'Gestures', sans-serif;
176147
font-size: 1.15rem;
177148
background: none;
178149
color: var(--c-text);
179150
padding: 0;
180151
}
181152

153+
// Home
154+
.home {
155+
.hero {
156+
text-align: left;
157+
158+
h1 {
159+
font-weight: 400;
160+
font-size: 4rem;
161+
}
162+
163+
.description {
164+
max-width: unset;
165+
margin-bottom: 2.5rem;
166+
}
167+
}
168+
169+
.badges {
170+
margin-bottom: 2rem;
171+
}
172+
}
173+
182174
// Table
183175
tr:nth-child(2n) {
184176
background-color: transparent;

‎docs/components/Editor.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const options = {
5858
language: 'javascript',
5959
'bracketPairColorization.enabled': false,
6060
fontLigatures: true,
61-
fontFamily: 'Fira Code',
61+
fontFamily: 'IBM Plex Mono',
6262
folding: false,
6363
lineNumbers: 'off',
6464
lineDecorationsWidth: 0,

‎docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ home: true
33
tagline: A library for manipulating SVG/Path2D curves.
44
---
55

6-
<div align="center">
6+
<div class="badges">
77
<p>
88
<a href="https://www.npmjs.org/package/pave">
99
<img src="https://img.shields.io/npm/v/pave.svg?style=flat-square" alt="npm version">

0 commit comments

Comments
 (0)
Please sign in to comment.