Skip to content

Commit d7996b8

Browse files
authored
chore: add note about scoped default theme for elements (#2287)
1 parent 57e06a2 commit d7996b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/elements/guides/02_theming.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ function MyApp({ Component, pageProps }) {
7070
}
7171
export default MyApp
7272
```
73+
74+
## Using the default theme with custom components
75+
76+
When building custom components, you can still leverage the default theme by using the CSS variables defined in Ory Elements. The
77+
default theme's styles are scoped to the `.ory-elements` CSS class. This means that if you wrap your custom components in a
78+
container with this class, they will inherit the default theme styles.

0 commit comments

Comments
 (0)