Skip to content

Commit

Permalink
feat: add default pygment themes friendly (light) and monokai (dark) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Feb 6, 2024
1 parent 606ecb4 commit 37a13f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,45 +526,6 @@ a > code.download {
font-weight: normal;
}

/*
#####################
Sphinx gallery output
#####################
*/
.sphx-glr-script-out .highlight pre {
background-color: var(--pst-color-codecell) !important;
color: var(--pst-color-codeout);
}

.prev-next-area a p.prev-next-title {
color: var(--pst-color-link);
font-weight: 600;
font-size: 1.1em;
}

.highlight .s1,
.s2,
.kc {
color: var(--pst-color-code-s1) !important;
}

html[data-theme="dark"] .highlight .kn {
color: #e18fff;
font-weight: normal;
}

.highlight .c1 {
color: var(--pst-color-code-c1);
}

html[data-theme="dark"] .highlight .n {
color: #b3d7ff;
}

html[data-theme="dark"] .highlight .nn {
color: #43d69d;
text-decoration: none;
}
/*
###############
Dropdown button
Expand Down
3 changes: 2 additions & 1 deletion src/ansys_sphinx_theme/theme/ansys_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[theme]
inherit = pydata_sphinx_theme
pygments_style = friendly

[options]
contact_mail =
Expand All @@ -15,3 +14,5 @@ switcher =
use_meilisearch =
article_header_start = breadcrumbs.html
footer_end = theme-version.html
pygment_light_style = friendly
pygment_dark_style = monokai

0 comments on commit 37a13f9

Please sign in to comment.