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

Changing colors on cards #157

Open
zerothi opened this issue Aug 28, 2023 · 0 comments
Open

Changing colors on cards #157

zerothi opened this issue Aug 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@zerothi
Copy link

zerothi commented Aug 28, 2023

Describe the bug

context
I want to change colors on the full cards similar to the css annotations mentioned for button-link.

expectation
I expected class-card to accept something similar to button-link

bug
But instead nothing happens.

problem
This is a problem for people doing ___ because ___.

Reproduce the bug

I would like an entire card to follow the color schemes that one can choose for button-link.

However, there are no color attributes that associates with the button-link available colors (see here).

So I tried these things:

.. card:: Title
    :class-card: <here>

I tried with bg-primary, sd-color-primary etc. Now, bg-primary actually changes the color.
However, I also have an extra css entry, with:

* {
  --bg-primary: #990000;
}

But it does not use it. Now, I have no idea about css, so probably I am doing things wrong there.

But, ideally, I would like to have a color + highlight color on the card. But I can't get it to work?
Should it work?

List your environment

sphinx-design 0.5.0

@zerothi zerothi added the bug Something isn't working label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant