@beryl-ui/tokens 2.1.0 → 2.1.2
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 +21 -21
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/package.json +9 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Robson H. Rodrigues
|
|
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
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://www.npmjs.com/package/@beryl-ui/tokens">
|
|
5
|
-
<img alt="NPM Version" src="https://img.shields.io/npm/v/@beryl-ui/tokens?color=
|
|
5
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/@beryl-ui/tokens?color=10B981&label=%40beryl-ui%2Ftokens">
|
|
6
6
|
</a>
|
|
7
|
-
<img alt="License" src="https://img.shields.io/github/license/Robson16/beryl-ui?color=
|
|
7
|
+
<img alt="License" src="https://img.shields.io/github/license/Robson16/beryl-ui?color=10B981&label=license">
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Centralized design tokens from **beryl-ui** that define the complete visual identity of the system. They serve as a single source of truth for colors, spacing, typography, borders, and other design values.
|
|
11
|
+
|
|
12
|
+
## ✨ Included Tokens
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
* **Colors**: Primary, secondary, neutral color palette, etc.
|
|
15
|
+
* **Spacing**: Values for margins, padding, and gaps.
|
|
16
|
+
* **Typography**: Font families, sizes, weights, and line heights.
|
|
17
|
+
* **Borders**: Border radius values.
|
|
18
|
+
* **Fonts**: Font families.
|
|
19
|
+
* **Line Heights**: Line height values.
|
|
20
|
+
* **Font Sizes**: Font size values.
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
* **Espaçamentos**: Valores para margens, paddings e gaps.
|
|
16
|
-
* **Tipografia**: Famílias de fontes, tamanhos, pesos e alturas de linha.
|
|
17
|
-
* **Bordas**: Raio de borda (border-radius).
|
|
18
|
-
* **Fontes**: Famílias de fontes.
|
|
19
|
-
* **Line Heights**: Alturas de linha.
|
|
20
|
-
* **Font Sizes**: Tamanhos de fonte.
|
|
22
|
+
## 🚀 Installation
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Instale este pacote em seus projetos que precisam acessar os valores de design:
|
|
24
|
+
Install this package in your projects that need to access design values:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npm install @beryl-ui/tokens
|
|
28
|
-
#
|
|
28
|
+
# or
|
|
29
29
|
yarn add @beryl-ui/tokens
|
|
30
|
-
#
|
|
30
|
+
# or
|
|
31
31
|
pnpm add @beryl-ui/tokens
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
## ⚙️
|
|
34
|
+
## ⚙️ Usage
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
You can import and use the tokens directly in your JavaScript/TypeScript code, especially useful with CSS-in-JS libraries like `styled-components`.
|
|
37
37
|
|
|
38
38
|
```javascript
|
|
39
|
-
//
|
|
39
|
+
// Example of use in a JavaScript/TypeScript file
|
|
40
40
|
import { colors, fontSizes, space } from '@beryl-ui/tokens'
|
|
41
41
|
|
|
42
42
|
console.log(colors.gray800) // #202024
|
|
@@ -44,6 +44,6 @@ console.log(fontSizes.md) // 1rem
|
|
|
44
44
|
console.log(space[4]) // 1rem
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
## 📄
|
|
47
|
+
## 📄 License
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
This package is under the MIT license. See the LICENSE.md file in the root of the repository for more details.
|
package/dist/index.d.mts
CHANGED
|
@@ -28,24 +28,24 @@ declare const fontSizes: {
|
|
|
28
28
|
md: string;
|
|
29
29
|
lg: string;
|
|
30
30
|
xl: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
"2xl": string;
|
|
32
|
+
"4xl": string;
|
|
33
|
+
"5xl": string;
|
|
34
|
+
"6xl": string;
|
|
35
|
+
"7xl": string;
|
|
36
|
+
"8xl": string;
|
|
37
|
+
"9xl": string;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
declare const fontWeights: {
|
|
41
41
|
thin: string;
|
|
42
|
-
|
|
42
|
+
"extra-light": string;
|
|
43
43
|
light: string;
|
|
44
44
|
regular: string;
|
|
45
45
|
medium: string;
|
|
46
|
-
|
|
46
|
+
"semi-bold": string;
|
|
47
47
|
bold: string;
|
|
48
|
-
|
|
48
|
+
"extra-bold": string;
|
|
49
49
|
black: string;
|
|
50
50
|
};
|
|
51
51
|
|
package/dist/index.d.ts
CHANGED
|
@@ -28,24 +28,24 @@ declare const fontSizes: {
|
|
|
28
28
|
md: string;
|
|
29
29
|
lg: string;
|
|
30
30
|
xl: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
"2xl": string;
|
|
32
|
+
"4xl": string;
|
|
33
|
+
"5xl": string;
|
|
34
|
+
"6xl": string;
|
|
35
|
+
"7xl": string;
|
|
36
|
+
"8xl": string;
|
|
37
|
+
"9xl": string;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
declare const fontWeights: {
|
|
41
41
|
thin: string;
|
|
42
|
-
|
|
42
|
+
"extra-light": string;
|
|
43
43
|
light: string;
|
|
44
44
|
regular: string;
|
|
45
45
|
medium: string;
|
|
46
|
-
|
|
46
|
+
"semi-bold": string;
|
|
47
47
|
bold: string;
|
|
48
|
-
|
|
48
|
+
"extra-bold": string;
|
|
49
49
|
black: string;
|
|
50
50
|
};
|
|
51
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beryl-ui/tokens",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Design tokens for the beryl-ui Design System.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"name": "Robson H. Rodrigues",
|
|
14
14
|
"url": "https://github.com/Robson16"
|
|
15
15
|
},
|
|
16
|
+
"homepage": "https://github.com/Robson16/beryl-ui#readme",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/Robson16/beryl-ui.git"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/Robson16/beryl-ui/issues"
|
|
23
|
+
},
|
|
16
24
|
"keywords": [
|
|
17
25
|
"beryl",
|
|
18
26
|
"emerald",
|