Skip to content

Commit c2bd6bc

Browse files
Add .color-bg-transparent (#1985)
* Add .color-bg-transparent * Create ninety-phones-run.md Co-authored-by: Jon Rohan <[email protected]>
1 parent d379221 commit c2bd6bc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.changeset/ninety-phones-run.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Adding .color-bg-transparent utility class

docs/content/utilities/colors.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Background colors are most commonly used for filling large blocks of content or
7575

7676
<div class="color-bg-sponsors p-2 rounded mb-2">.color-bg-sponsors</div>
7777
<div class="color-bg-sponsors-emphasis color-fg-on-emphasis p-2 rounded">.color-bg-sponsors-emphasis</div>
78+
79+
<div class="color-bg-transparent p-2 rounded mb-2">.color-bg-transparent</div>
7880
```
7981

8082
## Border

src/utilities/colors.scss

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
.color-bg-sponsors { background-color: var(--color-sponsors-subtle) !important; }
5454
.color-bg-sponsors-emphasis { background-color: var(--color-sponsors-emphasis) !important; }
5555

56+
.color-bg-transparent { background-color: transparent !important; }
57+
5658
// Border
5759

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

0 commit comments

Comments
 (0)