Skip to content

Commit 7d66fa7

Browse files
authored
chore(docs): fix theming css docs page (#2165)
1 parent 0d7b32c commit 7d66fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/[platform]/theming/theming.react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const myTheme = {
3434
You can theme Amplify UI using CSS and CSS variables if you do not want to use the theme object structure. Amplify UI components use plain CSS so styling components can be done with CSS (or a pre-processor like [Sass](https://sass-lang.com/)). All of the design tokens defined in the Amplify theme are [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) which can be overridden:
3535

3636
```css
37-
[data-amplify-theme]: {
37+
:root, [data-amplify-theme] {
3838
--amplify-colors-font-primary: #333;
3939
/* you can also use references: */
4040
--amplify-colors-font-secondary: var(--amplify-colors-neutral-60);

0 commit comments

Comments
 (0)