-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
67 lines (66 loc) · 1.86 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
/*
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
theme: {
darkSelector: '.dark-mode',
extend: {
fontFamily: {
sans: ['Karla', ...defaultTheme.fontFamily.sans],
mono: [...defaultTheme.fontFamily.mono]
},
colors: {
primary: {
100: '#ECEFF5',
200: '#CBD2E1',
300: '#ABB6CD',
400: '#8C9AB7',
500: '#6F7FA0',
default: '#526488',
600: '#3E4F70',
700: '#2C3A57',
800: '#1C263B',
900: '#0D131E'
},
accent: {
100: '#F9E9EA',
200: '#EEC3C6',
300: '#E09FA4',
400: '#CF7D83',
500: '#BD5D65',
default: '#A84048',
600: '#8D2D34',
700: '#6E1D23',
800: '#4D1015',
900: '#280709'
}
},
opacity: {
'10': '0.1',
'20': '0.2'
}
},
boxShadow: {
...defaultTheme.boxShadow,
outline: '0 0 0 3px rgba(0, 86, 87,0.5)'
}
},
variants: {
backgroundColor: ['dark', 'dark-hover', 'dark-group-hover'],
borderColor: ['dark', 'dark-focus', 'dark-focus-within'],
textColor: ['dark', 'dark-hover', 'dark-active']
},
plugins: [require('tailwindcss-dark-mode')()],
purge: {
// Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
enabled: process.env.NODE_ENV === 'production',
content: ['components/**/*.vue', 'layouts/**/*.vue', 'pages/**/*.vue', 'plugins/**/*.js', 'nuxt.config.js'],
options: {
// Set whitelist in nuxt.config.js -> purgeCSS.whitelist: ['dark-mode', 'light-mode', 'btn', 'icon']
}
}
}