@pimolu/design-tokens 0.0.0-stage → 0.1.0-beta.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.fr.md ADDED
@@ -0,0 +1,36 @@
1
+ # @pimolu/design-tokens
2
+
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
+
5
+ > **0.1.0-beta.2** est une version de prévisualisation. Les noms publics des tokens peuvent évoluer avant la version 1.0.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pnpm add @pimolu/design-tokens@beta
11
+ ```
12
+
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";
19
+
20
+ .exemple {
21
+ color: var(--pimolu-color-indigo-500);
22
+ padding: var(--pimolu-spacing-4);
23
+ }
24
+ ```
25
+
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
33
+
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)
35
+
36
+ MIT © Pimolu
package/README.md CHANGED
@@ -1,3 +1,36 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @pimolu/design-tokens
2
+
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
+
5
+ > **0.1.0-beta.2** is a preview release. Public token names may change before 1.0.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @pimolu/design-tokens@beta
11
+ ```
12
+
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";
19
+
20
+ .example {
21
+ color: var(--pimolu-color-indigo-500);
22
+ padding: var(--pimolu-spacing-4);
23
+ }
24
+ ```
25
+
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
33
+
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)
35
+
36
+ MIT © Pimolu
@@ -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]}};
@@ -0,0 +1,50 @@
1
+ :root {
2
+ --pimolu-color-white: #FFFFFF;
3
+ --pimolu-color-black: #000000;
4
+ --pimolu-color-indigo-400: #818CF8;
5
+ --pimolu-color-indigo-500: #6366F1;
6
+ --pimolu-color-indigo-600: #4F46E5;
7
+ --pimolu-color-indigo-700: #4338CA;
8
+ --pimolu-color-slate-50: #F8FAFC;
9
+ --pimolu-color-slate-100: #F1F5F9;
10
+ --pimolu-color-slate-200: #E2E8F0;
11
+ --pimolu-color-slate-400: #94A3B8;
12
+ --pimolu-color-slate-500: #64748B;
13
+ --pimolu-color-slate-800: #1E293B;
14
+ --pimolu-color-slate-900: #0F172A;
15
+ --pimolu-color-slate-950: #020617;
16
+ --pimolu-color-red-400: #F87171;
17
+ --pimolu-color-red-500: #EF4444;
18
+ --pimolu-color-red-600: #DC2626;
19
+ --pimolu-color-red-700: #B91C1C;
20
+ --pimolu-color-green-500: #22C55E;
21
+ --pimolu-color-green-600: #16A34A;
22
+ --pimolu-color-green-700: #15803D;
23
+ --pimolu-color-green-800: #166534;
24
+ --pimolu-color-amber-500: #F59E0B;
25
+ --pimolu-color-amber-600: #D97706;
26
+ --pimolu-spacing-0: 0px;
27
+ --pimolu-spacing-1: 4px;
28
+ --pimolu-spacing-2: 8px;
29
+ --pimolu-spacing-3: 12px;
30
+ --pimolu-spacing-4: 16px;
31
+ --pimolu-spacing-5: 20px;
32
+ --pimolu-spacing-6: 24px;
33
+ --pimolu-spacing-8: 32px;
34
+ --pimolu-spacing-10: 40px;
35
+ --pimolu-spacing-12: 48px;
36
+ --pimolu-radius-none: 0px;
37
+ --pimolu-radius-sm: 6px;
38
+ --pimolu-radius-md: 10px;
39
+ --pimolu-radius-lg: 14px;
40
+ --pimolu-radius-xl: 18px;
41
+ --pimolu-radius-full: 9999px;
42
+ --pimolu-font-size-xs: 12px;
43
+ --pimolu-font-size-sm: 14px;
44
+ --pimolu-font-size-md: 16px;
45
+ --pimolu-font-size-lg: 18px;
46
+ --pimolu-font-size-xl: 20px;
47
+ --pimolu-font-size-2xl: 24px;
48
+ --pimolu-font-size-3xl: 30px;
49
+ --pimolu-font-family-sans: Inter, system-ui, sans-serif;
50
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "color": {
3
+ "white": "#FFFFFF",
4
+ "black": "#000000",
5
+ "indigo": {
6
+ "400": "#818CF8",
7
+ "500": "#6366F1",
8
+ "600": "#4F46E5",
9
+ "700": "#4338CA"
10
+ },
11
+ "slate": {
12
+ "50": "#F8FAFC",
13
+ "100": "#F1F5F9",
14
+ "200": "#E2E8F0",
15
+ "400": "#94A3B8",
16
+ "500": "#64748B",
17
+ "800": "#1E293B",
18
+ "900": "#0F172A",
19
+ "950": "#020617"
20
+ },
21
+ "red": {
22
+ "400": "#F87171",
23
+ "500": "#EF4444",
24
+ "600": "#DC2626",
25
+ "700": "#B91C1C"
26
+ },
27
+ "green": {
28
+ "500": "#22C55E",
29
+ "600": "#16A34A",
30
+ "700": "#15803D",
31
+ "800": "#166534"
32
+ },
33
+ "amber": {
34
+ "500": "#F59E0B",
35
+ "600": "#D97706"
36
+ }
37
+ },
38
+ "spacing": {
39
+ "0": 0,
40
+ "1": 4,
41
+ "2": 8,
42
+ "3": 12,
43
+ "4": 16,
44
+ "5": 20,
45
+ "6": 24,
46
+ "8": 32,
47
+ "10": 40,
48
+ "12": 48
49
+ },
50
+ "radius": {
51
+ "none": 0,
52
+ "sm": 6,
53
+ "md": 10,
54
+ "lg": 14,
55
+ "xl": 18,
56
+ "full": 9999
57
+ },
58
+ "fontSize": {
59
+ "xs": 12,
60
+ "sm": 14,
61
+ "md": 16,
62
+ "lg": 18,
63
+ "xl": 20,
64
+ "2xl": 24,
65
+ "3xl": 30
66
+ },
67
+ "fontFamily": {
68
+ "sans": [
69
+ "Inter",
70
+ "system-ui",
71
+ "sans-serif"
72
+ ]
73
+ }
74
+ }
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
- {
2
- "name": "@pimolu/design-tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@pimolu/design-tokens",
3
+ "version": "0.1.0-beta.2",
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
+ }