Overnap

tailwindcss 적용

This diff could not be displayed because it is too large.
......@@ -10,17 +10,21 @@
"@types/node": "^12.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"autoprefixer": "^10.2.5",
"postcss": "^8.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"tailwindcss": "^2.1.2",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"start": "npm run twcss && react-scripts start",
"build": "npm run twcss && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"twcss": "tailwind build src/tailwind.css -c tailwind.config.js -o src/index.css"
},
"eslintConfig": {
"extends": [
......
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
......@@ -5,6 +5,7 @@ import './App.css';
function App() {
return (
<div className="App">
<div className="ml-3 mb-3 font-bold text-2xl">TESTING</div>
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
......
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}