forked from gitify-app/gitify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
109 lines (99 loc) · 3.32 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss';
import colors from 'tailwindcss/colors';
const config: Config = {
content: ['./src/**/*.js', './src/**/*.ts', './src/**/*.tsx'],
darkMode: 'class',
theme: {
extend: {
fontSize: {
xxs: '0.625rem', // 10px
},
colors: {
/**
* Temporary solution until we migrate to using GitHub Primer Design Tokens Directly.
*
* See https://primer.style/foundations/primitives/color
*/
primer: {
attention: '#9a6700',
closed: '#cf222e',
done: '#8250df',
muted: '#59636e',
open: '#1f883d',
},
gitify: {
background: 'var(--gitify-background)',
font: 'var(--gitify-font)',
error: colors.red[500],
sidebar: '#24292e',
footer: 'var(--gitify-footer)',
accounts: {
rest: 'var(--gitify-accounts-rest)',
error: 'var(--gitify-accounts-error)',
},
repositories: 'var(--gitify-repositories)',
notifications: {
border: 'var(--gitify-notifications-border)',
rest: 'var(--gitify-notifications-rest)',
hover: 'var(--gitify-notifications-hover)',
},
tooltip: {
icon: colors.blue[500],
popout: 'var(--gitify-tooltip-popout)',
},
link: colors.blue[500],
caution: colors.orange[600],
settings: colors.blue[600],
pill: {
rest: 'var(--gitify-pill-rest)',
hover: 'var(--gitify-pill-hover)',
},
},
},
},
},
variants: {
extend: {},
},
plugins: [
({ addBase }) => {
addBase({
':root': {
'--gitify-background': colors.white,
'--gitify-font': colors.gray[700],
'--gitify-footer': colors.gray[200],
'--gitify-accounts-rest': colors.gray[300],
'--gitify-accounts-error': colors.red[300],
'--gitify-repositories': colors.gray[100],
'--gitify-notifications-border': colors.gray[100],
'--gitify-notifications-rest': colors.white,
'--gitify-notifications-hover': colors.gray[100],
'--gitify-tooltip-popout': colors.white,
'--gitify-pill-rest': colors.gray[100],
'--gitify-pill-hover': colors.gray[200],
'--gitify-scrollbar-track': colors.gray[100],
'--gitify-scrollbar-thumb': colors.gray[400],
'--gitify-scrollbar-thumb-hover': colors.gray[500],
},
'.dark': {
'--gitify-background': '#161b22',
'--gitify-font': colors.gray[100],
'--gitify-footer': '#000209',
'--gitify-accounts-rest': '#000209',
'--gitify-accounts-error': colors.red[500],
'--gitify-repositories': '#090e15',
'--gitify-notifications-border': '#090e15',
'--gitify-notifications-rest': '#161b22',
'--gitify-notifications-hover': '#090e15',
'--gitify-tooltip-popout': '#24292e',
'--gitify-pill-rest': colors.gray[800],
'--gitify-pill-hover': colors.gray[700],
'--gitify-scrollbar-track': '#090e15',
'--gitify-scrollbar-thumb': '#24292e',
'--gitify-scrollbar-thumb-hover': '#3a3f44',
},
});
},
],
};
export default config;