@pimolu/design-tokens 0.1.0-beta.1 → 0.1.0-beta.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/README.fr.md +23 -11
- package/README.md +23 -11
- package/dist/motion.d.ts +1 -0
- package/dist/motion.js +1 -0
- package/package.json +26 -25
- package/LICENSE +0 -21
package/README.fr.md
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
# @pimolu/design-tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Les éléments de base de Pimolu UI : couleurs, espacements, rayons et typographie sous forme de CSS et de JSON. Utilisez ce package pour accéder aux données du design sans React ni styles de composants.
|
|
4
4
|
|
|
5
|
-
> **0.1.0-beta.
|
|
5
|
+
> **0.1.0-beta.3** est une version de prévisualisation. Les noms publics des tokens peuvent évoluer avant la version 1.0.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
pnpm add @pimolu/design-tokens
|
|
10
|
+
pnpm add @pimolu/design-tokens@beta
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
## Utilisation en CSS
|
|
14
|
+
|
|
15
|
+
Importez la feuille une fois dans votre CSS global :
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import "@pimolu/design-tokens/tokens.css";
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
.exemple {
|
|
21
|
+
color: var(--pimolu-color-indigo-500);
|
|
22
|
+
padding: var(--pimolu-spacing-4);
|
|
23
|
+
}
|
|
17
24
|
```
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
`tokens.css` définit les primitives sur `:root`. Les couleurs sémantiques claires et sombres se trouvent dans `@pimolu/themes` ; une application React complète peut simplement importer `@pimolu/web-styles/styles.css` une fois.
|
|
27
|
+
|
|
28
|
+
## Utilisation comme données
|
|
29
|
+
|
|
30
|
+
`@pimolu/design-tokens/tokens.json` expose l'arbre des tokens pour les outils de build. Par exemple, `tokens.color.indigo["500"].$value.hex` vaut `#6366F1`. Le JSON suit le format du Design Tokens Community Group ; configurez la prise en charge des imports JSON dans votre outillage avant de l'importer en JavaScript.
|
|
31
|
+
|
|
32
|
+
## Liens
|
|
21
33
|
|
|
22
|
-
Documentation
|
|
34
|
+
[Documentation](https://pimolu.com/docs/theming) · [Tous les packages npm](https://www.npmjs.com/org/pimolu) · [Code source](https://github.com/pimoludev/ui/tree/main/packages/design-tokens)
|
|
23
35
|
|
|
24
36
|
MIT © Pimolu
|
package/README.md
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
# @pimolu/design-tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The raw materials of Pimolu UI: colour, spacing, radius and typography tokens in CSS and JSON. Use this package when you need the design data without React or component styles.
|
|
4
4
|
|
|
5
|
-
> **0.1.0-beta.
|
|
5
|
+
> **0.1.0-beta.3** is a preview release. Public token names may change before 1.0.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
pnpm add @pimolu/design-tokens
|
|
10
|
+
pnpm add @pimolu/design-tokens@beta
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
## Use in CSS
|
|
14
|
+
|
|
15
|
+
Import the stylesheet once in your global CSS entry:
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import "@pimolu/design-tokens/tokens.css";
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
.example {
|
|
21
|
+
color: var(--pimolu-color-indigo-500);
|
|
22
|
+
padding: var(--pimolu-spacing-4);
|
|
23
|
+
}
|
|
17
24
|
```
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
`tokens.css` defines primitives on `:root`. The semantic light and dark colours live in `@pimolu/themes`; the complete React setup can instead import `@pimolu/web-styles/styles.css` once.
|
|
27
|
+
|
|
28
|
+
## Use as data
|
|
29
|
+
|
|
30
|
+
`@pimolu/design-tokens/tokens.json` exports the source token tree for build tools. For example, `tokens.color.indigo["500"].$value.hex` is `#6366F1`. The JSON follows the Design Tokens Community Group format; configure your toolchain's JSON import support before importing it from JavaScript.
|
|
31
|
+
|
|
32
|
+
## Links
|
|
21
33
|
|
|
22
|
-
Documentation
|
|
34
|
+
[Documentation](https://pimolu.com/docs/theming) · [All npm packages](https://www.npmjs.com/org/pimolu) · [Source](https://github.com/pimoludev/ui/tree/main/packages/design-tokens)
|
|
23
35
|
|
|
24
36
|
MIT © Pimolu
|
package/dist/motion.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pimoluMotionTokens: { readonly "duration": { readonly "feedback": number; readonly "control": number; readonly "enter": number; readonly "layout": number }; readonly "easing": { readonly "standard": readonly [number, number, number, number]; readonly "enter": readonly [number, number, number, number] } };
|
package/dist/motion.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const pimoluMotionTokens = {"duration":{"feedback":120,"control":150,"enter":180,"layout":200},"easing":{"standard":[0.2,0,0,1],"enter":[0.16,1,0.3,1]}};
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pimolu/design-tokens",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"description": "Pimolu primitive design tokens, themes and CSS variables.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/pimoludev/ui.git",
|
|
9
|
-
"directory": "packages/design-tokens"
|
|
10
|
-
},
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"type": "module",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pimolu/design-tokens",
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
|
+
"description": "Pimolu primitive design tokens, themes and CSS variables.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/pimoludev/ui.git",
|
|
9
|
+
"directory": "packages/design-tokens"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "node scripts/build.mjs",
|
|
20
|
+
"prepack": "pnpm build"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
"./tokens.json": "./dist/tokens.json",
|
|
24
|
+
"./tokens.css": "./dist/tokens.css"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 pimoludev
|
|
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.
|