@bestow-ui/tokens 0.8.1 β†’ 0.8.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/package.json +14 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dev-BestOW
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 ADDED
@@ -0,0 +1,66 @@
1
+ # @bestow-ui/tokens
2
+
3
+ [![npm](https://img.shields.io/npm/v/@bestow-ui/tokens)](https://www.npmjs.com/package/@bestow-ui/tokens)
4
+ [![license](https://img.shields.io/npm/l/@bestow-ui/tokens)](https://github.com/Dev-BestOW/BestOW-UI/blob/main/LICENSE)
5
+
6
+ Design tokens for **BestOW UI** β€” colors, spacing, radius, typography, shadow, duration and z-index as plain JavaScript values.
7
+ No dependencies, framework-agnostic.
8
+
9
+ πŸ“– **See every token:** [Storybook β€Ί Foundations β€Ί Design Tokens](https://dev-bestow.github.io/BestOW-UI/?path=/story/foundations-design-tokens--colors)
10
+
11
+ > πŸ‡°πŸ‡· ν•œκ΅­μ–΄ μ•ˆλ‚΄λŠ” [μ•„λž˜](#ν•œκ΅­μ–΄)에 μžˆμ–΄μš”.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @bestow-ui/tokens
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```ts
22
+ import { palette, space, radius, fontSize, lightColors, darkColors } from '@bestow-ui/tokens';
23
+
24
+ space[4]; // '16px'
25
+ radius.md; // '8px'
26
+ lightColors.primary.solid; // '#2554eb'
27
+ darkColors.fg.default; // '#f8f9fa'
28
+ ```
29
+
30
+ | Export | Contents |
31
+ |---|---|
32
+ | `palette` | Raw color scales (`gray`, `blue`, `red`, `green`, `white`, `black`) |
33
+ | `lightColors`, `darkColors` | Semantic colors (`bg`, `fg`, `border`, `primary`, `neutral`, `danger`, `success`) β€” same keys in both modes |
34
+ | `space` | `0`–`16` (4px grid) |
35
+ | `radius` | `none`, `sm`, `md`, `lg`, `xl`, `full` |
36
+ | `fontFamily`, `fontSize`, `fontWeight`, `lineHeight` | Typography |
37
+ | `shadow`, `duration`, `zIndex` | Elevation, motion and stacking order |
38
+
39
+ ### Using with React
40
+
41
+ If you use [`@bestow-ui/react`](https://www.npmjs.com/package/@bestow-ui/react), reference tokens through its theme instead of raw values,
42
+ so dark mode and brand themes apply automatically:
43
+
44
+ ```ts
45
+ import { vars } from '@bestow-ui/react'; // vars.color.primary.solid β†’ var(--bestow-color-primary-solid)
46
+ ```
47
+
48
+ ## License
49
+
50
+ [MIT](https://github.com/Dev-BestOW/BestOW-UI/blob/main/LICENSE) Β© Dev-BestOW
51
+
52
+ ---
53
+
54
+ ## ν•œκ΅­μ–΄
55
+
56
+ **BestOW UI** 의 λ””μžμΈ ν† ν°μ΄μ—μš”. 색상·간격·λͺ¨μ„œλ¦¬Β·νƒ€μ΄ν¬κ·Έλž˜ν”ΌΒ·κ·Έλ¦ΌμžΒ·μ‹œκ°„Β·z-index λ₯Ό 순수 JavaScript κ°’μœΌλ‘œ μ œκ³΅ν•΄μš”. μ˜μ‘΄μ„±μ΄ μ—†μ–΄μ„œ μ–΄λ–€ ν”„λ ˆμž„μ›Œν¬μ—μ„œλ„ μ“Έ 수 μžˆμ–΄μš”.
57
+
58
+ ```ts
59
+ import { space, lightColors } from '@bestow-ui/tokens';
60
+
61
+ space[4]; // '16px'
62
+ lightColors.primary.solid; // '#2554eb'
63
+ ```
64
+
65
+ `@bestow-ui/react` λ₯Ό μ“΄λ‹€λ©΄ μ›μ‹œ κ°’ λŒ€μ‹  `vars`(CSS λ³€μˆ˜)둜 μ°Έμ‘°ν•΄μ•Ό 닀크 λͺ¨λ“œΒ·λΈŒλžœλ“œ ν…Œλ§ˆκ°€ μ μš©λΌμš”.
66
+ 전체 토큰은 [Storybook λ””μžμΈ 토큰 νŽ˜μ΄μ§€](https://dev-bestow.github.io/BestOW-UI/?path=/story/foundations-design-tokens--colors) μ—μ„œ λ³Ό 수 μžˆμ–΄μš”.
package/package.json CHANGED
@@ -1,14 +1,26 @@
1
1
  {
2
2
  "name": "@bestow-ui/tokens",
3
- "version": "0.8.1",
4
- "description": "BestOW UI design tokens",
3
+ "version": "0.8.3",
4
+ "description": "Design tokens for BestOW UI β€” colors, spacing, radius, typography, shadow, motion",
5
+ "keywords": [
6
+ "bestow-ui",
7
+ "design-system",
8
+ "design-tokens",
9
+ "tokens",
10
+ "colors",
11
+ "theme"
12
+ ],
5
13
  "license": "MIT",
14
+ "author": "Dev-BestOW",
6
15
  "repository": {
7
16
  "type": "git",
8
17
  "url": "git+https://github.com/Dev-BestOW/BestOW-UI.git",
9
18
  "directory": "packages/tokens"
10
19
  },
11
20
  "homepage": "https://dev-bestow.github.io/BestOW-UI/",
21
+ "bugs": {
22
+ "url": "https://github.com/Dev-BestOW/BestOW-UI/issues"
23
+ },
12
24
  "publishConfig": {
13
25
  "access": "public"
14
26
  },