당근먹는하니
귀엽고 행복해
당근먹는하니
전체 방문자
오늘
어제
  • 분류 전체보기 (274)
    • 다람쥐🐿 (26)
    • C++ 공부빵야 (7)
    • 공부👻 (5)
    • 프론트엔드✏️ (228)
      • 코드캠프 (120)
      • 팀 프로젝트✨ (31)
      • 개인공부 (67)
    • 프론트엔드 - 바닐라js (7)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • graphql
  • 코드캠프
  • next.js
  • 프론트엔드
  • 팀프로젝트
  • 회고
  • 리액트
  • 프로그래머스
  • CSS
  • javascript
  • 팀 프로젝트
  • 배포
  • algorithm
  • 공통 컴포넌트
  • refreshtoken
  • JS
  • 코딩
  • React-hook-form
  • 자바스크립트
  • 코딩 부트캠프
  • javascrpit
  • react
  • 팀플
  • 알고리즘
  • HTML
  • ssg
  • emotion
  • 부트캠프
  • 배열
  • typescript

최근 댓글

최근 글

티스토리

250x250
반응형
hELLO · Designed By 정상우.
당근먹는하니

귀엽고 행복해

[tailwind] tailwindcss 색상, 배경색 적용 안될 때
프론트엔드✏️/개인공부

[tailwind] tailwindcss 색상, 배경색 적용 안될 때

2023. 3. 23. 16:17
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
    '프론트엔드✏️/개인공부' 카테고리의 다른 글
    • [git] To push the current branch and set the remote as upstream, use ...
    • [firebase] 글번호로 글 정보 가져오기
    • [react] 계산기/ 무한 리렌더링, 맨 왼쪽의 0 좀 빼줘
    • [react] 계산기/input 두 개가 서로 영향받게 하기
    당근먹는하니
    당근먹는하니

    티스토리툴바