-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy paththeme.config.js
More file actions
100 lines (97 loc) · 2.21 KB
/
Copy paththeme.config.js
File metadata and controls
100 lines (97 loc) · 2.21 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
const { Theme, ThemeManager } = require('tailwindcss-theming/api');
const { TinyColor } = require('@ctrl/tinycolor');
const main = new Theme()
.setName('light')
.targetable()
.addColors({
transparent: 'transparent',
selection: '#4557b95f',
brand: {
default: '#4557b9',
muted: '#4556babf',
},
button: '#e5ecfe',
background: '#ffffff',
navigation: {
default: '#edf2f7',
hover: new TinyColor('#edf2f7').setAlpha(0.75),
},
sidebar: {
active: '#e5ecff',
},
'on-background': {
default: '#05112f',
code: '#f1f4ff',
blockquote: '#828d9a',
figcaption: '#828d9a',
list: '#828d9a',
muted: '#e2e8f0',
},
'on-navigation': {
default: '#05112f',
icon: new TinyColor('#05112f').setAlpha(0.75),
muted: new TinyColor('#05112f').setAlpha(0.1),
},
'on-sidebar': {
default: '#4e576f',
active: '#4557b9',
header: '#a0aec0',
hover: '#4557b9',
},
'on-brand': '#ffffff',
'on-button': {
default: '#7a93b0f5',
hover: '#4557b9',
},
})
.setVariable('focus', '0 0 0 3px rgba(66, 153, 225, 0.5)', 'boxShadow', 'shadow')
.addOpacityVariant('hover', 0.75, 'navigation');
const dark = new Theme()
.setName('dark')
.targetable()
.addColors({
transparent: 'transparent',
selection: '#4557b95f',
brand: {
default: '#b0bcff',
muted: '#4556babf',
},
button: '#252732',
background: '#1c1e26',
navigation: {
default: '#2d3747',
hover: new TinyColor('#2d3747').setAlpha(0.75),
},
sidebar: {
active: '#21232d',
},
'on-background': {
default: '#efefef',
code: '#23252f',
blockquote: '#626884',
figcaption: '#626884',
list: '#626884',
muted: '#252732',
},
'on-navigation': {
default: '#ffffff',
icon: new TinyColor('#ffffff').setAlpha(0.75),
muted: new TinyColor('#ffffff').setAlpha(0.1),
},
'on-sidebar': {
default: '#a7acbe',
active: '#ffffff',
header: '#575d75',
hover: '#ffffff',
},
'on-brand': '#0c3286',
'on-button': {
default: '#829caf',
hover: '#cbd3ff',
},
})
.setVariable('focus', '0 0 0 3px rgba(66, 153, 225, 0.5)', 'boxShadow', 'shadow')
.addOpacityVariant('hover', 0.75, 'navigation');
module.exports = new ThemeManager() //
.setDefaultTheme(main)
.setDefaultDarkTheme(dark);