Skip to content

How to make bubble cards use the same color as tile cards #84

Answered by Nerwyn
D3SOX asked this question in Q&A
Discussion options

You must be logged in to vote

In the bubble card popup custom styles, to make tiles/default cards look like bubble cards:

:host {
  --ha-card-background: var(--bubble-main-background-color);
  --ha-card-box-shadow: var(--bubble-box-shadow);
  --ha-card-border-radius: var(--bubble-border-radius);
  --ha-card-border-width: 2px;
  --ha-card-border-color: transparent;
}

And to make bubble cards look like tiles/default cards:

:host {
  --bubble-main-background-color: var(--ha-card-background);
  --bubble-box-shadow: var(--ha-card-box-shadow);
  --bubble-border-radius: var(--ha-card-border-radius);
}
.card-content > div {
  border: var(--ha-card-border-width) solid var(--ha-card-border-color);
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@D3SOX
Comment options

@Nerwyn
Comment options

Answer selected by D3SOX
@D3SOX
Comment options

@Nerwyn
Comment options

@D3SOX
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants