@iota/apps-ui-kit 0.0.0-dev-20251015065834

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 (243) hide show
  1. package/CHANGELOG.md +145 -0
  2. package/LICENSE +201 -0
  3. package/README.md +16 -0
  4. package/dist/index.d.ts +1911 -0
  5. package/dist/index.es.js +6486 -0
  6. package/dist/index.es.js.map +1 -0
  7. package/dist/index.umd.js +66 -0
  8. package/dist/index.umd.js.map +1 -0
  9. package/dist/style.css +1 -0
  10. package/package.json +80 -0
  11. package/src/lib/components/atoms/badge/Badge.tsx +37 -0
  12. package/src/lib/components/atoms/badge/badge.classes.ts +33 -0
  13. package/src/lib/components/atoms/badge/badge.enums.ts +11 -0
  14. package/src/lib/components/atoms/badge/index.ts +6 -0
  15. package/src/lib/components/atoms/button/Button.tsx +110 -0
  16. package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +23 -0
  17. package/src/lib/components/atoms/button/button-variants/ButtonUnstyled.tsx +27 -0
  18. package/src/lib/components/atoms/button/button-variants/buttonVariants.types.ts +11 -0
  19. package/src/lib/components/atoms/button/button-variants/index.ts +5 -0
  20. package/src/lib/components/atoms/button/button.classes.ts +53 -0
  21. package/src/lib/components/atoms/button/button.enums.ts +21 -0
  22. package/src/lib/components/atoms/button/index.ts +7 -0
  23. package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +98 -0
  24. package/src/lib/components/atoms/button-segment/buttonSegment.classes.ts +24 -0
  25. package/src/lib/components/atoms/button-segment/buttonSegment.enums.ts +7 -0
  26. package/src/lib/components/atoms/button-segment/index.ts +5 -0
  27. package/src/lib/components/atoms/checkbox/Checkbox.tsx +124 -0
  28. package/src/lib/components/atoms/checkbox/index.ts +4 -0
  29. package/src/lib/components/atoms/divider/Divider.tsx +48 -0
  30. package/src/lib/components/atoms/divider/divider.classes.ts +11 -0
  31. package/src/lib/components/atoms/divider/divider.enums.ts +7 -0
  32. package/src/lib/components/atoms/divider/index.ts +6 -0
  33. package/src/lib/components/atoms/header/Header.tsx +73 -0
  34. package/src/lib/components/atoms/header/index.ts +4 -0
  35. package/src/lib/components/atoms/image/Image.tsx +32 -0
  36. package/src/lib/components/atoms/image/index.ts +4 -0
  37. package/src/lib/components/atoms/index.ts +26 -0
  38. package/src/lib/components/atoms/info-box/InfoBox.tsx +68 -0
  39. package/src/lib/components/atoms/info-box/index.ts +5 -0
  40. package/src/lib/components/atoms/info-box/infoBox.classes.ts +18 -0
  41. package/src/lib/components/atoms/info-box/infoBox.enums.ts +14 -0
  42. package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +157 -0
  43. package/src/lib/components/atoms/key-value-info/index.ts +6 -0
  44. package/src/lib/components/atoms/key-value-info/keyValue.enums.ts +7 -0
  45. package/src/lib/components/atoms/label-text/LabelText.tsx +92 -0
  46. package/src/lib/components/atoms/label-text/index.ts +5 -0
  47. package/src/lib/components/atoms/label-text/labelText.classes.ts +22 -0
  48. package/src/lib/components/atoms/label-text/labelText.enums.ts +8 -0
  49. package/src/lib/components/atoms/list-item/ListItem.tsx +88 -0
  50. package/src/lib/components/atoms/list-item/index.ts +4 -0
  51. package/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx +38 -0
  52. package/src/lib/components/atoms/loading-indicator/index.ts +4 -0
  53. package/src/lib/components/atoms/media-fallback/MediaFallback.tsx +12 -0
  54. package/src/lib/components/atoms/media-fallback/index.ts +4 -0
  55. package/src/lib/components/atoms/panel/Panel.tsx +28 -0
  56. package/src/lib/components/atoms/panel/index.ts +4 -0
  57. package/src/lib/components/atoms/placeholder/Placeholder.tsx +27 -0
  58. package/src/lib/components/atoms/placeholder/index.ts +4 -0
  59. package/src/lib/components/atoms/radio-button/RadioButton.tsx +64 -0
  60. package/src/lib/components/atoms/radio-button/index.ts +4 -0
  61. package/src/lib/components/atoms/secondary-text/SecondaryText.tsx +29 -0
  62. package/src/lib/components/atoms/secondary-text/index.ts +4 -0
  63. package/src/lib/components/atoms/skeleton/Skeleton.tsx +30 -0
  64. package/src/lib/components/atoms/skeleton/index.ts +4 -0
  65. package/src/lib/components/atoms/snackbar/Snackbar.tsx +69 -0
  66. package/src/lib/components/atoms/snackbar/index.ts +5 -0
  67. package/src/lib/components/atoms/snackbar/snackbar.classes.ts +18 -0
  68. package/src/lib/components/atoms/snackbar/snackbar.enums.tsx +9 -0
  69. package/src/lib/components/atoms/toggle/Toggle.tsx +140 -0
  70. package/src/lib/components/atoms/toggle/index.ts +6 -0
  71. package/src/lib/components/atoms/toggle/toggle.classes.ts +41 -0
  72. package/src/lib/components/atoms/toggle/toggle.enums.ts +12 -0
  73. package/src/lib/components/atoms/tooltip/Tooltip.tsx +139 -0
  74. package/src/lib/components/atoms/tooltip/index.ts +5 -0
  75. package/src/lib/components/atoms/tooltip/tooltip.classes.ts +11 -0
  76. package/src/lib/components/atoms/tooltip/tooltip.enums.ts +9 -0
  77. package/src/lib/components/atoms/video/Video.tsx +33 -0
  78. package/src/lib/components/atoms/video/index.ts +4 -0
  79. package/src/lib/components/atoms/video/video.constants.ts +31 -0
  80. package/src/lib/components/index.ts +6 -0
  81. package/src/lib/components/molecules/account/Account.tsx +195 -0
  82. package/src/lib/components/molecules/account/index.ts +4 -0
  83. package/src/lib/components/molecules/address/Address.tsx +101 -0
  84. package/src/lib/components/molecules/address/index.ts +4 -0
  85. package/src/lib/components/molecules/asset-media-renderer/AssetMediaRenderer.tsx +50 -0
  86. package/src/lib/components/molecules/asset-media-renderer/index.ts +4 -0
  87. package/src/lib/components/molecules/card/Card.tsx +70 -0
  88. package/src/lib/components/molecules/card/CardAction.tsx +78 -0
  89. package/src/lib/components/molecules/card/CardBody.tsx +73 -0
  90. package/src/lib/components/molecules/card/CardImage.tsx +43 -0
  91. package/src/lib/components/molecules/card/CardImagePlaceholder.tsx +146 -0
  92. package/src/lib/components/molecules/card/card.classes.ts +27 -0
  93. package/src/lib/components/molecules/card/card.enums.ts +26 -0
  94. package/src/lib/components/molecules/card/index.ts +8 -0
  95. package/src/lib/components/molecules/chip/Chip.tsx +146 -0
  96. package/src/lib/components/molecules/chip/chip.classes.ts +54 -0
  97. package/src/lib/components/molecules/chip/chip.enums.ts +15 -0
  98. package/src/lib/components/molecules/chip/index.ts +5 -0
  99. package/src/lib/components/molecules/display-stats/DisplayStats.tsx +142 -0
  100. package/src/lib/components/molecules/display-stats/displayStats.classes.ts +36 -0
  101. package/src/lib/components/molecules/display-stats/displayStats.enums.ts +13 -0
  102. package/src/lib/components/molecules/display-stats/index.ts +5 -0
  103. package/src/lib/components/molecules/dropdown/Dropdown.tsx +10 -0
  104. package/src/lib/components/molecules/dropdown/dropdownPosition.enums.ts +7 -0
  105. package/src/lib/components/molecules/dropdown/index.ts +5 -0
  106. package/src/lib/components/molecules/index.ts +19 -0
  107. package/src/lib/components/molecules/input/Input.tsx +261 -0
  108. package/src/lib/components/molecules/input/InputWrapper.tsx +97 -0
  109. package/src/lib/components/molecules/input/TextArea.tsx +148 -0
  110. package/src/lib/components/molecules/input/index.ts +8 -0
  111. package/src/lib/components/molecules/input/input.classes.ts +13 -0
  112. package/src/lib/components/molecules/input/input.enums.ts +14 -0
  113. package/src/lib/components/molecules/input/input.types.ts +29 -0
  114. package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +47 -0
  115. package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +65 -0
  116. package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +54 -0
  117. package/src/lib/components/molecules/navbar-item/index.ts +5 -0
  118. package/src/lib/components/molecules/navbar-item/navbarItem.classes.ts +16 -0
  119. package/src/lib/components/molecules/navbar-item/navbarItem.enums.ts +7 -0
  120. package/src/lib/components/molecules/search/Search.tsx +219 -0
  121. package/src/lib/components/molecules/search/index.ts +5 -0
  122. package/src/lib/components/molecules/search/search.classes.ts +20 -0
  123. package/src/lib/components/molecules/search/search.enums.ts +7 -0
  124. package/src/lib/components/molecules/segmented-button/SegmentedButton.tsx +38 -0
  125. package/src/lib/components/molecules/segmented-button/index.ts +6 -0
  126. package/src/lib/components/molecules/segmented-button/segmentedButton.classes.ts +12 -0
  127. package/src/lib/components/molecules/segmented-button/segmentedButton.enums.ts +8 -0
  128. package/src/lib/components/molecules/select/Select.tsx +235 -0
  129. package/src/lib/components/molecules/select/index.ts +5 -0
  130. package/src/lib/components/molecules/select/select.enums.ts +7 -0
  131. package/src/lib/components/molecules/table-cell/TableCell.tsx +62 -0
  132. package/src/lib/components/molecules/table-cell/index.ts +4 -0
  133. package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +140 -0
  134. package/src/lib/components/molecules/table-header-cell/index.ts +5 -0
  135. package/src/lib/components/molecules/table-header-cell/tableHeaderCell.enums.ts +7 -0
  136. package/src/lib/components/molecules/title/Title.tsx +78 -0
  137. package/src/lib/components/molecules/title/index.ts +5 -0
  138. package/src/lib/components/molecules/title/titleClasses.constants.ts +14 -0
  139. package/src/lib/components/molecules/title/titleSize.enums.ts +7 -0
  140. package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +89 -0
  141. package/src/lib/components/molecules/visual-asset-card/index.ts +5 -0
  142. package/src/lib/components/molecules/visual-asset-card/visualAssetCard.enums.ts +7 -0
  143. package/src/lib/components/organisms/accordion/Accordion.tsx +108 -0
  144. package/src/lib/components/organisms/accordion/accordion.classes.ts +4 -0
  145. package/src/lib/components/organisms/accordion/index.ts +4 -0
  146. package/src/lib/components/organisms/dialog/Dialog.tsx +157 -0
  147. package/src/lib/components/organisms/dialog/dialog.enums.ts +7 -0
  148. package/src/lib/components/organisms/dialog/index.ts +5 -0
  149. package/src/lib/components/organisms/index.ts +7 -0
  150. package/src/lib/components/organisms/navbar/Navbar.tsx +101 -0
  151. package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +59 -0
  152. package/src/lib/components/organisms/navbar/index.ts +5 -0
  153. package/src/lib/components/organisms/table/Table.tsx +234 -0
  154. package/src/lib/components/organisms/table/TableContext.tsx +56 -0
  155. package/src/lib/components/organisms/table/index.ts +4 -0
  156. package/src/lib/constants/colors.constants.ts +239 -0
  157. package/src/lib/constants/index.ts +4 -0
  158. package/src/lib/enums/index.ts +5 -0
  159. package/src/lib/enums/screenSize.enums.ts +9 -0
  160. package/src/lib/enums/theme.enums.ts +8 -0
  161. package/src/lib/index.ts +10 -0
  162. package/src/lib/styles/base.css +144 -0
  163. package/src/lib/styles/components.css +735 -0
  164. package/src/lib/styles/fonts.css +7 -0
  165. package/src/lib/styles/index.css +18 -0
  166. package/src/lib/styles/utilities.css +61 -0
  167. package/src/lib/styles/variables/dark-variables.css +262 -0
  168. package/src/lib/styles/variables/general-variables.css +9 -0
  169. package/src/lib/styles/variables/light-variables.css +276 -0
  170. package/src/lib/styles/variables/names-variables.css +270 -0
  171. package/src/lib/tailwind/base.presets.ts +58 -0
  172. package/src/lib/tailwind/constants/customColors.constants.ts +13 -0
  173. package/src/lib/tailwind/constants/fontFamily.constants.ts +8 -0
  174. package/src/lib/tailwind/constants/fontSizes.constants.ts +201 -0
  175. package/src/lib/tailwind/constants/gradients.constants.ts +6 -0
  176. package/src/lib/tailwind/constants/index.ts +7 -0
  177. package/src/lib/tailwind/constants/scaling.constants.ts +41 -0
  178. package/src/lib/tailwind/constants/variableSpacing.constants.ts +66 -0
  179. package/src/lib/tailwind/helpers.ts +20 -0
  180. package/src/lib/tailwind/index.ts +5 -0
  181. package/src/lib/tailwind/plugins.ts +12 -0
  182. package/src/lib/tailwind/responsive.presets.ts +36 -0
  183. package/src/lib/tailwind/static.presets.ts +25 -0
  184. package/src/lib/tailwind/types.ts +6 -0
  185. package/src/lib/utils/format.ts +8 -0
  186. package/src/lib/utils/index.ts +4 -0
  187. package/src/storybook/blocks/Showcase.tsx +20 -0
  188. package/src/storybook/blocks/TypeSet.tsx +34 -0
  189. package/src/storybook/blocks/TypeSetItem.tsx +74 -0
  190. package/src/storybook/blocks/index.ts +6 -0
  191. package/src/storybook/constants/gradients.constants.ts +8 -0
  192. package/src/storybook/constants/index.ts +5 -0
  193. package/src/storybook/constants/typeset.constants.ts +39 -0
  194. package/src/storybook/constants/variableSpacing.constants.ts +6 -0
  195. package/src/storybook/helpers/formatGradientNames.ts +15 -0
  196. package/src/storybook/helpers/getFontSizeLabel.ts +15 -0
  197. package/src/storybook/helpers/index.ts +4 -0
  198. package/src/storybook/stories/atoms/Badge.stories.tsx +32 -0
  199. package/src/storybook/stories/atoms/Button.stories.tsx +45 -0
  200. package/src/storybook/stories/atoms/ButtonSegment.stories.tsx +45 -0
  201. package/src/storybook/stories/atoms/Checkbox.stories.tsx +34 -0
  202. package/src/storybook/stories/atoms/CustomScrollbar.stories.tsx +22 -0
  203. package/src/storybook/stories/atoms/Divider.stories.tsx +41 -0
  204. package/src/storybook/stories/atoms/Header.stories.tsx +58 -0
  205. package/src/storybook/stories/atoms/InfoBox.stories.tsx +67 -0
  206. package/src/storybook/stories/atoms/KeyValueInfo.stories.tsx +59 -0
  207. package/src/storybook/stories/atoms/LabelText.stories.tsx +55 -0
  208. package/src/storybook/stories/atoms/ListItem.stories.tsx +41 -0
  209. package/src/storybook/stories/atoms/LoadingIndicator.stories.tsx +32 -0
  210. package/src/storybook/stories/atoms/Panel.stories.tsx +36 -0
  211. package/src/storybook/stories/atoms/Placeholder.stories.tsx +33 -0
  212. package/src/storybook/stories/atoms/RadioButton.stories.tsx +51 -0
  213. package/src/storybook/stories/atoms/Skeleton.stories.tsx +33 -0
  214. package/src/storybook/stories/atoms/Snackbar.stories.tsx +43 -0
  215. package/src/storybook/stories/atoms/Toggle.stories.tsx +59 -0
  216. package/src/storybook/stories/atoms/Tooltip.stories.tsx +59 -0
  217. package/src/storybook/stories/atoms/VisualAssetCard.stories.tsx +57 -0
  218. package/src/storybook/stories/components/DocsSyncTheme.tsx +20 -0
  219. package/src/storybook/stories/components/VariableSpacingShowcase.tsx +46 -0
  220. package/src/storybook/stories/components/index.ts +5 -0
  221. package/src/storybook/stories/design-tokens/colors.stories.mdx +44 -0
  222. package/src/storybook/stories/design-tokens/icons.stories.mdx +19 -0
  223. package/src/storybook/stories/design-tokens/typeset.stories.mdx +17 -0
  224. package/src/storybook/stories/design-tokens/variable-spacing.stories.mdx +11 -0
  225. package/src/storybook/stories/molecules/Account.stories.tsx +71 -0
  226. package/src/storybook/stories/molecules/Address.stories.tsx +39 -0
  227. package/src/storybook/stories/molecules/Card.stories.tsx +112 -0
  228. package/src/storybook/stories/molecules/Chip.stories.tsx +127 -0
  229. package/src/storybook/stories/molecules/DisplayStats.stories.tsx +63 -0
  230. package/src/storybook/stories/molecules/Dropdown.stories.tsx +38 -0
  231. package/src/storybook/stories/molecules/Input.stories.tsx +239 -0
  232. package/src/storybook/stories/molecules/NavbarItem.stories.tsx +45 -0
  233. package/src/storybook/stories/molecules/Search.stories.tsx +101 -0
  234. package/src/storybook/stories/molecules/SegmentedButton.stories.tsx +108 -0
  235. package/src/storybook/stories/molecules/Select.stories.tsx +103 -0
  236. package/src/storybook/stories/molecules/TableCell.stories.tsx +46 -0
  237. package/src/storybook/stories/molecules/TableHeaderCell.stories.tsx +34 -0
  238. package/src/storybook/stories/molecules/TextArea.stories.tsx +80 -0
  239. package/src/storybook/stories/molecules/Title.stories.tsx +76 -0
  240. package/src/storybook/stories/organisms/Accordion.stories.tsx +70 -0
  241. package/src/storybook/stories/organisms/Dialog.stories.tsx +129 -0
  242. package/src/storybook/stories/organisms/Navbar.stories.tsx +78 -0
  243. package/src/storybook/stories/organisms/Table.stories.tsx +154 -0
