lukadjo

Hello there 👋

I mostly share/reshare/rebug stuff.

I share/reshare/rebug more art than I do here at @lukadjo-art-i-like


Use firefox

what



amypercent
@amypercent

Anyone know if there are CSS variables for stuff like "current post text color" or "current post background color"


amypercent
@amypercent

Ok I was trying --color-background and I ran into a problem. I think it's being set to black by a media query for prefers-color-scheme: dark, despite me having cohost set to use light mode

E.g. here's a div using --color-background

Test text here

You must log in to comment.

in reply to @amypercent's post:

You can use currentColor to get the text colour, e.g.

<div style="background-color: currentColor;">darkness</div>

But there's nothing for backgrounds. For Cohost, people have been using var(--tw-border-opacity, 0) which becomes 1 in light mode and 0 in dark mode.