This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
forked from CLDXiang/today-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
60 lines (59 loc) · 1.55 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
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable @typescript-eslint/no-var-requires */
const colors = require('tailwindcss/colors');
module.exports = {
purge: ['./src/**/*.{vue,ts,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
/* https://tailwindcss.com/docs/customizing-colors#color-palette-reference */
colors: {
transparent: 'transparent',
current: 'currentColor',
white: colors.white,
black: colors.black,
'blue-gray': colors.blueGray,
'cool-gray': colors.coolGray,
gray: colors.gray,
'true-gray': colors.trueGray,
'warm-gray': colors.warmGray,
red: colors.red,
orange: colors.orange,
amber: colors.amber,
yellow: colors.yellow,
lime: colors.lime,
green: colors.green,
emerald: colors.emerald,
teal: colors.teal,
cyan: colors.cyan,
'light-blue': colors.lightBlue,
blue: colors.blue,
indigo: colors.indigo,
violet: colors.violet,
purple: colors.purple,
fuchsia: colors.fuchsia,
pink: colors.pink,
rose: colors.rose,
/* FIXME: 切换主题色到 Tailwind 色板 */
primary: '#60bdca',
},
extend: {
maxWidth: {
'14xl': '160rem',
},
boxShadow: {
popover: '0 2px 8px rgb(0 0 0 / 15%)',
},
fontSize: {
xxs: ['0.625rem', '0.75rem'],
},
},
},
variants: {
extend: {
margin: ['first'],
backgroundColor: ['odd', 'even'],
borderWidth: ['last'],
},
},
plugins: [],
};