Replies: 4 comments 3 replies
-
Yes, there is a feature for this! https://sphinx-tags.readthedocs.io/en/latest/configuration.html#badge-colors Since the badges are using sphinx-design, there is already a list of semantic colors that will use the colors defined for your Sphinx theme (PyData, in your case). They are listed here. |
Beta Was this translation helpful? Give feedback.
-
There is a misunderstanding. I know the feature you indicated with the link. But I am not using the PyData theme. Nor am I using the sphinx-design. I think, it would be nice if the user could set any color. |
Beta Was this translation helpful? Give feedback.
-
You can set those colors to whatever you want in your theme's Sphinx config, but the syntax can vary by theme. With Furo, for example, it would look like: # Theme color config
html_theme_options = {
"light_css_variables": {
"color-brand-primary": "#7C4DFF",
},
}
# Badge color config (references theme colors)
tags_badge_colors = {
"tag1": "primary",
} |
Beta Was this translation helpful? Give feedback.
-
Is there a way to set the color w/o having to overwrite one of the categories? |
Beta Was this translation helpful? Give feedback.
-
Badge colors can be set matching the "PyData Theme". Wouldn't it be nice to let the user (of sphinx_tags) define badge colors? I did not find anything about that the user has this option in the sphinx_tags documentation.
Beta Was this translation helpful? Give feedback.
All reactions