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

Tippy css for light mode only with Furo #8

Open
vict0rsch opened this issue Aug 31, 2023 · 3 comments
Open

Tippy css for light mode only with Furo #8

vict0rsch opened this issue Aug 31, 2023 · 3 comments

Comments

@vict0rsch
Copy link

Hello,

first of all, thanks for the package!

I'm having an issue where I want to only change the tippy's css when Furo is in Light mode. The tippys are fine in Dark mode but not readable in Light mode:

Link issue:

SCR-20230831-isxt

Inline code issue:
SCR-20230831-iswx

Any advice on how to procede?

Thanks!

@dbitouze
Copy link

dbitouze commented Jan 3, 2024

I'm also looking for a way around this problem (but for PyData-Sphinx-Theme)!

@dbitouze
Copy link

dbitouze commented Jan 3, 2024

Well, in fact, it is enough in the case of PyData-Sphinx-Theme to follow the “Important” admonition here.

@lkubb
Copy link

lkubb commented Aug 27, 2024

The following CSS improves basic compatibility with furo and can be applied as documented:

.tippy-box {
    background-color: var(--color-background-hover);
    color: var(--color-foreground-primary);
    border: 1px solid var(--color-foreground-border);
}

More furo color variables: https://github.com/pradyunsg/furo/blob/main/src/furo/assets/styles/variables/_colors.scss

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

3 participants