diff --git a/ipyplot/_html_helpers.py b/ipyplot/_html_helpers.py index 6841134..d6a5281 100644 --- a/ipyplot/_html_helpers.py +++ b/ipyplot/_html_helpers.py @@ -419,12 +419,12 @@ def _get_default_style(img_width: int, zoom_scale: float): div.ipyplot-content-div-%(0)s { width: %(1)spx; - background: white; + background: var(--jp-layout-color0, white); display: inline-block; vertical-align: top; text-align: center; position: relative; - border: 2px solid #ddd; + border: var(--jp-border-width, 2px) solid var(--jp-cell-editor-border-color, #ddd); top: 0; left: 0; }