Skip to content

Commit

Permalink
add tw
Browse files Browse the repository at this point in the history
  • Loading branch information
remyhunt committed Feb 6, 2024
1 parent 502dd3e commit 2bd5123
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<title>remyhunt/d3-starter</title>
</head>
<body>
<div class="bg-red-200">
<div class="">
hello world
</div>
<script type="module" src="./src/main.ts"></script>
<link rel="stylesheet" href="./src/style.css" />
<script type="module" src="./src/main.ts"></script>
</body>
</html>
6 changes: 6 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// import d3
import * as d3 from 'd3';
// import * as d3 from 'd3';

4 changes: 2 additions & 2 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
@tailwind utilities;

html {
@apply bg-gray-500;
}
@apply bg-red-100;
}
7 changes: 2 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
module.exports = {
content: ["index.html", "./src/**/*.{html,js,ts}"],
theme: {
extend: {},
},
Expand Down

0 comments on commit 2bd5123

Please sign in to comment.