sud-ui 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +161 -12
- package/dist/index.js +3761 -3078
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,161 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://sud.co.kr" target="_blank">
|
|
3
|
+
<img src="https://www.sud.co.kr/sud-logo.svg" alt="Sud UI 로고" width="400"/>
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
# Soon UI Design Library [](https://www.npmjs.com/package/sud-ui)
|
|
8
|
+
|
|
9
|
+
**Soon UI Design (SUD)** is a React UI library that helps you quickly build responsive and polished interfaces using reusable components and customizable design tokens.
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FY76K2%2FbtsOQoqAXPl%2FAAAAAAAAAAAAAAAAAAAAAJx-tJsO5qplVMQjcswjVmtB2iQvTNqc_dmN8IRWFrDR%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1751295599%26allow_ip%3D%26allow_referer%3D%26signature%3DFqUntFzjghIepJz7UUHV7M7NpD8%253D" alt="Sud UI Components Preview"/>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## ✨ Features
|
|
18
|
+
|
|
19
|
+
- 🎨 Consistent design system with Tailwind-like syntax
|
|
20
|
+
- 🧩 50+ reusable components (Button, Modal, Table, etc.)
|
|
21
|
+
- 🌗 Light/Dark theme support
|
|
22
|
+
- ⚙️ Fully customizable theme and styles
|
|
23
|
+
- 🌀 Utility-first class support (e.g., `pd-10`, `mg-4`)
|
|
24
|
+
|
|
25
|
+
## 📦 Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install sud-ui
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 🧪 Examples Built with Soon UI
|
|
32
|
+
|
|
33
|
+
Check out real projects built using the SUD component library:
|
|
34
|
+
|
|
35
|
+
- [🗂️ CBT Exam App](https://cbt-app-self.vercel.app/)
|
|
36
|
+
- [📍 Korea Map Vector Tool](https://map-vector.vercel.app/)
|
|
37
|
+
- [🎣 어기어때 - Fishing Spot Search](https://fishing-search.vercel.app/)
|
|
38
|
+
- [📝 Soonlog - Personal Blog](https://soonlog.site/)
|
|
39
|
+
|
|
40
|
+
👉 These showcase the flexibility and visual consistency of SUD components in actual products.
|
|
41
|
+
|
|
42
|
+
## 🚀 Quick Start
|
|
43
|
+
|
|
44
|
+
```jsx
|
|
45
|
+
import React from "react";
|
|
46
|
+
import { Card, Typography, Avatar, Tag } from "sud-ui";
|
|
47
|
+
import { LogoGithub } from "sud-icons";
|
|
48
|
+
|
|
49
|
+
export default function App() {
|
|
50
|
+
return (
|
|
51
|
+
<Card
|
|
52
|
+
colorType="gold"
|
|
53
|
+
borderType="dashed"
|
|
54
|
+
borderWeight={2}
|
|
55
|
+
borderColor="red"
|
|
56
|
+
style={{
|
|
57
|
+
width: "100%"
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
60
|
+
<div className="flex gap-10">
|
|
61
|
+
<Avatar colorType="orange" size="lg" />
|
|
62
|
+
<div className="flex flex-col gap-5">
|
|
63
|
+
<Typography suite="EB" size="2xl">
|
|
64
|
+
SeeUSoon
|
|
65
|
+
</Typography>
|
|
66
|
+
<Typography color="black-10">
|
|
67
|
+
Hello I'm SeeUSoon.
|
|
68
|
+
<br />
|
|
69
|
+
I'm Web Developer.
|
|
70
|
+
</Typography>
|
|
71
|
+
|
|
72
|
+
<Tag>
|
|
73
|
+
<a
|
|
74
|
+
href="https://github.com/SeeUSoon93"
|
|
75
|
+
target="_blank"
|
|
76
|
+
className="flex flex-row gap-5 item-cen"
|
|
77
|
+
>
|
|
78
|
+
<LogoGithub size="14" />
|
|
79
|
+
<Typography suite="EB">github.com/SeeUSoon93</Typography>
|
|
80
|
+
</a>
|
|
81
|
+
</Tag>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</Card>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 🧩 Components
|
|
90
|
+
|
|
91
|
+
Sud UI provides a comprehensive suite of ready-to-use components:
|
|
92
|
+
|
|
93
|
+
- **Button** – Styles, states, sizes
|
|
94
|
+
- **Modal** – Alert, confirm, custom modal
|
|
95
|
+
- **Accordion**, **Tabs**, **Tooltip**
|
|
96
|
+
- **Table** – Sort, filter, pagination
|
|
97
|
+
- **Input**, **Select** – Single/multi, number, password
|
|
98
|
+
- **Toast**, **Notification**, **Spinner**
|
|
99
|
+
- ...and **45+ more components**
|
|
100
|
+
|
|
101
|
+
📘 [See full list and API →](https://www.sud.co.kr/component/component-overview)
|
|
102
|
+
|
|
103
|
+
## 🎨 Theme & Customization
|
|
104
|
+
|
|
105
|
+
SUD provides full theming support via `SoonUIDesign`.
|
|
106
|
+
|
|
107
|
+
```jsx
|
|
108
|
+
import { SoonUIDesign, defaultTheme, darkTheme } from "sud-ui";
|
|
109
|
+
|
|
110
|
+
const customTheme = {
|
|
111
|
+
...defaultTheme,
|
|
112
|
+
colors: {
|
|
113
|
+
ocean: {
|
|
114
|
+
1: "#e6f7ff",
|
|
115
|
+
2: "#b3e5ff",
|
|
116
|
+
3: "#80d3ff",
|
|
117
|
+
4: "#4dc2ff",
|
|
118
|
+
5: "#1ab0ff",
|
|
119
|
+
6: "#0096e6",
|
|
120
|
+
7: "#007abf",
|
|
121
|
+
8: "#005f99",
|
|
122
|
+
9: "#004473",
|
|
123
|
+
10: "#00294d"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
components: {
|
|
127
|
+
button: {
|
|
128
|
+
primary: {
|
|
129
|
+
bg: "ocean-6",
|
|
130
|
+
txt: "white-10",
|
|
131
|
+
border: "ocean-7"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export default function App() {
|
|
138
|
+
const [isDarkMode, setIsDarkMode] = useState(false);
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<SoonUIDesign
|
|
142
|
+
theme={customTheme}
|
|
143
|
+
darkTheme={darkTheme}
|
|
144
|
+
isDarkMode={isDarkMode}
|
|
145
|
+
>
|
|
146
|
+
<Button onClick={() => setIsDarkMode(!isDarkMode)}>
|
|
147
|
+
Toggle Dark Mode
|
|
148
|
+
</Button>
|
|
149
|
+
</SoonUIDesign>
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 📚 Documentation
|
|
155
|
+
|
|
156
|
+
- 🧾 [Get Started](https://sud.co.kr/start/start)
|
|
157
|
+
- 🧩 [Components](https://sud.co.kr/component/component-overview)
|
|
158
|
+
|
|
159
|
+
## 📄 License
|
|
160
|
+
|
|
161
|
+
MIT License ©SeeUSoon93
|