Skip to content

Commit 35c76d2

Browse files
committed
chore: add taiwind config files (#2)
1 parent f0dc059 commit 35c76d2

File tree

4 files changed

+143
-8
lines changed

4 files changed

+143
-8
lines changed

postcss.config.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/main.tsx

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import React from 'react'
2-
import ReactDOM from 'react-dom/client'
3-
import App from './App'
4-
import './index.css'
1+
import ReactDOM from "react-dom/client";
2+
import App from "./App";
3+
import { Provider } from "react-redux";
4+
import store from "./redux/store";
5+
import "./reset.css";
56

6-
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
7-
<React.StrictMode>
7+
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
8+
<Provider store={store}>
89
<App />
9-
</React.StrictMode>
10-
)
10+
</Provider>
11+
);

src/reset.css

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
html,
6+
body,
7+
div,
8+
span,
9+
applet,
10+
object,
11+
iframe,
12+
h1,
13+
h2,
14+
h3,
15+
h4,
16+
h5,
17+
h6,
18+
p,
19+
blockquote,
20+
pre,
21+
a,
22+
abbr,
23+
acronym,
24+
address,
25+
big,
26+
cite,
27+
code,
28+
del,
29+
dfn,
30+
em,
31+
font,
32+
img,
33+
ins,
34+
kbd,
35+
q,
36+
s,
37+
samp,
38+
small,
39+
strike,
40+
strong,
41+
sub,
42+
sup,
43+
tt,
44+
var,
45+
b,
46+
u,
47+
i,
48+
center,
49+
dl,
50+
dt,
51+
dd,
52+
ol,
53+
ul,
54+
li,
55+
fieldset,
56+
form,
57+
label,
58+
legend,
59+
table,
60+
caption,
61+
tbody,
62+
tfoot,
63+
thead,
64+
tr,
65+
th,
66+
td {
67+
margin: 0;
68+
padding: 0;
69+
border: 0;
70+
outline: 0;
71+
font-size: 100%;
72+
vertical-align: baseline;
73+
background: transparent;
74+
}
75+
body {
76+
line-height: 1;
77+
}
78+
ol,
79+
ul {
80+
list-style: none;
81+
}
82+
blockquote,
83+
q {
84+
quotes: none;
85+
}
86+
blockquote:before,
87+
blockquote:after,
88+
q:before,
89+
q:after {
90+
content: "";
91+
content: none;
92+
}
93+
94+
/* remember to define focus styles! */
95+
:focus {
96+
outline: 0;
97+
}
98+
99+
/* remember to highlight inserts somehow! */
100+
ins {
101+
text-decoration: none;
102+
}
103+
del {
104+
text-decoration: line-through;
105+
}
106+
107+
/* tables still need 'cellspacing="0"' in the markup */
108+
table {
109+
border-collapse: collapse;
110+
border-spacing: 0;
111+
}
112+
113+
body {
114+
/* background-color: rgb(31 41 55); */
115+
background-color: #e7e988;
116+
}

tailwind.config.cjs

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

0 commit comments

Comments
 (0)