-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtailwindConfig.js
More file actions
74 lines (63 loc) · 1.75 KB
/
tailwindConfig.js
File metadata and controls
74 lines (63 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export const TailwindConfig = `/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
`;
export const PostCssConfig = `
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
`;
export const TailwindIndexCSSFile = `
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
background-color: rgb(0 0 0 0.9)
}
`;
export const AppTailwindTemplate = `
import { useState } from "react"
import reactLogo from "./assets/react.svg"
import StartEaseLogo from "/startease.svg"
function App() {
const [count, setCount] = useState(0)
return (
<main className="max-w-[1280px] mx-auto my-0 p-8 text-center">
<div className="flex items-center justify-center">
<a href="https://github.com/JC-Coder/startease" target="_blank">
<img src={StartEaseLogo} className="h-24 p-6 [will-change:filter] [transition:filter] duration-300" alt="StartEase logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="h-24 p-6 [will-change:filter] [transition:filter] duration-300 react" alt="React logo" />
</a>
</div>
<h1>StartEase + React + TailwindCSS</h1>
<div className="p-8">
<button onClick={() => setCount((count) => count + 1)}
className="border border-gray-500 px-3 py-2 rounded-md "
>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="text-[#888]">
Click on the StartEase and React logos to learn more
</p>
</main>
)
}
export default App
`;