Skip to content

Commit

Permalink
Add more sphinx-design components
Browse files Browse the repository at this point in the history
Also tweak how the primary button is used.
  • Loading branch information
pradyunsg committed Aug 17, 2021
1 parent db4dd73 commit f1979a7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/kitchen-sink/sphinx-design.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# sphinx-design stuff

## Icons

{octicon}`heart-fill;1em;sd-text-danger`

## Tabs

````{tab-set}
Expand Down Expand Up @@ -102,3 +106,31 @@ The entire card can be clicked to navigate to <https://example.com>.
:date: Aug 15, 2021
:read-time: 5 min read
```

## Badges

{bdg}`plain badge`
{bdg-primary}`primary` {bdg-primary-line}`primary-line`
{bdg-secondary}`secondary` {bdg-secondary-line}`secondary-line`
{bdg-success}`success` {bdg-success-line}`success-line`
{bdg-info}`info` {bdg-info-line}`info-line`
{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-dark}`dark` {bdg-dark-line}`dark-line`

## Buttons

```{button-link} https://example.com
Button text
```

```{button-link} https://example.com
:color: primary
Button text
```

```{button-link} https://example.com
:color: secondary
:expand:
```
5 changes: 5 additions & 0 deletions src/furo/assets/styles/extensions/_sphinx-design.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
body
// Colors
--sd-color-primary: var(--color-brand-primary)
--sd-color-primary-highlight: var(--color-brand-content)
--sd-color-primary-text: var(--color-background-primary)

// Shadows
--sd-color-shadow: rgba(0, 0, 0, 0.05)

Expand Down

0 comments on commit f1979a7

Please sign in to comment.