@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.
- package/CHANGELOG.md +145 -0
- package/LICENSE +201 -0
- package/README.md +16 -0
- package/dist/index.d.ts +1911 -0
- package/dist/index.es.js +6486 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +66 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +80 -0
- package/src/lib/components/atoms/badge/Badge.tsx +37 -0
- package/src/lib/components/atoms/badge/badge.classes.ts +33 -0
- package/src/lib/components/atoms/badge/badge.enums.ts +11 -0
- package/src/lib/components/atoms/badge/index.ts +6 -0
- package/src/lib/components/atoms/button/Button.tsx +110 -0
- package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +23 -0
- package/src/lib/components/atoms/button/button-variants/ButtonUnstyled.tsx +27 -0
- package/src/lib/components/atoms/button/button-variants/buttonVariants.types.ts +11 -0
- package/src/lib/components/atoms/button/button-variants/index.ts +5 -0
- package/src/lib/components/atoms/button/button.classes.ts +53 -0
- package/src/lib/components/atoms/button/button.enums.ts +21 -0
- package/src/lib/components/atoms/button/index.ts +7 -0
- package/src/lib/components/atoms/button-segment/ButtonSegment.tsx +98 -0
- package/src/lib/components/atoms/button-segment/buttonSegment.classes.ts +24 -0
- package/src/lib/components/atoms/button-segment/buttonSegment.enums.ts +7 -0
- package/src/lib/components/atoms/button-segment/index.ts +5 -0
- package/src/lib/components/atoms/checkbox/Checkbox.tsx +124 -0
- package/src/lib/components/atoms/checkbox/index.ts +4 -0
- package/src/lib/components/atoms/divider/Divider.tsx +48 -0
- package/src/lib/components/atoms/divider/divider.classes.ts +11 -0
- package/src/lib/components/atoms/divider/divider.enums.ts +7 -0
- package/src/lib/components/atoms/divider/index.ts +6 -0
- package/src/lib/components/atoms/header/Header.tsx +73 -0
- package/src/lib/components/atoms/header/index.ts +4 -0
- package/src/lib/components/atoms/image/Image.tsx +32 -0
- package/src/lib/components/atoms/image/index.ts +4 -0
- package/src/lib/components/atoms/index.ts +26 -0
- package/src/lib/components/atoms/info-box/InfoBox.tsx +68 -0
- package/src/lib/components/atoms/info-box/index.ts +5 -0
- package/src/lib/components/atoms/info-box/infoBox.classes.ts +18 -0
- package/src/lib/components/atoms/info-box/infoBox.enums.ts +14 -0
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +157 -0
- package/src/lib/components/atoms/key-value-info/index.ts +6 -0
- package/src/lib/components/atoms/key-value-info/keyValue.enums.ts +7 -0
- package/src/lib/components/atoms/label-text/LabelText.tsx +92 -0
- package/src/lib/components/atoms/label-text/index.ts +5 -0
- package/src/lib/components/atoms/label-text/labelText.classes.ts +22 -0
- package/src/lib/components/atoms/label-text/labelText.enums.ts +8 -0
- package/src/lib/components/atoms/list-item/ListItem.tsx +88 -0
- package/src/lib/components/atoms/list-item/index.ts +4 -0
- package/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx +38 -0
- package/src/lib/components/atoms/loading-indicator/index.ts +4 -0
- package/src/lib/components/atoms/media-fallback/MediaFallback.tsx +12 -0
- package/src/lib/components/atoms/media-fallback/index.ts +4 -0
- package/src/lib/components/atoms/panel/Panel.tsx +28 -0
- package/src/lib/components/atoms/panel/index.ts +4 -0
- package/src/lib/components/atoms/placeholder/Placeholder.tsx +27 -0
- package/src/lib/components/atoms/placeholder/index.ts +4 -0
- package/src/lib/components/atoms/radio-button/RadioButton.tsx +64 -0
- package/src/lib/components/atoms/radio-button/index.ts +4 -0
- package/src/lib/components/atoms/secondary-text/SecondaryText.tsx +29 -0
- package/src/lib/components/atoms/secondary-text/index.ts +4 -0
- package/src/lib/components/atoms/skeleton/Skeleton.tsx +30 -0
- package/src/lib/components/atoms/skeleton/index.ts +4 -0
- package/src/lib/components/atoms/snackbar/Snackbar.tsx +69 -0
- package/src/lib/components/atoms/snackbar/index.ts +5 -0
- package/src/lib/components/atoms/snackbar/snackbar.classes.ts +18 -0
- package/src/lib/components/atoms/snackbar/snackbar.enums.tsx +9 -0
- package/src/lib/components/atoms/toggle/Toggle.tsx +140 -0
- package/src/lib/components/atoms/toggle/index.ts +6 -0
- package/src/lib/components/atoms/toggle/toggle.classes.ts +41 -0
- package/src/lib/components/atoms/toggle/toggle.enums.ts +12 -0
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +139 -0
- package/src/lib/components/atoms/tooltip/index.ts +5 -0
- package/src/lib/components/atoms/tooltip/tooltip.classes.ts +11 -0
- package/src/lib/components/atoms/tooltip/tooltip.enums.ts +9 -0
- package/src/lib/components/atoms/video/Video.tsx +33 -0
- package/src/lib/components/atoms/video/index.ts +4 -0
- package/src/lib/components/atoms/video/video.constants.ts +31 -0
- package/src/lib/components/index.ts +6 -0
- package/src/lib/components/molecules/account/Account.tsx +195 -0
- package/src/lib/components/molecules/account/index.ts +4 -0
- package/src/lib/components/molecules/address/Address.tsx +101 -0
- package/src/lib/components/molecules/address/index.ts +4 -0
- package/src/lib/components/molecules/asset-media-renderer/AssetMediaRenderer.tsx +50 -0
- package/src/lib/components/molecules/asset-media-renderer/index.ts +4 -0
- package/src/lib/components/molecules/card/Card.tsx +70 -0
- package/src/lib/components/molecules/card/CardAction.tsx +78 -0
- package/src/lib/components/molecules/card/CardBody.tsx +73 -0
- package/src/lib/components/molecules/card/CardImage.tsx +43 -0
- package/src/lib/components/molecules/card/CardImagePlaceholder.tsx +146 -0
- package/src/lib/components/molecules/card/card.classes.ts +27 -0
- package/src/lib/components/molecules/card/card.enums.ts +26 -0
- package/src/lib/components/molecules/card/index.ts +8 -0
- package/src/lib/components/molecules/chip/Chip.tsx +146 -0
- package/src/lib/components/molecules/chip/chip.classes.ts +54 -0
- package/src/lib/components/molecules/chip/chip.enums.ts +15 -0
- package/src/lib/components/molecules/chip/index.ts +5 -0
- package/src/lib/components/molecules/display-stats/DisplayStats.tsx +142 -0
- package/src/lib/components/molecules/display-stats/displayStats.classes.ts +36 -0
- package/src/lib/components/molecules/display-stats/displayStats.enums.ts +13 -0
- package/src/lib/components/molecules/display-stats/index.ts +5 -0
- package/src/lib/components/molecules/dropdown/Dropdown.tsx +10 -0
- package/src/lib/components/molecules/dropdown/dropdownPosition.enums.ts +7 -0
- package/src/lib/components/molecules/dropdown/index.ts +5 -0
- package/src/lib/components/molecules/index.ts +19 -0
- package/src/lib/components/molecules/input/Input.tsx +261 -0
- package/src/lib/components/molecules/input/InputWrapper.tsx +97 -0
- package/src/lib/components/molecules/input/TextArea.tsx +148 -0
- package/src/lib/components/molecules/input/index.ts +8 -0
- package/src/lib/components/molecules/input/input.classes.ts +13 -0
- package/src/lib/components/molecules/input/input.enums.ts +14 -0
- package/src/lib/components/molecules/input/input.types.ts +29 -0
- package/src/lib/components/molecules/navbar-item/NavbarItem.tsx +47 -0
- package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +65 -0
- package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +54 -0
- package/src/lib/components/molecules/navbar-item/index.ts +5 -0
- package/src/lib/components/molecules/navbar-item/navbarItem.classes.ts +16 -0
- package/src/lib/components/molecules/navbar-item/navbarItem.enums.ts +7 -0
- package/src/lib/components/molecules/search/Search.tsx +219 -0
- package/src/lib/components/molecules/search/index.ts +5 -0
- package/src/lib/components/molecules/search/search.classes.ts +20 -0
- package/src/lib/components/molecules/search/search.enums.ts +7 -0
- package/src/lib/components/molecules/segmented-button/SegmentedButton.tsx +38 -0
- package/src/lib/components/molecules/segmented-button/index.ts +6 -0
- package/src/lib/components/molecules/segmented-button/segmentedButton.classes.ts +12 -0
- package/src/lib/components/molecules/segmented-button/segmentedButton.enums.ts +8 -0
- package/src/lib/components/molecules/select/Select.tsx +235 -0
- package/src/lib/components/molecules/select/index.ts +5 -0
- package/src/lib/components/molecules/select/select.enums.ts +7 -0
- package/src/lib/components/molecules/table-cell/TableCell.tsx +62 -0
- package/src/lib/components/molecules/table-cell/index.ts +4 -0
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +140 -0
- package/src/lib/components/molecules/table-header-cell/index.ts +5 -0
- package/src/lib/components/molecules/table-header-cell/tableHeaderCell.enums.ts +7 -0
- package/src/lib/components/molecules/title/Title.tsx +78 -0
- package/src/lib/components/molecules/title/index.ts +5 -0
- package/src/lib/components/molecules/title/titleClasses.constants.ts +14 -0
- package/src/lib/components/molecules/title/titleSize.enums.ts +7 -0
- package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +89 -0
- package/src/lib/components/molecules/visual-asset-card/index.ts +5 -0
- package/src/lib/components/molecules/visual-asset-card/visualAssetCard.enums.ts +7 -0
- package/src/lib/components/organisms/accordion/Accordion.tsx +108 -0
- package/src/lib/components/organisms/accordion/accordion.classes.ts +4 -0
- package/src/lib/components/organisms/accordion/index.ts +4 -0
- package/src/lib/components/organisms/dialog/Dialog.tsx +157 -0
- package/src/lib/components/organisms/dialog/dialog.enums.ts +7 -0
- package/src/lib/components/organisms/dialog/index.ts +5 -0
- package/src/lib/components/organisms/index.ts +7 -0
- package/src/lib/components/organisms/navbar/Navbar.tsx +101 -0
- package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +59 -0
- package/src/lib/components/organisms/navbar/index.ts +5 -0
- package/src/lib/components/organisms/table/Table.tsx +234 -0
- package/src/lib/components/organisms/table/TableContext.tsx +56 -0
- package/src/lib/components/organisms/table/index.ts +4 -0
- package/src/lib/constants/colors.constants.ts +239 -0
- package/src/lib/constants/index.ts +4 -0
- package/src/lib/enums/index.ts +5 -0
- package/src/lib/enums/screenSize.enums.ts +9 -0
- package/src/lib/enums/theme.enums.ts +8 -0
- package/src/lib/index.ts +10 -0
- package/src/lib/styles/base.css +144 -0
- package/src/lib/styles/components.css +735 -0
- package/src/lib/styles/fonts.css +7 -0
- package/src/lib/styles/index.css +18 -0
- package/src/lib/styles/utilities.css +61 -0
- package/src/lib/styles/variables/dark-variables.css +262 -0
- package/src/lib/styles/variables/general-variables.css +9 -0
- package/src/lib/styles/variables/light-variables.css +276 -0
- package/src/lib/styles/variables/names-variables.css +270 -0
- package/src/lib/tailwind/base.presets.ts +58 -0
- package/src/lib/tailwind/constants/customColors.constants.ts +13 -0
- package/src/lib/tailwind/constants/fontFamily.constants.ts +8 -0
- package/src/lib/tailwind/constants/fontSizes.constants.ts +201 -0
- package/src/lib/tailwind/constants/gradients.constants.ts +6 -0
- package/src/lib/tailwind/constants/index.ts +7 -0
- package/src/lib/tailwind/constants/scaling.constants.ts +41 -0
- package/src/lib/tailwind/constants/variableSpacing.constants.ts +66 -0
- package/src/lib/tailwind/helpers.ts +20 -0
- package/src/lib/tailwind/index.ts +5 -0
- package/src/lib/tailwind/plugins.ts +12 -0
- package/src/lib/tailwind/responsive.presets.ts +36 -0
- package/src/lib/tailwind/static.presets.ts +25 -0
- package/src/lib/tailwind/types.ts +6 -0
- package/src/lib/utils/format.ts +8 -0
- package/src/lib/utils/index.ts +4 -0
- package/src/storybook/blocks/Showcase.tsx +20 -0
- package/src/storybook/blocks/TypeSet.tsx +34 -0
- package/src/storybook/blocks/TypeSetItem.tsx +74 -0
- package/src/storybook/blocks/index.ts +6 -0
- package/src/storybook/constants/gradients.constants.ts +8 -0
- package/src/storybook/constants/index.ts +5 -0
- package/src/storybook/constants/typeset.constants.ts +39 -0
- package/src/storybook/constants/variableSpacing.constants.ts +6 -0
- package/src/storybook/helpers/formatGradientNames.ts +15 -0
- package/src/storybook/helpers/getFontSizeLabel.ts +15 -0
- package/src/storybook/helpers/index.ts +4 -0
- package/src/storybook/stories/atoms/Badge.stories.tsx +32 -0
- package/src/storybook/stories/atoms/Button.stories.tsx +45 -0
- package/src/storybook/stories/atoms/ButtonSegment.stories.tsx +45 -0
- package/src/storybook/stories/atoms/Checkbox.stories.tsx +34 -0
- package/src/storybook/stories/atoms/CustomScrollbar.stories.tsx +22 -0
- package/src/storybook/stories/atoms/Divider.stories.tsx +41 -0
- package/src/storybook/stories/atoms/Header.stories.tsx +58 -0
- package/src/storybook/stories/atoms/InfoBox.stories.tsx +67 -0
- package/src/storybook/stories/atoms/KeyValueInfo.stories.tsx +59 -0
- package/src/storybook/stories/atoms/LabelText.stories.tsx +55 -0
- package/src/storybook/stories/atoms/ListItem.stories.tsx +41 -0
- package/src/storybook/stories/atoms/LoadingIndicator.stories.tsx +32 -0
- package/src/storybook/stories/atoms/Panel.stories.tsx +36 -0
- package/src/storybook/stories/atoms/Placeholder.stories.tsx +33 -0
- package/src/storybook/stories/atoms/RadioButton.stories.tsx +51 -0
- package/src/storybook/stories/atoms/Skeleton.stories.tsx +33 -0
- package/src/storybook/stories/atoms/Snackbar.stories.tsx +43 -0
- package/src/storybook/stories/atoms/Toggle.stories.tsx +59 -0
- package/src/storybook/stories/atoms/Tooltip.stories.tsx +59 -0
- package/src/storybook/stories/atoms/VisualAssetCard.stories.tsx +57 -0
- package/src/storybook/stories/components/DocsSyncTheme.tsx +20 -0
- package/src/storybook/stories/components/VariableSpacingShowcase.tsx +46 -0
- package/src/storybook/stories/components/index.ts +5 -0
- package/src/storybook/stories/design-tokens/colors.stories.mdx +44 -0
- package/src/storybook/stories/design-tokens/icons.stories.mdx +19 -0
- package/src/storybook/stories/design-tokens/typeset.stories.mdx +17 -0
- package/src/storybook/stories/design-tokens/variable-spacing.stories.mdx +11 -0
- package/src/storybook/stories/molecules/Account.stories.tsx +71 -0
- package/src/storybook/stories/molecules/Address.stories.tsx +39 -0
- package/src/storybook/stories/molecules/Card.stories.tsx +112 -0
- package/src/storybook/stories/molecules/Chip.stories.tsx +127 -0
- package/src/storybook/stories/molecules/DisplayStats.stories.tsx +63 -0
- package/src/storybook/stories/molecules/Dropdown.stories.tsx +38 -0
- package/src/storybook/stories/molecules/Input.stories.tsx +239 -0
- package/src/storybook/stories/molecules/NavbarItem.stories.tsx +45 -0
- package/src/storybook/stories/molecules/Search.stories.tsx +101 -0
- package/src/storybook/stories/molecules/SegmentedButton.stories.tsx +108 -0
- package/src/storybook/stories/molecules/Select.stories.tsx +103 -0
- package/src/storybook/stories/molecules/TableCell.stories.tsx +46 -0
- package/src/storybook/stories/molecules/TableHeaderCell.stories.tsx +34 -0
- package/src/storybook/stories/molecules/TextArea.stories.tsx +80 -0
- package/src/storybook/stories/molecules/Title.stories.tsx +76 -0
- package/src/storybook/stories/organisms/Accordion.stories.tsx +70 -0
- package/src/storybook/stories/organisms/Dialog.stories.tsx +129 -0
- package/src/storybook/stories/organisms/Navbar.stories.tsx +78 -0
- 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
|
+
};
|
package/src/lib/index.ts
ADDED
|
@@ -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
|
+
}
|