Skip to content

Commit c32270b

Browse files
committed
doc: add purple glow effect and improve theme contrast
- Change background to pure black (#000000) for better contrast - Add purple radial gradient glow effect at bottom - Fix link colors to use purple (#8367e7) instead of default blue - Update code block borders to use visible grey (#3f3f46) - Force black background on html and body elements - Make containers transparent to show background
1 parent 580ec34 commit c32270b

1 file changed

Lines changed: 48 additions & 5 deletions

File tree

theme/custom.css

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@layer typedoc {
22
:root {
3-
--color-background: #07060d;
4-
--color-background-secondary: #111111;
3+
--color-background: #000000;
4+
--color-background-secondary: #000000;
55
--color-background-active: #27272a;
66
--color-background-warning: #ebd43e;
77
--color-warning-text: #111111;
@@ -50,13 +50,43 @@
5050
--code-background: #000000;
5151
}
5252

53+
body {
54+
position: relative;
55+
overflow-x: hidden;
56+
}
57+
58+
body::before {
59+
content: '';
60+
position: fixed;
61+
bottom: -10%;
62+
left: 50%;
63+
transform: translateX(-50%);
64+
width: 150%;
65+
height: 80vh;
66+
z-index: -1;
67+
background: radial-gradient(ellipse at center, rgba(131, 103, 231, 0.4) 0%, rgba(96, 66, 199, 0.25) 30%, transparent 65%);
68+
pointer-events: none;
69+
}
70+
71+
html {
72+
background: #000000 !important;
73+
}
74+
5375
body {
5476
font-family:
5577
'Inter',
5678
system-ui,
5779
'Roboto',
5880
'Segoe UI',
5981
sans-serif;
82+
background: #000000 !important;
83+
}
84+
85+
.container,
86+
.container-fluid,
87+
.tsd-page-content,
88+
main {
89+
background: transparent !important;
6090
}
6191

6292
h1,
@@ -73,13 +103,26 @@
73103
sans-serif;
74104
}
75105

106+
a {
107+
color: #8367e7 !important;
108+
}
109+
76110
a:hover {
77-
color: #b19dff;
111+
color: #b19dff !important;
112+
}
113+
114+
.tsd-navigation a,
115+
.tsd-navigation a:visited {
116+
color: #e3e7fb !important;
78117
}
79118

80119
.tsd-navigation a:hover,
81120
.tsd-navigation a.current {
82-
color: #b19dff;
121+
color: #b19dff !important;
122+
}
123+
124+
.tsd-kind-icon {
125+
color: inherit !important;
83126
}
84127

85128
.tsd-panel {
@@ -100,7 +143,7 @@
100143

101144
pre {
102145
background: #000000 !important;
103-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
146+
border: 1px solid #3f3f46 !important;
104147
border-radius: 0.5rem !important;
105148
padding: 1.25rem !important;
106149
margin: 1.25rem 0 !important;

0 commit comments

Comments
 (0)