-
I tried to upgrade to v 4.0.0 with It wasn't able to automatically port the tailwind.config.js (instead it included it). This is the current config: * eslint-env node */
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
'node_modules/flowbite-react/**/*.{js,jsx,ts,tsx}',
'node_modules/@myregistry/pricing/dist/**/*.{js,jsx,ts,tsx}'
],
theme: {
fontFamily: {
sans: ['Inter', 'ui-sans-serif', 'system-ui']
},
fontWeight: {
light: '300',
normal: '400',
medium: '500',
semibold: '600',
bold: '700',
extrabold: '900'
},
extend: {
typography: {
DEFAULT: {
css: {
maxWidth: '255ch'
}
}
},
height: {
dvh: '100dvh'
},
screens: {
'3xl': '2000px'
},
cursor: {
'magic-wand': 'url(/cursors/magic-wand-default.svg), pointer'
},
colors: {
primary: {
DEFAULT: '#E71354',
50: '#FFc5D6',
400: '#EB4C7E',
600: '#C1154B',
700: '#8E1037'
},
misc: {
warning: {
DEFAULT: '#ff6d33',
light: '#FF7C47'
},
yellow: '#f8d74a',
green: {
DEFAULT: '#11cf99',
light: '#52F1C0'
},
gray: {
DEFAULT: '#757575',
dark: '#1F1F1F',
light: '#E0E0E0'
}
}
}
}
},
plugins: [
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/forms'),
require('flowbite/plugin'),
require('@tailwindcss/typography')
]
} Could the plugins be a potential cause? The documentation says that Moreover, do I have to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Could be. Also could be the
It means that JavaScript-based plugins are legacy. At least
No. |
Beta Was this translation helpful? Give feedback.
Could be. Also could be the
typography
key, since there's no equivalent in v4.It means that JavaScript-based plugins are legacy. At least
@tailwindcss/aspect-ratio
has a built-in alternative using theaspect-ratio
CSS-native property.No.
@import
is for including other CSS files. Like whatimport
is in JS/TS files.