Skip to content

Commit f8e6d77

Browse files
Viraj Ajay JoshiViraj Ajay Joshi
authored andcommitted
fix: customizing theme
1 parent b0fe9d5 commit f8e6d77

File tree

1 file changed

+14
-15
lines changed
  • example/storybook/src/ui/theme-configuration/customizing-theme/EjectTheme

1 file changed

+14
-15
lines changed

example/storybook/src/ui/theme-configuration/customizing-theme/EjectTheme/index.stories.mdx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { AppProvider, CodePreview, Text } from '@gluestack/design-system';
1818

1919
`gluestack-ui` is intentionally designed as an unstyled library, providing you with the flexibility to style your components as you prefer. For users looking for a seamless integration experience, we offer the `@gluestack-ui/config` package, which comes with pre-configured theme that can easily be integrated with `@gluestack-ui/themed` for a convenient styling solution.
2020

21-
> Note: It is NOT RECOMMENDED to both eject theme & library in one project. It is RECOMMENDED to [eject library](/ui/docs/theme-configuration/customizing-theme/eject-library) as it provides maximum customization(theme & components), but if you want to customize only the theme, refer the documentation below.
21+
> Note: It is NOT RECOMMENDED to both eject theme & library in one project. It is RECOMMENDED to [eject library](/ui/docs/theme-configuration/customizing-theme/eject-library) as it provides maximum customization(theme & components), but if you want to customize only the theme, refer the documentation below.
2222
2323
## Customizing Tokens
2424

@@ -87,12 +87,12 @@ You can customize all the tokens of the theme in `config`. For a complete list o
8787

8888
By utilizing this approach, you can seamlessly modify the primary color tokens of the theme while maintaining the overall theme configuration intact.
8989

90-
< AppProvider >
91-
< CodePreview
92-
showComponentRenderer = { true }
93-
showArgsController = { false}
94-
metaData = {{
95-
code: `
90+
<AppProvider>
91+
<CodePreview
92+
showComponentRenderer={true}
93+
showArgsController={false}
94+
metaData={{
95+
code: `
9696
<Box
9797
bg="$primary500"
9898
p="$5"
@@ -106,16 +106,15 @@ By utilizing this approach, you can seamlessly modify the primary color tokens o
106106
transformCode: (code) => {
107107
return transformedCode(code);
108108
},
109-
scope: {
110-
Wrapper: CustomThemeWrapper,
109+
scope: {
110+
Wrapper: CustomThemeWrapper,
111111
Box,
112112
Text,
113-
},
114-
argsType: { },
115-
}
116-
}
117-
/>
118-
< /AppProvider>
113+
},
114+
argsType: {},
115+
}}
116+
/>
117+
</AppProvider>
119118

120119
## Customizing Components
121120

0 commit comments

Comments
 (0)