@bloxwap/hig 0.0.0-stage → 0.5.1

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.
Files changed (220) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +44 -2
  3. package/chart/README.md +23 -0
  4. package/chart/dist/index.d.ts +8 -0
  5. package/chart/dist/index.js +12 -0
  6. package/contracts/README.md +3 -0
  7. package/contracts/dist/announcements.d.ts +12 -0
  8. package/contracts/dist/announcements.js +8 -0
  9. package/contracts/dist/feedback.d.ts +40 -0
  10. package/contracts/dist/feedback.js +1 -0
  11. package/contracts/dist/index.d.ts +41 -0
  12. package/contracts/dist/index.js +52 -0
  13. package/contracts/dist/messages.d.ts +300 -0
  14. package/contracts/dist/messages.js +114 -0
  15. package/css.d.ts +2 -0
  16. package/feedback/README.md +7 -0
  17. package/feedback/assets/error.wav +0 -0
  18. package/feedback/assets/manifest.json +78 -0
  19. package/feedback/assets/success.wav +0 -0
  20. package/feedback/assets/tick.wav +0 -0
  21. package/feedback/assets/toggle.wav +0 -0
  22. package/feedback/dist/browser-haptic.d.ts +23 -0
  23. package/feedback/dist/browser-haptic.js +41 -0
  24. package/feedback/dist/contract.d.ts +40 -0
  25. package/feedback/dist/contract.js +59 -0
  26. package/feedback/dist/native.d.ts +28 -0
  27. package/feedback/dist/native.js +63 -0
  28. package/feedback/dist/preferences.d.ts +8 -0
  29. package/feedback/dist/preferences.js +24 -0
  30. package/feedback/dist/presets.d.ts +57 -0
  31. package/feedback/dist/presets.js +1 -0
  32. package/feedback/dist/react.d.ts +19 -0
  33. package/feedback/dist/react.js +23 -0
  34. package/feedback/dist/web-haptic.d.ts +6 -0
  35. package/feedback/dist/web-haptic.js +6 -0
  36. package/feedback/dist/web-sound.d.ts +5 -0
  37. package/feedback/dist/web-sound.js +32 -0
  38. package/feedback/dist/web.d.ts +3 -0
  39. package/feedback/dist/web.js +4 -0
  40. package/native/README.md +16 -0
  41. package/native/android/build.gradle +28 -0
  42. package/native/android/src/main/java/com/bloxwap/hig/HIGAdjustableView.java +173 -0
  43. package/native/android/src/main/java/com/bloxwap/hig/HIGAdjustableViewManager.java +23 -0
  44. package/native/android/src/main/java/com/bloxwap/hig/HIGPackage.java +24 -0
  45. package/native/dist/animated-number-model.d.ts +24 -0
  46. package/native/dist/animated-number-model.js +110 -0
  47. package/native/dist/animated-number.d.ts +9 -0
  48. package/native/dist/animated-number.js +97 -0
  49. package/native/dist/brand.d.ts +7 -0
  50. package/native/dist/brand.js +7 -0
  51. package/native/dist/button.d.ts +30 -0
  52. package/native/dist/button.js +36 -0
  53. package/native/dist/checkbox.d.ts +3 -0
  54. package/native/dist/checkbox.js +11 -0
  55. package/native/dist/data.d.ts +57 -0
  56. package/native/dist/data.js +47 -0
  57. package/native/dist/field.d.ts +16 -0
  58. package/native/dist/field.js +26 -0
  59. package/native/dist/gesture-sheet.d.ts +73 -0
  60. package/native/dist/gesture-sheet.js +153 -0
  61. package/native/dist/icons.d.ts +21 -0
  62. package/native/dist/icons.js +20 -0
  63. package/native/dist/navigation.d.ts +48 -0
  64. package/native/dist/navigation.js +58 -0
  65. package/native/dist/overlay.d.ts +36 -0
  66. package/native/dist/overlay.js +65 -0
  67. package/native/dist/pickers.d.ts +54 -0
  68. package/native/dist/pickers.js +60 -0
  69. package/native/dist/provider.d.ts +62 -0
  70. package/native/dist/provider.js +67 -0
  71. package/native/dist/radio-group.d.ts +21 -0
  72. package/native/dist/radio-group.js +91 -0
  73. package/native/dist/recipes.d.ts +45 -0
  74. package/native/dist/recipes.js +32 -0
  75. package/native/dist/roles.d.ts +6 -0
  76. package/native/dist/roles.js +4 -0
  77. package/native/dist/select.d.ts +3 -0
  78. package/native/dist/select.js +9 -0
  79. package/native/dist/selection-types.d.ts +22 -0
  80. package/native/dist/selection-types.js +1 -0
  81. package/native/dist/selection.d.ts +8 -0
  82. package/native/dist/selection.js +7 -0
  83. package/native/dist/slider.d.ts +11 -0
  84. package/native/dist/slider.js +42 -0
  85. package/native/dist/status.d.ts +86 -0
  86. package/native/dist/status.js +112 -0
  87. package/native/dist/surface.d.ts +19 -0
  88. package/native/dist/surface.js +42 -0
  89. package/native/dist/swap-panel.d.ts +125 -0
  90. package/native/dist/swap-panel.js +177 -0
  91. package/native/dist/swap-parts.d.ts +86 -0
  92. package/native/dist/swap-parts.js +66 -0
  93. package/native/dist/swap-shared.d.ts +65 -0
  94. package/native/dist/swap-shared.js +76 -0
  95. package/native/dist/swap-sheet.d.ts +14 -0
  96. package/native/dist/swap-sheet.js +26 -0
  97. package/native/dist/swap-views.d.ts +41 -0
  98. package/native/dist/swap-views.js +37 -0
  99. package/native/dist/switch-row.d.ts +8 -0
  100. package/native/dist/switch-row.js +18 -0
  101. package/native/dist/switch.d.ts +10 -0
  102. package/native/dist/switch.js +30 -0
  103. package/native/dist/text-content.d.ts +5 -0
  104. package/native/dist/text-content.js +6 -0
  105. package/native/dist/wallet-address.d.ts +37 -0
  106. package/native/dist/wallet-address.js +50 -0
  107. package/native-fonts/README.md +17 -0
  108. package/native-fonts/dist/index.d.ts +164 -0
  109. package/native-fonts/dist/index.js +164 -0
  110. package/native-fonts/fonts/BloxwapMono-Bold.ttf +0 -0
  111. package/native-fonts/fonts/BloxwapMono-ExtraBold.ttf +0 -0
  112. package/native-fonts/fonts/BloxwapMono-Medium.ttf +0 -0
  113. package/native-fonts/fonts/BloxwapMono-SemiBold.ttf +0 -0
  114. package/native-fonts/fonts/BloxwapMono.ttf +0 -0
  115. package/native-fonts/fonts/BloxwapSans-Black.ttf +0 -0
  116. package/native-fonts/fonts/BloxwapSans-Bold.ttf +0 -0
  117. package/native-fonts/fonts/BloxwapSans-ExtraBold.ttf +0 -0
  118. package/native-fonts/fonts/BloxwapSans-Medium.ttf +0 -0
  119. package/native-fonts/fonts/BloxwapSans-SemiBold.ttf +0 -0
  120. package/native-fonts/fonts/BloxwapSans.ttf +0 -0
  121. package/native-fonts/fonts/BloxwapSansKR-SemiBold.ttf +0 -0
  122. package/native-fonts/fonts/BloxwapSansKR.ttf +0 -0
  123. package/native-fonts/fonts/BloxwapSansSC-SemiBold.ttf +0 -0
  124. package/native-fonts/fonts/BloxwapSansSC.ttf +0 -0
  125. package/native-fonts/fonts/OFL.txt +93 -0
  126. package/native-fonts/fonts/manifest.json +164 -0
  127. package/og-fonts/README.md +34 -0
  128. package/og-fonts/dist/index.d.ts +116 -0
  129. package/og-fonts/dist/index.js +102 -0
  130. package/og-fonts/dist/node.d.ts +11 -0
  131. package/og-fonts/dist/node.js +39 -0
  132. package/og-fonts/fonts/BloxwapMono-Medium.ttf +0 -0
  133. package/og-fonts/fonts/BloxwapSans-Black.ttf +0 -0
  134. package/og-fonts/fonts/BloxwapSans-Bold.ttf +0 -0
  135. package/og-fonts/fonts/BloxwapSans-Medium.ttf +0 -0
  136. package/og-fonts/fonts/BloxwapSans.ttf +0 -0
  137. package/og-fonts/fonts/OFL.txt +93 -0
  138. package/og-fonts/fonts/manifest.json +65 -0
  139. package/package.json +476 -4
  140. package/react/README.md +30 -0
  141. package/react/dist/animated-number-model.d.ts +20 -0
  142. package/react/dist/animated-number-model.js +92 -0
  143. package/react/dist/animated-number.d.ts +8 -0
  144. package/react/dist/animated-number.js +72 -0
  145. package/react/dist/base.css +9 -0
  146. package/react/dist/brand.d.ts +7 -0
  147. package/react/dist/brand.js +5 -0
  148. package/react/dist/button.d.ts +14 -0
  149. package/react/dist/button.js +20 -0
  150. package/react/dist/data.d.ts +78 -0
  151. package/react/dist/data.js +36 -0
  152. package/react/dist/dialog.d.ts +29 -0
  153. package/react/dist/dialog.js +21 -0
  154. package/react/dist/field.d.ts +16 -0
  155. package/react/dist/field.js +20 -0
  156. package/react/dist/gesture-sheet.d.ts +41 -0
  157. package/react/dist/gesture-sheet.js +128 -0
  158. package/react/dist/navigation.d.ts +48 -0
  159. package/react/dist/navigation.js +69 -0
  160. package/react/dist/notify.d.ts +14 -0
  161. package/react/dist/notify.js +6 -0
  162. package/react/dist/overlay.d.ts +17 -0
  163. package/react/dist/overlay.js +18 -0
  164. package/react/dist/provider.d.ts +25 -0
  165. package/react/dist/provider.js +50 -0
  166. package/react/dist/recipes/activity-list.d.ts +8 -0
  167. package/react/dist/recipes/activity-list.js +6 -0
  168. package/react/dist/recipes/balance-card.d.ts +6 -0
  169. package/react/dist/recipes/balance-card.js +5 -0
  170. package/react/dist/recipes/code-window.d.ts +4 -0
  171. package/react/dist/recipes/code-window.js +4 -0
  172. package/react/dist/recipes/install-command.d.ts +6 -0
  173. package/react/dist/recipes/install-command.js +15 -0
  174. package/react/dist/recipes/market-row.d.ts +25 -0
  175. package/react/dist/recipes/market-row.js +8 -0
  176. package/react/dist/recipes/marketing-hero.d.ts +7 -0
  177. package/react/dist/recipes/marketing-hero.js +5 -0
  178. package/react/dist/recipes/pickers.d.ts +57 -0
  179. package/react/dist/recipes/pickers.js +78 -0
  180. package/react/dist/recipes/swap/amount-card.d.ts +40 -0
  181. package/react/dist/recipes/swap/amount-card.js +7 -0
  182. package/react/dist/recipes/swap/picker.d.ts +26 -0
  183. package/react/dist/recipes/swap/picker.js +20 -0
  184. package/react/dist/recipes/swap/settings.d.ts +24 -0
  185. package/react/dist/recipes/swap/settings.js +25 -0
  186. package/react/dist/recipes/swap/shared.d.ts +98 -0
  187. package/react/dist/recipes/swap/shared.js +106 -0
  188. package/react/dist/recipes/swap-panel.d.ts +127 -0
  189. package/react/dist/recipes/swap-panel.js +170 -0
  190. package/react/dist/recipes/swap-sheet.d.ts +16 -0
  191. package/react/dist/recipes/swap-sheet.js +22 -0
  192. package/react/dist/recipes/trade-entry.d.ts +11 -0
  193. package/react/dist/recipes/trade-entry.js +12 -0
  194. package/react/dist/recipes.d.ts +10 -0
  195. package/react/dist/recipes.js +11 -0
  196. package/react/dist/select.d.ts +4 -0
  197. package/react/dist/select.js +174 -0
  198. package/react/dist/selection.d.ts +40 -0
  199. package/react/dist/selection.js +23 -0
  200. package/react/dist/slider.d.ts +11 -0
  201. package/react/dist/slider.js +10 -0
  202. package/react/dist/status.d.ts +63 -0
  203. package/react/dist/status.js +47 -0
  204. package/react/dist/styles.css +542 -0
  205. package/react/dist/surface.d.ts +291 -0
  206. package/react/dist/surface.js +9 -0
  207. package/react/dist/toast.d.ts +17 -0
  208. package/react/dist/toast.js +21 -0
  209. package/react/dist/wallet-address.d.ts +23 -0
  210. package/react/dist/wallet-address.js +24 -0
  211. package/tokens/README.md +17 -0
  212. package/tokens/assets/bloxwap-icon.svg +1 -0
  213. package/tokens/dist/brand.d.ts +19 -0
  214. package/tokens/dist/brand.js +24 -0
  215. package/tokens/dist/index.d.ts +437 -0
  216. package/tokens/dist/index.js +514 -0
  217. package/tokens/dist/manifest.json +200 -0
  218. package/tokens/dist/theme.d.ts +11 -0
  219. package/tokens/dist/theme.js +22 -0
  220. package/tokens/dist/tokens.css +120 -0
