Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Colour modes for individual elements #39915

Open
lonix1 opened this issue Apr 19, 2024 · 1 comment
Open

[Docs] Colour modes for individual elements #39915

lonix1 opened this issue Apr 19, 2024 · 1 comment

Comments

@lonix1
Copy link

lonix1 commented Apr 19, 2024

I wanted a light theme with some dark elements, so I applied data-bs-theme="dark" to those elements.

However that didn't change anything. So I also added either class="text-bg-dark" or class="bg-dark text-light", which worked - but I knew that was a hack.

Only after looking at the source for that "blue example" did I realise that one must do this:

<div data-bs-theme="dark" class="text-body bg-body">
  ...
</div>

That should probably be in the docs, it is fundamental.

@AbhishekSharma55
Copy link

Hi there,

I want to contribute to this project and take on this issue as my first task. Could you please assign it to me? I am excited to work towards resolving it and will keep the team updated on my progress.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To analyze
Development

No branches or pull requests

3 participants