logseq-laurel-theme icon indicating copy to clipboard operation
logseq-laurel-theme copied to clipboard

Font color dark theme

Open DutchPete opened this issue 2 years ago • 3 comments
trafficstars

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.

DutchPete avatar Jun 04 '23 16:06 DutchPete

I have tested it, and works smoothly on Logseq v0.10.9.

Screenshot From 2024-10-28 20-00-50

PixelTux avatar Oct 28 '24 18:10 PixelTux

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?

DutchPete avatar Oct 29 '24 05:10 DutchPete

You're absolutely right! I changed my approach because I remembered that the Laurel theme supports both light and dark modes. Screenshot From 2024-10-29 18-23-18 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. Screenshot From 2024-10-29 18-22-43

PixelTux avatar Oct 29 '24 17:10 PixelTux