colormode set browser scrollbar to light / dark mode
is there a way to set my browser scrollbar style to light/dark mode based on the colormode i have set? currently it follows my system light/dark mode
2 Replies
Hi @WiFi Plug. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not explicitly mention a built-in way in Nuxt UI or Nuxt Color Mode to automatically style the browser scrollbar according to the current color mode (light or dark). The documentation covers how to switch color modes and how to use CSS variables for theming, but it does not provide details or examples for synchronizing scrollbar styles with the color mode setting.
If you want to achieve this, you would typically use CSS to style scrollbars and apply different styles based on the presence of a dark mode class (such as .dark) on the html or body element. However, this approach is not documented in the provided sources.
If you need further guidance, you may need to consult external resources or experiment with custom CSS in your Nuxt project.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@679734274840330384> Kapa.ai is still learning and improving, please let me know how I did by reacting below.