How is everyone doing Dynamic Light/Dark Mode these days in Bubbz

Yes exactly. Keep in mind that the custom Bubble Style Variables have a random name and you can find them like this: https://x.com/thmawa/status/1684620462968516608?s=20

This is the HTML I use to override the CSS variables:

<style>

html {

/*Primary text color*/
    --color_text_default: rgb(255 255 255) !important;
    --color_text_default_rgb: 255, 255, 255 !important;

/*Secondary text color (this is a custom one form my app hence the random name)*/
    --color_bTHAI_default: rgb(203 214 221) !important;
    --color_bTHAI_default_rgb: 203,205,221 !important;

/* etc. etc. */
}

</style>

5 Likes