-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
59 lines (58 loc) · 1.52 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
import { colorVars } from './src/styles/themes';
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/styles/**/*.{js,ts,jsx,tsx}',
'./content/**/*.{mdx,}',
],
theme: {
extend: {
colors: {
primary: {
400: `rgb(var(${colorVars.primary400}) / <alpha-value>)`,
500: `rgb(var(${colorVars.primary500}) / <alpha-value>)`,
600: `rgb(var(${colorVars.primary600}) / <alpha-value>)`,
},
secondary: {
500: `rgb(var(${colorVars.secondary500}) / <alpha-value>)`,
},
typography: {
300: `rgb(var(${colorVars.typography300}) / <alpha-value>)`,
400: `rgb(var(${colorVars.typography400}) / <alpha-value>)`,
500: `rgb(var(${colorVars.typography500}) / <alpha-value>)`,
},
background: `rgb(var(${colorVars.background}) / <alpha-value>)`,
},
fontSize: {
xxs: [
'0.65rem',
{
lineHeight: '1rem',
},
],
},
maxWidth: {
'8xl': '100rem',
'9xl': '110rem',
},
transitionProperty: {
width: 'width',
height: 'height',
},
},
},
variants: {
extend: {
width: ['hover', 'group-hover'],
height: ['hover', 'group-hover'],
rotate: ['group-hover'],
translate: ['group-hover'],
},
},
future: {
hoverOnlyWhenSupported: true,
},
plugins: [],
};