-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.lib.js
53 lines (49 loc) · 1.25 KB
/
tailwind.config.lib.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
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
/** @type {import('tailwindcss').Config} */
import { isolateInsideOfContainer, scopedPreflightStyles } from 'tailwindcss-scoped-preflight'
export const sharedConfig = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
'primary-color': '#a801ff',
'secondary-color': '#4f46e5',
},
backgroundImage: () => ({
'linear-color': 'linear-gradient(45deg, #4f46e5, #a801ff);',
}),
animation: {
'sound-wave': 'sound-wave 1.2s linear infinite;',
caret: 'caret 500ms steps(44) infinite;',
},
keyframes: {
'sound-wave': {
'50%': { height: '20%' },
'100%': { height: '100%' },
},
caret: {
'50%': {
borderColor: 'transparent',
},
},
},
},
},
}
export default {
...sharedConfig,
plugins: [
require('@tailwindcss/forms')({
strategy: 'class',
}),
require('@tailwindcss/typography'),
scopedPreflightStyles({
isolationStrategy: isolateInsideOfContainer('#react-chatgpt'),
}),
],
important: '#react-chatgpt',
corePlugins: {
preflight: false,
},
}