@beryl-ui/tokens 2.1.1 → 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/README.md +19 -19
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,36 +7,36 @@
|
|
|
7
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
|
|