Skip to content

Conversation

@mbostock
Copy link
Member

@mbostock mbostock commented Apr 26, 2023

Fixes #1434. When upgrading Observable, we can either restore the white background with an external stylesheet, or by changing the download PNG functionality.

Also fixes #1463.

@mbostock mbostock requested a review from Fil April 26, 2023 16:53
@mbostock mbostock force-pushed the mbostock/transparent branch from a6edc7d to 359cf32 Compare April 30, 2023 18:08
@mbostock
Copy link
Member Author

mbostock commented May 2, 2023

I’m not sure I want to merge this. I feel like you can already override the styles if you want to. Maybe this gives better default results, but maybe it just causes churn? 🤔 The shadow DOM approach seems attractive but that seems more disruptive too. Hmm.

@Fil
Copy link
Contributor

Fil commented May 15, 2023

Can we then close these PRs (or move them to draft status)?

@mbostock mbostock marked this pull request as draft May 15, 2023 16:22
@mbostock mbostock force-pushed the mbostock/transparent branch from f42db68 to dbfadd9 Compare October 27, 2023 22:40
@mbostock mbostock force-pushed the mbostock/transparent branch from dbfadd9 to 9ca08e0 Compare October 27, 2023 22:43
@mbostock mbostock marked this pull request as ready for review October 27, 2023 22:43
@mbostock mbostock enabled auto-merge (squash) October 27, 2023 23:04
@mbostock mbostock merged commit 4baad4d into main Oct 27, 2023
@mbostock mbostock deleted the mbostock/transparent branch October 27, 2023 23:05
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
* remove default white background

* var(--plot-background) (observablehq#1513)

* dark mode for dev

* dev dark mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markers (and the tree mark) should use a CSS variable instead of white Plot’s default background: white often isn’t a great default

3 participants