-
Notifications
You must be signed in to change notification settings - Fork 8
/
tailwind.config.js
67 lines (57 loc) · 2.12 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
// NOTE: Use this to add transparency.
// function withOpacity(variableName) {
// return ({ opacityValue }) => {
// if (opacityValue === undefined) {
// opacityValue = 1;
// }
// return `rgba(var(${variableName}), ${opacityValue})`;
// };
// }
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
animation: {
'spin-slow': 'spin 2s linear infinite',
},
colors: {
// TODO V2: This is for reference. Convert themes to RGB first.
// 'activity-bg': withOpacity('--theme-activity-bg'),
// 'activity-fg': withOpacity('--theme-activity-fg'),
// 'activity-hover': withOpacity('--theme-activity-hover'),
// 'activity-active': withOpacity('--theme-activity-active'),
'activity-bg': 'var(--theme-activity-bg)',
'activity-fg': 'var(--theme-activity-fg)',
'activity-hover': 'var(--theme-activity-hover)',
'activity-active': 'var(--theme-activity-active)',
'search-bg': 'var(--theme-search-bg)',
'search-fg': 'var(--theme-search-fg)',
'editor-bg': 'var(--theme-editor-bg)',
'editor-fg': 'var(--theme-editor-fg)',
'editor-hover': 'var(--theme-editor-hover)',
'editor-border': 'var(--theme-editor-border)',
'card-bg': 'var(--theme-card-bg)',
'card-fg': 'var(--theme-card-fg)',
'preview-bg': 'var(--theme-preview-bg)',
'preview-fg': 'var(--theme-preview-fg)',
'status-bg': 'var(--theme-status-bg)',
'status-fg': 'var(--theme-status-fg)',
'status-hover': 'var(--theme-status-hover)',
hyperlink: 'var(--theme-hyperlink)',
'scrollbar-bg': 'var(--theme-scrollbar-bg)',
'scrollbar-fg': 'var(--theme-scrollbar-fg)',
red: 'var(--theme-red)',
blue: 'var(--theme-blue)',
green: 'var(--theme-green)',
orange: 'var(--theme-orange)',
purple: 'var(--theme-purple)',
yellow: 'var(--theme-yellow)',
},
},
},
variants: {
extend: {},
},
plugins: [require('tailwind-scrollbar')],
};