Skip to content

Commit 5de312b

Browse files
committed
Added roboto 2.0.3
1 parent d6de671 commit 5de312b

File tree

7 files changed

+52
-49
lines changed

7 files changed

+52
-49
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
2+
yarn.lock
23
package-lock.json
34
build

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [2.0.3] 2022-09-08
4+
5+
### Update v2.0.3
6+
7+
- We deleted `fonts.js` and now you can change the fonts directly in `src/theme/styles.js`.
38
## [2.0.2] 2022-05-16
49

510
### Update v2.0.2

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ purity-ui-dashboard/
184184
│ │ └── drawer.js
185185
│ ├── foundations
186186
│ │ ├── breakpoints.js
187-
│ │ ├── fonts.js
188187
│ │ └── text.js
189188
│ ├── styles.js
190189
│ └── theme.js

public/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@
6767
<link
6868
href="https://fonts.googleapis.com/icon?family=Material+Icons"
6969
rel="stylesheet"
70-
/>
70+
/>
71+
<link rel="preconnect" href="https://fonts.googleapis.com">
72+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
73+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
7174
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
7275
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
7376
<!--

src/theme/foundations/fonts.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/theme/styles.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import { mode } from "@chakra-ui/theme-tools";
1+
import { mode } from '@chakra-ui/theme-tools';
22

33
export const globalStyles = {
4-
colors: {
5-
gray: {
6-
700: "#1f2733",
7-
},
8-
},
9-
styles: {
10-
global: (props) => ({
11-
body: {
12-
bg: mode("gray.50", "gray.800")(props),
13-
fontFamily: 'Helvetica, sans-serif'
14-
},
15-
html: {
16-
fontFamily: 'Helvetica, sans-serif'
17-
}
18-
}),
19-
},
4+
colors: {
5+
gray: {
6+
700: '#1f2733'
7+
}
8+
},
9+
styles: {
10+
global: (props) => ({
11+
body: {
12+
bg: mode('gray.50', 'gray.800')(props),
13+
fontFamily: "'Roboto', sans-serif"
14+
},
15+
html: {
16+
fontFamily: "'Roboto', sans-serif"
17+
}
18+
})
19+
}
2020
};

src/theme/theme.js

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
1-
import { extendTheme } from "@chakra-ui/react";
2-
import { globalStyles } from "./styles";
3-
import { font } from "./foundations/fonts";
4-
import { breakpoints } from "./foundations/breakpoints";
5-
import { buttonStyles } from "./components/button";
6-
import { badgeStyles } from "./components/badge";
7-
import { linkStyles } from "./components/link";
8-
import { drawerStyles } from "./components/drawer";
9-
import { CardComponent } from "./additions/card/Card";
10-
import { CardBodyComponent } from "./additions/card/CardBody";
11-
import { CardHeaderComponent } from "./additions/card/CardHeader";
12-
import { MainPanelComponent } from "./additions/layout/MainPanel";
13-
import { PanelContentComponent } from "./additions/layout/PanelContent";
14-
import { PanelContainerComponent } from "./additions/layout/PanelContainer";
1+
import { extendTheme } from '@chakra-ui/react';
2+
import { globalStyles } from './styles';
3+
import { breakpoints } from './foundations/breakpoints';
4+
import { buttonStyles } from './components/button';
5+
import { badgeStyles } from './components/badge';
6+
import { linkStyles } from './components/link';
7+
import { drawerStyles } from './components/drawer';
8+
import { CardComponent } from './additions/card/Card';
9+
import { CardBodyComponent } from './additions/card/CardBody';
10+
import { CardHeaderComponent } from './additions/card/CardHeader';
11+
import { MainPanelComponent } from './additions/layout/MainPanel';
12+
import { PanelContentComponent } from './additions/layout/PanelContent';
13+
import { PanelContainerComponent } from './additions/layout/PanelContainer';
1514
// import { mode } from "@chakra-ui/theme-tools";
1615
export default extendTheme(
17-
{ breakpoints }, // Breakpoints
18-
globalStyles,
19-
font, // Global styles
20-
buttonStyles, // Button styles
21-
badgeStyles, // Badge styles
22-
linkStyles, // Link styles
23-
drawerStyles, // Sidebar variant for Chakra's drawer
24-
CardComponent, // Card component
25-
CardBodyComponent, // Card Body component
26-
CardHeaderComponent, // Card Header component
27-
MainPanelComponent, // Main Panel component
28-
PanelContentComponent, // Panel Content component
29-
PanelContainerComponent // Panel Container component
16+
{ breakpoints }, // Breakpoints
17+
globalStyles,
18+
buttonStyles, // Button styles
19+
badgeStyles, // Badge styles
20+
linkStyles, // Link styles
21+
drawerStyles, // Sidebar variant for Chakra's drawer
22+
CardComponent, // Card component
23+
CardBodyComponent, // Card Body component
24+
CardHeaderComponent, // Card Header component
25+
MainPanelComponent, // Main Panel component
26+
PanelContentComponent, // Panel Content component
27+
PanelContainerComponent // Panel Container component
3028
);

0 commit comments

Comments
 (0)