Skip to content

Commit 2d13be9

Browse files
Merge pull request #40 from EtherealEngine/new-light-mode-colors
New: Light mode configurations
2 parents 8dfdee2 + d74657b commit 2d13be9

File tree

4 files changed

+15
-34
lines changed

4 files changed

+15
-34
lines changed

astro.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
description: 'Create realistic immersive experiences directly on the web.',
1212
logo: {
1313
dark: '/src/assets/site-logo-white.png',
14-
light: '/src/assets/site-logo-white.png',
14+
light: '/src/assets/site-logo-black.png',
1515
replacesTitle: true,
1616
},
1717
favicon: '/favicon-32x32.png',

src/assets/houston.webp

-96.2 KB
Binary file not shown.

src/assets/site-logo-black.png

20.3 KB
Loading

src/styles/custom.css

+14-33
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,6 @@ body.index-background {
3131
background-attachment: fixed;
3232
}
3333

34-
/* Base styles for the navigation */
35-
nav ul {
36-
list-style: none;
37-
padding: 0;
38-
}
39-
40-
/* Top-level directory labels (1st level nested groups) */
41-
nav ul > li > details > summary .group-label .large {
42-
/* Targets the top-level directory labels only */
43-
font-size: 1em;
44-
}
45-
46-
/* Second-level directory labels (2nd level nested groups) */
47-
nav ul li ul li details summary .group-label .large {
48-
/* Targets nested directory labels */
49-
font-size: 0.9em;
50-
font-weight: normal;
51-
}
52-
53-
/* Style the text within the anchor tags (documents) */
54-
nav ul li a {
55-
font-size: 0.9em;
56-
}
57-
58-
/* Custom styles for index page background */
59-
body.index-background {
60-
background-image: url('/src/assets/irlogo_background_studio.png');
61-
background-size: cover;
62-
background-position: center;
63-
background-repeat: no-repeat;
64-
background-attachment: fixed;
65-
}
66-
6734
/* Styles for images inside Markdown content */
6835
.sl-markdown-content img,
6936
.sl-markdown-content picture img,
@@ -75,3 +42,17 @@ body.index-background {
7542
margin: 1rem 0;
7643
display: block;
7744
}
45+
46+
/* Light mode overrides for index.mdx */
47+
:root[data-theme="light"] {
48+
/* Target specific elements by class */
49+
.astro-jbfsktt5,
50+
.astro-yjy4zhro {
51+
color: #ffffff; /* Set text color to white */
52+
}
53+
54+
/* Target anchor text within the action button */
55+
.astro-yjy4zhro a {
56+
color: #ffffff; /* Ensure link text is also white */
57+
}
58+
}

0 commit comments

Comments
 (0)