Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📚 Document muted, white, and black semantic colors #216

Merged
merged 6 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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