@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.
- package/LICENSE +21 -0
- package/README.md +66 -0
- 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
|
+
[](https://www.npmjs.com/package/@bestow-ui/tokens)
|
|
4
|
+
[](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.
|
|
4
|
-
"description": "BestOW UI
|
|
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
|
},
|