Skip to content

Commit

Permalink
📚 Document muted, white, and black semantic colors (#216)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Sewell <[email protected]>
  • Loading branch information
user27182 and chrisjsewell authored Sep 16, 2024
1 parent 18afa33 commit b3d6edd
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/badges_buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ Badges are available in each semantic color, with filled and outline variants:
- {bdg-warning}`warning`, {bdg-warning-line}`warning-line`
- {bdg-danger}`danger`, {bdg-danger-line}`danger-line`
- {bdg-light}`light`, {bdg-light-line}`light-line`
- {bdg-muted}`muted`, {bdg-muted-line}`muted-line`
- {bdg-dark}`dark`, {bdg-dark-line}`dark-line`
- {bdg-white}`white`, {bdg-white-line}`white-line`
- {bdg-black}`black`, {bdg-black-line}`black-line`

`````{dropdown-syntax}
Expand Down
6 changes: 6 additions & 0 deletions docs/snippets/myst/badge-basic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@

{bdg-light}`light`, {bdg-light-line}`light-line`

{bdg-muted}`muted`, {bdg-muted-line}`muted-line`

{bdg-dark}`dark`, {bdg-dark-line}`dark-line`

{bdg-white}`white`, {bdg-white-line}`white-line`

{bdg-black}`black`, {bdg-black-line}`black-line`
6 changes: 6 additions & 0 deletions docs/snippets/rst/badge-basic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@

:bdg-light:`light`, :bdg-light-line:`light-line`

:bdg-muted:`muted`, :bdg-muted-line:`muted-line`

:bdg-dark:`dark`, :bdg-dark-line:`dark-line`

:bdg-white:`white`, :bdg-white-line:`white-line`

:bdg-black:`black`, :bdg-black-line:`black-line`
18 changes: 18 additions & 0 deletions tests/test_snippets/snippet_post_badge-basic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,27 @@
,
<inline classes="sd-sphinx-override sd-badge sd-outline-light sd-text-light">
light-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-muted sd-bg-text-muted">
muted
,
<inline classes="sd-sphinx-override sd-badge sd-outline-muted sd-text-muted">
muted-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-dark sd-bg-text-dark">
dark
,
<inline classes="sd-sphinx-override sd-badge sd-outline-dark sd-text-dark">
dark-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-white sd-bg-text-white">
white
,
<inline classes="sd-sphinx-override sd-badge sd-outline-white sd-text-white">
white-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-black sd-bg-text-black">
black
,
<inline classes="sd-sphinx-override sd-badge sd-outline-black sd-text-black">
black-line
18 changes: 18 additions & 0 deletions tests/test_snippets/snippet_pre_badge-basic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,27 @@
,
<inline classes="sd-sphinx-override sd-badge sd-outline-light sd-text-light">
light-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-muted sd-bg-text-muted">
muted
,
<inline classes="sd-sphinx-override sd-badge sd-outline-muted sd-text-muted">
muted-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-dark sd-bg-text-dark">
dark
,
<inline classes="sd-sphinx-override sd-badge sd-outline-dark sd-text-dark">
dark-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-white sd-bg-text-white">
white
,
<inline classes="sd-sphinx-override sd-badge sd-outline-white sd-text-white">
white-line
<paragraph>
<inline classes="sd-sphinx-override sd-badge sd-bg-black sd-bg-text-black">
black
,
<inline classes="sd-sphinx-override sd-badge sd-outline-black sd-text-black">
black-line

0 comments on commit b3d6edd

Please sign in to comment.