Skip to content

Commit a6b9bbd

Browse files
committedJul 23, 2020
add some config files
1 parent ff9eb05 commit a6b9bbd

5 files changed

+122
-0
lines changed
 

‎.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

‎.eslintrc.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
parserOptions: {
8+
parser: 'babel-eslint'
9+
},
10+
extends: [
11+
'plugin:vue/vue3-recommended',
12+
'prettier',
13+
'prettier/vue',
14+
'plugin:prettier/recommended'
15+
],
16+
plugins: ['prettier', 'vue'],
17+
rules: {
18+
'vue/html-self-closing': 0
19+
}
20+
}

‎.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
proseWrap: 'always',
4+
semi: false,
5+
singleQuote: true,
6+
trailingComma: 'none',
7+
vueIndentScriptAndStyle: true
8+
}

‎postcss.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
plugins: [
3+
require('tailwindcss'),
4+
require('autoprefixer'),
5+
require('postcss-nested'),
6+
require('postcss-preset-env')
7+
]
8+
}

‎tailwind.config.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
** TailwindCSS Configuration File
3+
**
4+
** Docs: https://tailwindcss.com/docs/configuration
5+
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
6+
*/
7+
const defaultTheme = require('tailwindcss/defaultTheme')
8+
9+
module.exports = {
10+
purge: {
11+
content: ['./src/**/*.vue']
12+
},
13+
theme: {
14+
extend: {
15+
colors: {
16+
primary: '#004250',
17+
secondary: '#3094B4'
18+
},
19+
container: {
20+
center: true
21+
},
22+
fontFamily: {
23+
sans: ['TT Norms', 'Inter var', ...defaultTheme.fontFamily.sans]
24+
},
25+
screens: {
26+
xs: '425px'
27+
},
28+
spacing: {
29+
'72': '18rem',
30+
'80': '20rem',
31+
'84': '21rem',
32+
'88': '22rem',
33+
'96': '24rem',
34+
'104': '26rem',
35+
'108': '27rem',
36+
'112': '28rem',
37+
'120': '30rem',
38+
'128': '32rem',
39+
'132': '33rem',
40+
'136': '34rem',
41+
'144': '36rem',
42+
'1/2': '50%',
43+
'1/3': '33.333333%',
44+
'2/3': '66.666667%',
45+
'1/4': '25%',
46+
'2/4': '50%',
47+
'3/4': '75%',
48+
'1/5': '20%',
49+
'2/5': '40%',
50+
'3/5': '60%',
51+
'4/5': '80%',
52+
'1/6': '16.666667%',
53+
'2/6': '33.333333%',
54+
'3/6': '50%',
55+
'4/6': '66.666667%',
56+
'5/6': '83.333333%',
57+
'1/12': '8.333333%',
58+
'2/12': '16.666667%',
59+
'3/12': '25%',
60+
'4/12': '33.333333%',
61+
'5/12': '41.666667%',
62+
'6/12': '50%',
63+
'7/12': '58.333333%',
64+
'8/12': '66.666667%',
65+
'9/12': '75%',
66+
'10/12': '83.333333%',
67+
'11/12': '91.666667%'
68+
}
69+
}
70+
},
71+
variants: {},
72+
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/ui')]
73+
}

0 commit comments

Comments
 (0)
Please sign in to comment.