-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
90 lines (85 loc) · 2.04 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const vcColors = [
{
name: 'vc-blue',
title: 'Blue',
value: '#4B6AF0',
},
{
name: 'vc-turqoise',
title: 'Turqoise',
value: '#78C9B8',
},
{
name: 'vc-orange',
title: 'Orange',
value: '#F29C4D',
},
{
name: 'vc-yellow',
title: 'Yellow',
value: '#F1D356',
},
{
name: 'vc-lightblue',
title: 'Light Blue',
value: '#56A9EB',
},
{
name: 'vc-red',
title: 'Red',
value: '#E96C61',
},
{
name: 'vc-lightpurple',
title: 'Light Purple',
value: '#C676BD',
},
{
name: 'vc-gray',
title: 'Gray',
value: '#D4D4D4',
},
]
const dynamicColorClasses = ['outline', 'shadow', 'text', 'bg']
const safeColorClasses = dynamicColorClasses
.map((cls) => vcColors.map((color) => `${cls}-${color.name}`))
.reduce((classes, currentClass) => classes.concat(currentClass))
exports.vcColors = vcColors
module.exports = {
content: [
'./app/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./intro-template/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{js,ts,jsx,tsx}',
'./plugins/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: Object.fromEntries(
vcColors.map((color) => [color.name, color.value])
),
backgroundImage: {
'mobile-hero': "url('/images/mobile-hero.svg')",
'desktop-hero': "url('/images/desktop-hero.svg')",
'process-decoration-green':
"url('/images/decoration/process-green.svg')",
'process-decoration-orange':
"url('/images/decoration/process-orange.svg')",
'process-decoration-blue': "url('/images/decoration/process-blue.svg')",
},
fontFamily: {
sans: ['Satoshi', defaultTheme.fontFamily.sans],
},
},
screens: {
xs: '375px',
...defaultTheme.screens,
},
},
plugins: [require('@tailwindcss/typography')],
safelist: safeColorClasses,
vcColors,
}