@@ -0,0 +1,239 @@
1
+ // Copyright (c) 2024 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export const IOTA_PRIMITIVES_COLOR_PALETTE = {
5
+ 'iota-primary': {
6
+ '0': '#000000',
7
+ '10': '#061244',
8
+ '20': '#182b8a',
9
+ '30': '#3131ff',
10
+ '40': '#2563f5',
11
+ '50': '#3f80f0',
12
+ '60': '#5b9cfe',
13
+ '70': '#85b5fb',
14
+ '80': '#adceff',
15
+ '90': '#d5e8ff',
16
+ '100': '#ffffff',
17
+ },
18
+ 'iota-secondary': {
19
+ '0': '#000000',
20
+ '10': '#051631',
21
+ '20': '#17345f',
22
+ '30': '#2d4c7a',
23
+ '40': '#4b648a',
24
+ '50': '#637ca2',
25
+ '60': '#7e97bd',
26
+ '70': '#96b3d5',
27
+ '80': '#b6cde8',
28
+ '90': '#dde9f7',
29
+ '100': '#ffffff',
30
+ },
31
+ 'iota-tertiary': {
32
+ '0': '#000000',
33
+ '10': '#071f22',
34
+ '20': '#18393b',
35
+ '30': '#185b60',
36
+ '40': '#317479',
37
+ '50': '#498c91',
38
+ '60': '#64a7ac',
39
+ '70': '#7fc2c7',
40
+ '80': '#9adde2',
41
+ '90': '#c2f1f4',
42
+ '100': '#ffffff',
43
+ },
44
+ 'iota-error': {
45
+ '0': '#000000',
46
+ '10': '#330009',
47
+ '20': '#610012',
48
+ '30': '#b51431',
49
+ '40': '#ce2d4a',
50
+ '50': '#e64562',
51
+ '60': '#ff607d',
52
+ '70': '#ff889e',
53
+ '80': '#ffb0be',
54
+ '90': '#ffd9e0',
55
+ '100': '#ffffff',
56
+ },
57
+ 'iota-neutral': {
58
+ '0': '#000000',
59
+ '4': '#0a0f17',
60
+ '6': '#0f141c',
61
+ '10': '#171d26',
62
+ '12': '#1c212b',
63
+ '20': '#253041',
64
+ '30': '#3c4656',
65
+ '40': '#545e6e',
66
+ '50': '#6e7787',
67
+ '60': '#8892a1',
68
+ '70': '#a8b2c0',
69
+ '80': '#cad4e2',
70
+ '90': '#dde4f0',
71
+ '92': '#e3eaf6',
72
+ '96': '#eff4fa',
73
+ '98': '#f8fafc',
74
+ '100': '#ffffff',
75
+ },
76
+ 'iota-warning': {
77
+ '0': '#000000',
78
+ '10': '#2D1E00',
79
+ '20': '#422C00',
80
+ '30': '#674500',
81
+ '40': '#8C5D00',
82
+ '50': '#A47518',
83
+ '60': '#BE8F32',
84
+ '70': '#D9AA4D',
85
+ '80': '#F4C568',
86
+ '90': '#FFE3AB',
87
+ '100': '#FFFFFF',
88
+ },
89
+ };
90
+
91
+ export const IOTA_NAMES_COLOR_PALETTE = {
92
+ 'names-primary': {
93
+ '0': '#000000',
94
+ '10': '#061244',
95
+ '20': '#182b8a',
96
+ '30': '#3131ff',
97
+ '40': '#2563f5',
98
+ '50': '#3f80f0',
99
+ '60': '#5b9cfe',
100
+ '70': '#85b5fb',
101
+ '80': '#adceff',
102
+ '90': '#d5e8ff',
103
+ '100': '#ffffff',
104
+ },
105
+ 'names-secondary': {
106
+ '0': '#000000',
107
+ '10': '#051631',
108
+ '20': '#17345f',
109
+ '30': '#2d4c7a',
110
+ '40': '#4b648a',
111
+ '50': '#637ca2',
112
+ '60': '#7e97bd',
113
+ '70': '#96b3d5',
114
+ '80': '#b6cde8',
115
+ '90': '#dde9f7',
116
+ '100': '#ffffff',
117
+ },
118
+ 'names-tertiary': {
119
+ '0': '#000000',
120
+ '10': '#00231F',
121
+ '20': '#00453D',
122
+ '30': '#00685C',
123
+ '40': '#008C7C',
124
+ '50': '#00AF9B',
125
+ '60': '#00D7BE',
126
+ '70': '#17F3D9',
127
+ '80': '#54FFEB',
128
+ '90': '#A6FFF4',
129
+ '100': '#ffffff',
130
+ },
131
+ 'names-error': {
132
+ '0': '#000000',
133
+ '10': '#3D001F',
134
+ '20': '#620432',
135
+ '30': '#A30251',
136
+ '40': '#C90E6A',
137
+ '50': '#DC2B82',
138
+ '60': '#E35A9E',
139
+ '70': '#EF84B9',
140
+ '80': '#FCADD4',
141
+ '90': '#FFD7EB',
142
+ '100': '#ffffff',
143
+ },
144
+ 'names-neutral': {
145
+ '0': '#000000',
146
+ '4': '#0A0D23',
147
+ '6': '#0F1228',
148
+ '10': '#181B31',
149
+ '12': '#20233C',
150
+ '20': '#2B2E45',
151
+ '30': '#404359',
152
+ '40': '#585B71',
153
+ '50': '#71748B',
154
+ '60': '#8C8FA5',
155
+ '70': '#ACAFC5',
156
+ '80': '#CED1E7',
157
+ '90': '#DFE2F8',
158
+ '92': '#E5E8FE',
159
+ '96': '#F0F2FF',
160
+ '98': '#F8F9FF',
161
+ '100': '#ffffff',
162
+ },
163
+ 'names-solid': {
164
+ blue: '#3131FF',
165
+ purple: '#A139FF',
166
+ green: '#14F0D6',
167
+ neutral: '#20233C',
168
+ },
169
+ 'names-warning': {
170
+ '0': '#000000',
171
+ '10': '#2D1E00',
172
+ '20': '#422C00',
173
+ '30': '#674500',
174
+ '40': '#8C5D00',
175
+ '50': '#A47518',
176
+ '60': '#BE8F32',
177
+ '70': '#D9AA4D',
178
+ '80': '#F4C568',
179
+ '90': '#FFE3AB',
180
+ '100': '#FFFFFF',
181
+ },
182
+ };
183
+
184
+ export const SHADER_COLOR_PALETTE = {
185
+ 'shader-primary-dark': {
186
+ '0': '#bed8ff00',
187
+ '8': '#bed8ff14',
188
+ '12': '#bed8ff1e',
189
+ '16': '#bed8ff28',
190
+ '48': '#bed8ff7a',
191
+ '72': '#bed8ffb7',
192
+ '100': '#bed8ff',
193
+ },
194
+ 'shader-inverted-dark': {
195
+ '0': '#002f6d00',
196
+ '8': '#002f6d14',
197
+ '12': '#002f6d1e',
198
+ '16': '#002f6d28',
199
+ '48': '#002f6d7a',
200
+ '72': '#002f6db7',
201
+ '100': '#002f6d',
202
+ },
203
+ 'shader-neutral-dark': {
204
+ '0': '#bed8ff00',
205
+ '8': '#bed8ff14',
206
+ '12': '#bed8ff1e',
207
+ '16': '#bed8ff28',
208
+ '48': '#bed8ff7a',
209
+ '72': '#bed8ffb7',
210
+ '100': '#bed8ff',
211
+ },
212
+ 'shader-primary-light': {
213
+ 0: '#0067ee00',
214
+ 8: '#0067ee14',
215
+ 12: '#0067ee1e',
216
+ 16: '#0067ee28',
217
+ 48: '#0067ee7a',
218
+ 72: '#0067eeb7',
219
+ 100: '#0067ee',
220
+ },
221
+ 'shader-inverted-light': {
222
+ 0: '#bed8ff00',
223
+ 8: '#bed8ff14',
224
+ 12: '#bed8ff1e',
225
+ 16: '#bed8ff28',
226
+ 48: '#bed8ff7a',
227
+ 72: '#bed8ffb7',
228
+ 100: '#bed8ff',
229
+ },
230
+ 'shader-neutral-light': {
231
+ 0: '#002f6d00',
232
+ 8: '#002f6d14',
233
+ 12: '#002f6d1e',
234
+ 16: '#002f6d28',
235
+ 48: '#002f6d7a',
236
+ 72: '#002f6db7',
237
+ 100: '#002f6d',
238
+ },
239
+ };
@@ -0,0 +1,4 @@
1
+ // Copyright (c) 2024 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export * from './colors.constants';
@@ -0,0 +1,5 @@
1
+ // Copyright (c) 2024 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export * from './screenSize.enums';
5
+ export * from './theme.enums';
@@ -0,0 +1,9 @@
1
+ // Copyright (c) 2024 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export enum ScreenSize {
5
+ Sm = 'sm',
6
+ Md = 'md',
7
+ Lg = 'lg',
8
+ Xl = 'xl',
9
+ }
@@ -0,0 +1,8 @@
1
+ // Copyright (c) 2025 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export enum UIKitTheme {
5
+ Light = 'light',
6
+ Dark = 'dark',
7
+ Names = 'names',
8
+ }
@@ -0,0 +1,10 @@
1
+ // Copyright (c) 2024 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import './styles/index.css';
5
+
6
+ export * from './tailwind';
7
+ export * from './components';
8
+ export * from './constants';
9
+ export * from './enums';
10
+ export * from './utils';
@@ -0,0 +1,144 @@
1
+ @layer base {
2
+ .text-display-lg,
3
+ .text-display-md,
4
+ .text-display-sm,
5
+ .text-headline-lg,
6
+ .text-headline-md,
7
+ .text-headline-sm {
8
+ font-family: var(--font-family-heading);
9
+ }
10
+
11
+ .text-title-lg,
12
+ .text-title-md,
13
+ .text-title-sm,
14
+ .text-body-lg,
15
+ .text-body-md,
16
+ .text-body-sm,
17
+ .text-body-ds-lg,
18
+ .text-body-ds-md,
19
+ .text-body-ds-sm,
20
+ .text-label-lg,
21
+ .text-label-md,
22
+ .text-label-sm {
23
+ font-family: var(--font-family-text);
24
+ }
25
+
26
+ .text-display-lg,
27
+ .text-display-md,
28
+ .text-display-sm,
29
+ .text-headline-lg,
30
+ .text-headline-md,
31
+ .text-headline-sm,
32
+ .text-body-ds-lg {
33
+ font-variant-alternates: 'ss02';
34
+ font-weight: var(--font-weight);
35
+ letter-spacing: var(--letter-spacing);
36
+ }
37
+
38
+ .text-label-md {
39
+ font-variant-alternates: 'ss01';
40
+ }
41
+
42
+ :root.names {
43
+ --roboto-flex-variation-settings: 'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79, 'YTAS' 750,
44
+ 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 640, 'slnt' 0, 'wdth' 130;
45
+
46
+ .text-display-lg,
47
+ .text-display-md,
48
+ .text-display-sm {
49
+ font-family: var(--font-family-heading);
50
+ font-variation-settings: var(--roboto-flex-variation-settings);
51
+ }
52
+
53
+ .text-headline-lg,
54
+ .text-headline-md,
55
+ .text-headline-sm,
56
+ .text-title-lg,
57
+ .text-title-md,
58
+ .text-title-sm,
59
+ .text-body-lg,
60
+ .text-body-md,
61
+ .text-body-sm,
62
+ .text-body-ds-lg,
63
+ .text-body-ds-md,
64
+ .text-body-ds-sm,
65
+ .text-label-lg,
66
+ .text-label-md,
67
+ .text-label-sm {
68
+ font-family: var(--font-family-text);
69
+ }
70
+
71
+ .text-headline-sm,
72
+ .text-headline-md,
73
+ .text-headline-lg {
74
+ font-feature-settings: 'ss01' on;
75
+ }
76
+
77
+ .font-roboto-flex {
78
+ font-variation-settings: var(--roboto-flex-variation-settings);
79
+ }
80
+ }
81
+
82
+ input:-webkit-autofill,
83
+ input:-webkit-autofill:enabled,
84
+ input:-webkit-autofill:hover,
85
+ input:-webkit-autofill:focus {
86
+ @apply appearance-none !bg-transparent !bg-none;
87
+ @apply !text-iota-neutral-92 names:!text-names-neutral-10 dark:!text-iota-neutral-10;
88
+ transition: background-color 5000s ease-in-out 0s;
89
+ -webkit-text-fill-color: theme('colors.iota-neutral.92') !important;
90
+ }
91
+
92
+ :root:not(.dark):not(.names) {
93
+ input:-webkit-autofill,
94
+ input:-webkit-autofill:enabled,
95
+ input:-webkit-autofill:hover,
96
+ input:-webkit-autofill:focus {
97
+ -webkit-text-fill-color: theme('colors.iota-neutral.10') !important;
98
+ }
99
+ }
100
+ }
101
+
102
+ @-moz-document url-prefix() {
103
+ * {
104
+ scrollbar-width: thin;
105
+ scrollbar-color: theme('colors.iota-neutral.30') transparent;
106
+ }
107
+
108
+ :root:not(.dark) {
109
+ * {
110
+ scrollbar-color: theme('colors.iota-neutral.80') transparent;
111
+ }
112
+ }
113
+ }
114
+ @supports selector(::-webkit-scrollbar) {
115
+ *::-webkit-scrollbar {
116
+ width: 0.875rem;
117
+ height: 0.875rem;
118
+ }
119
+
120
+ *::-webkit-scrollbar-track {
121
+ border-radius: 0.75rem;
122
+ background-color: transparent;
123
+ }
124
+
125
+ *::-webkit-scrollbar-thumb {
126
+ box-shadow: inset 0 0 10px 10px #cad4e2;
127
+ border-radius: 0.75rem;
128
+ border: 4px solid transparent;
129
+ }
130
+
131
+ .dark *::-webkit-scrollbar-thumb {
132
+ box-shadow: inset 0 0 10px 10px #3c4656;
133
+ }
134
+
135
+ .names *::-webkit-scrollbar-thumb {
136
+ box-shadow: inset 0 0 10px 10px #3c4656;
137
+ }
138
+
139
+ *::-webkit-scrollbar-corner,
140
+ .dark *::-webkit-scrollbar-corner,
141
+ .names *::-webkit-scrollbar-corner {
142
+ background: transparent;
143
+ }
144
+ }