Skip to content

add light-html theme #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/pyobsplot/static/static-styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/* css/styles.css */
:root {
--sans-serif: -apple-system, BlinkMacSystemFont, "avenir next", avenir,
helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial,
sans-serif;
}
.pyobsplot-plot h2 {
line-height: 28px;
font-size: 20px;
Expand All @@ -22,6 +27,18 @@
color: black;
background-color: white;
}
.pyobsplot-plot.light-html svg,
.pyobsplot-plot.light-html figure {
color: black;
background-color: white;
}
.pyobsplot-plot.light-html h2 {
font-family: var(--sans-serif)
}
.pyobsplot-plot.light-html h3 {
font-family: var(--sans-serif)
}

.pyobsplot-plot.dark svg,
.pyobsplot-plot.dark figure {
color: white;
Expand Down
2 changes: 1 addition & 1 deletion src/pyobsplot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
]

# Themes
AVAILABLE_THEMES = ["light", "dark", "current"]
AVAILABLE_THEMES = ["light", "dark", "current", "light-html"]
DEFAULT_THEME = "light"

# List of existing plot methods
Expand Down