-
Notifications
You must be signed in to change notification settings - Fork 15
/
tailwind.config.js
60 lines (58 loc) · 2.31 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
/** @type {import('tailwindcss').Config} */
// eslint-disable-next-line
const colors = require("tailwindcss/colors");
module.exports = {
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
'./app.vue'
],
theme: {
screens: {
md: { min: '800px' },
sm: { max: '640px' }
},
colors: {
////from tailwind labs https://youtu.be/MAtaT8BZEAo. allows opacity to still work with css vars.
//https://tailwindcss.com/docs/customizing-colors#using-css-variables
transparent: 'transparent',
current: 'currentColor',
currentColor: '#ED6C5A',
primary: 'rgb(var(--color-primary) / <alpha-value>)',
secondary: 'rgb(var(--color-secondary) / <alpha-value>)',
tertiary: 'rgb(var(--color-tertiary) / <alpha-value>)',
'primary-inverted':
'rgb(var(--color-primary-inverted) / <alpha-value>)',
'primary-hover': 'rgb(var(--color-primary-hover) / <alpha-value>)',
'primary-bg': 'rgb(var(--color-bg-primary) / <alpha-value>)',
'secondary-bg': 'rgb(var(--color-bg-secondary) / <alpha-value>)',
'tertiary-bg': 'rgb(var(--color-bg-tertiary) / <alpha-value>)',
'primary-text': 'rgb(var(--color-text-base) / <alpha-value>)',
'primary-text-muted':
'rgb(var(--color-text-muted) / <alpha-value>)',
'primary-text-inverted':
'rgb(var(--color-text-inverted) / <alpha-value>)',
'secondary-inverted':
'rgb(var(--color-secondary-inverted) / <alpha-value>)',
'secondary-hover':
'rgb(var(--color-secondary-hover) / <alpha-value>)',
error:
'rgb(var(--color-secondary-hover) / <alpha-value>)',
blue: '#245A7D',
neutral: colors.gray,
black: colors.black,
white: colors.white,
gray: colors.gray,
emerald: colors.emerald,
indigo: colors.indigo,
yellow: colors.yellow,
teal: colors.teal,
slate: colors.slate,
zinc: colors.zinc
}
},
plugins: []
}