Can I use semantic colors in CSS?

I use WebViews to display some of the information inside my app. To support dark mode it would be great if we were able to use semantic colors in CSS, like "label" or "secondarySystemFillColor".

I tried

p { color:-apple-label }

or

p { color: label }

and similar things, none of which worked.


Is there a way to use the new iOS 13 semantic colors in CSS?

Replies

This might help you if you're looking to adopt dark mode for webviews.


https://webkit.org/blog/8840/dark-mode-support-in-webkit/