import "./styles.css"
function App() {
return <h1></h1>
}
.header {
font-weight: bold;
color: salmon;
}
.header:hover {
color: blue;
}
.code {
font-family: monospace;
color: #333;
}
body {
padding: 16px;
}
<html>
<head>
<link rel="stylesheet" type="text/css"
href="/styles.css"></link>
</head>
<body>
</body>
</html>
function App() {
return (
<>
<h1>
Header
</h1>
<p>
My Text
</p>
</>
)
}
import { render } from 'react';
render(<App />)
.header {
font-weight: bold;
color: salmon;
}
.header:hover {
color: blue;
}
.code {
font-family: monospace;
color: #333;
}
body {
padding: 16px;
}
function App() {
return (
<>
<h1>
Header
</h1>
<p>
My Text
</p>
</>
)
}
import { render } from 'react';
render(<App />)
.header {
font-weight: bold;
color: salmon;
}
.header:hover {
color: blue;
}
.code {
font-family: monospace;
color: #333;
}
body {
padding: 16px;
}
import "./styles.css";
function App() {
return (
<>
<h1 className="header">
Header
</h1>
</>
)
}
<h1 className="App_header_JQ3e45">
Hello
</h1>
.header {
font-weight: bold;
color: salmon;
}
.header:hover {
color: blue;
}
.code {
font-family: monospace;
color: #333;
}
body {
padding: 16px;
}
<button style={{
backgroundColor: "var(--color-blue-700)",
color: "white",
padding: "4px 8px"
}}>
Click Me
</button>
<button className="
bg-blue-500
text-white
px-1 py-2
">
Click Me
</button>
pnpx create-next-app@latest tailwind --typescript --eslint --app
pnpm install tailwindcss @tailwindcss/postcss postcss
const config = {
plugins: {
"@tailwindcss/postcss": {},
},
};
export default config;
@import "tailwindcss";
<p className="text-red-500 bg-gray-200 p-4">Hello Tailwind!</p>
<h1 className="text-3xl font-bold underline">Welcome</h1>