-
Notifications
You must be signed in to change notification settings - Fork 10
/
tailwind.config.js
67 lines (64 loc) · 1.33 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
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./**/*.tsx'],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#fffff9',
100: '#ffffad',
200: '#fffe75',
300: '#fffe2d',
400: '#fffe0f',
500: '#efee00',
600: '#d0d000',
700: '#b2b100',
800: '#939300',
900: '#757400',
},
black: {
50: '#707070',
100: '#424242',
200: '#323232',
300: '#242424',
400: '#181818',
500: '#0a0a0a',
600: '#040404',
700: '#000',
},
},
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '2rem',
},
},
fontFamily: {
serif: ['Bitter', 'serif'],
sans: [
'SF Pro Text',
'Inter',
'system-ui',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Ubuntu',
],
monospace: [`SF Mono`, `ui-monospace`, `Monaco`, 'Monospace'],
},
},
plugins: [plugin(ellipisfyPlugin)],
};
function ellipisfyPlugin({ addUtilities }) {
const styles = {
'.ellipsify': {
overflow: 'hidden',
'text-overflow': 'ellipsis',
'white-space': 'pre',
},
};
addUtilities(styles);
}