Ivan Herman on Nostr: Designing for dark mode === dark art 😞 I know there is a way with CSS. But if one ...
Designing for dark mode === dark art 😞
I know there is a way with CSS. But if one generates SVG from a tool (google draw, draw.io, whatever) and wants the result to be used in its original form (e.g., light mode) as well as when the browser forces dark mode: it becomes a royal pain. The result depends on browser, plugin, OS...
Are there "standards" on how browsers should do that? Should there be? How can one prepare for this?
Published at
2023-08-26 13:06:39Event JSON
{
"id": "ac6d6cbffab14a672579a8c56b19830b144ad72c992e4008e9097455c4cbcd0d",
"pubkey": "89fd416b2bde8144ab35739895345262ac99e9d79958666fb32ac08896bf32a7",
"created_at": 1693055199,
"kind": 1,
"tags": [
[
"proxy",
"https://w3c.social/users/ivan_herman/statuses/110956065585165337",
"activitypub"
]
],
"content": "Designing for dark mode === dark art 😞 \n\nI know there is a way with CSS. But if one generates SVG from a tool (google draw, draw.io, whatever) and wants the result to be used in its original form (e.g., light mode) as well as when the browser forces dark mode: it becomes a royal pain. The result depends on browser, plugin, OS...\n\nAre there \"standards\" on how browsers should do that? Should there be? How can one prepare for this?",
"sig": "d96fd28db8135c6031de5fe97fb194aa1c3db6cf5fc538bd3a2bd23708b36cc2d7ebcc8e54f93041d394a9cbffe298ba9f1f070e0b74f00766e78ed4fd72dc8c"
}