Skip to content

Commit 23da82e

Browse files
committed
🔧 Add default theme
1 parent 0daaa2a commit 23da82e

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

‎doczrc.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
import { createTheme } from 'pss'
1+
import { theme } from './src/theme'
22

33
export default {
44
src: './src',
55
dest: './dist',
66
base: process.env.BASENAME || '/',
77
hashRouter: true,
88
propsParser: false,
9-
themeConfig: createTheme({
10-
space: {
11-
default: [ 0, 8, 16, 32, 64 ]
12-
},
13-
color: {
14-
black: '#000',
15-
gray: [ '#eee', '#ddd', '#ccc', '#bbb', '#aaa' ],
16-
white: '#fff'
17-
}
18-
})
9+
themeConfig: theme
1910
}

‎src/theme.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { createTheme } from 'pss'
2+
3+
const theme = createTheme({
4+
grid: 12,
5+
media: {
6+
M: '(max-width: 600px)'
7+
},
8+
space: {
9+
default: [ 0, 8, 16, 32, 64 ]
10+
},
11+
color: {
12+
black: '#000',
13+
gray: [ '#eee', '#ddd', '#ccc', '#bbb', '#aaa' ],
14+
white: '#fff'
15+
}
16+
})
17+
18+
export {
19+
theme
20+
}

0 commit comments

Comments
 (0)