본문 바로가기

프론트엔드 공부/html css

테일윈드시작하기

https://tailwindcss.com/docs/guides/create-react-app

 

Install Tailwind CSS with Create React App - Tailwind CSS

Setting up Tailwind CSS in a Create React App project.

tailwindcss.com

 

//package.json
{
  "name": "xxx",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@craco/craco": "^6.2.0",
    "@material-ui/core": "^4.12.1",
    "@material-ui/icons": "^4.11.2",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "react": "^17.0.2",
    "react-datepicker": "^4.1.1",
    "react-dom": "^17.0.2",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "tailwind": "^4.0.0",
    "web-vitals": "^1.0.1"
  },
  "scripts": {
    "start": "craco start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "autoprefixer": "^9.8.6",
    "postcss": "^7.0.36",
    "postcss-loader": "^6.1.1",
    "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4"
  }
}

https://www.youtube.com/watch?v=UBOj6rqRUME 

 

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1).

=> vsc에서 problem warning 발생시 preference에서 해당 부분 ignore 처리

https://zetawiki.com/wiki/Unknown_at_rule_@tailwind

'프론트엔드 공부 > html css' 카테고리의 다른 글

input type checkbox value 값 읽어내기 예제  (0) 2021.08.26
label input 연결하기  (0) 2021.08.03
css translateZ hover card flip animation  (0) 2021.05.19
css transform animation  (0) 2021.05.18
css fliter blur animation  (0) 2021.05.13