Skip to content

Add support for bootstrap dark mode #5629

@abe-101

Description

@abe-101

Description

Bootstrap 5.3 now supports a dark mode out of the box
https://getbootstrap.com/docs/5.3/customize/color-modes/#dark-mode

in the docs they provide example js that can be used to toggle btw light and dark mode: https://getbootstrap.com/docs/5.3/customize/color-modes/#javascript

I propose adding this to the template
steps that need to be taking:

  • add data-bs-theme="light" to base template
  • add theme-toggler.js to static/js/ with this js code
  • Source it in the base template
  • add toggle buttons to the nav menu

I would argue that we should just add this but one could argue it should be added as a feature flag, what are your thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions