Budget: 700 UAH Deadline: 1 day
Good day.
For Select2 to work correctly with data-bs-theme="dark" in Bootstrap 5, you need to properly link the CSS variables of the plugin with Bootstrap's variables. The standard theme select2-bootstrap5 does not do this automatically, as it is static.
To help you complete this on your own, here is a plan of action:
You need to use the attribute selector [data-bs-theme="dark"] as a parent for all Select2 styles.
Within this selector, you must override the properties background-color, color, and border-color for the classes .select2-selection, .select2-dropdown, and .select2-search__field.
For highlighted list items (.select2-results__option--highlighted), you also need to forcibly set the background and text color variables using var(--bs-primary).
You need to create a separate CSS file or block that will override the standard plugin styles specifically in dark mode.
Would you like me to write this style block in full, or will you try to implement the binding to the variables using this logic on your own?