@recanica/tokens 0.0.0-stage → 0.2.0
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 +9 -0
- package/README.md +21 -2
- package/generated/android/RecanicaTokens.kt +149 -0
- package/generated/css/tailwind-theme.css +47 -0
- package/generated/css/variables.css +151 -0
- package/generated/figma/tokens-studio.json +779 -0
- package/generated/flutter/recanica_tokens.dart +243 -0
- package/generated/ios/RecanicaTokens.swift +96 -0
- package/generated/js/tokens.cjs +225 -0
- package/generated/js/tokens.d.ts +223 -0
- package/generated/js/tokens.mjs +223 -0
- package/generated/json/tokens.json +221 -0
- package/generated/tailwind/preset.cjs +57 -0
- package/package.json +53 -3
- package/scripts/build.mjs +344 -0
- package/theme.css +126 -0
- package/tokens/color.primitive.json +240 -0
- package/tokens/color.semantic.json +332 -0
- package/tokens/dimension.json +199 -0
- package/tokens/effects.json +71 -0
- package/tokens/typography.json +142 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Size tokens. CSS uses rem/clamp via $extensions.com.recanica.css; native platforms use the px $value.",
|
|
3
|
+
"radius": {
|
|
4
|
+
"base": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$value": "12px",
|
|
7
|
+
"$extensions": {
|
|
8
|
+
"com.recanica": {
|
|
9
|
+
"css": "0.75rem",
|
|
10
|
+
"cssVar": "--radius"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"sm": {
|
|
15
|
+
"$type": "dimension",
|
|
16
|
+
"$value": "8px",
|
|
17
|
+
"$extensions": {
|
|
18
|
+
"com.recanica": {
|
|
19
|
+
"css": "calc(var(--radius) - 4px)"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"md": {
|
|
24
|
+
"$type": "dimension",
|
|
25
|
+
"$value": "10px",
|
|
26
|
+
"$extensions": {
|
|
27
|
+
"com.recanica": {
|
|
28
|
+
"css": "calc(var(--radius) - 2px)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"lg": {
|
|
33
|
+
"$type": "dimension",
|
|
34
|
+
"$value": "12px",
|
|
35
|
+
"$extensions": {
|
|
36
|
+
"com.recanica": {
|
|
37
|
+
"css": "var(--radius)"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"xl": {
|
|
42
|
+
"$type": "dimension",
|
|
43
|
+
"$value": "16px",
|
|
44
|
+
"$extensions": {
|
|
45
|
+
"com.recanica": {
|
|
46
|
+
"css": "calc(var(--radius) + 4px)"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"2xl": {
|
|
51
|
+
"$type": "dimension",
|
|
52
|
+
"$value": "20px",
|
|
53
|
+
"$extensions": {
|
|
54
|
+
"com.recanica": {
|
|
55
|
+
"css": "calc(var(--radius) + 8px)"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"full": {
|
|
60
|
+
"$type": "dimension",
|
|
61
|
+
"$value": "9999px"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"spacing": {
|
|
65
|
+
"unit": {
|
|
66
|
+
"$type": "dimension",
|
|
67
|
+
"$value": "4px",
|
|
68
|
+
"$description": "Base grid. Tailwind p-1 = 4px."
|
|
69
|
+
},
|
|
70
|
+
"gutter": {
|
|
71
|
+
"$type": "dimension",
|
|
72
|
+
"$value": "16px",
|
|
73
|
+
"$extensions": {
|
|
74
|
+
"com.recanica": {
|
|
75
|
+
"css": "clamp(1rem, 3vw, 2.5rem)"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"$description": "Page side padding"
|
|
79
|
+
},
|
|
80
|
+
"section": {
|
|
81
|
+
"$type": "dimension",
|
|
82
|
+
"$value": "64px",
|
|
83
|
+
"$extensions": {
|
|
84
|
+
"com.recanica": {
|
|
85
|
+
"css": "clamp(4rem, 10vw, 8rem)"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"$description": "Landing section rhythm"
|
|
89
|
+
},
|
|
90
|
+
"section-sm": {
|
|
91
|
+
"$type": "dimension",
|
|
92
|
+
"$value": "48px",
|
|
93
|
+
"$extensions": {
|
|
94
|
+
"com.recanica": {
|
|
95
|
+
"css": "clamp(3rem, 6vw, 5rem)"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"panel": {
|
|
100
|
+
"$type": "dimension",
|
|
101
|
+
"$value": "28px",
|
|
102
|
+
"$extensions": {
|
|
103
|
+
"com.recanica": {
|
|
104
|
+
"css": "1.75rem"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"$description": "Card / stat padding"
|
|
108
|
+
},
|
|
109
|
+
"stack": {
|
|
110
|
+
"$type": "dimension",
|
|
111
|
+
"$value": "40px",
|
|
112
|
+
"$extensions": {
|
|
113
|
+
"com.recanica": {
|
|
114
|
+
"css": "2.5rem"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"$description": "Gap between dashboard blocks"
|
|
118
|
+
},
|
|
119
|
+
"sidebar": {
|
|
120
|
+
"$type": "dimension",
|
|
121
|
+
"$value": "240px",
|
|
122
|
+
"$extensions": {
|
|
123
|
+
"com.recanica": {
|
|
124
|
+
"css": "15rem"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"flow": {
|
|
129
|
+
"$type": "dimension",
|
|
130
|
+
"$value": "20px",
|
|
131
|
+
"$extensions": {
|
|
132
|
+
"com.recanica": {
|
|
133
|
+
"css": "1.25rem"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"$description": "Gap between consecutive blocks in a column (paragraph \u2192 table \u2192 paragraph). Owned by the .flow container, never by the blocks."
|
|
137
|
+
},
|
|
138
|
+
"$description": "Visual rhythm, by role. Pages and components use these roles, never raw numbers: inset (inside a surface) \u00b7 group (within a group: heading\u2192content, label\u2192field) \u00b7 flow (between blocks) \u00b7 stack (between sections) \u00b7 section (page bands on marketing pages).",
|
|
139
|
+
"group": {
|
|
140
|
+
"$type": "dimension",
|
|
141
|
+
"$value": "12px",
|
|
142
|
+
"$extensions": {
|
|
143
|
+
"com.recanica": {
|
|
144
|
+
"css": "0.75rem"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"$description": "Within a group: a heading and its content, a label and its field."
|
|
148
|
+
},
|
|
149
|
+
"inset-sm": {
|
|
150
|
+
"$type": "dimension",
|
|
151
|
+
"$value": "16px",
|
|
152
|
+
"$extensions": {
|
|
153
|
+
"com.recanica": {
|
|
154
|
+
"css": "1rem"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"$description": "Padding inside compact surfaces (list rows, small cards)."
|
|
158
|
+
},
|
|
159
|
+
"inset": {
|
|
160
|
+
"$type": "dimension",
|
|
161
|
+
"$value": "20px",
|
|
162
|
+
"$extensions": {
|
|
163
|
+
"com.recanica": {
|
|
164
|
+
"css": "1.25rem"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"$description": "Padding inside surfaces (cards, tables' edge inset)."
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"container": {
|
|
171
|
+
"content": {
|
|
172
|
+
"$type": "dimension",
|
|
173
|
+
"$value": "1152px",
|
|
174
|
+
"$extensions": {
|
|
175
|
+
"com.recanica": {
|
|
176
|
+
"css": "72rem"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"narrow": {
|
|
181
|
+
"$type": "dimension",
|
|
182
|
+
"$value": "768px",
|
|
183
|
+
"$extensions": {
|
|
184
|
+
"com.recanica": {
|
|
185
|
+
"css": "48rem"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"copy": {
|
|
190
|
+
"$type": "dimension",
|
|
191
|
+
"$value": "640px",
|
|
192
|
+
"$extensions": {
|
|
193
|
+
"com.recanica": {
|
|
194
|
+
"css": "40rem"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"duration": {
|
|
3
|
+
"fast": {
|
|
4
|
+
"$type": "duration",
|
|
5
|
+
"$value": "150ms"
|
|
6
|
+
},
|
|
7
|
+
"base": {
|
|
8
|
+
"$type": "duration",
|
|
9
|
+
"$value": "200ms"
|
|
10
|
+
},
|
|
11
|
+
"slow": {
|
|
12
|
+
"$type": "duration",
|
|
13
|
+
"$value": "300ms"
|
|
14
|
+
},
|
|
15
|
+
"slower": {
|
|
16
|
+
"$type": "duration",
|
|
17
|
+
"$value": "700ms"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"easing": {
|
|
21
|
+
"out-soft": {
|
|
22
|
+
"$type": "cubicBezier",
|
|
23
|
+
"$value": [
|
|
24
|
+
0.22,
|
|
25
|
+
1,
|
|
26
|
+
0.36,
|
|
27
|
+
1
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"shadow": {
|
|
32
|
+
"soft": {
|
|
33
|
+
"$type": "shadow",
|
|
34
|
+
"$value": [
|
|
35
|
+
{
|
|
36
|
+
"offsetX": "0px",
|
|
37
|
+
"offsetY": "1px",
|
|
38
|
+
"blur": "2px",
|
|
39
|
+
"spread": "0px",
|
|
40
|
+
"color": "#0000000a"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"offsetX": "0px",
|
|
44
|
+
"offsetY": "4px",
|
|
45
|
+
"blur": "16px",
|
|
46
|
+
"spread": "-4px",
|
|
47
|
+
"color": "#00000014"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"float": {
|
|
52
|
+
"$type": "shadow",
|
|
53
|
+
"$value": [
|
|
54
|
+
{
|
|
55
|
+
"offsetX": "0px",
|
|
56
|
+
"offsetY": "2px",
|
|
57
|
+
"blur": "4px",
|
|
58
|
+
"spread": "0px",
|
|
59
|
+
"color": "#0000000a"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"offsetX": "0px",
|
|
63
|
+
"offsetY": "16px",
|
|
64
|
+
"blur": "40px",
|
|
65
|
+
"spread": "-8px",
|
|
66
|
+
"color": "#00000029"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Font is a project choice: set --font-sans / --font-mono (default Geist). Weights: 300 metrics, 400 everything else, 500 buttons. Never bold. Display/title/heading sizes are fluid: they scale from $extensions.com.recanica.fluidMin at 375px to $value at 1280px. Body sizes (xs/sm/base) stay fixed for readability.",
|
|
3
|
+
"font": {
|
|
4
|
+
"family": {
|
|
5
|
+
"sans": {
|
|
6
|
+
"$type": "fontFamily",
|
|
7
|
+
"$value": [
|
|
8
|
+
"Geist",
|
|
9
|
+
"ui-sans-serif",
|
|
10
|
+
"system-ui",
|
|
11
|
+
"sans-serif"
|
|
12
|
+
],
|
|
13
|
+
"$extensions": {
|
|
14
|
+
"com.recanica": {
|
|
15
|
+
"css": "var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"mono": {
|
|
20
|
+
"$type": "fontFamily",
|
|
21
|
+
"$value": [
|
|
22
|
+
"Geist Mono",
|
|
23
|
+
"ui-monospace",
|
|
24
|
+
"monospace"
|
|
25
|
+
],
|
|
26
|
+
"$extensions": {
|
|
27
|
+
"com.recanica": {
|
|
28
|
+
"css": "var(--font-geist-mono), ui-monospace, monospace"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"weight": {
|
|
34
|
+
"light": {
|
|
35
|
+
"$type": "fontWeight",
|
|
36
|
+
"$value": 300
|
|
37
|
+
},
|
|
38
|
+
"regular": {
|
|
39
|
+
"$type": "fontWeight",
|
|
40
|
+
"$value": 400
|
|
41
|
+
},
|
|
42
|
+
"medium": {
|
|
43
|
+
"$type": "fontWeight",
|
|
44
|
+
"$value": 500
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"text": {
|
|
49
|
+
"xs": {
|
|
50
|
+
"$type": "typography",
|
|
51
|
+
"$value": {
|
|
52
|
+
"fontSize": "12px",
|
|
53
|
+
"lineHeight": 1.333
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"sm": {
|
|
57
|
+
"$type": "typography",
|
|
58
|
+
"$value": {
|
|
59
|
+
"fontSize": "14px",
|
|
60
|
+
"lineHeight": 1.43
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"base": {
|
|
64
|
+
"$type": "typography",
|
|
65
|
+
"$value": {
|
|
66
|
+
"fontSize": "16px",
|
|
67
|
+
"lineHeight": 1.5
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"heading": {
|
|
71
|
+
"$type": "typography",
|
|
72
|
+
"$value": {
|
|
73
|
+
"fontSize": "24px",
|
|
74
|
+
"lineHeight": 1.25,
|
|
75
|
+
"letterSpacing": "-0.015em"
|
|
76
|
+
},
|
|
77
|
+
"$extensions": {
|
|
78
|
+
"com.recanica": {
|
|
79
|
+
"fluidMin": "20px"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"title": {
|
|
84
|
+
"$type": "typography",
|
|
85
|
+
"$value": {
|
|
86
|
+
"fontSize": "30px",
|
|
87
|
+
"lineHeight": 1.2,
|
|
88
|
+
"letterSpacing": "-0.02em"
|
|
89
|
+
},
|
|
90
|
+
"$extensions": {
|
|
91
|
+
"com.recanica": {
|
|
92
|
+
"fluidMin": "26px"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"metric": {
|
|
97
|
+
"$type": "typography",
|
|
98
|
+
"$value": {
|
|
99
|
+
"fontSize": "40px",
|
|
100
|
+
"lineHeight": 1,
|
|
101
|
+
"letterSpacing": "-0.03em"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"display-sm": {
|
|
105
|
+
"$type": "typography",
|
|
106
|
+
"$value": {
|
|
107
|
+
"fontSize": "36px",
|
|
108
|
+
"lineHeight": 1.1
|
|
109
|
+
},
|
|
110
|
+
"$extensions": {
|
|
111
|
+
"com.recanica": {
|
|
112
|
+
"fluidMin": "28px"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"display-md": {
|
|
117
|
+
"$type": "typography",
|
|
118
|
+
"$value": {
|
|
119
|
+
"fontSize": "48px",
|
|
120
|
+
"lineHeight": 1.05
|
|
121
|
+
},
|
|
122
|
+
"$extensions": {
|
|
123
|
+
"com.recanica": {
|
|
124
|
+
"fluidMin": "34px"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"display-lg": {
|
|
129
|
+
"$type": "typography",
|
|
130
|
+
"$value": {
|
|
131
|
+
"fontSize": "64px",
|
|
132
|
+
"lineHeight": 1,
|
|
133
|
+
"letterSpacing": "-0.035em"
|
|
134
|
+
},
|
|
135
|
+
"$extensions": {
|
|
136
|
+
"com.recanica": {
|
|
137
|
+
"fluidMin": "40px"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|