Alex313031 / Alex313031.github.io

Thorium Website Source Code https://thorium.rocks/
https://alex313031.github.io/
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

performance.html: use dark class too #6

Closed Artoria2e5 closed 10 months ago

Artoria2e5 commented 1 year ago

The dark class has very sensible colors for hyperlinks. This body style="" stuff does not.

Alex313031 commented 1 year ago

@Artoria2e5 Usually, I provide a dark/light mode toggle button on most of the pages on the site, excluding the 3D demos. However, for this page, I want it to be this theme exactly, with no light mode, and not relying on the browser's definition of dark mode. So this was an intentional decision.

Artoria2e5 commented 1 year ago

The dark class is not affected by prefers-color-scheme. When the class is set, it is always dark.