You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/storybook/src/ui/theme-configuration/customizing-theme/EjectLibrary/index.stories.mdx
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,21 @@ import { AppProvider, CodePreview, Text } from '@gluestack/design-system';
24
24
25
25
Customizing components allows you to tailor the components according to your design system or guidelines to match your project's unique visual identity. To customize tokens and components, follow these steps:
26
26
27
-
> Note: Commit you changes before ejecting, this command with update the imports!!
27
+
> Note: Commit your changes before ejecting, this command with update the imports!!
28
28
29
-
1.**Eject**: Run following command to eject the theme. This will create a **components** folder in your project root directory and copy all the styled components.
29
+
1.**Update Config**: Run following command to install the latest version of `@gluestack-ui/config`.
30
+
31
+
```bash
32
+
npm i @gluestack-ui/config@latest
33
+
```
34
+
OR
35
+
36
+
```bash
37
+
yarn add @gluestack-ui/config@latest
38
+
```
39
+
40
+
41
+
2.**Eject**: Run following command to eject the theme. This will create a **components** folder in your project root directory and copy all the styled components.
This will overwrite the existing styles with default one. (It is NOT RECOMMENDED to eject again)
37
49
If you need to eject the components, then save the changes and copy/paste them manually.
38
50
39
-
2. If you are already using `@gluestack-ui/themed` inside your project, running this command will automatically change the imports from `@gluestack-ui/themed` to the components folder path.
51
+
3. If you are already using `@gluestack-ui/themed` inside your project, running this command will automatically change the imports from `@gluestack-ui/themed` to the components folder path.
40
52
41
-
3. Remove the config file passed inside provides at the root of the project. Wrap the root of the project with `GluestackUIProvider` only.
53
+
4. Remove the config file passed inside provides at the root of the project. Wrap the root of the project with `GluestackUIProvider` only.
You can customize all the tokens of the theme in `config`. For a complete list of tokens and default values, please check [default Tokens](https://gluestack.io/ui/docs/theme-configuration/theme/default-tokens).
86
98
87
-
5.**Update Components**: you can find all of your components theme inside `./components` folder. For example, if you want to customize `Button` component, you can find its theme file at `./components/button/index.tsx`. Update component's style as per your requirements.
99
+
6.**Update Components**: you can find all of your components theme inside `./components` folder. For example, if you want to customize `Button` component, you can find its theme file at `./components/button/index.tsx`. Update component's style as per your requirements.
0 commit comments