-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.ts
62 lines (59 loc) · 1.6 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss'
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import colors from 'tailwindcss/colors'
import plugin from 'tailwindcss/plugin'
// Flip object horizontally or vertically
// Adapted from https://github.com/tailwindlabs/tailwindcss/discussions/2146
const flip = plugin((api) => {
api.addUtilities({
'.flip-horizontal': {
'--tw-scale-x': '-1',
},
'.flip-vertical': {
'--tw-scale-y': '-1',
},
})
})
export default {
content: [`components/**/*.{vue,js}`, `layouts/**/*.vue`, `pages/**/*.vue`],
plugins: [forms, flip, typography],
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.neutral,
primary: {
// Generated with https://www.tailwindshades.com
DEFAULT: '#4F5F8F',
'50': '#D6DBE8',
'100': '#C9CFE1',
'200': '#AFB8D3',
'300': '#94A0C4',
'400': '#7A89B6',
'500': '#6072A7',
'600': '#4F5F8F',
'700': '#3B476B',
'800': '#272F47',
'900': '#131723',
},
secondary: colors.rose,
info: colors.black,
success: colors.green,
warning: colors.amber,
error: colors.red,
},
extend: {
typography: (theme: (path: string) => any) => ({
DEFAULT: {
css: {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
'--tw-prose-bullets': theme('colors.black'),
},
},
}),
},
},
} as Config