@iota/apps-ui-kit 0.6.0 → 0.7.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 (121) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/index.d.ts +219 -34
  3. package/dist/index.es.js +3429 -6082
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/index.umd.js +28 -160
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/style.css +1 -1
  8. package/package.json +11 -4
  9. package/src/lib/components/atoms/badge/badge.classes.ts +18 -18
  10. package/src/lib/components/atoms/badge/badge.enums.ts +1 -1
  11. package/src/lib/components/atoms/button/Button.tsx +1 -0
  12. package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +1 -1
  13. package/src/lib/components/atoms/button/button.classes.ts +12 -12
  14. package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +1 -1
  15. package/src/lib/components/atoms/button-segment/buttonSegment.classes.ts +15 -36
  16. package/src/lib/components/atoms/checkbox/Checkbox.tsx +19 -9
  17. package/src/lib/components/atoms/divider/divider.classes.ts +1 -1
  18. package/src/lib/components/atoms/header/Header.tsx +1 -1
  19. package/src/lib/components/atoms/image/Image.tsx +32 -0
  20. package/src/lib/components/atoms/image/index.ts +4 -0
  21. package/src/lib/components/atoms/index.ts +4 -1
  22. package/src/lib/components/atoms/info-box/InfoBox.tsx +2 -8
  23. package/src/lib/components/atoms/info-box/infoBox.classes.ts +8 -9
  24. package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +5 -5
  25. package/src/lib/components/atoms/label-text/LabelText.tsx +4 -6
  26. package/src/lib/components/atoms/list-item/ListItem.tsx +4 -5
  27. package/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx +1 -1
  28. package/src/lib/components/atoms/media-fallback/MediaFallback.tsx +12 -0
  29. package/src/lib/components/atoms/media-fallback/index.ts +4 -0
  30. package/src/lib/components/atoms/panel/Panel.tsx +2 -4
  31. package/src/lib/components/atoms/radio-button/RadioButton.tsx +5 -9
  32. package/src/lib/components/atoms/secondary-text/SecondaryText.tsx +3 -2
  33. package/src/lib/components/atoms/skeleton/Skeleton.tsx +6 -23
  34. package/src/lib/components/atoms/snackbar/snackbar.classes.ts +8 -8
  35. package/src/lib/components/atoms/toggle/toggle.classes.ts +6 -6
  36. package/src/lib/components/atoms/tooltip/Tooltip.tsx +3 -2
  37. package/src/lib/components/atoms/video/Video.tsx +33 -0
  38. package/src/lib/components/atoms/video/index.ts +4 -0
  39. package/src/lib/components/atoms/video/video.constants.ts +31 -0
  40. package/src/lib/components/index.ts +0 -2
  41. package/src/lib/components/molecules/account/Account.tsx +4 -4
  42. package/src/lib/components/molecules/address/Address.tsx +1 -1
  43. package/src/lib/components/molecules/asset-media-renderer/AssetMediaRenderer.tsx +50 -0
  44. package/src/lib/components/molecules/asset-media-renderer/index.ts +4 -0
  45. package/src/lib/components/molecules/card/CardAction.tsx +3 -5
  46. package/src/lib/components/molecules/card/CardBody.tsx +3 -2
  47. package/src/lib/components/molecules/card/card.classes.ts +3 -3
  48. package/src/lib/components/molecules/chip/Chip.tsx +59 -18
  49. package/src/lib/components/molecules/chip/chip.classes.ts +37 -15
  50. package/src/lib/components/molecules/chip/chip.enums.ts +10 -2
  51. package/src/lib/components/molecules/chip/index.ts +1 -0
  52. package/src/lib/components/molecules/display-stats/DisplayStats.tsx +2 -2
  53. package/src/lib/components/molecules/display-stats/displayStats.classes.ts +6 -6
  54. package/src/lib/components/molecules/dropdown/Dropdown.tsx +1 -1
  55. package/src/lib/components/molecules/index.ts +2 -0
  56. package/src/lib/components/molecules/input/Input.tsx +37 -22
  57. package/src/lib/components/molecules/input/InputWrapper.tsx +1 -1
  58. package/src/lib/components/molecules/input/TextArea.tsx +4 -8
  59. package/src/lib/components/molecules/input/input.classes.ts +7 -8
  60. package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +0 -1
  61. package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +1 -1
  62. package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +1 -1
  63. package/src/lib/components/molecules/navbar-item/navbarItem.classes.ts +4 -4
  64. package/src/lib/components/molecules/search/Search.tsx +10 -7
  65. package/src/lib/components/molecules/search/search.classes.ts +5 -5
  66. package/src/lib/components/molecules/segmented-button/segmentedButton.classes.ts +2 -2
  67. package/src/lib/components/molecules/select/Select.tsx +29 -16
  68. package/src/lib/components/molecules/table-cell/TableCell.tsx +2 -2
  69. package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +2 -2
  70. package/src/lib/components/molecules/title/Title.tsx +3 -3
  71. package/src/lib/components/{atoms → molecules}/visual-asset-card/VisualAssetCard.tsx +26 -40
  72. package/src/lib/components/organisms/accordion/Accordion.tsx +2 -3
  73. package/src/lib/components/organisms/accordion/accordion.classes.ts +1 -1
  74. package/src/lib/components/organisms/dialog/Dialog.tsx +39 -24
  75. package/src/lib/components/organisms/navbar/Navbar.tsx +2 -2
  76. package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +1 -1
  77. package/src/lib/components/organisms/table/Table.tsx +2 -2
  78. package/src/lib/constants/colors.constants.ts +114 -8
  79. package/src/lib/enums/index.ts +1 -0
  80. package/src/lib/enums/theme.enums.ts +8 -0
  81. package/src/lib/index.ts +2 -0
  82. package/src/lib/styles/base.css +137 -0
  83. package/src/lib/styles/components.css +735 -0
  84. package/src/lib/styles/fonts.css +2 -0
  85. package/src/lib/styles/index.css +10 -141
  86. package/src/lib/styles/utilities.css +61 -0
  87. package/src/lib/styles/variables/dark-variables.css +262 -0
  88. package/src/lib/styles/variables/general-variables.css +9 -0
  89. package/src/lib/styles/variables/light-variables.css +276 -0
  90. package/src/lib/styles/variables/names-variables.css +270 -0
  91. package/src/lib/tailwind/base.presets.ts +17 -8
  92. package/src/lib/tailwind/constants/customColors.constants.ts +13 -0
  93. package/src/lib/tailwind/constants/fontFamily.constants.ts +8 -0
  94. package/src/lib/tailwind/constants/fontSizes.constants.ts +9 -9
  95. package/src/lib/tailwind/constants/gradients.constants.ts +6 -0
  96. package/src/lib/tailwind/constants/index.ts +1 -0
  97. package/src/lib/tailwind/plugins.ts +4 -0
  98. package/src/storybook/blocks/Showcase.tsx +2 -2
  99. package/src/storybook/blocks/TypeSet.tsx +3 -3
  100. package/src/storybook/blocks/TypeSetItem.tsx +3 -3
  101. package/src/storybook/constants/gradients.constants.ts +8 -0
  102. package/src/storybook/helpers/formatGradientNames.ts +15 -0
  103. package/src/storybook/stories/atoms/Skeleton.stories.tsx +6 -6
  104. package/src/storybook/stories/atoms/Tooltip.stories.tsx +4 -2
  105. package/src/storybook/stories/atoms/VisualAssetCard.stories.tsx +3 -2
  106. package/src/storybook/stories/components/DocsSyncTheme.tsx +20 -0
  107. package/src/storybook/stories/components/VariableSpacingShowcase.tsx +2 -2
  108. package/src/storybook/stories/components/index.ts +1 -0
  109. package/src/storybook/stories/design-tokens/colors.stories.mdx +21 -0
  110. package/src/storybook/stories/design-tokens/icons.stories.mdx +2 -0
  111. package/src/storybook/stories/design-tokens/typeset.stories.mdx +2 -0
  112. package/src/storybook/stories/design-tokens/variable-spacing.stories.mdx +2 -1
  113. package/src/storybook/stories/molecules/Account.stories.tsx +3 -1
  114. package/src/storybook/stories/molecules/Chip.stories.tsx +5 -0
  115. package/src/storybook/stories/molecules/Input.stories.tsx +79 -2
  116. package/src/storybook/stories/molecules/Search.stories.tsx +2 -2
  117. package/src/storybook/stories/molecules/TableCell.stories.tsx +1 -1
  118. package/src/storybook/stories/molecules/TextArea.stories.tsx +1 -1
  119. package/src/storybook/stories/organisms/Dialog.stories.tsx +54 -28
  120. /package/src/lib/components/{atoms → molecules}/visual-asset-card/index.ts +0 -0
  121. /package/src/lib/components/{atoms → molecules}/visual-asset-card/visualAssetCard.enums.ts +0 -0
@@ -0,0 +1,276 @@
1
+ :root {
2
+ /* FONTS */
3
+ --font-family-heading: theme('fontFamily.alliance-no2');
4
+ --font-family-text: theme('fontFamily.inter');
5
+ --display-lg-font-weight: 500;
6
+ --display-lg-line-height: 120%;
7
+ --display-md-font-weight: 500;
8
+ --display-md-line-height: 120%;
9
+ --display-sm-font-weight: 500;
10
+ --display-sm-line-height: 120%;
11
+ --headline-lg-font-weight: 500;
12
+ --headline-md-font-weight: 500;
13
+ --headline-sm-font-weight: 500;
14
+
15
+ /* COLORS */
16
+ --warning-surface: theme('colors.iota-warning.90');
17
+ --on-warning: theme('colors.iota-warning.20');
18
+ --error-surface: theme('colors.iota-error.90');
19
+ --on-error: theme('colors.iota-error.20');
20
+ --success-surface: theme('colors.iota-tertiary.90');
21
+ --on-success: theme('colors.iota-tertiary.20');
22
+ --default-surface: theme('colors.iota-primary.90');
23
+ --on-default: theme('colors.iota-primary.20');
24
+
25
+ /* STATE LAYER */
26
+ --state-layer-bg-color: theme('colors.iota-primary.60');
27
+ --state-layer-secondary-bg-color: theme('colors.shader-primary-light.100');
28
+ --state-layer-inverted-bg-color: theme('colors.iota-primary.80');
29
+
30
+ /* ---------------- ATOMS ---------------- */
31
+
32
+ /* BADGE */
33
+ --badge-bg-color-neutral: theme('colors.iota-neutral.92');
34
+ --badge-text-color-neutral: theme('colors.iota-neutral.10');
35
+ --badge-border-color-neutral: theme('colors.iota-neutral.92');
36
+ --badge-bg-color-primary: theme('colors.iota-primary.30');
37
+ --badge-border-color-primary: theme('colors.iota-primary.30');
38
+ --badge-text-color-primary: theme('colors.iota-primary.100');
39
+ --badge-bg-color-primary-soft: theme('colors.iota-primary.90');
40
+ --badge-text-color-primary-soft: theme('colors.iota-primary.20');
41
+ --badge-border-color-soft: theme('colors.iota-primary.90');
42
+
43
+ /* INFOBOX */
44
+ --infobox-text-title: theme('colors.iota-neutral.10');
45
+ --infobox-supporting-text: theme('colors.iota-neutral.40');
46
+
47
+ /* BUTTON */
48
+ --button-bg-color-primary: theme('colors.iota-primary.30');
49
+ --button-bg-color-disabled-primary: theme('colors.iota-neutral.80');
50
+ --button-bg-color-secondary: theme('colors.iota-neutral.90');
51
+ --button-bg-color-error: theme('colors.iota-error.90');
52
+ --button-border-color-outline: theme('colors.iota-neutral.50');
53
+ --button-text-color-primary: theme('colors.iota-primary.100');
54
+ --button-text-color-neutral: theme('colors.iota-neutral.10');
55
+ --button-text-color-error: theme('colors.iota-error.20');
56
+
57
+ /* BUTTON PILL */
58
+ --button-pill-border-color: theme('colors.iota-neutral.70');
59
+ --button-pill-text-color: theme('colors.iota-neutral.40');
60
+
61
+ /* HEADER */
62
+ --header-bg-color: theme('colors.iota-neutral.100');
63
+ --header-text-color: theme('colors.iota-neutral.10');
64
+
65
+ /* LABEL */
66
+ --label-text-primary-neutral: theme('colors.iota-neutral.10');
67
+ --label-text-secondary-neutral: theme('colors.iota-neutral.60');
68
+
69
+ /* KEY VALUE */
70
+ --key-supporting-text-color: theme('colors.iota-neutral.60');
71
+ --key-value-hover-text-color: theme('colors.iota-neutral.10');
72
+ --key-value-key-text-color: theme('colors.iota-neutral.40');
73
+
74
+ /* CHECKBOX */
75
+ --checkbox-border-color-default: theme('colors.iota-neutral.80');
76
+ --checkbox-border-color-checked: theme('colors.iota-primary.30');
77
+ --checkbox-border-color-disabled: theme('colors.iota-neutral.70');
78
+ --checkbox-border-color-disabled-checked: theme('colors.iota-neutral.60');
79
+ --checkbox-bg-color-checked: theme('colors.iota-primary.30');
80
+ --checkbox-bg-color-disabled-checked: theme('colors.iota-neutral.60');
81
+ --checkbox-text-color: theme('colors.iota-neutral.40');
82
+ --checkbox-text-color-checked: theme('colors.white');
83
+ --checkbox-label-text-color: theme('colors.iota-neutral.40');
84
+
85
+ /* DIVIDER */
86
+ --divider-bg-color: theme('colors.shader-neutral-light.8');
87
+
88
+ /* BUTTON SEGMENT */
89
+ --button-segment-text-color-default: theme('colors.iota-neutral.60');
90
+ --button-segment-text-color-hover: theme('colors.iota-neutral.40');
91
+ --button-segment-text-color-focused: theme('colors.iota-neutral.40');
92
+ --button-segment-text-color-selected: theme('colors.iota-neutral.10');
93
+ --button-segment-underline-default-color: theme('colors.shader-neutral-light.8');
94
+ --button-segment-underline-hover-color: theme('colors.iota-neutral.70');
95
+ --button-segment-underline-selected-color: theme('colors.iota-primary.30');
96
+ --button-segment-bg-color-selected: theme('colors.iota-primary.100');
97
+
98
+ /* LOADING INDICATOR */
99
+ --loading-indicator-color: theme('colors.iota-primary.30');
100
+
101
+ /* LIST ITEM */
102
+ --list-item-color: theme('colors.iota-neutral.10');
103
+ --list-item-border-color: theme('colors.shader-neutral-light.8');
104
+ --list-item-highlight-bg: theme('colors.shader-primary-dark.16');
105
+
106
+ /* PANEL */
107
+ --panel-bg: theme('colors.iota-neutral.100');
108
+ --panel-border-color: theme('colors.shader-neutral-light.8');
109
+
110
+ /* RADIO BUTTON */
111
+ --radio-icon-color: theme('colors.iota-neutral.40');
112
+ --radio-icon-checked-color: theme('colors.iota-primary.30');
113
+ --radio-icon-checked-disabled-color: theme('colors.iota-neutral.40');
114
+ --radio-label-color: theme('colors.iota-neutral.40');
115
+
116
+ /* SECONDARY TEXT */
117
+ --secondary-text-color: theme('colors.iota-neutral.40');
118
+ --secondary-text-error-color: theme('colors.iota-error.20');
119
+
120
+ /* SKELETON */
121
+ --skeleton-bg: theme('colors.iota-neutral.90');
122
+ --skeleton-secondary-bg: theme('colors.iota-neutral.80');
123
+
124
+ /* TOGGLE */
125
+ --toggle-bg-active: theme('colors.iota-primary.30');
126
+ --toggle-border-active: theme('colors.iota-primary.30');
127
+ --toggle-bg-inactive: theme('colors.iota-primary.100');
128
+ --toggle-border-inactive: theme('colors.iota-neutral.70');
129
+ --toggle-bg-disabled-active: theme('colors.iota-neutral.70');
130
+ --toggle-border-disabled-active: theme('colors.iota-neutral.70');
131
+ --toggle-thumb-color: theme('colors.iota-neutral.60');
132
+ --toggle-thumb-color-checked: theme('colors.iota-neutral.100');
133
+ --toggle-label-color: theme('colors.iota-neutral.40');
134
+
135
+ /* TOOLTIP */
136
+ --tooltip-bg: theme('colors.iota-neutral.80');
137
+ --tooltip-text-color: theme('colors.iota-neutral.10');
138
+
139
+ /* VISUAL ASSET CARD */
140
+ --visual-asset-placeholder-bg: theme('colors.iota-neutral.96');
141
+ --visual-asset-placeholder-icon: theme('colors.iota-neutral.40');
142
+ --visual-asset-title-color: theme('colors.iota-neutral.100');
143
+ --visual-asset-icon-color: theme('colors.iota-neutral.100');
144
+
145
+ /* ---------------- MOLECULES ---------------- */
146
+
147
+ /* ACCOUNT */
148
+ --account-title-color: theme('colors.iota-neutral.10');
149
+ --account-icon-color: theme('colors.iota-neutral.40');
150
+ --account-check-active-color: theme('colors.iota-primary.30');
151
+ --account-check-inactive-color: theme('colors.iota-neutral.40');
152
+
153
+ /* ADDRESS */
154
+ --address-text-color: theme('colors.iota-neutral.40');
155
+
156
+ /* CARD */
157
+ --card-filled-bg: theme('colors.iota-neutral.96');
158
+ --card-image-bg-solid: theme('colors.iota-neutral.96');
159
+ --card-image-bg-white: theme('colors.iota-neutral.100');
160
+ --card-action-link-color: theme('colors.iota-neutral.10');
161
+ --card-action-title-color: theme('colors.iota-neutral.10');
162
+ --card-action-subtitle-color: theme('colors.iota-neutral.60');
163
+ --card-body-title-color: theme('colors.iota-neutral.10');
164
+ --card-body-subtitle-color: theme('colors.iota-neutral.40');
165
+
166
+ /* CHIP */
167
+ --chip-bg-selected-outline: theme('colors.iota-primary.90');
168
+ --chip-bg-elevated: theme('colors.iota-primary.90');
169
+ --chip-bg-brand: theme('colors.iota-primary.30');
170
+ --chip-border-default: theme('colors.iota-neutral.70');
171
+ --chip-text-default: theme('colors.iota-neutral.40');
172
+ --chip-text-secondary: theme('colors.iota-neutral.10');
173
+ --chip-focus-ring: theme('colors.iota-primary.30');
174
+ --chip-border-color-brand: theme('colors.iota-primary.30');
175
+ --chip-text-brand: theme('colors.iota-primary.100');
176
+ --chip-bg-selected-overlay: theme('colors.shader-primary-light.16');
177
+ --chip-close-icon-opacity: 100;
178
+
179
+ --chip-outline-color: theme('colors.shader-primary-light.16');
180
+ --chip-outline-color-hover: theme('colors.shader-primary-light.8');
181
+ --chip-outline-color-active: theme('colors.shader-primary-light.12');
182
+
183
+ --chip-bg-color-hover: theme('colors.shader-primary-light.8');
184
+ --chip-bg-color-active: theme('colors.shader-primary-light.12');
185
+ --chip-bg-color-focus: theme('colors.shader-primary-light.12');
186
+
187
+ /* DISPLAY STATS */
188
+ --display-stats-bg-default: theme('colors.iota-neutral.96');
189
+ --display-stats-bg-highlight: theme('colors.iota-primary.30');
190
+ --display-stats-bg-secondary: theme('colors.iota-secondary.90');
191
+
192
+ --display-stats-text-default: theme('colors.iota-neutral.10');
193
+ --display-stats-text-highlight: theme('colors.iota-neutral.100');
194
+ --display-stats-text-secondary: theme('colors.iota-neutral.10');
195
+
196
+ --display-stats-icon-color: theme('colors.iota-neutral.10');
197
+ --display-stats-copy-icon-color: theme('colors.iota-neutral.60');
198
+
199
+ /* DROPDOWN */
200
+ --dropdown-bg: theme('colors.iota-neutral.100');
201
+ --dropdown-border-color: theme('colors.iota-neutral.80');
202
+
203
+ /* INPUT */
204
+ --input-text-color: theme('colors.iota-neutral.10');
205
+ --input-placeholder-color: rgba(84, 94, 110, 0.4); /* neutral.40 with 40% opacity */
206
+ --input-label-color: theme('colors.iota-neutral.40');
207
+ --input-border-color: theme('colors.iota-neutral.80');
208
+ --input-border-hover-color: theme('colors.iota-neutral.50');
209
+ --input-border-error-color: theme('colors.iota-error.30');
210
+ --input-border-focus-color: theme('colors.iota-primary.30');
211
+ --input-caret-color: theme('colors.iota-primary.30');
212
+ --input-icon-color: theme('colors.iota-neutral.10');
213
+ --input-copy-icon-color: theme('colors.iota-neutral.60');
214
+ --input-visibility-bar-color: rgba(227, 234, 246, 0.6); /* neutral.92 with 60% opacity */
215
+
216
+ /* NAVBAR ITEM */
217
+ --navbar-item-icon-color: theme('colors.iota-neutral.40');
218
+ --navbar-item-icon-selected-color: theme('colors.iota-neutral.10');
219
+ --navbar-item-label-color: theme('colors.iota-neutral.60');
220
+ --navbar-item-label-selected-color: theme('colors.iota-neutral.10');
221
+
222
+ /* SEARCH */
223
+ --search-text-color: theme('colors.iota-neutral.10');
224
+ --search-placeholder-color: theme('colors.iota-neutral.40');
225
+ --search-border-color: theme('colors.iota-neutral.70');
226
+ --search-bg-color-filled: theme('colors.iota-neutral.92');
227
+ --search-suggestion-bg-color: theme('colors.iota-neutral.100');
228
+ --search-selected-index-bg-color: theme('colors.shader-primary-dark.16');
229
+
230
+ /* SEGMENTED BUTTON */
231
+ --segmented-filled-bg-color: theme('colors.iota-neutral.96');
232
+ --segmented-outlined-border-color: theme('colors.iota-neutral.70');
233
+
234
+ /* SELECT */
235
+ --select-border-color: theme('colors.iota-neutral.80');
236
+ --select-border-hover-color: theme('colors.iota-neutral.50');
237
+ --select-border-focus-color: theme('colors.iota-primary.30');
238
+ --select-border-error-color: theme('colors.iota-error.30');
239
+ --select-icon-color: theme('colors.iota-neutral.10');
240
+ --select-label-color: theme('colors.iota-neutral.10');
241
+
242
+ /* TABLE CELL */
243
+ --table-cell-supporting-label-color: theme('colors.iota-neutral.60');
244
+ --table-cell-border-color: theme('colors.shader-neutral-light.8');
245
+
246
+ /* TABLE HEADER CELL */
247
+ --table-header-text-color: theme('colors.iota-neutral.10');
248
+
249
+ /* TITLE */
250
+ --title-main-color: theme('colors.iota-neutral.10');
251
+ --title-subtitle-color: theme('colors.iota-neutral.60');
252
+ --title-icon-color: theme('colors.iota-neutral.60');
253
+
254
+ /* ---------------- ORGANISMS ---------------- */
255
+
256
+ /* ACCORDION */
257
+ --accordion-bg: theme('colors.iota-neutral.100');
258
+ --accordion-icon-color: theme('colors.iota-neutral.10');
259
+ --accordion-border-color: theme('colors.shader-neutral-light.8');
260
+
261
+ /* DIALOG */
262
+ --dialog-content-bg: theme('colors.iota-primary.100');
263
+ --dialog-title-color: theme('colors.iota-neutral.10');
264
+ --dialog-body-color: theme('colors.iota-neutral.40');
265
+
266
+ /* NAVBAR */
267
+ --navbar-icon-color: theme('colors.iota-neutral.10');
268
+ --navbar-slideout-bg: theme('colors.iota-neutral.100');
269
+
270
+ /* TABLE */
271
+ --table-text-color: theme('colors.iota-neutral.40');
272
+
273
+ /* DIALOG */
274
+ --dialog-outline: none;
275
+ --dialog-overlay-bg: theme('colors.shader-neutral-light.48');
276
+ }
@@ -0,0 +1,270 @@
1
+ :root.names {
2
+ /* FONTS */
3
+ --font-family-heading: theme('fontFamily.roboto-flex');
4
+ --font-family-text: theme('fontFamily.inter');
5
+ --display-lg-font-weight: 700;
6
+ --display-lg-line-height: 100%;
7
+ --display-md-font-weight: 700;
8
+ --display-md-line-height: 100%;
9
+ --display-sm-font-weight: 700;
10
+ --display-sm-line-height: 100%;
11
+ --headline-lg-font-weight: 600;
12
+ --headline-md-font-weight: 600;
13
+ --headline-sm-font-weight: 600;
14
+
15
+ /* COLORS */
16
+ --warning-surface: theme('colors.names-warning.20');
17
+ --on-warning: theme('colors.names-warning.90');
18
+ --error-surface: theme('colors.names-error.20');
19
+ --on-error: theme('colors.names-error.90');
20
+ --success-surface: theme('colors.names-tertiary.20');
21
+ --on-success: theme('colors.names-tertiary.90');
22
+ --default-surface: theme('colors.names-primary.20');
23
+ --on-default: theme('colors.names-neutral.90');
24
+
25
+ /* STATE LAYER */
26
+ --state-layer-bg-color: theme('colors.names-primary.60');
27
+ --state-layer-secondary-bg-color: theme('colors.shader-primary-dark.100');
28
+ --state-layer-inverted-bg-color: theme('colors.names-primary.80');
29
+
30
+ /* ---------------- ATOMS ---------------- */
31
+
32
+ /* BADGE */
33
+ --badge-bg-color-neutral: theme('colors.names-neutral.12');
34
+ --badge-text-color-neutral: theme('colors.names-neutral.92');
35
+ --badge-border-color-neutral: theme('colors.names-neutral.12');
36
+ --badge-bg-color-primary: theme('colors.names-primary.30');
37
+ --badge-border-color-primary: theme('colors.names-primary.30');
38
+ --badge-text-color-primary: theme('colors.names-neutral.100');
39
+ --badge-bg-color-primary-soft: theme('colors.names-primary.20');
40
+ --badge-text-color-primary-soft: theme('colors.names-primary.90');
41
+ --badge-border-color-soft: theme('colors.names-primary.20');
42
+
43
+ /* INFOBOX */
44
+ --infobox-text-title: theme('colors.names-neutral.92');
45
+ --infobox-supporting-text: theme('colors.names-neutral.92');
46
+
47
+ /* BUTTON */
48
+ --button-bg-color-primary: theme('colors.names-primary.30');
49
+ --button-bg-color-disabled-primary: theme('colors.names-neutral.30');
50
+ --button-bg-color-secondary: theme('colors.names-neutral.20');
51
+ --button-bg-color-error: theme('colors.names-error.20');
52
+ --button-border-color-outline: theme('colors.names-neutral.60');
53
+ --button-text-color-primary: theme('colors.names-primary.100');
54
+ --button-text-color-neutral: theme('colors.names-neutral.92');
55
+ --button-text-color-error: theme('colors.names-error.90');
56
+
57
+ /* BUTTON PILL */
58
+ --button-pill-border-color: theme('colors.names-neutral.40');
59
+ --button-pill-text-color: theme('colors.names-neutral.60');
60
+
61
+ /* HEADER */
62
+ --header-bg-color: theme('colors.names-neutral.6');
63
+ --header-text-color: theme('colors.names-neutral.92');
64
+
65
+ /* LABEL */
66
+ --label-text-primary-neutral: theme('colors.names-neutral.92');
67
+ --label-text-secondary-neutral: theme('colors.names-neutral.50');
68
+
69
+ /* KEY VALUE */
70
+ --key-supporting-text-color: theme('colors.names-neutral.50');
71
+ --key-value-hover-text-color: theme('colors.iota-neutral.92');
72
+ --key-value-key-text-color: theme('colors.names-neutral.70');
73
+
74
+ /* CHECKBOX */
75
+ --checkbox-border-color-default: theme('colors.names-neutral.20');
76
+ --checkbox-border-color-checked: theme('colors.names-primary.30');
77
+ --checkbox-border-color-disabled: theme('colors.names-neutral.30');
78
+ --checkbox-border-color-disabled-checked: theme('colors.names-neutral.50');
79
+ --checkbox-bg-color-checked: theme('colors.names-primary.30');
80
+ --checkbox-bg-color-disabled-checked: theme('colors.names-neutral.50');
81
+ --checkbox-text-color: theme('colors.names-neutral.70');
82
+ --checkbox-text-color-checked: theme('colors.names-neutral.100');
83
+ --checkbox-label-text-color: theme('colors.names-neutral.70');
84
+
85
+ /* DIVIDER */
86
+ --divider-bg-color: theme('colors.shader-neutral-dark.8');
87
+
88
+ /* BUTTON SEGMENT */
89
+ --button-segment-text-color-default: theme('colors.names-neutral.50');
90
+ --button-segment-text-color-hover: theme('colors.names-neutral.70');
91
+ --button-segment-text-color-focused: theme('colors.names-neutral.70');
92
+ --button-segment-text-color-selected: theme('colors.names-neutral.92');
93
+ --button-segment-underline-default-color: theme('colors.shader-neutral-dark.8');
94
+ --button-segment-underline-hover-color: theme('colors.names-neutral.40');
95
+ --button-segment-underline-selected-color: theme('colors.names-primary.80');
96
+ --button-segment-bg-color-selected: theme('colors.names-neutral.6');
97
+
98
+ /* LOADING INDICATOR */
99
+ --loading-indicator-color: theme('colors.names-primary.80');
100
+
101
+ /* LIST ITEM */
102
+ --list-item-color: theme('colors.names-neutral.92');
103
+ --list-item-border-color: theme('colors.shader-neutral-dark.8');
104
+ --list-item-highlight-bg: theme('colors.shader-primary-dark.12');
105
+
106
+ /* PANEL */
107
+ --panel-bg: theme('colors.names-neutral.6');
108
+ --panel-border-color: theme('colors.shader-neutral-dark.8');
109
+
110
+ /* RADIO BUTTON */
111
+ --radio-icon-color: theme('colors.names-neutral.70');
112
+ --radio-icon-checked-color: theme('colors.names-primary.30');
113
+ --radio-icon-checked-disabled-color: theme('colors.names-neutral.70');
114
+ --radio-label-color: theme('colors.names-neutral.70');
115
+
116
+ /* SECONDARY TEXT */
117
+ --secondary-text-color: theme('colors.names-neutral.70');
118
+ --secondary-text-error-color: theme('colors.names-error.80');
119
+
120
+ /* SKELETON */
121
+ --skeleton-bg: theme('colors.names-neutral.12');
122
+ --skeleton-secondary-bg: theme('colors.names-neutral.10');
123
+
124
+ /* TOGGLE */
125
+ --toggle-bg-active: theme('colors.names-primary.30');
126
+ --toggle-border-active: theme('colors.names-primary.30');
127
+ --toggle-bg-inactive: theme('colors.names-neutral.6');
128
+ --toggle-border-inactive: theme('colors.names-neutral.50');
129
+ --toggle-bg-disabled-active: theme('colors.names-neutral.50');
130
+ --toggle-border-disabled-active: theme('colors.names-neutral.50');
131
+ --toggle-thumb-color: theme('colors.names-neutral.50');
132
+ --toggle-thumb-color-checked: theme('colors.names-neutral.6');
133
+ --toggle-label-color: theme('colors.names-neutral.70');
134
+
135
+ /* TOOLTIP */
136
+ --tooltip-bg: theme('colors.names-neutral.0');
137
+ --tooltip-text-color: theme('colors.names-neutral.100');
138
+
139
+ /* VISUAL ASSET CARD */
140
+ --visual-asset-placeholder-bg: theme('colors.names-neutral.10');
141
+ --visual-asset-placeholder-icon: theme('colors.names-neutral.60');
142
+ --visual-asset-title-color: theme('colors.names-neutral.100');
143
+ --visual-asset-icon-color: theme('colors.names-neutral.100');
144
+
145
+ /* ACCOUNT */
146
+ --account-title-color: theme('colors.names-neutral.92');
147
+ --account-icon-color: theme('colors.names-neutral.70');
148
+ --account-check-active-color: theme('colors.names-primary.80');
149
+ --account-check-inactive-color: theme('colors.names-neutral.60');
150
+
151
+ /* ADDRESS */
152
+ --address-text-color: theme('colors.names-neutral.70');
153
+
154
+ /* CARD */
155
+ --card-filled-bg: theme('colors.names-neutral.10');
156
+ --card-image-bg-solid: theme('colors.names-neutral.10');
157
+ --card-image-bg-white: theme('colors.names-neutral.6');
158
+ --card-action-link-color: theme('colors.names-neutral.92');
159
+ --card-action-title-color: theme('colors.names-neutral.92');
160
+ --card-action-subtitle-color: theme('colors.names-neutral.40');
161
+ --card-body-title-color: theme('colors.names-neutral.92');
162
+ --card-body-subtitle-color: theme('colors.names-neutral.70');
163
+
164
+ /* CHIP */
165
+ --chip-bg-selected-outline: theme('colors.shader-primary-dark.16');
166
+ --chip-bg-elevated: theme('colors.names-neutral.12');
167
+ --chip-bg-brand: theme('colors.names-primary.30');
168
+ --chip-border-default: theme('colors.names-neutral.20');
169
+ --chip-text-default: theme('colors.names-neutral.92');
170
+ --chip-text-secondary: theme('colors.names-neutral.92');
171
+ --chip-focus-ring: theme('colors.names-primary.80');
172
+ --chip-border-color-brand: theme('colors.names-primary.30');
173
+ --chip-text-brand: theme('colors.names-primary.100');
174
+ --chip-bg-selected-overlay: theme('colors.shader-primary-dark.16');
175
+ --chip-close-icon-opacity: 0.4;
176
+
177
+ --chip-outline-color: theme('colors.shader-primary-dark.16');
178
+ --chip-outline-color-hover: theme('colors.shader-primary-dark.8');
179
+ --chip-outline-color-active: theme('colors.shader-primary-dark.12');
180
+
181
+ --chip-bg-color-hover: theme('colors.shader-primary-dark.8');
182
+ --chip-bg-color-active: theme('colors.shader-primary-dark.12');
183
+ --chip-bg-color-focus: theme('colors.shader-primary-dark.12');
184
+
185
+ /* DISPLAY STATS */
186
+ --display-stats-bg-default: theme('colors.names-neutral.10');
187
+ --display-stats-bg-highlight: theme('colors.names-primary.80');
188
+ --display-stats-bg-secondary: theme('colors.names-secondary.10');
189
+ --display-stats-text-default: theme('colors.names-neutral.92');
190
+ --display-stats-text-highlight: theme('colors.names-primary.10');
191
+ --display-stats-text-secondary: theme('colors.names-neutral.92');
192
+ --display-stats-icon-color: theme('colors.names-neutral.92');
193
+ --display-stats-copy-icon-color: theme('colors.names-neutral.40');
194
+
195
+ /* DROPDOWN */
196
+ --dropdown-bg: theme('colors.names-neutral.6');
197
+ --dropdown-border-color: theme('colors.names-neutral.20');
198
+
199
+ /* INPUT */
200
+ --input-text-color: theme('colors.names-neutral.92');
201
+ --input-placeholder-color: rgba(136, 146, 161, 0.4); /* neutral.60 with 40% opacity */
202
+ --input-label-color: theme('colors.names-neutral.60');
203
+ --input-border-color: theme('colors.names-neutral.20');
204
+ --input-border-hover-color: theme('colors.names-neutral.60');
205
+ --input-border-error-color: theme('colors.names-error.80');
206
+ --input-border-focus-color: theme('colors.names-primary.80');
207
+ --input-caret-color: theme('colors.names-primary.80');
208
+ --input-icon-color: theme('colors.names-neutral.92');
209
+ --input-copy-icon-color: theme('colors.names-neutral.40');
210
+ --input-visibility-bar-color: rgba(24, 27, 49, 0.6); /* neutral.10 with 60% opacity */
211
+
212
+ /* NAVBAR ITEM */
213
+ --navbar-item-icon-color: theme('colors.names-neutral.70');
214
+ --navbar-item-icon-selected-color: theme('colors.names-neutral.92');
215
+ --navbar-item-label-color: theme('colors.names-neutral.50');
216
+ --navbar-item-label-selected-color: theme('colors.names-neutral.92');
217
+
218
+ /* SEARCH */
219
+ --search-text-color: theme('colors.names-neutral.92');
220
+ --search-placeholder-color: theme('colors.names-neutral.70');
221
+ --search-border-color: theme('colors.names-neutral.40');
222
+ --search-bg-color-filled: theme('colors.names-neutral.12');
223
+ --search-suggestion-bg-color: theme('colors.names-neutral.12');
224
+ --search-selected-index-bg-color: theme('colors.shader-inverted-dark.16');
225
+
226
+ /* SEGMENTED BUTTON */
227
+ --segmented-filled-bg-color: theme('colors.names-neutral.10');
228
+ --segmented-outlined-border-color: theme('colors.names-neutral.40');
229
+
230
+ /* SELECT */
231
+ --select-border-color: theme('colors.names-neutral.20');
232
+ --select-border-hover-color: theme('colors.names-neutral.60');
233
+ --select-border-focus-color: theme('colors.names-primary.80');
234
+ --select-border-error-color: theme('colors.names-error.80');
235
+ --select-icon-color: theme('colors.names-neutral.92');
236
+ --select-label-color: theme('colors.names-neutral.92');
237
+
238
+ /* TABLE CELL */
239
+ --table-cell-supporting-label-color: theme('colors.names-neutral.40');
240
+ --table-cell-border-color: theme('colors.shader-neutral-dark.8');
241
+
242
+ /* TABLE HEADER CELL */
243
+ --table-header-text-color: theme('colors.names-neutral.92');
244
+
245
+ /* TITLE */
246
+ --title-main-color: theme('colors.names-neutral.92');
247
+ --title-subtitle-color: theme('colors.names-neutral.50');
248
+ --title-icon-color: theme('colors.names-neutral.50');
249
+
250
+ /* ---------------- ORGANISMS ---------------- */
251
+
252
+ /* ACCORDION */
253
+ --accordion-bg: theme('colors.names-neutral.6');
254
+ --accordion-icon-color: theme('colors.names-neutral.92');
255
+ --accordion-border-color: theme('colors.shader-neutral-dark.8');
256
+
257
+ /* DIALOG */
258
+ --dialog-content-bg: theme('colors.names-neutral.6');
259
+ --dialog-title-color: theme('colors.names-neutral.92');
260
+ --dialog-body-color: theme('colors.names-neutral.70');
261
+ --dialog-outline: 1px solid theme('colors.names-neutral.20');
262
+ --dialog-overlay-bg: theme('colors.names-neutral.0/0.12');
263
+
264
+ /* NAVBAR */
265
+ --navbar-icon-color: theme('colors.names-neutral.92');
266
+ --navbar-slideout-bg: theme('colors.names-neutral.6');
267
+
268
+ /* TABLE */
269
+ --table-text-color: theme('colors.names-neutral.70');
270
+ }
@@ -2,20 +2,27 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import type { Config } from 'tailwindcss';
5
- import { IOTA_PRIMITIVES_COLOR_PALETTE, SHADER_COLOR_PALETTE } from '../constants/colors.constants';
6
5
  import {
7
- CUSTOM_FONT_SIZES,
6
+ IOTA_PRIMITIVES_COLOR_PALETTE,
7
+ IOTA_NAMES_COLOR_PALETTE,
8
+ SHADER_COLOR_PALETTE,
9
+ } from '../constants/colors.constants';
10
+ import {
8
11
  BORDER_RADIUS,
12
+ CUSTOM_FONT_SIZES,
9
13
  CUSTOM_SPACING,
14
+ FONT_FAMILIES,
10
15
  OPACITY,
11
16
  generateVariableSpacing,
12
17
  } from './constants';
13
- import { firefoxPlugin } from './plugins';
18
+ import { THEMED_CUSTOM_COLORS } from './constants/customColors.constants';
19
+ import { firefoxPlugin, namesVariant } from './plugins';
20
+ import { NAMES_GRADIENTS } from './constants/gradients.constants';
14
21
 
15
22
  export const BASE_CONFIG: Config = {
16
23
  content: ['./src/**/*.{html,js,jsx,ts,tsx}'],
17
- darkMode: 'class',
18
- plugins: [firefoxPlugin],
24
+ darkMode: 'selector',
25
+ plugins: [firefoxPlugin, namesVariant],
19
26
  theme: {
20
27
  extend: {
21
28
  fontSize: {
@@ -38,11 +45,13 @@ export const BASE_CONFIG: Config = {
38
45
  },
39
46
  colors: {
40
47
  ...IOTA_PRIMITIVES_COLOR_PALETTE,
48
+ ...IOTA_NAMES_COLOR_PALETTE,
41
49
  ...SHADER_COLOR_PALETTE,
50
+ ...THEMED_CUSTOM_COLORS,
42
51
  },
43
- fontFamily: {
44
- 'alliance-no2': ['AllianceNo2', 'sans-serif'],
45
- inter: ['Inter', 'sans-serif'],
52
+ fontFamily: FONT_FAMILIES,
53
+ backgroundImage: {
54
+ ...NAMES_GRADIENTS,
46
55
  },
47
56
  },
48
57
  },
@@ -0,0 +1,13 @@
1
+ // Copyright (c) 2025 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export const THEMED_CUSTOM_COLORS = {
5
+ 'default-surface': 'var(--default-surface)',
6
+ 'on-default': 'var(--on-default)',
7
+ 'warning-surface': 'var(--warning-surface)',
8
+ 'on-warning': 'var(--on-warning)',
9
+ 'error-surface': 'var(--error-surface)',
10
+ 'on-error': 'var(--on-error)',
11
+ 'success-surface': 'var(--success-surface)',
12
+ 'on-success': 'var(--on-success)',
13
+ } as const;
@@ -0,0 +1,8 @@
1
+ // Copyright (c) 2025 IOTA Stiftung
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ export const FONT_FAMILIES: Record<string, string[]> = {
5
+ inter: ['Inter', 'sans-serif'],
6
+ 'alliance-no2': ['AllianceNo2', 'sans-serif'],
7
+ 'roboto-flex': ['Roboto Flex Variable', 'sans-serif'],
8
+ } as const;
@@ -136,24 +136,24 @@ export const TEXT_HEADLINE_CLASSES: TailwindCustomFonts = {
136
136
  '24px',
137
137
  {
138
138
  lineHeight: '120%',
139
+ fontWeight: 'var(--headline-sm-font-weight)',
139
140
  letterSpacing: '-0.2px',
140
- fontWeight: 500,
141
141
  },
142
142
  ],
143
143
  'text-headline-md': [
144
144
  '28px',
145
145
  {
146
146
  lineHeight: '120%',
147
+ fontWeight: 'var(--headline-md-font-weight)',
147
148
  letterSpacing: '-0.4px',
148
- fontWeight: 500,
149
149
  },
150
150
  ],
151
151
  'text-headline-lg': [
152
152
  '32px',
153
153
  {
154
154
  lineHeight: '120%',
155
+ fontWeight: 'var(--headline-lg-font-weight)',
155
156
  letterSpacing: '-0.4px',
156
- fontWeight: 500,
157
157
  },
158
158
  ],
159
159
  };
@@ -162,22 +162,22 @@ export const TEXT_DISPLAY_CLASSES: TailwindCustomFonts = {
162
162
  'text-display-sm': [
163
163
  '36px',
164
164
  {
165
- lineHeight: '120%',
166
- fontWeight: 500,
165
+ lineHeight: 'var(--display-sm-line-height)',
166
+ fontWeight: 'var(--display-sm-font-weight)',
167
167
  },
168
168
  ],
169
169
  'text-display-md': [
170
170
  '48px',
171
171
  {
172
- lineHeight: '120%',
173
- fontWeight: 500,
172
+ lineHeight: 'var(--display-md-line-height)',
173
+ fontWeight: 'var(--display-md-font-weight)',
174
174
  },
175
175
  ],
176
176
  'text-display-lg': [
177
177
  '60px',
178
178
  {
179
- lineHeight: '120%',
180
- fontWeight: 500,
179
+ lineHeight: 'var(--display-lg-line-height)',
180
+ fontWeight: 'var(--display-lg-font-weight)',
181
181
  },
182
182
  ],
183
183
  };