Skip to content

Commit

Permalink
Add .color-bg-transparent (#1985)
Browse files Browse the repository at this point in the history
* Add .color-bg-transparent

* Create ninety-phones-run.md

Co-authored-by: Jon Rohan <rohan@github.com>
  • Loading branch information
cheshire137 and jonrohan committed Mar 9, 2022
1 parent d379221 commit c2bd6bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-phones-run.md
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Adding .color-bg-transparent utility class
2 changes: 2 additions & 0 deletions docs/content/utilities/colors.mdx
Expand Up @@ -75,6 +75,8 @@ Background colors are most commonly used for filling large blocks of content or

<div class="color-bg-sponsors p-2 rounded mb-2">.color-bg-sponsors</div>
<div class="color-bg-sponsors-emphasis color-fg-on-emphasis p-2 rounded">.color-bg-sponsors-emphasis</div>

<div class="color-bg-transparent p-2 rounded mb-2">.color-bg-transparent</div>
```

## Border
Expand Down
2 changes: 2 additions & 0 deletions src/utilities/colors.scss
Expand Up @@ -53,6 +53,8 @@
.color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
.color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }

.color-bg-transparent { background-color: transparent !important; }

// Border

.color-border-default { border-color: var(--color-border-default) !important; }
Expand Down

0 comments on commit c2bd6bc

Please sign in to comment.