-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
106 lines (103 loc) · 2.62 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require('tailwindcss/defaultTheme');
let colors;
if (process.env.NEXT_PUBLIC_PLATFORM === 'app1') {
colors = require('./lib/palette/app1');
} else if (process.env.NEXT_PUBLIC_PLATFORM === 'app2') {
colors = require('./lib/palette/app2');
} else {
colors = require('./lib/palette/default');
}
// To overwrite any default value, refer to:
// https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js
// and update the exported module with the values you want changed
// Overwrite the default colors with custom values
// you can change color values or even names
// since there are a lot colors in the system, you can pick n choose those needed by the project
//
module.exports = {
theme: {
fill: {
current: 'currentColor',
},
stroke: {
current: 'currentColor',
},
themeVariants: ['dark'],
colors: colors,
interFontFeatures: {
default: ['calt', 'liga', 'kern'],
numeric: ['tnum', 'salt', 'ss02'],
},
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
md: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
'7xl': '6rem',
'8xl': '8rem',
'9xl': '9rem',
'10xl': '10rem',
},
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
screens: {
light: { raw: '(prefers-color-scheme: light)' },
dark: { raw: '(prefers-color-scheme: dark)' },
},
},
},
future: {
removeDeprecatedGapUtilities: true,
},
variants: {
backgroundColor: ['responsive', 'hover', 'focus', 'dark', 'dark:hover', 'dark:focus'],
borderColor: ['responsive', 'hover', 'focus', 'dark', 'dark:hover', 'dark:focus'],
fill: ['responsive', 'hover', 'focus', 'dark', 'dark:hover', 'dark:focus'],
stroke: ['responsive', 'hover', 'focus', 'dark', 'dark:hover', 'dark:focus'],
strokeWidth: ['responsive', 'hover', 'focus', 'dark', 'dark:hover', 'dark:focus'],
textColor: [
'responsive',
'hover',
'focus',
'focus-within',
'group-hover',
'odd',
'even',
'active',
'disabled',
'dark',
'dark:hover',
'dark:focus',
'dark:focus-within',
'dark:group-hover',
'dark:odd',
'dark:even',
'dark:active',
'dark:disabled',
],
borderStyle: ['responsive', 'dark'],
},
plugins: [
require('@tailwindcss/ui'),
require('tailwindcss-multi-theme'),
require('tailwindcss-font-inter')({
// a: -0.0223,
// b: 0.185,
// c: -0.1745,
// baseFontSize: 16,
// baseLineHeight: 1.5,
importFontFace: true,
disableUnusedFeatures: true,
}),
],
};