Skip to content

Commit 85c8f87

Browse files
Use css variable to override primary color
1 parent 0d1413e commit 85c8f87

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/_static/css/custom.css

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/* Override some aspects of the pydata-sphinx-theme */
22

3-
body {
4-
padding-top: 0px;
3+
:root {
4+
--color-primary: #333;
55
}
66

7-
h1,
8-
h2 {
9-
color: #333;
7+
body {
8+
padding-top: 0px;
109
}
1110

1211
@media (min-width: 768px) {
@@ -45,6 +44,6 @@ code {
4544
} */
4645

4746
a.navbar-brand-text {
48-
color: #333;
47+
color: var(--color-primary);
4948
font-size: xx-large;
5049
}

0 commit comments

Comments
 (0)