728x90
반응형
tailwindcss 적용이 몇 개는 되고 몇 개는 안됐다. (색 관련 속성들이 안 됨)
/** @type {import('tailwindcss').Config} */
module.exports = {
variants: {
tableLayout: ["responsive", "hover", "focus"],
},
content: [
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
colors: {
"hl-1": "#fffbf4",
},
extend: {},
},
plugins: [],
};
/** @type {import('tailwindcss').Config} */
module.exports = {
variants: {
tableLayout: ["responsive", "hover", "focus"],
},
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
colors: {
"hl-1": "#fffbf4",
},
},
},
plugins: [],
};
colors를 extend에 넣어준다.
해결!!
https://stackoverflow.com/questions/70971535/tailwindcss-background-color-not-parsed
Tailwindcss Background color not parsed
using tailwindcss and applying background colors does not getting parsed here is my tailwind config const colors = require("tailwindcss/colors"); module.exports = { future: {
stackoverflow.com
728x90
반응형
'프론트엔드✏️ > 개인공부' 카테고리의 다른 글
[git] To push the current branch and set the remote as upstream, use ... (0) | 2023.04.06 |
---|---|
[firebase] 글번호로 글 정보 가져오기 (0) | 2023.03.24 |
[react] 계산기/ 무한 리렌더링, 맨 왼쪽의 0 좀 빼줘 (0) | 2023.03.06 |
[react] 계산기/input 두 개가 서로 영향받게 하기 (0) | 2023.03.03 |
[react] 계산기/새로고침해도 선택값 유지하기 (0) | 2023.03.03 |