Skip to content

Commit 9cb2306

Browse files
dshants1ntaxe770r
andauthored
docs: Update color scheme and add custom typography and navbar styles (#2609)
* docs: update color scheme and add custom styles for typography and navbar * fix: default to light mode --------- Co-authored-by: Jubril Oyetunji <cyberdev01@protonmail.com>
1 parent e233862 commit 9cb2306

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

docs/docs.json

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,25 @@
77
"dismissible": true
88
},
99
"colors": {
10-
"primary": "#8101E4",
11-
"light": "#AF48FF",
12-
"dark": "#8101E4"
10+
"primary": "#131311",
11+
"light": "#dfdfdf",
12+
"dark": "#131311"
13+
},
14+
"background": {
15+
"color": {
16+
"light": "#f8f6f1",
17+
"dark": "#0f0f0f"
18+
}
19+
},
20+
"fonts": {
21+
"heading": {
22+
"family": "Newsreader",
23+
"weight": 400
24+
},
25+
"body": {
26+
"family": "Inter",
27+
"weight": 400
28+
}
1329
},
1430
"favicon": "/favicon.png",
1531
"redirects": [
@@ -263,5 +279,8 @@
263279
"slack": "https://diggertalk.slack.com/join/shared_invite/zt-1tocl4w0x-E3RkpPiK7zQkehl8O78g8Q#/shared-invite/email",
264280
"linkedin": "https://www.linkedin.com/company/diggerhq/"
265281
}
282+
},
283+
"modeToggle": {
284+
"default": "light"
266285
}
267286
}

docs/styles/custom.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
h5 {
2+
font-family: 'Inter', sans-serif;
3+
}
4+
#navbar .nav-logo {
5+
display: none;
6+
}
7+
#navbar a.select-none::before {
8+
content: 'opentaco';
9+
font-family: 'Newsreader', serif;
10+
font-size: 24px;
11+
font-weight: 400;
12+
letter-spacing: 0.01em;
13+
transition: letter-spacing 0.3s ease;
14+
color: #131311;
15+
}
16+
#navbar a:hover::before {
17+
letter-spacing: 0.06em;
18+
}
19+
20+
.dark #navbar a.select-none::before {
21+
color: #dfdfdf;
22+
}

0 commit comments

Comments
 (0)