Skip to content

Commit 5c8532c

Browse files
committed
feat: add default pygment themes friendly (light) and monokai (dark)
1 parent 63ad0f2 commit 5c8532c

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css

-39
Original file line numberDiff line numberDiff line change
@@ -526,45 +526,6 @@ a > code.download {
526526
font-weight: normal;
527527
}
528528

529-
/*
530-
#####################
531-
Sphinx gallery output
532-
#####################
533-
*/
534-
.sphx-glr-script-out .highlight pre {
535-
background-color: var(--pst-color-codecell) !important;
536-
color: var(--pst-color-codeout);
537-
}
538-
539-
.prev-next-area a p.prev-next-title {
540-
color: var(--pst-color-link);
541-
font-weight: 600;
542-
font-size: 1.1em;
543-
}
544-
545-
.highlight .s1,
546-
.s2,
547-
.kc {
548-
color: var(--pst-color-code-s1) !important;
549-
}
550-
551-
html[data-theme="dark"] .highlight .kn {
552-
color: #e18fff;
553-
font-weight: normal;
554-
}
555-
556-
.highlight .c1 {
557-
color: var(--pst-color-code-c1);
558-
}
559-
560-
html[data-theme="dark"] .highlight .n {
561-
color: #b3d7ff;
562-
}
563-
564-
html[data-theme="dark"] .highlight .nn {
565-
color: #43d69d;
566-
text-decoration: none;
567-
}
568529
/*
569530
###############
570531
Dropdown button

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/theme.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[theme]
22
inherit = pydata_sphinx_theme
3-
pygments_style = friendly
43

54
[options]
65
contact_mail =
@@ -15,3 +14,5 @@ switcher =
1514
use_meilisearch =
1615
article_header_start = breadcrumbs.html
1716
footer_end = theme-version.html
17+
pygment_light_style = friendly
18+
pygment_dark_style = monokai

0 commit comments

Comments
 (0)