# Canvas: support transparent background colors for cards

**URL:** <https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063>\
**Category:** Feature requests\
**Tags:** canvas\
**Created:** [December 19, 2022, 8:03pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063 "2022-12-19T20:03:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PracticalPanda](https://forum.obsidian.md/user_avatar/forum.obsidian.md/practicalpanda/32/41287_2.png) [@PracticalPanda](https://forum.obsidian.md/u/PracticalPanda)\
**Post date:** [December 19, 2022, 8:03pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/1 "2022-12-19T20:03:22Z")

</div>

### Use case or problem

I’d be awesome to be able to set HSLA, RGBA etc colors for cards (allowing transparency) as is done with groups. This will open up a host of options including being able to create “custom groups” from standard cards. This will also allow for overlapping cards when creating diagrams.

### Proposed solution

Support HSLA, RGBA, HEX with 8 digits.

### Current workaround (optional)

I’ve tried playing around with the document’s .css, and see that you can set the `div` with `class="canvas-node-container"` to `background: transparent`

### Related feature requests (optional)

Allowing this would also somewhat solve: [Canvas: transparent background for .svg files](https://forum.obsidian.md/t/canvas-transparent-background-for-svg-files/50061)

 ![SCR-20221219-t9n](https://forum.obsidian.md/uploads/default/original/3X/5/c/5c5b5a190ed641a9aa253f0f235cca770e88dc27.png)

---

<div class="post-metadata">

**Author:** ![Tre](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/b782af/32.png) [@Tre](https://forum.obsidian.md/u/Tre)\
**Post date:** [December 28, 2022, 12:11am UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/2 "2022-12-28T00:11:53Z")

</div>

### Use case or problem

Obsidian need some form of non-cards texts, for example, to comment on parts of pictures. The easiest way to implement this is to add the possibility of completely transparent cards to the color menu, obviously such cards always must be shown at the top of other entities.  
I would also like to see:

1. Ability to separately select colors of the rim and background of the card.
2. Ability to add new colors to the quick pick list.

---

<div class="post-metadata">

**Author:** ![Sharknader27](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/74df32/32.png) [@Sharknader27](https://forum.obsidian.md/u/Sharknader27)\
**Post date:** [December 29, 2022, 4:21pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/3 "2022-12-29T16:21:03Z")

</div>

+1 for transparent cards.

---

<div class="post-metadata">

**Author:** ![transmitthis](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@transmitthis](https://forum.obsidian.md/u/transmitthis)\
**Post date:** [December 29, 2022, 4:52pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/4 "2022-12-29T16:52:44Z")

</div>

I think the issue here is we don’t have png support in canvas.

Images have a set background colour, which is sometimes fine, but other times not.

If we could have actually transparency then we could solve a lot of display issues, along with the ability to send cards to the “back” or bring them to the “front” ie layering.

As for [Tre](https://forum.obsidian.md/u/Tre) colour issues, I think the colour picker is easy enough to select the rim or background of the card if needed.

The point about not having enough colours in the quick pick list may be best solved by having a hex picker to quickly paste the #4a37a0 for example - But I just realised their actually is one already there.  
So just keep a list of hex colours you use and copy paste in that colour picker

Would be nice if the hex option was sticky - or the window was larger so all options could be seen at once, but early days I guess

---

<div class="post-metadata">

**Author:** ![Sharknader27](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/74df32/32.png) [@Sharknader27](https://forum.obsidian.md/u/Sharknader27)\
**Post date:** [January 11, 2023, 11:32pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/5 "2023-01-11T23:32:15Z")

</div>

Btw, you can create transparent cards using CSS and apply that to “non-themed” (aka default grey) cards.

```auto
.canvas-node:not(.is-themed) .canvas-node-container {
   background-color: transparent; 
    border: 2px solid transparent;
} 

canvas-node-container {
    box-shadow:transparent;
}
```

---

<div class="post-metadata">

**Author:** ![joezhouchenye](https://forum.obsidian.md/user_avatar/forum.obsidian.md/joezhouchenye/32/21619_2.png) [@joezhouchenye](https://forum.obsidian.md/u/joezhouchenye)\
**Post date:** [June 6, 2023, 9:47am UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/6 "2023-06-06T09:47:42Z")

</div>

Using non-themed the card will still have a background color and I cannot find the CSS class for this.

Instead, I change the first color in the color picker to a transparent color. The CSS snippet is attached below:

```css
.canvas-wrapper .canvas-node.is-themed.mod-canvas-color-1 .canvas-node-container {
    background-color: transparent;
    border: 2px solid transparent; /*Change this if you want to have border*/
}

.mod-canvas-color-1 {
    --canvas-color: transparent;
}

/*Hide file name*/
.canvas-node.is-themed.mod-canvas-color-1 .canvas-node-label {
    display: none;
}

```

---

<div class="post-metadata">

**Author:** ![untitled](https://forum.obsidian.md/user_avatar/forum.obsidian.md/untitled/32/97098_2.png) [@untitled](https://forum.obsidian.md/u/untitled)\
**Post date:** [June 19, 2024, 3:24pm UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/7 "2024-06-19T15:24:16Z")

</div>

+1 for this feature request.

I needed this feature when a certain node started to overlap the arrow. I don’t want to move the nodes themselves to make the arrow visible - what matters to me is the existing arrangement of the nodes and the order on the canvas as a whole. Just as I don’t want to attach the arrow to the other side of the node, because that would affect the meaning of the arrow.

What does this situation look like on my canvas (arrowheads (as well as arrow text) are overlapped by nodes):

 ![canv-00](https://forum.obsidian.md/uploads/default/original/3X/b/2/b21e1fc195f5902ee897efecf5fe7b4553b07172.png)  
 ![canv-01](https://forum.obsidian.md/uploads/default/original/3X/5/6/568d98915f3d4d5f1ab812bb96a58f489c1fbfe6.png)

Another feature request that is relevant to me in this situation: [Canvas element arrangement: bring-to-front, send-to-back](https://forum.obsidian.md/t/canvas-element-arrangement-bring-to-front-send-to-back/50140)

---

<div class="post-metadata">

**Author:** ![garugc](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@garugc](https://forum.obsidian.md/u/garugc)\
**Post date:** [April 20, 2026, 9:15am UTC](https://forum.obsidian.md/t/canvas-support-transparent-background-colors-for-cards/50063/8 "2026-04-20T09:15:17Z")

</div>

I would really appreciate it if the cards could be made transparent. I don’t understand why this hasn’t been implemented since 2022. It opens up so many possibilities.

I need this feature for my visualizations. I want to display a new card above each muscle with information about that muscle.

 ![image](https://forum.obsidian.md/uploads/default/original/3X/a/e/aeca2c6e6981ee5c78536d15001eb26d5ac18c04.jpeg)
