尝试在tailwind.js.js中手动添加shadow属性,就像extend中的这样:boxShadow:{ dark:“8 px 6px 24 ...
您的Tailwind配置文件名不正确。它应该是一个JavaScript文件,因此应命名为tailwind.config.js、tailwind....
您的Tailwind配置文件名不正确。它应该是一个JavaScript文件,因此应命名为tailwind.config.js、tailwind....
完全取代了Tailwind的默认颜色。您可能打算在theme.extend.colors中定义自定义颜色,这将合并它们到Tailwind...
extend: {}, }, plugins: [], } 我发现如果没有这个,tailwind的样式就不会被应用。但是我不确定为什么,因为根据我所读的./resources/**/*.blade.php模式应该已经选择了它们。 例如:this answer 双星号(**)匹配多个段落中的零个或多个字符。它用于匹配嵌套目录中的文件。
module.exports = { content: ["./src/**/*.{js,jsx,tsx}"], theme: { extend: {} }, plugins: [] }; With those changes, I was able to get this working locally. It's not working on CodeSandbox — not sure what I'm doing wrong there. I don't use CodeSandbox all that much. ...
I wrotea bookin which I share everything I know about how to become a better, more efficient programmer. You can use the search field on myHome Pageto filter through all of my articles. ShareShareShareShareShare Search for posts 0
When this was added I found all the styles were working properly. Sorry, something went wrong. shivakilaru commented Mar 9, 2022 For anyone else running into this, it can happen if you put your custom maxHeight values in tailwind.config.js under theme.maxHeight instead of theme.extend....
tailwind.config.cjs的内容需要改为 /** @type {import('tailwindcss').Config} */ - export default { + module.exports = { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], ...
including your color palette. Common syntax errors include missing commas, incorrect property names, or malformed objects. Ensure that your color definitions follow the correct format and are placed within theextendobject undertheme. For more details on configuring Tailwind, check out theofficial documen...