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
@@ -91,29 +90,31 @@ import Button from 'fe-theme/Button';
91
90
<Button />
92
91
```
93
92
94
-
Wow, the configuration is quite simple, but wait... button design is different in my application. No worry, fellow step 3, 4.
93
+
Wow, the configuration is quite simple, but wait... button design is different in my application. No worry, follow step 3, 4.
95
94
96
-
#### 3. Creating a fe-theme folder in your application. It contains config files of components.
95
+
#### 3. Creating a fe-theme folder in your application. It contains components config file.
97
96
98
-
Create config file for all the component of fe-theme
97
+
Create config file for all the component of fe-theme
99
98
```js
100
99
COMPONENT_CONFIG_PATH=./{PATH} CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
101
100
```
102
101
103
-
Create config file for a single component of fe-theme
102
+
<palign="center">OR</p>
103
+
104
+
Creating config file for an individual component
104
105
```js
105
106
COMPONENET_NAME={COMPONENT_NAME} COMPONENT_CONFIG_PATH=./{PATH} CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
106
107
```
107
108
108
-
**Note:**
109
-
```PATH``` is a variable i.e. where you want to place config files for your application
110
-
```COMPONENT_NAME``` is a variable i.e. where ```component``` Input, button, CHIP (Allow any case)
109
+
**Note:**
110
+
111
+
```1. PATH``` is a variable i.e. where you want to place config files in your application
112
+
113
+
```2. COMPONENT_NAME``` is a variable i.e. name of the component ```Input```, ```button```. [Find the component list](./.github/COMPONENT.md)
111
114
112
115
#### 4. Passing configuration settings to the fe-theme library using ThemeProvider
113
116
114
117
```js
115
-
importReactfrom'react';
116
-
importReactDOMfrom'react-dom';
117
118
import { ThemeProvider } from'styled-components';
118
119
importInitfrom'fe-theme/Init';
119
120
importthemefrom'{PATH}/fe-theme/universal/theme'; // Include your theme to fe-theme
0 commit comments