-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03cf444
commit ee3a56b
Showing
3 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
"@rhds/tokens": minor | ||
--- | ||
Added theme tokens for responsive colours. Read these in a themable container | ||
such as `<rh-card>` to style themable content that responds to the color palette | ||
|
||
```html | ||
<rh-surface color-palette="lighter"> | ||
<rh-card color-palette="darkest"> | ||
<p>That way, colours respond to their parents' <code>color-palette</code> | ||
Without requiring <a href="#">custom CSS</a></p> | ||
</rh-card> | ||
<p>Use <a href="#">theme tokens</a> for best results. | ||
</rh-surface> | ||
``` | ||
|
||
```css | ||
rh-surface { | ||
& a { | ||
color: var(--rh-color-interactive-blue-normal); | ||
&:hover, | ||
&:focus-within, | ||
&:active { color: var(--rh-color-interactive-blue-emphasized); } | ||
&:visited { | ||
color: var(--rh-color-interactive-purple-normal); | ||
&:hover, | ||
&:focus-within, | ||
&:active { color: var(--rh-color-interactive-purple-emphasized); } | ||
} | ||
} | ||
} | ||
``` | ||
|
||
For more information, please see our [theming docs](https://ux.redhat.com/themeing). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters