Skip to content

Commit d20851d

Browse files
committed
add tailwindcss
1 parent a8563cd commit d20851d

10 files changed

+1090
-7
lines changed

dist/assets/index-e8f37803.js dist/assets/index-34cd1c3d.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-64fd38d7.css

-1
This file was deleted.

dist/assets/index-94e696a8.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<link rel="icon" type="image/png" sizes="32x32" href="./favicon_io/favicon-32x32.png">
2626
<link rel="icon" type="image/png" sizes="16x16" href="./favicon_io/favicon-16x16.png">
2727
<link rel="manifest" href="./favicon_io/site.webmanifest">
28-
<script type="module" crossorigin src="./assets/index-e8f37803.js"></script>
29-
<link rel="stylesheet" href="./assets/index-64fd38d7.css">
28+
<script type="module" crossorigin src="./assets/index-34cd1c3d.js"></script>
29+
<link rel="stylesheet" href="./assets/index-94e696a8.css">
3030
</head>
3131
<body>
3232

package-lock.json

+1,058
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"format": "prettier --write src"
1111
},
1212
"devDependencies": {
13+
"autoprefixer": "^10.4.14",
14+
"postcss": "^8.4.23",
1315
"prettier": "2.8.7",
16+
"tailwindcss": "^3.3.2",
1417
"typescript": "^4.9.3",
1518
"vite": "^4.2.0"
1619
},

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
66
<div>
77
<h1>WebChucK IDE</h1>
88
<div class="card">
9-
<button id="webchuck" type="button">Start WebChucK</button>
9+
<button id="webchuck" type="button" class="text-7xl">Start WebChucK</button>
1010
<br>
1111
<br>
1212
<button id="play" type="button">Play</button>

styles/style.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
15
#vim-status {
26
display: block;
37
background: #eee;
48
padding: 4px 2px;
59
font-family: monospace;
6-
height: 15px;
10+
height: 18px;
711
line-height: 15px;
812
}
913

@@ -21,7 +25,7 @@
2125
font-weight: 400;
2226

2327
color-scheme: light dark;
24-
color: rgba(255, 255, 255, 0.87);
28+
color: rgba(255, 40, 255, 0.87);
2529
background-color: #242424;
2630

2731
font-synthesis: none;

tailwind.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: [
4+
"./index.html",
5+
"./src/**/*.{js,ts,jsx,tsx}",
6+
],
7+
theme: {
8+
extend: {},
9+
},
10+
plugins: [],
11+
}
12+

0 commit comments

Comments
 (0)