Skip to content

Commit f4f424e

Browse files
author
Jordan Violet
committed
updated colors, logos
1 parent 2212702 commit f4f424e

File tree

7 files changed

+66
-74
lines changed

7 files changed

+66
-74
lines changed

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ const config = {
180180
navbar: {
181181
logo: {
182182
alt: 'Netwrix Logo',
183-
src: 'branding/logo-red.svg',
184-
srcDark: 'branding/logo-white.svg',
183+
src: 'branding/logo-dark.svg',
184+
srcDark: 'branding/logo-light.svg',
185185
href: '/',
186186
},
187187
items: [

src/components/HomepageFeatures/styles.module.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@
171171
}
172172

173173
.latestBadge {
174-
background: var(--ifm-color-success);
175-
box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
174+
background: #41F2CC;
175+
color: #000000 !important;
176176
}
177177

178178
.latestBadge:hover {
179-
background: var(--ifm-color-success-dark);
180-
color: white !important;
179+
background: #34C263;
180+
color: #000000 !important;
181181
}
182182

183183
[data-theme='dark'] .versionBadge {
@@ -191,13 +191,13 @@
191191
}
192192

193193
[data-theme='dark'] .latestBadge {
194-
background: var(--ifm-color-success-darker);
195-
color: var(--ifm-color-success-lightest);
194+
background: #27914A;
195+
color: #D9FACB !important;
196196
}
197197

198198
[data-theme='dark'] .latestBadge:hover {
199-
background: var(--ifm-color-success);
200-
color: white !important;
199+
background: #41F2CC;
200+
color: #000000 !important;
201201
}
202202

203203
/* Dark mode color improvements */

src/css/custom.css

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #2a5298;
10-
--ifm-color-primary-dark: #254a89;
11-
--ifm-color-primary-darker: #234582;
12-
--ifm-color-primary-darkest: #1c376b;
13-
--ifm-color-primary-light: #2f5aa7;
14-
--ifm-color-primary-lighter: #325fae;
15-
--ifm-color-primary-lightest: #4169c4;
9+
--ifm-color-primary: #5851DB;
10+
--ifm-color-primary-dark: #4641AF;
11+
--ifm-color-primary-darker: #353183;
12+
--ifm-color-primary-darkest: #1A1536;
13+
--ifm-color-primary-light: #7974E2;
14+
--ifm-color-primary-lighter: #9B97E9;
15+
--ifm-color-primary-lightest: #BCB9F1;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
--ifm-font-family-base: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1919
}
2020

2121
/* For readability concerns, you should choose a lighter palette in dark mode. */
2222
[data-theme='dark'] {
23-
--ifm-color-primary: #4d7fd8;
24-
--ifm-color-primary-dark: #3770d3;
25-
--ifm-color-primary-darker: #2d66d0;
26-
--ifm-color-primary-darkest: #1e4fac;
27-
--ifm-color-primary-light: #638edd;
28-
--ifm-color-primary-lighter: #6d97e0;
29-
--ifm-color-primary-lightest: #8eafe8;
23+
--ifm-color-primary: #8B51DB;
24+
--ifm-color-primary-dark: #7974E2;
25+
--ifm-color-primary-darker: #5851DB;
26+
--ifm-color-primary-darkest: #4641AF;
27+
--ifm-color-primary-light: #9B97E9;
28+
--ifm-color-primary-lighter: #BCB9F1;
29+
--ifm-color-primary-lightest: #DEDDFC;
3030
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3131
}
3232

@@ -45,14 +45,14 @@ html {
4545

4646
.button--outline {
4747
font-weight: 600;
48-
background: rgba(255, 255, 255, 0.1);
48+
background: rgba(88, 81, 219, 0.1);
4949
backdrop-filter: blur(10px);
50-
border: 1px solid rgba(255, 255, 255, 0.2);
50+
border: 1px solid rgba(88, 81, 219, 0.3);
5151
}
5252

5353
.button--outline:hover {
54-
background: rgba(255, 255, 255, 0.2);
55-
border-color: rgba(255, 255, 255, 0.3);
54+
background: rgba(88, 81, 219, 0.2);
55+
border-color: rgba(88, 81, 219, 0.5);
5656
}
5757

5858
/* Navbar responsive improvements */
@@ -99,7 +99,7 @@ html {
9999
.navbar-item-latest {
100100
font-weight: 600 !important;
101101
color: var(--ifm-color-primary-darkest) !important;
102-
background: linear-gradient(90deg, rgba(42, 82, 152, 0.08), rgba(42, 82, 152, 0.03));
102+
background: linear-gradient(90deg, rgba(88, 81, 219, 0.08), rgba(88, 81, 219, 0.03));
103103
border-left: 3px solid var(--ifm-color-primary);
104104
padding-left: 12px !important;
105105
margin: 2px 0;
@@ -127,14 +127,14 @@ html {
127127
.navbar-item-legacy:hover {
128128
color: var(--ifm-color-primary) !important;
129129
opacity: 1;
130-
background: rgba(42, 82, 152, 0.05);
130+
background: rgba(88, 81, 219, 0.05);
131131
border-radius: 4px;
132132
}
133133

134134
/* Dark mode adjustments */
135135
[data-theme='dark'] .navbar-item-latest {
136136
color: var(--ifm-color-primary-lightest) !important;
137-
background: linear-gradient(90deg, rgba(77, 127, 216, 0.1), rgba(77, 127, 216, 0.04));
137+
background: linear-gradient(90deg, rgba(139, 81, 219, 0.1), rgba(139, 81, 219, 0.04));
138138
border-left-color: var(--ifm-color-primary-light);
139139
}
140140

@@ -144,7 +144,7 @@ html {
144144

145145
[data-theme='dark'] .navbar-item-legacy:hover {
146146
color: var(--ifm-color-primary-light) !important;
147-
background: rgba(77, 127, 216, 0.08);
147+
background: rgba(139, 81, 219, 0.08);
148148
}
149149

150150
/* Product grouping visual separation */
@@ -197,14 +197,14 @@ html {
197197
/* Start of Selection */
198198
/* Apply borders only to images within docs pages */
199199
.theme-doc-markdown img {
200-
border: 1px solid #e0e0e0;
200+
border: 1px solid #E2E1DC;
201201
border-radius: 4px;
202202
}
203203
/* End of Selection */
204204

205205
/* Dark mode image borders */
206206
[data-theme='dark'] img {
207-
border-color: #3a3a3a;
207+
border-color: #48445F;
208208
}
209209

210210
/* Add this to your /src/css/custom.css file */
@@ -288,12 +288,17 @@ html {
288288

289289
/* Highlight search terms more prominently */
290290
.DocSearch-Hit-content mark {
291-
background-color: var(--ifm-color-primary-lighter);
291+
background-color: #FDF0CC;
292292
color: var(--ifm-font-color-base);
293293
font-weight: 600;
294294
padding: 0 2px;
295295
}
296296

297+
[data-theme='dark'] .DocSearch-Hit-content mark {
298+
background-color: #624800;
299+
color: var(--ifm-color-white);
300+
}
301+
297302
/* Add product/version badges if needed */
298303
.DocSearch-Hit-content-wrapper {
299304
position: relative;

src/theme/Root.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22
import ProductMetaTags from '@site/src/components/ProductMetaTags';
33

44
// Default implementation from Docusaurus
55
// https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/Root/index.tsx
66
export default function Root({ children }) {
7+
useEffect(() => {
8+
// Update favicon based on color mode using MutationObserver
9+
const updateFavicon = () => {
10+
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
11+
const favicon = document.querySelector("link[rel='icon']");
12+
if (favicon) {
13+
favicon.href = isDark
14+
? '/branding/favicon-light.ico'
15+
: '/branding/favicon-dark.ico';
16+
}
17+
};
18+
19+
// Initial update
20+
updateFavicon();
21+
22+
// Watch for theme changes
23+
const observer = new MutationObserver(updateFavicon);
24+
observer.observe(document.documentElement, {
25+
attributes: true,
26+
attributeFilter: ['data-theme']
27+
});
28+
29+
return () => observer.disconnect();
30+
}, []);
31+
732
return (
833
<>
934
<ProductMetaTags />

static/branding/favicon.ico

-16.6 KB
Binary file not shown.

static/branding/logo-red.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

static/branding/logo-white.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)