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

feat: fix highlighted text foreground color. #21

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

mwidmann
Copy link
Contributor

Issue

When using the theme the foreground color of the selected text is too similar to the background color set by logseq on selection. This is bad from an accessabilty standpoint and makes using logseq with this theme harder due to missing contrast.

Background

logseq-catppuccin sets the foreground color only while leaving it to the logseq default theme to handle the background color.

Solution

I looked at how the obsidian catppuccin theme handled the color of the selection. They introduced an new var --text-on-accent that handles the foreground color. It is basically just a new name for the value in --ctp-base. I added a new var --ls-text-on-accent recreating this behavior and use this as the value for the selection's foreground color.

Issue
---
When using the theme the foreground color of the selected text is too
similar to the background color set by logseq on selection. This is bad
from an accessabilty standpoint and makes using logseq with this theme
harder due to missing contrast.

Background
---
logseq-catppuccin sets the foreground color only while leaving it to the
logseq default theme to handle the background color.

Solution
---
I looked at how the obsidian catppuccin theme handled the color of the
selection. They introduced an new var `--text-on-accent` that handles
the foreground color. It is basically just a new name for the value in
`--ctp-base`. I added a new var `--ls-text-on-accent` recreating this
behavior and use this as the value for the selection's foreground color.
@griimick griimick linked an issue Jan 24, 2024 that may be closed by this pull request
@griimick griimick merged commit 1cbfd2a into catppuccin:main Jan 24, 2024
@griimick
Copy link
Member

Thanks :)

@mwidmann mwidmann deleted the feat/fix-selection-color branch January 24, 2024 13:04
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

Successfully merging this pull request may close these issues.

Links are barely visible on highlight
2 participants