Redactor will enable the dark theme based on the user's system settings. However, you can customize the behavior of the dark theme using a setting or API according to your preferences.
<!-- button -->
<button onclick="setTheme(event, 'light')">setLightTheme</button>
<!-- element -->
<textarea id="entry">...</textarea>
<!-- call -->
<script>
let app = Redactor('#entry', {
theme: 'dark'
});
function setTheme(e, theme) {
e.preventDefault();
app.theme.set(theme);
}
</script>