Skip to content

Commit ff28eb2

Browse files
authored
Redefine light and dark color schemes to match Imageomics colors (#67)
1 parent e0b710f commit ff28eb2

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,76 @@ based on this suggestion: https://github.com/squidfunk/mkdocs-material/discussio
2525
padding-top: .175rem;
2626
padding-bottom: .175rem;
2727
}
28+
29+
/*
30+
Define Imageomics colors for theme (light and dark)
31+
Primary Colors:
32+
- Imageomics Green: #92991c
33+
- Imageomics Blue: #5d8095
34+
- Dark Teal: #0097b2
35+
- White: #FFFFFF
36+
Accent Colors:
37+
- Light Green: #9bcb5e
38+
- Red: #bb0000
39+
- NSF Gold: #caae54
40+
- NSF Blue: #61a5d6
41+
Adjust admonitions and links to match (where otherwise clashed)
42+
*/
43+
44+
/* Light mode colors: Imageomics Blue and Light Green */
45+
[data-md-color-scheme="default"] {
46+
--md-primary-fg-color: #5d8095;
47+
--md-accent-fg-color: #9bcb5e;
48+
}
49+
50+
/* Set admonition (Note) colors to match Dark Teal used for URLs */
51+
/* border color */
52+
.md-typeset .admonition.note, .md-typeset details.note {
53+
border-color: #0097b2;
54+
box-shadow: #0097b21a;
55+
}
56+
57+
/* icon color */
58+
.md-typeset .admonition.note > .admonition-title::before {
59+
background-color: #0097b2;
60+
}
61+
62+
/* shaded part (title/heading) */
63+
.md-typeset .note>.admonition-title,.md-typeset .note>summary {
64+
background-color: #0097b21a;
65+
}
66+
67+
/* Set admonition (question) colors to match the accent green
68+
Light Green for light mode, Imageomics Green for dark mode */
69+
/* border color */
70+
.md-typeset .admonition.question, .md-typeset details.question {
71+
border-color: var(--md-accent-fg-color);
72+
box-shadow: #9bcb5e1a;
73+
}
74+
75+
/* icon color */
76+
.md-typeset .admonition.question > .admonition-title::before {
77+
background-color: var(--md-accent-fg-color);
78+
}
79+
80+
/* shaded part (title/heading) */
81+
.md-typeset .question>.admonition-title,.md-typeset .question>summary {
82+
background-color: #9bcb5e1a;
83+
}
84+
85+
/* Set URL colors to Dark Teal for better contrast */
86+
/* Content URLs */
87+
.md-typeset a {
88+
color: #0097b2;
89+
}
90+
91+
/* Navigation URL (side panel contents) */
92+
.md-nav .md-nav__link--active {
93+
color: #0097b2;
94+
}
95+
96+
/* Dark mode colors: Imageomics Blue and Imageomics Green */
97+
[data-md-color-scheme="slate"] {
98+
--md-primary-fg-color: #5d8095;
99+
--md-accent-fg-color: #92991c;
100+
}

0 commit comments

Comments
 (0)