-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.js
74 lines (72 loc) · 2.39 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 defaultTheme = require('tailwindcss/defaultTheme');
function withOpacity(variableName) {
return ({opacityValue}) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
/** @type {import("@types/tailwindcss/tailwind-config").TailwindConfig } */
module.exports = {
darkMode: 'class',
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}'
],
theme: {
extend: {
colors: {
foreground: withOpacity('--color-text-base'),
header: withOpacity('--color-text-header'),
muted: withOpacity('--color-text-muted'),
highlighter: withOpacity('--color-text-highlighter'),
fill: withOpacity('--color-fill'),
dropshadow: withOpacity('--color-dropshadow'),
blur: withOpacity('--color-blur'),
accent: withOpacity('--color-accent'),
'neutral-1': withOpacity('--color-neutral-1'),
'neutral-2': withOpacity('--color-neutral-2'),
'neutral-3': withOpacity('--color-neutral-3'),
'neutral-4': withOpacity('--color-neutral-4'),
'button-accent': withOpacity('--color-button-accent'),
'button-text': withOpacity('--color-button-text'),
'button-disabled': withOpacity('--color-button-disabled'),
'button-disabled-text': withOpacity('--color-button-disabled-text'),
'nav-active': withOpacity(' --color-nav-active'),
'nav-hover': withOpacity(' --color-nav-hover'),
'nav-base': withOpacity('--color-nav-base'),
mitre: {
blue: '#005B94',
highlighter: '#FFF601',
'dark-navy': '#0B2338',
navy: '#0D2F4F',
'light-blue': '#87DEFF',
black: '#111921',
'dark-gray': '#7E8284',
silver: '#D4D4D3',
'light-silver': '#F1F3F4'
}
},
fontFamily: {
sans: [...defaultTheme.fontFamily.sans],
mitre: 'Roboto Slab'
}
}
},
corePlugins: {
aspectRatio: false
},
plugins: [
// eslint-disable-next-line global-require
require('@tailwindcss/forms'),
// eslint-disable-next-line global-require
require('@tailwindcss/typography'),
// eslint-disable-next-line global-require
require('@tailwindcss/aspect-ratio')
]
};