@calimero-network/mero-tokens 0.0.3 → 0.0.5
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/dist/index.js +48 -12
- package/dist/index.mjs +48 -12
- package/package.json +1 -1
- package/src/index.ts +21 -21
- package/tokens.json +49 -13
package/dist/index.js
CHANGED
|
@@ -46,19 +46,46 @@ var tokens_default = {
|
|
|
46
46
|
"800": { value: "#8AA200", comment: "Darker lime green" },
|
|
47
47
|
"700": { value: "#73B30C", comment: "Medium lime green" },
|
|
48
48
|
"600": { value: "#A5FF11", comment: "Bright, vibrant lime green" },
|
|
49
|
-
"100": {
|
|
49
|
+
"100": {
|
|
50
|
+
value: "#ECFC91",
|
|
51
|
+
comment: "Very pale, almost white, yellow-green"
|
|
52
|
+
}
|
|
50
53
|
},
|
|
51
54
|
transparent: {
|
|
52
|
-
brand: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
brand: {
|
|
56
|
+
value: "rgba(72, 72, 72, 0.05)",
|
|
57
|
+
comment: "Brand transparent - 5% opacity"
|
|
58
|
+
},
|
|
59
|
+
"black-50": {
|
|
60
|
+
value: "rgba(0, 0, 0, 0.5)",
|
|
61
|
+
comment: "Transparent black - 50% opacity"
|
|
62
|
+
},
|
|
63
|
+
"green-20": {
|
|
64
|
+
value: "rgba(112, 237, 206, 0.2)",
|
|
65
|
+
comment: "Transparent green - 20% opacity"
|
|
66
|
+
},
|
|
67
|
+
"green-10": {
|
|
68
|
+
value: "rgba(109, 234, 173, 0.1)",
|
|
69
|
+
comment: "Transparent green - 10% opacity"
|
|
70
|
+
}
|
|
56
71
|
},
|
|
57
72
|
background: {
|
|
58
|
-
primary: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
73
|
+
primary: {
|
|
74
|
+
value: "#0F1419",
|
|
75
|
+
comment: "Primary background - dark teal"
|
|
76
|
+
},
|
|
77
|
+
secondary: {
|
|
78
|
+
value: "#131215",
|
|
79
|
+
comment: "Secondary background - charcoal"
|
|
80
|
+
},
|
|
81
|
+
tertiary: {
|
|
82
|
+
value: "#0A0E13",
|
|
83
|
+
comment: "Tertiary background - deep dark"
|
|
84
|
+
},
|
|
85
|
+
brand: {
|
|
86
|
+
value: "linear-gradient(135deg, #0F1419 0%, #131215 50%, #0A0E13 100%)",
|
|
87
|
+
comment: "Brand gradient background"
|
|
88
|
+
}
|
|
62
89
|
},
|
|
63
90
|
semantic: {
|
|
64
91
|
success: { value: "#16a34a", comment: "Green for success states" },
|
|
@@ -79,9 +106,18 @@ var tokens_default = {
|
|
|
79
106
|
"6": { value: "1.5rem" }
|
|
80
107
|
},
|
|
81
108
|
font: {
|
|
82
|
-
body: {
|
|
83
|
-
|
|
84
|
-
|
|
109
|
+
body: {
|
|
110
|
+
value: "Power Grotesk, Inter, system-ui, sans-serif",
|
|
111
|
+
comment: "Main typeface for Calimero brand cohesion"
|
|
112
|
+
},
|
|
113
|
+
heading: {
|
|
114
|
+
value: "Power Grotesk, Inter, system-ui, sans-serif",
|
|
115
|
+
comment: "Heading typeface"
|
|
116
|
+
},
|
|
117
|
+
secondary: {
|
|
118
|
+
value: "Inter, system-ui, sans-serif",
|
|
119
|
+
comment: "Secondary typeface for tools and diagrams"
|
|
120
|
+
}
|
|
85
121
|
}
|
|
86
122
|
};
|
|
87
123
|
|
package/dist/index.mjs
CHANGED
|
@@ -15,19 +15,46 @@ var tokens_default = {
|
|
|
15
15
|
"800": { value: "#8AA200", comment: "Darker lime green" },
|
|
16
16
|
"700": { value: "#73B30C", comment: "Medium lime green" },
|
|
17
17
|
"600": { value: "#A5FF11", comment: "Bright, vibrant lime green" },
|
|
18
|
-
"100": {
|
|
18
|
+
"100": {
|
|
19
|
+
value: "#ECFC91",
|
|
20
|
+
comment: "Very pale, almost white, yellow-green"
|
|
21
|
+
}
|
|
19
22
|
},
|
|
20
23
|
transparent: {
|
|
21
|
-
brand: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
brand: {
|
|
25
|
+
value: "rgba(72, 72, 72, 0.05)",
|
|
26
|
+
comment: "Brand transparent - 5% opacity"
|
|
27
|
+
},
|
|
28
|
+
"black-50": {
|
|
29
|
+
value: "rgba(0, 0, 0, 0.5)",
|
|
30
|
+
comment: "Transparent black - 50% opacity"
|
|
31
|
+
},
|
|
32
|
+
"green-20": {
|
|
33
|
+
value: "rgba(112, 237, 206, 0.2)",
|
|
34
|
+
comment: "Transparent green - 20% opacity"
|
|
35
|
+
},
|
|
36
|
+
"green-10": {
|
|
37
|
+
value: "rgba(109, 234, 173, 0.1)",
|
|
38
|
+
comment: "Transparent green - 10% opacity"
|
|
39
|
+
}
|
|
25
40
|
},
|
|
26
41
|
background: {
|
|
27
|
-
primary: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
primary: {
|
|
43
|
+
value: "#0F1419",
|
|
44
|
+
comment: "Primary background - dark teal"
|
|
45
|
+
},
|
|
46
|
+
secondary: {
|
|
47
|
+
value: "#131215",
|
|
48
|
+
comment: "Secondary background - charcoal"
|
|
49
|
+
},
|
|
50
|
+
tertiary: {
|
|
51
|
+
value: "#0A0E13",
|
|
52
|
+
comment: "Tertiary background - deep dark"
|
|
53
|
+
},
|
|
54
|
+
brand: {
|
|
55
|
+
value: "linear-gradient(135deg, #0F1419 0%, #131215 50%, #0A0E13 100%)",
|
|
56
|
+
comment: "Brand gradient background"
|
|
57
|
+
}
|
|
31
58
|
},
|
|
32
59
|
semantic: {
|
|
33
60
|
success: { value: "#16a34a", comment: "Green for success states" },
|
|
@@ -48,9 +75,18 @@ var tokens_default = {
|
|
|
48
75
|
"6": { value: "1.5rem" }
|
|
49
76
|
},
|
|
50
77
|
font: {
|
|
51
|
-
body: {
|
|
52
|
-
|
|
53
|
-
|
|
78
|
+
body: {
|
|
79
|
+
value: "Power Grotesk, Inter, system-ui, sans-serif",
|
|
80
|
+
comment: "Main typeface for Calimero brand cohesion"
|
|
81
|
+
},
|
|
82
|
+
heading: {
|
|
83
|
+
value: "Power Grotesk, Inter, system-ui, sans-serif",
|
|
84
|
+
comment: "Heading typeface"
|
|
85
|
+
},
|
|
86
|
+
secondary: {
|
|
87
|
+
value: "Inter, system-ui, sans-serif",
|
|
88
|
+
comment: "Secondary typeface for tools and diagrams"
|
|
89
|
+
}
|
|
54
90
|
}
|
|
55
91
|
};
|
|
56
92
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Export the raw tokens data
|
|
2
|
-
import tokens from
|
|
2
|
+
import tokens from "../tokens.json";
|
|
3
3
|
|
|
4
4
|
// Export the tokens object
|
|
5
5
|
export { tokens };
|
|
@@ -13,22 +13,22 @@ export const fonts = tokens.font;
|
|
|
13
13
|
// Export CSS variables as a string (for runtime use)
|
|
14
14
|
export const cssVariables = `
|
|
15
15
|
:root {
|
|
16
|
-
--color-neutral-200: ${colors.neutral[
|
|
17
|
-
--color-neutral-300: ${colors.neutral[
|
|
18
|
-
--color-neutral-400: ${colors.neutral[
|
|
19
|
-
--color-neutral-600: ${colors.neutral[
|
|
20
|
-
--color-neutral-700: ${colors.neutral[
|
|
21
|
-
--color-neutral-800: ${colors.neutral[
|
|
22
|
-
--color-neutral-900: ${colors.neutral[
|
|
23
|
-
--color-brand-100: ${colors.brand[
|
|
24
|
-
--color-brand-600: ${colors.brand[
|
|
25
|
-
--color-brand-700: ${colors.brand[
|
|
26
|
-
--color-brand-800: ${colors.brand[
|
|
27
|
-
--color-brand-900: ${colors.brand[
|
|
16
|
+
--color-neutral-200: ${colors.neutral["200"].value};
|
|
17
|
+
--color-neutral-300: ${colors.neutral["300"].value};
|
|
18
|
+
--color-neutral-400: ${colors.neutral["400"].value};
|
|
19
|
+
--color-neutral-600: ${colors.neutral["600"].value};
|
|
20
|
+
--color-neutral-700: ${colors.neutral["700"].value};
|
|
21
|
+
--color-neutral-800: ${colors.neutral["800"].value};
|
|
22
|
+
--color-neutral-900: ${colors.neutral["900"].value};
|
|
23
|
+
--color-brand-100: ${colors.brand["100"].value};
|
|
24
|
+
--color-brand-600: ${colors.brand["600"].value};
|
|
25
|
+
--color-brand-700: ${colors.brand["700"].value};
|
|
26
|
+
--color-brand-800: ${colors.brand["800"].value};
|
|
27
|
+
--color-brand-900: ${colors.brand["900"].value};
|
|
28
28
|
--color-transparent-brand: ${colors.transparent.brand.value};
|
|
29
|
-
--color-transparent-black-50: ${colors.transparent[
|
|
30
|
-
--color-transparent-green-20: ${colors.transparent[
|
|
31
|
-
--color-transparent-green-10: ${colors.transparent[
|
|
29
|
+
--color-transparent-black-50: ${colors.transparent["black-50"].value};
|
|
30
|
+
--color-transparent-green-20: ${colors.transparent["green-20"].value};
|
|
31
|
+
--color-transparent-green-10: ${colors.transparent["green-10"].value};
|
|
32
32
|
--color-background-primary: ${colors.background.primary.value};
|
|
33
33
|
--color-background-secondary: ${colors.background.secondary.value};
|
|
34
34
|
--color-background-tertiary: ${colors.background.tertiary.value};
|
|
@@ -40,12 +40,12 @@ export const cssVariables = `
|
|
|
40
40
|
--radius-sm: ${radius.sm.value};
|
|
41
41
|
--radius-md: ${radius.md.value};
|
|
42
42
|
--radius-lg: ${radius.lg.value};
|
|
43
|
-
--space-2: ${spacing[
|
|
44
|
-
--space-3: ${spacing[
|
|
45
|
-
--space-4: ${spacing[
|
|
46
|
-
--space-6: ${spacing[
|
|
43
|
+
--space-2: ${spacing["2"].value};
|
|
44
|
+
--space-3: ${spacing["3"].value};
|
|
45
|
+
--space-4: ${spacing["4"].value};
|
|
46
|
+
--space-6: ${spacing["6"].value};
|
|
47
47
|
--font-body: ${fonts.body.value};
|
|
48
48
|
--font-heading: ${fonts.heading.value};
|
|
49
49
|
--font-secondary: ${fonts.secondary.value};
|
|
50
50
|
}
|
|
51
|
-
`;
|
|
51
|
+
`;
|
package/tokens.json
CHANGED
|
@@ -14,19 +14,46 @@
|
|
|
14
14
|
"800": { "value": "#8AA200", "comment": "Darker lime green" },
|
|
15
15
|
"700": { "value": "#73B30C", "comment": "Medium lime green" },
|
|
16
16
|
"600": { "value": "#A5FF11", "comment": "Bright, vibrant lime green" },
|
|
17
|
-
"100": {
|
|
17
|
+
"100": {
|
|
18
|
+
"value": "#ECFC91",
|
|
19
|
+
"comment": "Very pale, almost white, yellow-green"
|
|
20
|
+
}
|
|
18
21
|
},
|
|
19
22
|
"transparent": {
|
|
20
|
-
"brand": {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
"brand": {
|
|
24
|
+
"value": "rgba(72, 72, 72, 0.05)",
|
|
25
|
+
"comment": "Brand transparent - 5% opacity"
|
|
26
|
+
},
|
|
27
|
+
"black-50": {
|
|
28
|
+
"value": "rgba(0, 0, 0, 0.5)",
|
|
29
|
+
"comment": "Transparent black - 50% opacity"
|
|
30
|
+
},
|
|
31
|
+
"green-20": {
|
|
32
|
+
"value": "rgba(112, 237, 206, 0.2)",
|
|
33
|
+
"comment": "Transparent green - 20% opacity"
|
|
34
|
+
},
|
|
35
|
+
"green-10": {
|
|
36
|
+
"value": "rgba(109, 234, 173, 0.1)",
|
|
37
|
+
"comment": "Transparent green - 10% opacity"
|
|
38
|
+
}
|
|
24
39
|
},
|
|
25
40
|
"background": {
|
|
26
|
-
"primary": {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
"primary": {
|
|
42
|
+
"value": "#0F1419",
|
|
43
|
+
"comment": "Primary background - dark teal"
|
|
44
|
+
},
|
|
45
|
+
"secondary": {
|
|
46
|
+
"value": "#131215",
|
|
47
|
+
"comment": "Secondary background - charcoal"
|
|
48
|
+
},
|
|
49
|
+
"tertiary": {
|
|
50
|
+
"value": "#0A0E13",
|
|
51
|
+
"comment": "Tertiary background - deep dark"
|
|
52
|
+
},
|
|
53
|
+
"brand": {
|
|
54
|
+
"value": "linear-gradient(135deg, #0F1419 0%, #131215 50%, #0A0E13 100%)",
|
|
55
|
+
"comment": "Brand gradient background"
|
|
56
|
+
}
|
|
30
57
|
},
|
|
31
58
|
"semantic": {
|
|
32
59
|
"success": { "value": "#16a34a", "comment": "Green for success states" },
|
|
@@ -47,8 +74,17 @@
|
|
|
47
74
|
"6": { "value": "1.5rem" }
|
|
48
75
|
},
|
|
49
76
|
"font": {
|
|
50
|
-
"body": {
|
|
51
|
-
|
|
52
|
-
|
|
77
|
+
"body": {
|
|
78
|
+
"value": "Power Grotesk, Inter, system-ui, sans-serif",
|
|
79
|
+
"comment": "Main typeface for Calimero brand cohesion"
|
|
80
|
+
},
|
|
81
|
+
"heading": {
|
|
82
|
+
"value": "Power Grotesk, Inter, system-ui, sans-serif",
|
|
83
|
+
"comment": "Heading typeface"
|
|
84
|
+
},
|
|
85
|
+
"secondary": {
|
|
86
|
+
"value": "Inter, system-ui, sans-serif",
|
|
87
|
+
"comment": "Secondary typeface for tools and diagrams"
|
|
88
|
+
}
|
|
53
89
|
}
|
|
54
|
-
}
|
|
90
|
+
}
|