Need dark theme support in editor #6196
yashvi2026
started this conversation in
General
Replies: 1 comment
-
Talk about the experience of using next, next-themes, tailwind. When you register the following files in scripts in canvas config, theme is linked. // public folder, filename: theme.js
const doc = window.document
const theme = localStorage.getItem('theme')
doc.body.classList.remove('light', 'dark')
doc.body.classList.add(theme || '') const options: EditorConfig = {
canvas: {
scripts: ['/theme.js'],
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great if you add theme switching in the editor, allowing me to toggle between dark and light themes based on my preference.
Beta Was this translation helpful? Give feedback.
All reactions