This repository was archived by the owner on Mar 30, 2020. It is now read-only.
forked from madebyshape/tailwind-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
96 lines (95 loc) · 2.32 KB
/
tailwind.config.js
File metadata and controls
96 lines (95 loc) · 2.32 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
const defaultTheme = require('tailwindcss/defaultTheme');
const alpha = { 100: 'FF', 90: 'E6', 80: 'CC', 70: 'B3', 60: '99', 50: '80', 40: '66', 30: '4D', 20: '33', 10: '1A' };
module.exports = {
theme: {
extend: {
colors: {
primary: {
100: '#F0F2FD',
200: '#D9DFFA',
300: '#C2CBF7',
400: '#94A5F0',
500: '#667EEA',
600: '#5C71D3',
700: '#3D4C8C',
800: '#2E3969',
900: '#1F2646'
},
secondary: {
100: '#EBF7F7',
200: '#CDECEA',
300: '#AFE0DE',
400: '#74C9C5',
500: '#38B2AC',
600: '#32A09B',
700: '#226B67',
800: '#19504D',
900: '#113534'
},
brands: {
facebook: '#3b5998',
twitter: '#55acee',
instagram: '#3f729b',
linkedin: '#0976b4',
youtube: '#e52d27',
vimeo: '#1ab7ea',
pinterest: '#cc2127'
}
},
fontSize: {
'xs': '0.75rem', // 12
'sm': '0.875rem', // 14
'base': '1rem', // 16
'lg': '1.125rem', // 18
'xl': '1.25rem', // 20
'2xl': '1.5rem', // 24
'3xl': '1.875rem', // 30
'4xl': '2.25rem', // 36
'5xl': '3rem', // 48
'6xl': '4rem' // 64
},
fontFamily: {
'sans-primary': [
...defaultTheme.fontFamily.sans
],
'serif-primary': [
...defaultTheme.fontFamily.serif
],
'mono-primary': [
...defaultTheme.fontFamily.mono
],
},
boxShadow: theme => ({
'outline': '0 0 0 3px ' + theme('colors.primary.500') + alpha[20],
'focus': '0 0 0 3px ' + theme('colors.primary.500') + alpha[20]
}),
inset: {
'0': 0,
'1/2': '50%'
},
// Plugins
aspectRatio: {
'square': [1, 1],
'16/9': [16, 9],
'4/3': [4, 3]
},
alphaColors: [
'white',
'black',
'primary.500',
'secondary.500'
]
},
screens: {
...defaultTheme.screens,
}
},
variants: {
alphaColors: ['hover', 'group-hover']
},
plugins: [
require('tailwindcss-typography')(),
require('tailwindcss-aspect-ratio')(),
require('tailwindcss-bg-alpha')()
]
}