-
Notifications
You must be signed in to change notification settings - Fork 26
/
tailwind.config.js
73 lines (72 loc) · 1.5 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
/* eslint-disable @typescript-eslint/no-var-requires */
const typography = require('@tailwindcss/typography');
const lineClamp = require('@tailwindcss/line-clamp');
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./layout/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.darkest'),
lineHeight: 1.625,
},
},
}),
},
fontFamily: {
sans: ['Lato', '"Helvetica Neue"', 'Helvetica', 'Arial', 'sans-serif'],
},
fontSize: {
'3xs': '0.625rem',
'2xs': '0.75rem',
xs: '0.815rem',
sm: '0.875rem',
base: '1rem',
lg: '1.625rem',
xl: '2.625rem',
'2xl': '4rem',
},
fontWeight: {
light: 300,
normal: 400,
bold: 700,
},
colors: {
transparent: 'transparent',
current: 'currentColor',
black: '#000',
white: '#fff',
gray: {
darkest: '#393f44',
dark: '#717171',
DEFAULT: '#caccd0',
light: '#f0f1f2',
},
red: {
DEFAULT: '#d0021b',
},
yellow: {
DEFAULT: '#fab72e',
},
green: {
DEFAULT: '#65b60d',
},
blue: {
DEFAULT: '#2c75b0',
light: '#3bb2d0',
},
pink: {
DEFAULT: '#c32d7b',
},
},
},
variants: {
extend: {},
},
plugins: [typography, lineClamp],
};