Highlighting Configuration
You can customize the colors which Lexxy uses to highlight text
The simplest way to customize highlighting is override the CSS variables provided:
color:var(--highlight-1)tovar(--highlight-9)background-color:var(--highlight-bg-1)tovar(--highlight-bg-9)
To override the styles applied by Lexxy, configure highlight.buttons.color and highlight.buttons.background-color. Further, since Lexxy sanitizes pasted styles, highlight.permit.color and highlight.permit.background-color allows you to add additional colors which Lexxy will conserve on paste but are not presented as buttons in the toolbar.
Lexxy.configure({
default: {
highlight: {
buttons: {
color: [ "red", "rgb(255, 0, 0)", "var(--text-color-1)" ],
"background-color": [ "red", "rgba(0, 255, 0, 0.5)", "var(--bg-color-1)" ]
},
permit: {
color: [ "pink", "blue", "var(--legacy-text-color)" ],
"background-color": [ "light-pink", "light-blue", "var(--legacy-bg-color)" ],
}
}
}
})