-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.cjs
72 lines (70 loc) · 1.55 KB
/
tailwind.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const defaultTheme = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config}*/
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
corePlugins: {
container: false
},
plugins: [
plugin(({ addComponents, theme }) => {
addComponents({
'.container': {
margin: '0 auto',
maxWidth: theme('screens.lg'),
padding: theme('spacing.4'),
[`@media (min-width: ${theme('screens.md')})`]: {
padding: theme('spacing.8')
}
},
'.container-sm': {
margin: '0 auto',
maxWidth: theme('screens.sm'),
padding: theme('spacing.4'),
[`@media (min-width: ${theme('screens.md')})`]: {
padding: theme('spacing.8')
}
}
});
}),
require('@tailwindcss/typography'),
require('@tailwindcss/forms')
],
theme: {
extend: {
fontFamily: {
sans: ['Manrope Variable', 'Inter', ...defaultTheme.fontFamily.sans],
display: ['League Spartan Variable', ...defaultTheme.fontFamily.sans]
},
colors: {
primary: {
50: '#F2F7FF',
100: '#E1F1FF',
200: '#BCDEFE',
300: '#91C3FF',
400: '#609FFF',
500: '#0073DE',
600: '#0060C0',
700: '#0448AF',
800: '#01358D',
900: '#022975',
950: '#021E56'
},
base: {
50: '#FBFBFD',
100: '#F2F3F7',
200: '#E1E4EC',
300: '#CACFDB',
400: '#8791A0',
500: '#566378',
600: '#445066',
700: '#2C374B',
800: '#1C2637',
900: '#141B27',
950: '#0F1520'
}
}
}
}
};
module.exports = config;