View Single Post
Old 03-10-2024, 12:21 PM   #1
ajaffary
Junior Member
ajaffary began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2024
Device: Thorium Reader MacOS
Post Preview and media query

I've recently incorporated media queries into an ePub to account for light and dark mode on Apple Books.

My OS (Mac Sonoma) is in dark mode, and I have Sigil set change to Dark Preview. However, Preview still only responds to a light mode media query, e.g.

Code:
@media (prefers-color-scheme: light) {
  p { color: black }
}

@media (prefers-color-scheme: dark) {
  p { color: white }
}
shows text in black. Is it possible to have Sigil's Preview browser access the OS level theme, e.g. prefers-colors-scheme?

The queries work in Apple Books, but it would be great to have Preview respond to this feature, saving having to reload the epub into Apple Books for small fixes.
ajaffary is offline   Reply With Quote