-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
47 lines (46 loc) · 1.35 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
import defaultTheme from 'tailwindcss/defaultTheme';
import plugin from 'tailwindcss/plugin';
import { scopedPreflightStyles, isolateOutsideOfContainer } from 'tailwindcss-scoped-preflight';
/** @type {import('tailwindcss').Config} */
export default {
prefix: 'es-uic-',
important: ':is(body,#wpwrap)',
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}', './lib/**/*.{js,ts,jsx,tsx}'],
theme: {
fontFamily: {
sans: ['Geist', ...defaultTheme.fontFamily.sans],
mono: ['Geist Mono', defaultTheme.fontFamily.mono],
},
extend: {
transitionDuration: {
DEFAULT: '250ms',
},
spacing: {
3.25: '0.8125rem', // 13px
5.5: '1.375rem',
18: '4.5rem',
},
fontSize: {
sm: ['0.78125rem', 1.3], // 12.5px
xs: ['0.71875rem', 1.3], // 11.5px
},
},
},
plugins: [
plugin(function ({ addComponents }) {
addComponents({
'.no-webkit-highlight': {
'-webkit-tap-highlight-color': 'transparent',
},
});
}),
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components'),
scopedPreflightStyles({
isolationStrategy: isolateOutsideOfContainer(['.es-uic-no-css-reset', '.wp-admin'], {
plus: '.es-uic-has-css-reset',
}),
}),
],
safelist: ['es-uic-shrink', 'es-uic-shrink-0', 'es-uic-grow', 'es-uic-grow-0', 'es-uic-flex-1', 'es-uic-flex-auto', 'es-uic-flex-initial', 'es-uic-flex-none'],
};