-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
128 lines (123 loc) · 3.77 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
const colors = require('tailwindcss/colors');
const { theme: { spacing } } = require('tailwindcss/defaultConfig');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./index.html',
'./src/**/*.{vue,ts}',
'./src/lang/*.yaml',
// TODO only in storybook env
'./.storybook/stories/**/*.ts',
],
theme: {
fontFamily: {
livvic: [
'"Livvic"',
'sans-serif',
],
},
fontSize: {
'xs': ['0.875rem', { lineHeight: '1rem' }],
'sm': ['1rem', { lineHeight: '1.25rem' }],
'base': ['1.125rem', { lineHeight: '1.5rem' }],
'lg': ['1.25rem', { lineHeight: '1.75rem' }],
'xl': ['1.5rem', { lineHeight: '1.75rem' }],
'2xl': ['1.875rem', { lineHeight: '2rem' }],
'3xl': ['2.25rem', { lineHeight: '2.25rem' }],
'4xl': ['3rem', { lineHeight: '1' }],
'5xl': ['3.75rem', { lineHeight: '1' }],
'6xl': ['4.5rem', { lineHeight: '1' }],
'7xl': ['6rem', { lineHeight: '1' }],
'8xl': ['8rem', { lineHeight: '1' }],
},
colors: {
'gray': colors.neutral,
'white': colors.white,
'red': colors.red,
'green': colors.emerald,
'current': colors.current,
'black': colors.black,
'transparent': colors.transparent,
'dark-overlay': 'rgba(0,0,0,.5)',
'primary': {
100: '#dff29c',
200: '#d5ee7c',
300: '#c0e147',
400: '#b0d237',
500: '#8db007',
600: '#738e06',
700: '#668104',
800: '#637a05',
900: '#475809',
},
'primary-gray': {
300: '#d9dccb',
700: '#464a36',
},
'brand-solid': {
100: '#e3dafb',
200: '#c4b2f5',
300: '#ab91f2',
400: '#9d7cf8',
500: '#7c4dff',
600: '#7447f0',
700: '#5f34d5',
800: '#4a22b9',
900: '#2c0f7b',
},
'brand-solid-gray': {
300: '#d0cddb',
700: '#3c3749',
},
},
extend: {
spacing: {
13: `calc(${spacing['12']} + ${spacing['1']})`,
edge: spacing['8'],
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
'fontSize': theme('fontSize.base'),
'code': {
color: 'currentColor',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
},
},
}),
translate: {
screen: '100vw',
},
width: {
clickable: '42px',
},
height: {
clickable: '42px',
},
minWidth: {
'clickable': '42px',
'modal-content': '70vw',
'modal-content-md': '500px',
},
minHeight: {
clickable: '42px',
},
maxWidth: {
content: '1280px',
},
zIndex: {
60: '60',
},
},
},
plugins: [
require('@tailwindcss/forms')({ strategy: 'class' }),
require('@tailwindcss/typography'),
],
};