I try to use CSS, im just install the tailwindcss with npm, and then i build the css and provide the output.css. But, when i use the bg-black class in button for testing, it's still not working.
build command that i use
tailwindcss -i ./src/style.css -o ./dist/output.css i put it into script in package.json
in src/style.css
@tailwind base;
@tailwind components;
@tailwind utilities;
in tailwind.config.js
theme: {
extend: {
// ...
},
},
plugins: [],
}
in dist/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="output.css">
<title>Learn Tailwind</title>
</head>
<body>
<div class="container">
<button class="bg-black">Awesome</button>
</div>
</body>
</html>
The HTML in browser result:

