Open History to see the last commit
1// tailwind.config.js
2β
3const defaultTheme = require('tailwindcss/defaultTheme')
4β
5module.exports = {
6 corePlugins: {
7 preflight: true,
8 float: false,
9 },
10 purge: {
11 enabled: process.env.NODE_ENV !== 'development',
12 content: ['./src/**/*.js'],
13 options: {
14 defaultExtractor: content => content.match(/[\w-/.:]+(?<!:)/g) || [],
15 },
16 },
17 theme: {
18 extend: {
19 colors: {
20 coral: {
21 light: '#FF6070',
22 default: '#FF4154',
23 dark: '#EB2135',
24 },
25 },
26 },
27 fontFamily: {
28 sans: ['Inter', ...defaultTheme.fontFamily.sans],
29 serif: ['Inter', ...defaultTheme.fontFamily.serif],
30 },
31 screens: {
32 sm: '640px',
33 md: '768px',
34 lg: '1024px',
35 xl: '1400px',
36 },
37 rotate: {
38 ...defaultTheme.rotate,
39 '-30': '-30deg',
40 },
41 container: {
42 padding: '1rem',
43 },
44 customForms: theme => ({
45 sm: {
46 'input, textarea, multiselect, select': {
47 fontSize: theme('fontSize.sm'),
48 padding: `${theme('spacing.1')} ${theme('spacing.2')}`,
49 },
50 select: {
51 paddingRight: `${theme('spacing.4')}`,
52 },
53 'checkbox, radio': {
54 width: theme('spacing.3'),
55 height: theme('spacing.3'),
56 },
57 },
58 }),
59 },
60 variants: {},
61 plugins: [require('@tailwindcss/ui')],
62}