Skip to content

Commit 1de8ebc

Browse files
use tailwindcss jit
1 parent dc1aa4c commit 1de8ebc

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

components/WordContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77

88
const WordContainer: React.FC<Props> = (props) => {
99
return (
10-
<div className="max-h-32 overflow-hidden border-indigo-300 border-4 p-3 lg:p-4 leading-9 md:leading-12">
10+
<div className="max-h-32 overflow-hidden border-indigo-300 border-4 p-3 lg:p-4 leading-9 md:leading-[3rem]">
1111
<span
1212
className={`font-medium text-2xl md:text-3xl lg:text-4xl ${
1313
props.isInputCorrect ? "bg-indigo-300" : "bg-red-500"

tailwind.config.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
module.exports = {
22
mode: "jit",
33
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
4-
darkMode: false, // or 'media' or 'class'
5-
theme: {
6-
extend: {
7-
lineHeight: {
8-
12: "3rem",
9-
},
10-
},
11-
},
12-
variants: {
13-
extend: {},
14-
},
4+
darkMode: false,
5+
variants: {},
156
plugins: [],
167
};

0 commit comments

Comments
 (0)