Skip to content

Commit 830ac9f

Browse files
Coded Themesgitbook-bot
Coded Themes
authored andcommitted
GitBook: [master] 15 pages modified
1 parent 75c80e8 commit 830ac9f

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We’ve followed the best industry standards to make our product easy, fast & hi
2727
* CSS-in-JS
2828
* Multi-Language
2929

30-
## Technology Stack
30+
## Credits
3131

3232
* [React Hooks \(17.0.2\)](https://reactjs.org/docs/hooks-intro.html)
3333
* [Material UI v5](https://next.material-ui.com/)

SUMMARY.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
* [Routing](routing.md)
1212
* [Project Configuration](project-config.md)
1313
* [Theme/Style Configuration](theme-config.md)
14+
* [Resources](resources.md)
1415
* [Support](support.md)
1516
* [Changelog](changelog.md)
16-
* [Color Management\_old](color-management.md)
17-
* [Getting Started-old](getting-started-old.md)
18-
* [Resources\_old](resources.md)
19-
* [Layout Option\_old](layout-option.md)
2017

project-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Configuration option for entire them
2+
description: Configuration option for whole Berry Template
33
---
44

55
# Project Configuration

resources.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Resources\_old
1+
# Resources
22

33
| Name | Info | Link |
44
| :--- | :--- | :--- |

theme-config.md

+18-10
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Customize Material-UI with your theme. You can change the colors, the typography
88

99
## Theme configuration
1010

11-
The Entire theme can be configured from the folder **`..\src\themes`** . Theme initialization starts in`index.js` , where palette, typography, and component's overridable style exist.
11+
The Entire theme can be configured from the folder **`..\src\themes`** . Theme initialization starts in**`index.js`** , where palette, typography, and component's overridable style exist.
1212

13+
{% code title="index.js" %}
1314
```javascript
1415
import {createTheme} from '@material-ui/core/styles';
1516
import value from '../assets/scss/_themes-vars.module.scss'; // central place for all colors
@@ -80,8 +81,9 @@ export function theme(customization) {
8081
export default theme;
8182

8283
```
84+
{% endcode %}
8385

84-
As you can see colors for the theme came from the central location `import value from '../assets/scss/_themes-vars.module.scss';`
86+
As you can see colors for the theme came from the central location ``**`import value from '../assets/scss/_themes-vars.module.scss';`**
8587

8688
```css
8789
// Paper & Background Color
@@ -155,18 +157,19 @@ $textDarkTitle: #d7dcec;
155157

156158
```
157159

158-
You can check other settings like theme typography, palette, and components style override in the same folder. `..src\themes`
160+
You can check other settings like theme typography, palette, and components style override in the same folder. **`..src\themes`**
159161

160162
### How to customize it?
161163

162-
You might come across questions like how to change a theme's primary color? How to change textbox or other components which can apply to an entire theme? etc.
164+
You might come across questions like how to change a theme's **primary** color? How to change textbox or other components which can apply to an entire theme?
163165

164-
#### Customize theme Colors
166+
#### Customize Theme Colors
165167

166168
To change the color of the theme, you can either apply color directly to `..src\theme\palatte.js` **or** defines a new variable in `..src\assets\scss\_themes-vars.module.scss` and replace it in `palatte.js`
167169

168-
For instance, you want to change color where `theme.palette.primary.light` is being used in a theme then, update following in `..src\themes\palatte.js`
170+
For instance, if you want to change color where `theme.palette.primary.light` is being used in a theme then, update following in **`..src\themes\palatte.js`**
169171

172+
{% code title="palatter.js" %}
170173
```javascript
171174
import value from '../assets/scss/_themes-vars.module.scss';
172175

@@ -187,13 +190,15 @@ export function themePalatte(theme) {
187190
}
188191

189192
```
193+
{% endcode %}
190194

191-
#### Customize theme Typography
195+
#### Customize Theme Typography
192196

193197
You can customize the typography used in the theme as well from the central place.
194198

195-
For instance, you want to change `font-weight` of the typography `h5` to `900` which is set `500` in theme. To do that, open `..src\themes\typography.js` and update as below:
199+
For instance, If you want to change `font-weight` of the typography `h5` to `900`. To do that, open **`..src\themes\typography.js`** and update as below:
196200

201+
{% code title="typography.js" %}
197202
```javascript
198203
/**
199204
* Typography used in theme
@@ -210,15 +215,17 @@ export function themeTypography(theme) {
210215
}
211216

212217
```
218+
{% endcode %}
213219

214-
This will apply to all places where you used Typography variant as `h5`
220+
This will apply to all places where you used Typography variant as **`h5`**
215221

216222
**`<Typography variant="h5"...>`**
217223

218224
#### Customize MUI Component style
219225

220-
We provided a central location to override any default style of any component. All the overrides style exist in `src\themes\compStyleOverride.js`
226+
We have provided a central location to override any default style of any component. All the overrides style exist in **`src\themes\compStyleOverride.js`**
221227

228+
{% code title="compStyleOverride.js" %}
222229
```javascript
223230
import value from '../assets/scss/_themes-vars.module.scss';
224231

@@ -249,6 +256,7 @@ export function componentStyleOverrides(theme) {
249256
}
250257

251258
```
259+
{% endcode %}
252260

253261
You can add default property for any MUI component and it will be applied everywhere. We emitted lines to view it better in the above code block but you can see many controls' styles override in the same file. Feel free to change it as per your need.
254262

0 commit comments

Comments
 (0)