-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
34 lines (34 loc) · 965 Bytes
/
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
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import { badgeColoursMap } from './src/models/WidgetProductsModel'
const bgBadgeColours = Object.values(badgeColoursMap).map((c) => `bg-${c.bg}`)
const textBadgeColours = Object.values(badgeColoursMap).map((c) => `text-${c.text}`)
export default {
content: ['./index.html', './src/**/*.{vue,js,ts}'],
theme: {
extend: {
fontFamily: {
cabin: ['"Cabin"', ...defaultTheme.fontFamily.sans]
}
},
colors: {
blue: { DEFAULT: '#2E3A8C' },
green: {
light: '#AFC6BD',
DEFAULT: '#3B755F'
},
beige: { DEFAULT: '#F2EBDB' },
grey: {
DEFAULT: '#B0B0B0',
dark: '#333333',
darker: '#212121'
},
white: {
DEFAULT: '#FFFFFF',
dark: '#F9F9F9'
}
}
},
safelist: [...bgBadgeColours, ...new Set(textBadgeColours)],
plugins: []
} satisfies Config