This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
tailwind.config.js
74 lines (67 loc) · 1.64 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
const fs = require('fs-extra');
const path = require('path');
const themePath = path.join(process.cwd(), 'share', 'theme.json');
/**
* ! IMPORTANT !
* Do NOT edit this file directly!
*
* Instead, edit the `theme.json` file in the `share` directory.
* For more info, please see the README: https://github.com/tycrek/ass/#customizing-the-viewer
*/
const defaults = {
// Font
font: '"Josefin Sans"',
// Background colours
bgPage: '#212121',
bgViewer: '#151515',
// Text colours
txtPrimary: '#BDBDBD',
txtSecondary: '#8D8D8D',
// Links
linkPrimary: '#FD842D',
linkHover: '#FD710D',
linkActive: '#DE5E02',
// Other
borderHover: '#B64D02',
};
let theme = {};
if (fs.existsSync(themePath))
theme = fs.readJsonSync(themePath);
module.exports = {
separator: '_',
darkMode: 'class',
plugins: [
//require('tailwindcss-textshadow')
],
content: ['./views/**/*.pug'],
theme: {
extend: {
fontFamily: {
main: [theme.font || defaults.font, 'ui-sans-serif', 'system-ui', 'sans-serif']
},
backgroundColor: {
'page': theme.bgPage || defaults.bgPage,
'viewer': theme.bgViewer || defaults.bgViewer,
},
colors: {
'primary': theme.txtPrimary || defaults.txtPrimary,
'secondary': theme.txtSecondary || defaults.txtSecondary,
'link-primary': theme.linkPrimary || defaults.linkPrimary,
'link-hover': theme.linkHover || defaults.linkHover,
'link-active': theme.linkActive || defaults.linkActive,
},
borderColor: {
'hover': theme.borderHover || defaults.borderHover
},
maxHeight: {
'half-port': '50vh'
},
borderRadius: {
'24': '24px'
},
fontSize: {
'footer': '0.9rem'
}
}
}
};