Skip to content

Commit 3a6f1bc

Browse files
committed
Update branding and dark mode styles for Viglet Docs
Updated site title, logo alt text, GitHub links, and copyright in docusaurus.config.ts to reflect Viglet branding. Overhauled custom.css to implement a dark mode theme similar to docs.viglet.com, including new color variables and card styling. Replaced favicon.ico with a new version.
1 parent 97acffa commit 3a6f1bc

File tree

3 files changed

+45
-40
lines changed

3 files changed

+45
-40
lines changed

docusaurus.config.ts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ const config: Config = {
7676
respectPrefersColorScheme: true,
7777
},
7878
navbar: {
79-
title: 'My Site',
79+
title: 'Viglet Docs',
8080
logo: {
81-
alt: 'My Site Logo',
81+
alt: 'Viglet Docs Logo',
8282
src: 'img/logo.svg',
8383
},
8484
items: [
@@ -90,7 +90,7 @@ const config: Config = {
9090
},
9191
{to: '/blog', label: 'Blog', position: 'left'},
9292
{
93-
href: 'https://github.com/facebook/docusaurus',
93+
href: 'https://github.com/openviglet',
9494
label: 'GitHub',
9595
position: 'right',
9696
},
@@ -113,16 +113,8 @@ const config: Config = {
113113
items: [
114114
{
115115
label: 'Stack Overflow',
116-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
117-
},
118-
{
119-
label: 'Discord',
120-
href: 'https://discordapp.com/invite/docusaurus',
121-
},
122-
{
123-
label: 'X',
124-
href: 'https://x.com/docusaurus',
125-
},
116+
href: 'https://stackoverflow.com/questions/tagged/viglet',
117+
}
126118
],
127119
},
128120
{
@@ -134,12 +126,12 @@ const config: Config = {
134126
},
135127
{
136128
label: 'GitHub',
137-
href: 'https://github.com/facebook/docusaurus',
129+
href: 'https://github.com/openviglet',
138130
},
139131
],
140132
},
141133
],
142-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
134+
copyright: `Copyright © 2017 - ${new Date().getFullYear()} Viglet.`,
143135
},
144136
prism: {
145137
theme: prismThemes.github,

src/css/custom.css

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
1-
/**
2-
* Any CSS included here will be global. The classic template
3-
* bundles Infima by default. Infima is a CSS framework designed to
4-
* work well for content-centric websites.
5-
*/
6-
7-
/* You can override the default Infima variables here. */
1+
/* src/css/custom.css */
82
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
16-
--ifm-code-font-size: 95%;
17-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
3+
/* Cores claras (Light Mode) - Caso o usuário ative */
4+
--ifm-color-primary: orangered; /* Ajuste para a cor verde/azul da marca se souber o hex exato */
5+
--ifm-color-primary-dark: orangered;
6+
--ifm-color-primary-darker: orangered;
7+
--ifm-color-primary-darkest: orangered;
8+
--ifm-color-primary-light: orangered;
9+
--ifm-color-primary-lighter: orangered;
10+
--ifm-color-primary-lightest: orangered;
1811
}
1912

20-
/* For readability concerns, you should choose a lighter palette in dark mode. */
13+
/* Customização do Modo Escuro (Foco principal para parecer o docs.viglet.com) */
2114
[data-theme='dark'] {
22-
--ifm-color-primary: #25c2a0;
23-
--ifm-color-primary-dark: #21af90;
24-
--ifm-color-primary-darker: #1fa588;
25-
--ifm-color-primary-darkest: #1a8870;
26-
--ifm-color-primary-light: #29d5b0;
27-
--ifm-color-primary-lighter: #32d8b4;
28-
--ifm-color-primary-lightest: #4fddbf;
29-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
15+
/* Fundo principal bem escuro (quase preto) */
16+
--ifm-background-color: #0d1117;
17+
--ifm-background-surface-color: #161b22;
18+
19+
/* Cor do texto levemente suavizada para leitura */
20+
--ifm-font-color-base: #e6edf3;
21+
22+
/* Navbar escura misturando com o fundo */
23+
--ifm-navbar-background-color: #0d1117;
24+
--ifm-navbar-shadow: none; /* Remove a sombra para ficar "flat" */
25+
--ifm-border-color: #30363d; /* Bordas sutis */
26+
}
27+
28+
/* Ajuste da Navbar para ficar minimalista */
29+
.navbar {
30+
border-bottom: 1px solid var(--ifm-border-color);
3031
}
32+
33+
/* Ajuste dos Cards da Home */
34+
.card {
35+
background-color: var(--ifm-background-surface-color);
36+
border: 1px solid var(--ifm-border-color);
37+
transition: transform 0.2s ease;
38+
}
39+
40+
.card:hover {
41+
transform: translateY(-5px);
42+
border-color: var(--ifm-color-primary);
43+
}

static/img/favicon.ico

19.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)