logseq-laurel-theme
logseq-laurel-theme copied to clipboard
Font color dark theme
I have this code snippet in my custom.css file:
.dark-theme {
--ls-primary-text-color: #FCE69F !important;
}
unfortunately, it does not work with Laurel despite !important, even though it does with the default and other themes.
I have tested it, and works smoothly on Logseq v0.10.9.
Your earlier comment was this:
Incorrect classification as .dark-theme. Applying .light-theme class resolves the issue, eliminating the need for !important declarations.
Why did you delete that? Is Laurel a dark or a light theme?
You're absolutely right! I changed my approach because I remembered that the Laurel theme supports both light and dark modes.
If your Logseq is set (in
Settings > General > Theme) to light or system and your system uses a light theme, the Laurel light theme will apply. In this case, your code would work, but it would override a color defined in the dark theme that isn’t in use.