Skip to content

Commit 545545e

Browse files
committed
spice up the example
1 parent 8da59ed commit 545545e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/src/content/docs/utilities/theme.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Take any of our theme color classes and add `.theme-contrast`, `.theme-subtle`,
1717

1818
### Contrast
1919

20-
Contrast pairs the `bg` theme token with the `contrast` text color for maximum readability. This is ideal for high-emphasis elements with solid backgrounds.
20+
Contrast pairs the `bg` theme token with the `contrast` text color for maximum readability with `.theme-contrast`. This is ideal for high-emphasis elements with solid backgrounds.
2121

2222
<Example class="d-grid gap-2" code={getData('theme-colors').map((themeColor) => `<div class="p-2 theme-${themeColor.name} theme-contrast">.theme-${themeColor.name} .theme-contrast</div>`)} />
2323

2424
Nested links inherit the contrast foreground so they stay legible on the solid background:
2525

26-
<Example class="d-grid gap-2" code={getData('theme-colors').map((themeColor) => `<div class="p-3 theme-${themeColor.name} theme-contrast">Theme ${themeColor.title} with a <a href="#">nested link</a> inside.</div>`)} />
26+
<Example class="d-grid gap-2" code={getData('theme-colors').map((themeColor) => `<div class="p-3 theme-${themeColor.name} theme-contrast">Theme ${themeColor.title} with a <a class="underline-50 hover:underline-100" href="#">nested link</a> inside.</div>`)} />
2727

2828
### Subtle
2929

0 commit comments

Comments
 (0)