-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtailwind.config.js
More file actions
126 lines (123 loc) · 2.98 KB
/
tailwind.config.js
File metadata and controls
126 lines (123 loc) · 2.98 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
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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
safelist: [
'font-bold',
'!text-start', '!text-end', '!text-center',
'!align-sub', '!align-super',
'!bg-left', '!bg-right', '!bg-center', '!bg-bottom', '!bg-top',
{
pattern: /^!?([pm])([tblr])?-[0-9.]+$/,
},
{
pattern: /^!?text-(3xs|2xs|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl|10xl)$/,
},
{
pattern: /align-(sub|super)+/,
},
{
pattern: /(bg|theme)-(light|sepia|dark)+/,
},
{
pattern: /(bg)-(left|right|center|bottom|top)+/,
},
],
theme: {
listStyleType: {
none: 'none',
decimal: 'decimal',
disc: 'disc',
square: 'square',
roman: 'upper-roman',
circle: 'circle',
},
fontFamily: {
sans: ['lato', 'sans-serif'],
mono: ['ui-monospace', 'SFMono-Regular'],
},
extend: {
fontSize: {
'3xs': '.5rem',
'2xs': '.625rem',
'xs': '0.8rem',
'sm': '1rem',
'base': '1.125rem',
'lg': '1.25rem',
'xl': '1.563rem',
'2xl': '1.953rem',
'3xl': '2.441rem',
'4xl': '3.052rem',
'5xl': '3.815rem',
'6xl': '4.768rem',
'7xl': '5.96rem',
'8xl': '7.451rem',
'9xl': '9.313rem',
'10xl': '11.642rem',
},
maxWidth: {
'ss-cover': '250px',
},
minWidth: {
'ss-cover': '250px',
},
maxHeight: {
'ss-cover': '335px',
},
minHeight: {
'ss-cover': '335px',
'ss-pdf': '600px',
'ss-pdf-md': '800px',
'ss-pdf-lg': '1000px',
'ss-pdf-xl': '1200px',
},
dropShadow: {
'4xl': [
'0 35px 35px rgba(0, 0, 0, 0.25)',
'0 45px 65px rgba(0, 0, 0, 0.15)'
]
},
colors: {
'ss-primary': 'var(--color-primary)',
'light': '#ffffff',
'sepia': '#fbf0d9',
'dark': '#000000',
'sspm-accent': '#00506B',
'sspm-secondary': '#E3F3F7',
'sspm-accent-600': '#0096B4',
'sspm-accent-800': '#00506B',
'sspm-accent-900': '#002D47',
'sspm-accent-50': '#E3F3F7',
'sspm-accent-1000': '#2F557F',
},
height: {
'ss-cover': '335px',
'ss-cover-small': '15rem'
},
width: {
'ss-cover': '250px',
},
scale: {
'appeal': '0.995',
},
spacing: {
'7': '1.75rem',
'8': '2rem',
'9': '2.25rem',
},
},
},
plugins: [
plugin(function({addVariant}) {
// here is your CSS selector - could be anything
// in this case it is `.theme` element
// with `.theme--red` class (both present)
addVariant('theme-sepia', '.theme.theme--sepia &')
addVariant('theme-dark', '.theme.theme--dark &')
addVariant('theme-light', '.theme.theme--light &')
})
],
}