Skip to content

Changing colors on cards #157

Description

@zerothi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions