Force Dark Immersive Subtree

Keep one part of a Compose app rendered dark — screens drawn over dark artwork — while the rest of the app follows the user's light theme, by providing a whole dark colour scheme plus your own token locals to that subtree; includes why a text-colour flag alone is not enough, and the verified fact that bottom sheets and dialogs inherit these locals across the window boundary while a freshly rooted composition does not. Use when icons or buttons on an image-backed screen turn grey and unreadable in light theme, when a sheet opened from such a screen comes out the wrong colour, or when a forced-dark screen still asks the system whether it is night.

maxrave-dev 8e800e6 8.0 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/force-dark-immersive-subtree commit 8e800e6074

Frequently asked questions

npx skillmds@latest add maxrave-dev/force-dark-immersive-subtree