Skip to content

Commit e96c12b

Browse files
committed
Add custom theming for dark mode
1 parent 786fa14 commit e96c12b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/reST/themes/classic/static/pygame.css_t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,18 @@ dl.definition .admonition-title {
709709

710710
div.note {
711711
background-color: {{ theme_notebgcolor }};
712-
border: 1px solid #ccc;
712+
border: 1px solid {{ theme_notebordercolor }};
713713
}
714714

715715
.note tt {
716716
background: #d6d6d6;
717717
}
718718

719+
.dark-theme div.note {
720+
background-color: {{ theme_dark_notebgcolor }};
721+
border: 1px solid {{ theme_dark_notebordercolor }};
722+
}
723+
719724
div.seealso {
720725
background-color: #ffc;
721726
border: 1px solid #ff6;

docs/reST/themes/classic/theme.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ dark_headertitlecolor = #00ba10
5151
dark_headerlogoborder = #00ba10
5252
dark_h1color = #e1cd62
5353
dark_h2color = #00b800
54+
dark_notebgcolor = #45402f
55+
dark_notebordercolor = #666044
5456

5557
relbarbgcolor = #6aee28
5658
relbartextcolor = #000000
@@ -75,6 +77,7 @@ codekeyword = #DE6C90
7577

7678
cautionbgcolor = #eeffcc
7779
notebgcolor = #eeeeee
80+
notebordercolor = #eeeeee
7881

7982
highlightbgcolor = #c7c695
8083
logobgcolor = #c2fc20

0 commit comments

Comments
 (0)