@@ -0,0 +1,514 @@
1
+ // Generated by npm run generate.
2
+ export { resolvePrimaryColor } from './theme.js';
3
+ export const tokens = {
4
+ "version": "0.1.2",
5
+ "mode": "dark",
6
+ "provenance": "bloxwap/monorepo@d47cef4c40363184bdfda8d8c263ead108ef9ff6/packages/hig/tokens/src/colors.ts; HIG semantic intent/density aliases documented in docs/foundations/source-reconciliation.md",
7
+ "colors": {
8
+ "background": {
9
+ "srgb": "#0a0a0a",
10
+ "p3": [
11
+ 0.04,
12
+ 0.04,
13
+ 0.04
14
+ ],
15
+ "oklch": "oklch(0.145 0 0)"
16
+ },
17
+ "surface": {
18
+ "srgb": "#171717",
19
+ "oklch": "oklch(0.205 0 0)"
20
+ },
21
+ "nested": {
22
+ "srgb": "#262626",
23
+ "oklch": "oklch(0.269 0 0)"
24
+ },
25
+ "overlay": {
26
+ "srgb": "#111111"
27
+ },
28
+ "text": {
29
+ "srgb": "#fafafa",
30
+ "oklch": "oklch(0.985 0 0)"
31
+ },
32
+ "muted": {
33
+ "srgb": "#a1a1a1",
34
+ "oklch": "oklch(0.708 0 0)"
35
+ },
36
+ "faint": {
37
+ "srgb": "#858585"
38
+ },
39
+ "border": {
40
+ "srgb": "#3a3a3a"
41
+ },
42
+ "action": {
43
+ "srgb": "#00ff3f",
44
+ "p3": [
45
+ 0,
46
+ 1,
47
+ 0.24
48
+ ]
49
+ },
50
+ "onAction": {
51
+ "srgb": "#0a0a0a",
52
+ "p3": [
53
+ 0.04,
54
+ 0.04,
55
+ 0.04
56
+ ]
57
+ },
58
+ "focus": {
59
+ "srgb": "#00ff3f",
60
+ "p3": [
61
+ 0,
62
+ 1,
63
+ 0.24
64
+ ]
65
+ },
66
+ "buy": {
67
+ "srgb": "#00ff3f",
68
+ "p3": [
69
+ 0,
70
+ 1,
71
+ 0.24
72
+ ]
73
+ },
74
+ "sell": {
75
+ "srgb": "#ff479c",
76
+ "p3": [
77
+ 1,
78
+ 0.24,
79
+ 0.62
80
+ ]
81
+ },
82
+ "positive": {
83
+ "srgb": "#00ff3f",
84
+ "p3": [
85
+ 0,
86
+ 1,
87
+ 0.24
88
+ ]
89
+ },
90
+ "negative": {
91
+ "srgb": "#ff479c",
92
+ "p3": [
93
+ 1,
94
+ 0.24,
95
+ 0.62
96
+ ]
97
+ },
98
+ "warning": {
99
+ "srgb": "#fffb38",
100
+ "p3": [
101
+ 1,
102
+ 0.98,
103
+ 0.18
104
+ ]
105
+ },
106
+ "info": {
107
+ "srgb": "#35b5ff",
108
+ "p3": [
109
+ 0.18,
110
+ 0.72,
111
+ 1
112
+ ]
113
+ }
114
+ },
115
+ "space": {
116
+ "xs": 4,
117
+ "sm": 8,
118
+ "md": 12,
119
+ "lg": 16,
120
+ "xl": 20,
121
+ "xxl": 24,
122
+ "xxxl": 32,
123
+ "section": 48
124
+ },
125
+ "radius": {
126
+ "sm": 6,
127
+ "md": 8,
128
+ "lg": 10,
129
+ "xl": 14,
130
+ "pill": 9999
131
+ },
132
+ "density": {
133
+ "comfortable": {
134
+ "control": 48,
135
+ "target": 48,
136
+ "gap": 12
137
+ },
138
+ "compact": {
139
+ "control": 36,
140
+ "target": 36,
141
+ "gap": 8
142
+ }
143
+ },
144
+ "motion": {
145
+ "fast": 180,
146
+ "base": 260,
147
+ "slow": 320
148
+ },
149
+ "easing": {
150
+ "standard": [
151
+ 0.22,
152
+ 1,
153
+ 0.36,
154
+ 1
155
+ ]
156
+ },
157
+ "type": {
158
+ "caption": {
159
+ "size": 12,
160
+ "lineHeight": 18,
161
+ "weight": 500
162
+ },
163
+ "label": {
164
+ "size": 14,
165
+ "lineHeight": 20,
166
+ "weight": 600
167
+ },
168
+ "body": {
169
+ "size": 16,
170
+ "lineHeight": 24,
171
+ "weight": 400
172
+ },
173
+ "title": {
174
+ "size": 24,
175
+ "lineHeight": 30,
176
+ "weight": 600
177
+ },
178
+ "display": {
179
+ "size": 48,
180
+ "lineHeight": 52,
181
+ "weight": 600
182
+ }
183
+ },
184
+ "font": {
185
+ "sans": {
186
+ "family": "Bloxwap Sans",
187
+ "loaderVariable": "--font-bloxwap-sans",
188
+ "fallback": [
189
+ "system-ui",
190
+ "sans-serif"
191
+ ]
192
+ },
193
+ "mono": {
194
+ "family": "Bloxwap Mono",
195
+ "loaderVariable": "--font-bloxwap-mono",
196
+ "fallback": [
197
+ "ui-monospace",
198
+ "monospace"
199
+ ]
200
+ }
201
+ }
202
+ };
203
+ // Small native bindings keep a basic control from retaining color-space/provenance metadata.
204
+ export const nativeSrgb = {
205
+ "background": "#0a0a0a",
206
+ "surface": "#171717",
207
+ "nested": "#262626",
208
+ "overlay": "#111111",
209
+ "text": "#fafafa",
210
+ "muted": "#a1a1a1",
211
+ "faint": "#858585",
212
+ "border": "#3a3a3a",
213
+ "action": "#00ff3f",
214
+ "onAction": "#0a0a0a",
215
+ "focus": "#00ff3f",
216
+ "buy": "#00ff3f",
217
+ "sell": "#ff479c",
218
+ "positive": "#00ff3f",
219
+ "negative": "#ff479c",
220
+ "warning": "#fffb38",
221
+ "info": "#35b5ff"
222
+ };
223
+ // iOS Display P3 hosts (HIGProvider colorSpace='display-p3'): the same roles as P3 channel hex, kept small for the same reason.
224
+ export const nativeDisplayP3 = {
225
+ "background": "#0a0a0a",
226
+ "surface": "#171717",
227
+ "nested": "#262626",
228
+ "overlay": "#111111",
229
+ "text": "#fafafa",
230
+ "muted": "#a1a1a1",
231
+ "faint": "#858585",
232
+ "border": "#3a3a3a",
233
+ "action": "#00ff3d",
234
+ "onAction": "#0a0a0a",
235
+ "focus": "#00ff3d",
236
+ "buy": "#00ff3d",
237
+ "sell": "#ff3d9e",
238
+ "positive": "#00ff3d",
239
+ "negative": "#ff3d9e",
240
+ "warning": "#fffa2e",
241
+ "info": "#2eb8ff"
242
+ };
243
+ export const nativeMetrics = {
244
+ "space": {
245
+ "xs": 4,
246
+ "sm": 8,
247
+ "md": 12,
248
+ "lg": 16,
249
+ "xl": 20,
250
+ "xxl": 24,
251
+ "xxxl": 32,
252
+ "section": 48
253
+ },
254
+ "radius": {
255
+ "sm": 6,
256
+ "md": 8,
257
+ "lg": 10,
258
+ "xl": 14,
259
+ "pill": 9999
260
+ },
261
+ "density": {
262
+ "comfortable": {
263
+ "control": 48,
264
+ "target": 48,
265
+ "gap": 12
266
+ },
267
+ "compact": {
268
+ "control": 36,
269
+ "target": 36,
270
+ "gap": 8
271
+ }
272
+ },
273
+ "motion": {
274
+ "fast": 180,
275
+ "base": 260,
276
+ "slow": 320
277
+ }
278
+ };
279
+ export const sourceColors = {
280
+ "web": {
281
+ "background": "oklch(0.145 0 0)",
282
+ "foreground": "oklch(0.985 0 0)",
283
+ "card": "oklch(0.205 0 0)",
284
+ "card-foreground": "oklch(0.985 0 0)",
285
+ "popover": "oklch(0.205 0 0)",
286
+ "popover-foreground": "oklch(0.985 0 0)",
287
+ "primary": "oklch(0.922 0 0)",
288
+ "primary-foreground": "oklch(0.205 0 0)",
289
+ "secondary": "oklch(0.269 0 0)",
290
+ "secondary-foreground": "oklch(0.985 0 0)",
291
+ "muted": "oklch(0.269 0 0)",
292
+ "muted-foreground": "oklch(0.708 0 0)",
293
+ "accent": "oklch(0.269 0 0)",
294
+ "accent-foreground": "oklch(0.985 0 0)",
295
+ "destructive": "oklch(0.704 0.191 22.216)",
296
+ "border": "oklch(1 0 0 / 10%)",
297
+ "input": "oklch(1 0 0 / 15%)",
298
+ "ring": "oklch(0.556 0 0)",
299
+ "chart-1": "oklch(0.488 0.243 264.376)",
300
+ "chart-2": "oklch(0.696 0.17 162.48)",
301
+ "chart-3": "oklch(0.769 0.188 70.08)",
302
+ "chart-4": "oklch(0.627 0.265 303.9)",
303
+ "chart-5": "oklch(0.645 0.246 16.439)",
304
+ "sidebar": "oklch(0.205 0 0)",
305
+ "sidebar-foreground": "oklch(0.985 0 0)",
306
+ "sidebar-primary": "oklch(0.488 0.243 264.376)",
307
+ "sidebar-primary-foreground": "oklch(0.985 0 0)",
308
+ "sidebar-accent": "oklch(0.269 0 0)",
309
+ "sidebar-accent-foreground": "oklch(0.985 0 0)",
310
+ "sidebar-border": "oklch(1 0 0 / 10%)",
311
+ "sidebar-ring": "oklch(0.556 0 0)"
312
+ },
313
+ "android": {
314
+ "background": "#0a0a0a",
315
+ "foreground": "#fafafa",
316
+ "card": "#171717",
317
+ "card-foreground": "#fafafa",
318
+ "popover": "#171717",
319
+ "popover-foreground": "#fafafa",
320
+ "primary": "#e5e5e5",
321
+ "primary-foreground": "#171717",
322
+ "secondary": "#262626",
323
+ "secondary-foreground": "#fafafa",
324
+ "muted": "#262626",
325
+ "muted-foreground": "#a1a1a1",
326
+ "accent": "#262626",
327
+ "accent-foreground": "#fafafa",
328
+ "destructive": "#ff6467",
329
+ "border": "rgba(255, 255, 255, 0.1)",
330
+ "input": "rgba(255, 255, 255, 0.15)",
331
+ "ring": "#737373",
332
+ "chart-1": "#1447e6",
333
+ "chart-2": "#00bc7d",
334
+ "chart-3": "#fe9a00",
335
+ "chart-4": "#ad46ff",
336
+ "chart-5": "#ff2056",
337
+ "sidebar": "#171717",
338
+ "sidebar-foreground": "#fafafa",
339
+ "sidebar-primary": "#1447e6",
340
+ "sidebar-primary-foreground": "#fafafa",
341
+ "sidebar-accent": "#262626",
342
+ "sidebar-accent-foreground": "#fafafa",
343
+ "sidebar-border": "rgba(255, 255, 255, 0.1)",
344
+ "sidebar-ring": "#737373"
345
+ },
346
+ "iosDisplayP3": {
347
+ "background": "#0a0a0a",
348
+ "foreground": "#fafafa",
349
+ "card": "#171717",
350
+ "card-foreground": "#fafafa",
351
+ "popover": "#171717",
352
+ "popover-foreground": "#fafafa",
353
+ "primary": "#e5e5e5",
354
+ "primary-foreground": "#171717",
355
+ "secondary": "#262626",
356
+ "secondary-foreground": "#fafafa",
357
+ "muted": "#262626",
358
+ "muted-foreground": "#a1a1a1",
359
+ "accent": "#262626",
360
+ "accent-foreground": "#fafafa",
361
+ "destructive": "#ee6e6c",
362
+ "border": "rgba(255, 255, 255, 0.1)",
363
+ "input": "rgba(255, 255, 255, 0.15)",
364
+ "ring": "#737373",
365
+ "chart-1": "#2346dd",
366
+ "chart-2": "#44b982",
367
+ "chart-3": "#f09e0f",
368
+ "chart-4": "#a14dfd",
369
+ "chart-5": "#eb3d5b",
370
+ "sidebar": "#171717",
371
+ "sidebar-foreground": "#fafafa",
372
+ "sidebar-primary": "#2346dd",
373
+ "sidebar-primary-foreground": "#fafafa",
374
+ "sidebar-accent": "#262626",
375
+ "sidebar-accent-foreground": "#fafafa",
376
+ "sidebar-border": "rgba(255, 255, 255, 0.1)",
377
+ "sidebar-ring": "#737373"
378
+ }
379
+ };
380
+ export const nativeColors = {
381
+ "android": {
382
+ "background": "#0a0a0a",
383
+ "surface": "#171717",
384
+ "nested": "#262626",
385
+ "overlay": "#111111",
386
+ "text": "#fafafa",
387
+ "muted": "#a1a1a1",
388
+ "faint": "#858585",
389
+ "border": "#3a3a3a",
390
+ "action": "#00ff3f",
391
+ "onAction": "#0a0a0a",
392
+ "focus": "#00ff3f",
393
+ "buy": "#00ff3f",
394
+ "sell": "#ff479c",
395
+ "positive": "#00ff3f",
396
+ "negative": "#ff479c",
397
+ "warning": "#fffb38",
398
+ "info": "#35b5ff"
399
+ },
400
+ "ios": {
401
+ "background": "#0a0a0a",
402
+ "surface": "#171717",
403
+ "nested": "#262626",
404
+ "overlay": "#111111",
405
+ "text": "#fafafa",
406
+ "muted": "#a1a1a1",
407
+ "faint": "#858585",
408
+ "border": "#3a3a3a",
409
+ "action": "#00ff3f",
410
+ "onAction": "#0a0a0a",
411
+ "focus": "#00ff3f",
412
+ "buy": "#00ff3f",
413
+ "sell": "#ff479c",
414
+ "positive": "#00ff3f",
415
+ "negative": "#ff479c",
416
+ "warning": "#fffb38",
417
+ "info": "#35b5ff"
418
+ },
419
+ "iosDisplayP3": nativeDisplayP3,
420
+ "iosP3": {
421
+ "background": {
422
+ "space": "display-p3",
423
+ "components": [
424
+ 0.04,
425
+ 0.04,
426
+ 0.04
427
+ ],
428
+ "alpha": 1
429
+ },
430
+ "action": {
431
+ "space": "display-p3",
432
+ "components": [
433
+ 0,
434
+ 1,
435
+ 0.24
436
+ ],
437
+ "alpha": 1
438
+ },
439
+ "onAction": {
440
+ "space": "display-p3",
441
+ "components": [
442
+ 0.04,
443
+ 0.04,
444
+ 0.04
445
+ ],
446
+ "alpha": 1
447
+ },
448
+ "focus": {
449
+ "space": "display-p3",
450
+ "components": [
451
+ 0,
452
+ 1,
453
+ 0.24
454
+ ],
455
+ "alpha": 1
456
+ },
457
+ "buy": {
458
+ "space": "display-p3",
459
+ "components": [
460
+ 0,
461
+ 1,
462
+ 0.24
463
+ ],
464
+ "alpha": 1
465
+ },
466
+ "sell": {
467
+ "space": "display-p3",
468
+ "components": [
469
+ 1,
470
+ 0.24,
471
+ 0.62
472
+ ],
473
+ "alpha": 1
474
+ },
475
+ "positive": {
476
+ "space": "display-p3",
477
+ "components": [
478
+ 0,
479
+ 1,
480
+ 0.24
481
+ ],
482
+ "alpha": 1
483
+ },
484
+ "negative": {
485
+ "space": "display-p3",
486
+ "components": [
487
+ 1,
488
+ 0.24,
489
+ 0.62
490
+ ],
491
+ "alpha": 1
492
+ },
493
+ "warning": {
494
+ "space": "display-p3",
495
+ "components": [
496
+ 1,
497
+ 0.98,
498
+ 0.18
499
+ ],
500
+ "alpha": 1
501
+ },
502
+ "info": {
503
+ "space": "display-p3",
504
+ "components": [
505
+ 0.18,
506
+ 0.72,
507
+ 1
508
+ ],
509
+ "alpha": 1
510
+ }
511
+ }
512
+ };
513
+ export function withAlpha(hex, alpha) { if (!/^#[a-fA-F0-9]{6}$/.test(hex) || !Number.isFinite(alpha) || alpha < 0 || alpha > 1)
514
+ throw new Error('Invalid sRGB/alpha'); return hex + Math.round(alpha * 255).toString(16).padStart(2, '0'); }
@@ -0,0 +1,200 @@
1
+ {
2
+ "version": "0.1.2",
3
+ "mode": "dark",
4
+ "provenance": "bloxwap/monorepo@d47cef4c40363184bdfda8d8c263ead108ef9ff6/packages/hig/tokens/src/colors.ts; HIG semantic intent/density aliases documented in docs/foundations/source-reconciliation.md",
5
+ "colors": {
6
+ "background": {
7
+ "srgb": "#0a0a0a",
8
+ "p3": [
9
+ 0.04,
10
+ 0.04,
11
+ 0.04
12
+ ],
13
+ "oklch": "oklch(0.145 0 0)"
14
+ },
15
+ "surface": {
16
+ "srgb": "#171717",
17
+ "oklch": "oklch(0.205 0 0)"
18
+ },
19
+ "nested": {
20
+ "srgb": "#262626",
21
+ "oklch": "oklch(0.269 0 0)"
22
+ },
23
+ "overlay": {
24
+ "srgb": "#111111"
25
+ },
26
+ "text": {
27
+ "srgb": "#fafafa",
28
+ "oklch": "oklch(0.985 0 0)"
29
+ },
30
+ "muted": {
31
+ "srgb": "#a1a1a1",
32
+ "oklch": "oklch(0.708 0 0)"
33
+ },
34
+ "faint": {
35
+ "srgb": "#858585"
36
+ },
37
+ "border": {
38
+ "srgb": "#3a3a3a"
39
+ },
40
+ "action": {
41
+ "srgb": "#00ff3f",
42
+ "p3": [
43
+ 0,
44
+ 1,
45
+ 0.24
46
+ ]
47
+ },
48
+ "onAction": {
49
+ "srgb": "#0a0a0a",
50
+ "p3": [
51
+ 0.04,
52
+ 0.04,
53
+ 0.04
54
+ ]
55
+ },
56
+ "focus": {
57
+ "srgb": "#00ff3f",
58
+ "p3": [
59
+ 0,
60
+ 1,
61
+ 0.24
62
+ ]
63
+ },
64
+ "buy": {
65
+ "srgb": "#00ff3f",
66
+ "p3": [
67
+ 0,
68
+ 1,
69
+ 0.24
70
+ ]
71
+ },
72
+ "sell": {
73
+ "srgb": "#ff479c",
74
+ "p3": [
75
+ 1,
76
+ 0.24,
77
+ 0.62
78
+ ]
79
+ },
80
+ "positive": {
81
+ "srgb": "#00ff3f",
82
+ "p3": [
83
+ 0,
84
+ 1,
85
+ 0.24
86
+ ]
87
+ },
88
+ "negative": {
89
+ "srgb": "#ff479c",
90
+ "p3": [
91
+ 1,
92
+ 0.24,
93
+ 0.62
94
+ ]
95
+ },
96
+ "warning": {
97
+ "srgb": "#fffb38",
98
+ "p3": [
99
+ 1,
100
+ 0.98,
101
+ 0.18
102
+ ]
103
+ },
104
+ "info": {
105
+ "srgb": "#35b5ff",
106
+ "p3": [
107
+ 0.18,
108
+ 0.72,
109
+ 1
110
+ ]
111
+ }
112
+ },
113
+ "space": {
114
+ "xs": 4,
115
+ "sm": 8,
116
+ "md": 12,
117
+ "lg": 16,
118
+ "xl": 20,
119
+ "xxl": 24,
120
+ "xxxl": 32,
121
+ "section": 48
122
+ },
123
+ "radius": {
124
+ "sm": 6,
125
+ "md": 8,
126
+ "lg": 10,
127
+ "xl": 14,
128
+ "pill": 9999
129
+ },
130
+ "density": {
131
+ "comfortable": {
132
+ "control": 48,
133
+ "target": 48,
134
+ "gap": 12
135
+ },
136
+ "compact": {
137
+ "control": 36,
138
+ "target": 36,
139
+ "gap": 8
140
+ }
141
+ },
142
+ "motion": {
143
+ "fast": 180,
144
+ "base": 260,
145
+ "slow": 320
146
+ },
147
+ "easing": {
148
+ "standard": [
149
+ 0.22,
150
+ 1,
151
+ 0.36,
152
+ 1
153
+ ]
154
+ },
155
+ "type": {
156
+ "caption": {
157
+ "size": 12,
158
+ "lineHeight": 18,
159
+ "weight": 500
160
+ },
161
+ "label": {
162
+ "size": 14,
163
+ "lineHeight": 20,
164
+ "weight": 600
165
+ },
166
+ "body": {
167
+ "size": 16,
168
+ "lineHeight": 24,
169
+ "weight": 400
170
+ },
171
+ "title": {
172
+ "size": 24,
173
+ "lineHeight": 30,
174
+ "weight": 600
175
+ },
176
+ "display": {
177
+ "size": 48,
178
+ "lineHeight": 52,
179
+ "weight": 600
180
+ }
181
+ },
182
+ "font": {
183
+ "sans": {
184
+ "family": "Bloxwap Sans",
185
+ "loaderVariable": "--font-bloxwap-sans",
186
+ "fallback": [
187
+ "system-ui",
188
+ "sans-serif"
189
+ ]
190
+ },
191
+ "mono": {
192
+ "family": "Bloxwap Mono",
193
+ "loaderVariable": "--font-bloxwap-mono",
194
+ "fallback": [
195
+ "ui-monospace",
196
+ "monospace"
197
+ ]
198
+ }
199
+ }
200
+ }