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

Custom theme not working (only dark & light theme working) #279

Open
acharyaarjun opened this issue Nov 19, 2024 · 0 comments
Open

Custom theme not working (only dark & light theme working) #279

acharyaarjun opened this issue Nov 19, 2024 · 0 comments

Comments

@acharyaarjun
Copy link

acharyaarjun commented Nov 19, 2024

Jodit Version: 4.1.2

Browser: All
OS: All
Is React App: True

Code
#globals.scss
.jodit_theme_summer {
--jd-color-background-default: #417505 !important;
--jd-color-border: #474025 !important;
--jd-color-panel: #5fd3a2 !important;
--jd-color-icon: #8b572a !important;
}

#package.json
"dependencies": {
....
"jodit-react": "^4.1.2",
...
}

const config = useMemo(() => {
......
theme: "summer",
....
}

<JoditEditor
....
config={config}
....
/>

// A *self-contained* demonstration of the problem follows...

Expected behavior:
image
Actual behavior:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant