Skip to content

Support more PyData theme colors for badges #215

Open
@user27182

Description

@user27182

Context

I have found that the existing dark and light colors have low-contrast when viewing a site with the dark and light themes applied, respectively, and are therefore hard to see/read. E.g. see this badge :

image
from pyvista/pyvista#6475.

I went looking for an alternative, but found that dark and light are the only grayscale options with outlines supported by Sphinx Design: https://sphinx-design.readthedocs.io/en/latest/badges_buttons.html

Proposal

Additional colors are available from the PyData theme:
https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/styling.html#color-variables

Something like the surface and on-surface colors might be good alternatives since these change with the theme.

Perhaps all the other PyData theme colors could be supported as well.

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions