@tenseigo/design-tokens 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +18 -2
- package/dist/Tokens.kt +1194 -0
- package/dist/Tokens.swift +1229 -0
- package/dist/theme.css +902 -0
- package/dist/tokens.css +770 -0
- package/dist/tokens.d.ts +37 -0
- package/dist/tokens.js +8 -0
- package/dist/tokens.json +21779 -0
- package/package.json +56 -3
- package/tokens/component.json +639 -0
- package/tokens/contrast.json +345 -0
- package/tokens/modes/dark.json +134 -0
- package/tokens/modes/density-admin.json +172 -0
- package/tokens/modes/density-app.json +6 -0
- package/tokens/modes/density-site.json +13 -0
- package/tokens/modes/season-autumn.json +23 -0
- package/tokens/modes/season-spring.json +23 -0
- package/tokens/modes/season-summer.json +23 -0
- package/tokens/modes/season-winter.json +23 -0
- package/tokens/primitive.json +312 -0
- package/tokens/semantic.json +665 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 prettyturtle
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tenseigo/design-tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tenseigo 디자인 시스템의 토큰입니다. DTCG JSON 원본 하나에서 CSS 변수, Tailwind v4 `@theme`, JS 값, Swift, Kotlin 을 만듭니다. 밝기(light · dark) × 계절(봄 · 여름 · 가을 · 겨울) × 밀도(app · site · admin) 모든 조합의 글자 대비를 빌드가 검사합니다.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @tenseigo/design-tokens
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
| 가져오는 곳 | 내용 |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `@tenseigo/design-tokens/theme.css` | Tailwind v4 테마 — `@import "tailwindcss";` 다음에 |
|
|
12
|
+
| `@tenseigo/design-tokens/tokens.css` | CSS 변수만 (Tailwind 없이) |
|
|
13
|
+
| `@tenseigo/design-tokens` | JS 값 — `motion`, `modes`, `tokens`, `haptic`, `contrast` |
|
|
14
|
+
| `@tenseigo/design-tokens/tokens.json` | 전체 표 |
|
|
15
|
+
| `@tenseigo/design-tokens/swift` · `/kotlin` | `Tokens.swift` · `Tokens.kt` |
|
|
16
|
+
|
|
17
|
+
모드는 `<html>` 의 `data-theme` · `data-season` · `data-density` · `data-motion` 으로 바뀝니다. React 부품은 [`@tenseigo/ui`](https://www.npmjs.com/package/@tenseigo/ui), 토큰 표 전체는 문서 사이트 https://prettyturtle.github.io/tenseigo-design-system/foundations/color 에 있습니다.
|
|
18
|
+
|
|
19
|
+
MIT
|