Skip to content

Commit 32cf284

Browse files
authored
๐Ÿ’„ Add a style sheet & co. (#3)
### ๐Ÿ“ ์ž‘์—… ๋‚ด์šฉ - CSS๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •ํ•ด ๋‘์—ˆ์Šต๋‹ˆ๋‹ค. ์šฐ์„  ํ…Œ์ผ์œˆ๋“œ CSS๋ฅผ ๊ฐ€์ ธ์™”๋Š”๋ฐ์š”, ํ•„์š”ํ•˜๋‹ค๋ฉด ์ง์ ‘ CSS ํŒŒ์ผ์„ ๋”ฐ๋กœ ์ž‘์„ฑํ•ด๋„ ์ข‹์Šต๋‹ˆ๋‹ค. - `ci.yml` ํŒŒ์ผ์„ `.github/workflows` ํด๋”๋กœ ์˜ฎ๊ฒผ์Šต๋‹ˆ๋‹ค. - ํ’€ ๋ฆฌํ€˜์ŠคํŠธ ํ…œํ”Œ๋ฆฟ์„ ์˜ฌ๋ ธ์Šต๋‹ˆ๋‹ค. ### ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ) ์—†์Œ ### ๐Ÿš€ ๋ฆฌ๋ทฐ ์š”๊ตฌ์‚ฌํ•ญ (์„ ํƒ) ์—†์Œ
1 parent c739ee2 commit 32cf284

File tree

8 files changed

+558
-3
lines changed

8 files changed

+558
-3
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### ๐Ÿ“ ์ž‘์—… ๋‚ด์šฉ
2+
3+
- ์ด๋ฒˆ PR์—์„œ ์ž‘์—…ํ•œ ๋‚ด์šฉ์„ ๊ฐ„๋žตํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”.
4+
5+
### ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ)
6+
7+
### ๐Ÿš€ ๋ฆฌ๋ทฐ ์š”๊ตฌ์‚ฌํ•ญ (์„ ํƒ)
8+
9+
- ๋ฆฌ๋ทฐ์–ด๊ฐ€ ํŠน๋ณ„ํžˆ ๋ด์ฃผ์—ˆ์œผ๋ฉด ํ•˜๋Š” ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.

โ€Žpackage.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"check-all": "yarn check:types && yarn check:format && yarn check:unused"
1414
},
1515
"dependencies": {
16+
"@tailwindcss/vite": "^4.1.18",
1617
"react": "^19.1.0",
1718
"react-dom": "^19.1.0",
1819
"react-router": "^7.11.0"

โ€Žsrc/App.cssโ€Ž

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700");
2+
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght@100..700");
3+
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
4+
5+
@import "tailwindcss";
6+
7+
@layer base {
8+
html,
9+
body {
10+
@apply h-full;
11+
12+
font-family:
13+
"Pretendard Variable",
14+
Pretendard,
15+
-apple-system,
16+
BlinkMacSystemFont,
17+
system-ui,
18+
Roboto,
19+
"Helvetica Neue",
20+
"Segoe UI",
21+
"Apple SD Gothic Neo",
22+
"Noto Sans KR",
23+
"Malgun Gothic",
24+
"Apple Color Emoji",
25+
"Segoe UI Emoji",
26+
"Segoe UI Symbol",
27+
sans-serif;
28+
29+
-webkit-font-smoothing: antialiased;
30+
31+
line-height: 1.2;
32+
}
33+
}
34+
35+
/* https://dev.to/derick1530/how-to-create-scrollable-element-in-tailwind-without-a-scrollbar-4mbd */
36+
@layer utilities {
37+
/* Hide scrollbar for Chrome, Safari and Opera */
38+
.no-scrollbar::-webkit-scrollbar {
39+
display: none;
40+
}
41+
42+
/* Hide scrollbar for IE, Edge and Firefox */
43+
.no-scrollbar {
44+
-ms-overflow-style: none; /* IE and Edge */
45+
scrollbar-width: none; /* Firefox */
46+
}
47+
48+
.styled-scrollbar::-webkit-scrollbar {
49+
width: 10px;
50+
height: 5px;
51+
}
52+
53+
.styled-scrollbar::-webkit-scrollbar-track {
54+
background-color: #f5f5f5;
55+
border-radius: 10px;
56+
}
57+
58+
.styled-scrollbar::-webkit-scrollbar-thumb {
59+
background-color: #d4d4d4;
60+
background-clip: padding-box;
61+
border: 1px solid transparent;
62+
border-radius: 10px;
63+
}
64+
65+
/* https://github.com/tailwindlabs/tailwindcss/discussions/8679#discussioncomment-4741637 */
66+
/* https://github.com/tailwindlabs/tailwindcss/discussions/8679#discussioncomment-6577036 */
67+
.autofill-bg-white:-webkit-autofill,
68+
.autofill-bg-white:-webkit-autofill:hover,
69+
.autofill-bg-white:-webkit-autofill:focus,
70+
.autofill-bg-white:-webkit-autofill:active {
71+
-webkit-text-fill-color: #262626 !important;
72+
-webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
73+
box-shadow: 0 0 0px 1000px #ffffff inset;
74+
transition: background-color 5000s ease-in-out 0s;
75+
caret-color: #262626;
76+
}
77+
78+
.autofill-bg-neutral-100:-webkit-autofill,
79+
.autofill-bg-neutral-100:-webkit-autofill:hover,
80+
.autofill-bg-neutral-100:-webkit-autofill:focus,
81+
.autofill-bg-neutral-100:-webkit-autofill:active {
82+
-webkit-text-fill-color: #262626 !important;
83+
-webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset;
84+
box-shadow: 0 0 0px 1000px #f5f5f5 inset;
85+
transition: background-color 5000s ease-in-out 0s;
86+
caret-color: #262626;
87+
}
88+
89+
.autofill-bg-neutral-200:-webkit-autofill,
90+
.autofill-bg-neutral-200:-webkit-autofill:hover,
91+
.autofill-bg-neutral-200:-webkit-autofill:focus,
92+
.autofill-bg-neutral-200:-webkit-autofill:active {
93+
-webkit-text-fill-color: #262626 !important;
94+
-webkit-box-shadow: 0 0 0px 1000px #e5e5e5 inset;
95+
box-shadow: 0 0 0px 1000px #e5e5e5 inset;
96+
transition: background-color 5000s ease-in-out 0s;
97+
caret-color: #262626;
98+
}
99+
100+
.truncate-multi {
101+
text-overflow: ellipsis;
102+
overflow: hidden;
103+
word-break: break-word;
104+
display: -webkit-box;
105+
-webkit-line-clamp: 2;
106+
-webkit-box-orient: vertical;
107+
}
108+
109+
.truncate-single {
110+
text-overflow: ellipsis;
111+
overflow: hidden;
112+
word-break: break-word;
113+
display: -webkit-box;
114+
-webkit-line-clamp: 1;
115+
-webkit-box-orient: vertical;
116+
}
117+
}

โ€Žsrc/App.tsxโ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import './App.css';
2+
13
import { RouterProvider } from 'react-router/dom';
24
import { router } from './routes';
35

โ€Žsrc/constants/env.tsโ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

โ€Žvite.config.tsโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import tailwindcss from '@tailwindcss/vite';
12
import react from '@vitejs/plugin-react-swc';
23
import { defineConfig } from 'vite';
34

45
// https://vite.dev/config/
56
export default defineConfig({
6-
plugins: [react()],
7+
plugins: [react(), tailwindcss()],
78
});

0 commit comments

Comments
ย (0)