@nobak/design-system 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +73 -0
- package/README.md +142 -0
- package/lib/assets/icons.js +67 -0
- package/lib/components/AccountOverview/AccountOverview.js +122 -0
- package/lib/components/AdminPanel.js +58 -0
- package/lib/components/AssetExchange/AssetExchange.js +189 -0
- package/lib/components/AuthenticationFlow.js +216 -0
- package/lib/components/ConversationInterface/ConversationInterface.js +232 -0
- package/lib/components/DevFooter.js +38 -0
- package/lib/components/DevMenu.js +35 -0
- package/lib/components/DevSidebar.js +28 -0
- package/lib/components/DigitalDisplay.js +83 -0
- package/lib/components/Footer.js +45 -0
- package/lib/components/HeroContainer.js +10 -0
- package/lib/components/IntentRecognition/IntentRecognition.js +174 -0
- package/lib/components/Logo.js +259 -0
- package/lib/components/MenuBar.js +56 -0
- package/lib/components/NetworkSettings.js +223 -0
- package/lib/components/RecoverySetup/RecoverySetup.js +354 -0
- package/lib/components/RisingSun.js +122 -0
- package/lib/components/Symbol.js +226 -0
- package/lib/components/TransactionComposer/TransactionComposer.js +258 -0
- package/lib/components/TransactionConfirmation.js +184 -0
- package/lib/components/WalletMenu.js +33 -0
- package/lib/components/console/code/CodeBlock.js +150 -0
- package/lib/components/console/code/index.js +9 -0
- package/lib/components/console/data/DataTable.js +245 -0
- package/lib/components/console/data/MetricCard.js +79 -0
- package/lib/components/console/data/index.js +11 -0
- package/lib/components/console/documentation/index.js +10 -0
- package/lib/components/console/forms/APIKeyGenerator.js +261 -0
- package/lib/components/console/forms/SearchBar.js +210 -0
- package/lib/components/console/forms/index.js +10 -0
- package/lib/components/console/index.js +29 -0
- package/lib/components/console/layout/ConsoleCard.js +82 -0
- package/lib/components/console/layout/ConsoleLayout.js +86 -0
- package/lib/components/console/layout/index.js +10 -0
- package/lib/components/console/monitoring/StatusIndicator.js +128 -0
- package/lib/components/console/monitoring/index.js +9 -0
- package/lib/components/console/navigation/DevFooter.js +38 -0
- package/lib/components/console/navigation/DevMenu.js +35 -0
- package/lib/components/console/navigation/DevSidebar.js +28 -0
- package/lib/components/console/navigation/index.js +11 -0
- package/lib/components/console/settings/index.js +10 -0
- package/lib/components/index.js +12 -0
- package/lib/design/ColorPicker.stories.js +9 -0
- package/lib/design/HSLTool-V1.js +345 -0
- package/lib/design/HSLTool-V2.js +475 -0
- package/lib/design/HSLTool-V3.js +543 -0
- package/lib/design/HSLTool-V4.js +1139 -0
- package/lib/design/HSLTool.js +374 -0
- package/lib/design/OKLCHColorPicker.stories.js +24 -0
- package/lib/design/OKLCHTool.js +1014 -0
- package/lib/index.js +4 -0
- package/lib/shared/components/Avatar/Avatar.js +18 -0
- package/lib/shared/components/Avatar/index.js +1 -0
- package/lib/shared/components/Badge/Badge.js +34 -0
- package/lib/shared/components/Badge/index.js +1 -0
- package/lib/shared/components/Breadcrumb/Breadcrumb.js +13 -0
- package/lib/shared/components/Breadcrumb/index.js +1 -0
- package/lib/shared/components/Button/Button.js +184 -0
- package/lib/shared/components/Button/index.js +1 -0
- package/lib/shared/components/Calendar/Calendar.js +155 -0
- package/lib/shared/components/Calendar/CalendarDay.js +251 -0
- package/lib/shared/components/Calendar/CalendarHeader.js +88 -0
- package/lib/shared/components/Calendar/CalendarMonth.js +106 -0
- package/lib/shared/components/Calendar/CalendarWeek.js +267 -0
- package/lib/shared/components/Calendar/constants.js +73 -0
- package/lib/shared/components/Calendar/index.js +3 -0
- package/lib/shared/components/Calendar/types.d.js +0 -0
- package/lib/shared/components/Cartel/Cartel.js +44 -0
- package/lib/shared/components/Cartel/index.js +1 -0
- package/lib/shared/components/Cell/Cell.js +105 -0
- package/lib/shared/components/Cell/index.js +1 -0
- package/lib/shared/components/Checkbox/Checkbox.js +27 -0
- package/lib/shared/components/Checkbox/index.js +1 -0
- package/lib/shared/components/Clock/Clock.js +6 -0
- package/lib/shared/components/Clock/index.js +1 -0
- package/lib/shared/components/ColorChecker/ColorChecker.js +89 -0
- package/lib/shared/components/ColorChecker/index.js +2 -0
- package/lib/shared/components/ColorChecker/utils.js +159 -0
- package/lib/shared/components/Command/Command.js +95 -0
- package/lib/shared/components/Command/index.js +1 -0
- package/lib/shared/components/Container/Container.js +18 -0
- package/lib/shared/components/Container/index.js +1 -0
- package/lib/shared/components/Cover/Cover.js +17 -0
- package/lib/shared/components/Cover/index.js +1 -0
- package/lib/shared/components/DatePicker/DatePicker.js +52 -0
- package/lib/shared/components/DatePicker/components/Calendar.js +125 -0
- package/lib/shared/components/DatePicker/components/CalendarDay.js +23 -0
- package/lib/shared/components/DatePicker/components/DateWrapper.js +15 -0
- package/lib/shared/components/DatePicker/components/index.js +2 -0
- package/lib/shared/components/DatePicker/index.js +1 -0
- package/lib/shared/components/DateTime/DateTime.js +51 -0
- package/lib/shared/components/DateTime/index.js +1 -0
- package/lib/shared/components/Debug/Debug.js +12 -0
- package/lib/shared/components/Debug/index.js +1 -0
- package/lib/shared/components/Disclosure/Disclosure.js +31 -0
- package/lib/shared/components/Disclosure/index.js +1 -0
- package/lib/shared/components/Dropdown/Dropdown.js +91 -0
- package/lib/shared/components/Dropdown/index.js +1 -0
- package/lib/shared/components/EmptyState/EmptyState.js +40 -0
- package/lib/shared/components/EmptyState/index.js +1 -0
- package/lib/shared/components/Form/Form.js +41 -0
- package/lib/shared/components/Form/components/DynamicForm.js +66 -0
- package/lib/shared/components/Form/components/StepperForm.js +266 -0
- package/lib/shared/components/Form/components/index.js +2 -0
- package/lib/shared/components/Form/context/Form.js +164 -0
- package/lib/shared/components/Form/context/index.js +1 -0
- package/lib/shared/components/Form/index.js +1 -0
- package/lib/shared/components/Form/types.d.js +1 -0
- package/lib/shared/components/Form/utils/index.js +31 -0
- package/lib/shared/components/GroupItems/GroupItems.js +17 -0
- package/lib/shared/components/GroupItems/index.js +1 -0
- package/lib/shared/components/Header/Header.js +26 -0
- package/lib/shared/components/Header/index.js +1 -0
- package/lib/shared/components/Heading/Heading.js +5 -0
- package/lib/shared/components/Heading/index.js +1 -0
- package/lib/shared/components/Icon/Icon.js +28 -0
- package/lib/shared/components/Icon/index.js +1 -0
- package/lib/shared/components/Identicons/Identicons.js +6 -0
- package/lib/shared/components/Identicons/index.d.js +0 -0
- package/lib/shared/components/Identicons/index.js +1 -0
- package/lib/shared/components/Image/Image.js +22 -0
- package/lib/shared/components/Image/index.js +1 -0
- package/lib/shared/components/Input/Input.js +201 -0
- package/lib/shared/components/Input/components/CheckBoxInput.js +81 -0
- package/lib/shared/components/Input/components/DateInput.js +89 -0
- package/lib/shared/components/Input/components/DefaultInput.js +102 -0
- package/lib/shared/components/Input/components/FileReaderInput.js +88 -0
- package/lib/shared/components/Input/components/NumberInput.js +141 -0
- package/lib/shared/components/Input/components/PickerInput.js +122 -0
- package/lib/shared/components/Input/components/RCInput.js +112 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxBasic.js +56 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxCard.js +27 -0
- package/lib/shared/components/Input/components/Radiobox/RadioboxFull.js +44 -0
- package/lib/shared/components/Input/components/Radiobox/index.js +3 -0
- package/lib/shared/components/Input/components/RadioboxInput.js +102 -0
- package/lib/shared/components/Input/components/SelectInput.js +70 -0
- package/lib/shared/components/Input/components/TextAreaInput.js +67 -0
- package/lib/shared/components/Input/components/TextInput.js +139 -0
- package/lib/shared/components/Input/components/TimeInput.js +37 -0
- package/lib/shared/components/Input/components/UploadFileInput.js +123 -0
- package/lib/shared/components/Input/components/index.js +13 -0
- package/lib/shared/components/Input/components/types.d.js +0 -0
- package/lib/shared/components/Input/index.js +1 -0
- package/lib/shared/components/Input/types.d.js +0 -0
- package/lib/shared/components/Layout/Layout.js +13 -0
- package/lib/shared/components/Layout/index.js +1 -0
- package/lib/shared/components/List/List.js +30 -0
- package/lib/shared/components/List/index.js +1 -0
- package/lib/shared/components/Loader/Loader.js +27 -0
- package/lib/shared/components/Loader/index.js +1 -0
- package/lib/shared/components/Modal/Modal.js +102 -0
- package/lib/shared/components/Modal/index.js +1 -0
- package/lib/shared/components/Notification/Notification.js +39 -0
- package/lib/shared/components/Notification/index.js +1 -0
- package/lib/shared/components/Person/Person.js +81 -0
- package/lib/shared/components/Person/index.js +1 -0
- package/lib/shared/components/Popover/Popover.js +39 -0
- package/lib/shared/components/Popover/index.js +1 -0
- package/lib/shared/components/QRCode/QRCode.js +329 -0
- package/lib/shared/components/QRCode/index.js +1 -0
- package/lib/shared/components/RadioGroup/RadioGroup.js +35 -0
- package/lib/shared/components/RadioGroup/components/DefaultGroup.js +71 -0
- package/lib/shared/components/RadioGroup/components/VerticalGroup.js +83 -0
- package/lib/shared/components/RadioGroup/components/index.js +2 -0
- package/lib/shared/components/RadioGroup/index.js +1 -0
- package/lib/shared/components/Search/Search.js +12 -0
- package/lib/shared/components/Search/index.js +1 -0
- package/lib/shared/components/Select/Select.js +90 -0
- package/lib/shared/components/Select/index.js +1 -0
- package/lib/shared/components/Sidebar/Sidebar.js +42 -0
- package/lib/shared/components/Sidebar/index.js +1 -0
- package/lib/shared/components/SlideOver/SlideOver.js +81 -0
- package/lib/shared/components/SlideOver/index.js +1 -0
- package/lib/shared/components/Slider/Slider.js +80 -0
- package/lib/shared/components/Slider/index.js +1 -0
- package/lib/shared/components/Stepper/Stepper.js +32 -0
- package/lib/shared/components/Stepper/index.js +1 -0
- package/lib/shared/components/Steps/Steps.js +53 -0
- package/lib/shared/components/Steps/index.js +1 -0
- package/lib/shared/components/Switch/Switch.js +26 -0
- package/lib/shared/components/Switch/index.js +1 -0
- package/lib/shared/components/Tab/Tab.js +59 -0
- package/lib/shared/components/Tab/index.js +1 -0
- package/lib/shared/components/Table/Table.js +47 -0
- package/lib/shared/components/Table/index.js +1 -0
- package/lib/shared/components/Text/Text.js +11 -0
- package/lib/shared/components/Text/index.js +1 -0
- package/lib/shared/components/TextList/TextList.js +15 -0
- package/lib/shared/components/TextList/index.js +1 -0
- package/lib/shared/components/TimePicker/TimePicker.js +161 -0
- package/lib/shared/components/TimePicker/index.js +1 -0
- package/lib/shared/components/Tooltip/Tooltip.js +13 -0
- package/lib/shared/components/Tooltip/index.js +1 -0
- package/lib/shared/components/Uploader/Uploader.js +63 -0
- package/lib/shared/components/Uploader/index.js +1 -0
- package/lib/shared/components/Video/Video.js +20 -0
- package/lib/shared/components/Video/index.js +1 -0
- package/lib/shared/components/index.d.js +0 -0
- package/lib/shared/components/index.js +50 -0
- package/lib/shared/elements/Color/ColorPallet.js +20 -0
- package/lib/shared/elements/Color/index.js +1 -0
- package/lib/shared/elements/Text.js +37 -0
- package/lib/shared/elements/index.js +1 -0
- package/lib/shared/helpers/FakeLink.js +8 -0
- package/lib/shared/helpers/constants.js +359 -0
- package/lib/shared/helpers/index.js +2 -0
- package/lib/shared/helpers/isEqual.js +56 -0
- package/lib/shared/index.d.js +0 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/stories/components/Avatar.stories.js +17 -0
- package/lib/shared/stories/components/Badge.stories.dev.js +37 -0
- package/lib/shared/stories/components/Button.stories.js +553 -0
- package/lib/shared/stories/components/Calendar.stories.js +62 -0
- package/lib/shared/stories/components/Cartel.stories.js +32 -0
- package/lib/shared/stories/components/Checkbox.stories.js +15 -0
- package/lib/shared/stories/components/ColorChecker.stories.dev.js +16 -0
- package/lib/shared/stories/components/DateTime.stories.js +27 -0
- package/lib/shared/stories/components/Disclosure.stories.js +30 -0
- package/lib/shared/stories/components/Dropdown.stories.js +39 -0
- package/lib/shared/stories/components/Form/Default.stories.js +201 -0
- package/lib/shared/stories/components/Form/DummyForm.stories.js +48 -0
- package/lib/shared/stories/components/Form/DynamicForm.stories.js +155 -0
- package/lib/shared/stories/components/Form/StepperForm.stories.js +138 -0
- package/lib/shared/stories/components/Form/ValidateForm.stories.js +70 -0
- package/lib/shared/stories/components/Form/Validation.stories.js +184 -0
- package/lib/shared/stories/components/GroupItems.stories.js +23 -0
- package/lib/shared/stories/components/Header.stories.js +29 -0
- package/lib/shared/stories/components/Heading.stories.js +27 -0
- package/lib/shared/stories/components/Icon.stories.js +22 -0
- package/lib/shared/stories/components/Image.stories.js +23 -0
- package/lib/shared/stories/components/Input/Checkbox.stories.js +45 -0
- package/lib/shared/stories/components/Input/DatePicker.stories.js +23 -0
- package/lib/shared/stories/components/Input/Defaut.stories.js +24 -0
- package/lib/shared/stories/components/Input/Number.stories.js +24 -0
- package/lib/shared/stories/components/Input/RCI.stories.js +59 -0
- package/lib/shared/stories/components/Input/Radiobox.stories.dev.js +28 -0
- package/lib/shared/stories/components/Input/Select.stories.dev.js +27 -0
- package/lib/shared/stories/components/Input/SelectMultiple.stories.dev.js +510 -0
- package/lib/shared/stories/components/Input/Textarea.stories.js +24 -0
- package/lib/shared/stories/components/List.stories.js +34 -0
- package/lib/shared/stories/components/Loader.stories.js +15 -0
- package/lib/shared/stories/components/Modal.stories.js +50 -0
- package/lib/shared/stories/components/Notification.stories.js +22 -0
- package/lib/shared/stories/components/Person.stories.js +41 -0
- package/lib/shared/stories/components/Picker.stories.js +15 -0
- package/lib/shared/stories/components/Popover.stories.js +36 -0
- package/lib/shared/stories/components/QRCode.stories.js +20 -0
- package/lib/shared/stories/components/RadioGroup.stories.js +56 -0
- package/lib/shared/stories/components/Select.stories.js +50 -0
- package/lib/shared/stories/components/Sidebar.stories.js +35 -0
- package/lib/shared/stories/components/Slider.stories.dev.js +48 -0
- package/lib/shared/stories/components/Stepper/Stepper.stories.js +38 -0
- package/lib/shared/stories/components/Steps.stories.js +15 -0
- package/lib/shared/stories/components/Switch.stories.js +15 -0
- package/lib/shared/stories/components/Tab.stories.js +15 -0
- package/lib/shared/stories/components/Table.stories.js +95 -0
- package/lib/shared/stories/components/TextList.stories.js +23 -0
- package/lib/shared/stories/components/Tooltip.stories.dev.js +40 -0
- package/lib/shared/stories/elements/Color.stories.js +269 -0
- package/lib/shared/stories/elements/Text.stories.js +45 -0
- package/lib/shared/types/index.js +1 -0
- package/lib/stories/Foundation/BrandIdentity.prod.stories.js +510 -0
- package/lib/stories/Foundation/Logo.stories.js +19 -0
- package/lib/stories/Foundation/RisingSun.stories.js +16 -0
- package/lib/stories/Foundation/Shadows.stories.js +601 -0
- package/lib/stories/Foundation/Symbol.stories.js +18 -0
- package/lib/stories/HeroContainer.stories.js +18 -0
- package/lib/styles/accessibilityTokens.js +72 -0
- package/lib/styles/borderWidth.js +10 -0
- package/lib/styles/colors.js +303 -0
- package/lib/styles/elevation.js +240 -0
- package/lib/styles/icons.js +218 -0
- package/lib/styles/index.js +29 -0
- package/lib/styles/motion.js +668 -0
- package/lib/styles/opacity.js +10 -0
- package/lib/styles/radius.js +11 -0
- package/lib/styles/sizing.js +35 -0
- package/lib/styles/space.js +24 -0
- package/lib/styles/theme/darkTheme.js +471 -0
- package/lib/styles/theme/index.js +44 -0
- package/lib/styles/theme/lightTheme.js +480 -0
- package/lib/styles/theme/themeTypes.js +1 -0
- package/lib/styles/theme/themeUtils.js +63 -0
- package/lib/styles/typography-advanced.js +510 -0
- package/lib/styles/typography.js +1419 -0
- package/lib/styles/zIndex.js +19 -0
- package/lib/tokens/borders.js +161 -0
- package/lib/tokens/colors.js +426 -0
- package/lib/tokens/components.js +499 -0
- package/lib/tokens/index.js +84 -0
- package/lib/tokens/lighting.js +384 -0
- package/lib/tokens/motion.js +284 -0
- package/lib/tokens/semantic.js +367 -0
- package/lib/tokens/shadows.js +114 -0
- package/lib/tokens/spacing.js +189 -0
- package/lib/tokens/typography.js +268 -0
- package/package.json +176 -0
- package/styles/generated-tokens.css +677 -0
- package/styles/index.css +2 -0
- package/styles/main.css +610 -0
- package/tailwind.config.js +64 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component size scales with consistent naming
|
|
3
|
+
*/
|
|
4
|
+
export var sizing = {
|
|
5
|
+
// Height scales
|
|
6
|
+
height: {
|
|
7
|
+
small: 32,
|
|
8
|
+
medium: 40,
|
|
9
|
+
large: 48,
|
|
10
|
+
extraLarge: 56
|
|
11
|
+
},
|
|
12
|
+
// Width scales
|
|
13
|
+
width: {
|
|
14
|
+
small: 120,
|
|
15
|
+
medium: 200,
|
|
16
|
+
large: 280,
|
|
17
|
+
extraLarge: 360,
|
|
18
|
+
full: '100%'
|
|
19
|
+
},
|
|
20
|
+
// Icon sizes
|
|
21
|
+
icon: {
|
|
22
|
+
small: 16,
|
|
23
|
+
medium: 24,
|
|
24
|
+
large: 32,
|
|
25
|
+
extraLarge: 40
|
|
26
|
+
},
|
|
27
|
+
// Avatar sizes
|
|
28
|
+
avatar: {
|
|
29
|
+
small: 24,
|
|
30
|
+
medium: 32,
|
|
31
|
+
large: 40,
|
|
32
|
+
extraLarge: 48,
|
|
33
|
+
jumbo: 64
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* space scale following predictable numerical pattern
|
|
3
|
+
* Uses flat naming structure with consistent scale increments
|
|
4
|
+
*/
|
|
5
|
+
export var space = {
|
|
6
|
+
0: 0,
|
|
7
|
+
25: 2,
|
|
8
|
+
50: 4,
|
|
9
|
+
75: 6,
|
|
10
|
+
100: 8,
|
|
11
|
+
200: 16,
|
|
12
|
+
300: 24,
|
|
13
|
+
400: 32,
|
|
14
|
+
500: 40,
|
|
15
|
+
600: 48,
|
|
16
|
+
700: 56,
|
|
17
|
+
800: 64,
|
|
18
|
+
1000: 80,
|
|
19
|
+
1200: 96,
|
|
20
|
+
1600: 128,
|
|
21
|
+
2000: 160,
|
|
22
|
+
2400: 192,
|
|
23
|
+
3200: 256
|
|
24
|
+
};
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
// src/styles/theme/darkTheme.ts
|
|
8
|
+
// Dark Theme Definition
|
|
9
|
+
// Uses the global tokens and semantic tokens to define the dark theme
|
|
10
|
+
|
|
11
|
+
import { colors } from "../colors";
|
|
12
|
+
|
|
13
|
+
// Import types from ./types
|
|
14
|
+
|
|
15
|
+
var globalTokens = {
|
|
16
|
+
colors: colors.global
|
|
17
|
+
};
|
|
18
|
+
import { createThemeUtils } from "./themeUtils";
|
|
19
|
+
// ===========================
|
|
20
|
+
// DARK THEME SEMANTIC TOKENS
|
|
21
|
+
// ===========================
|
|
22
|
+
|
|
23
|
+
var darkSemanticTokens = {
|
|
24
|
+
background: {
|
|
25
|
+
"default": colors.global.gray[1000],
|
|
26
|
+
surface: colors.global.gray[900],
|
|
27
|
+
subtle: colors.global.gray[800],
|
|
28
|
+
overlay: colors.global.gray[700],
|
|
29
|
+
elevated: colors.global.gray[600],
|
|
30
|
+
inverse: colors.global.gray[100]
|
|
31
|
+
},
|
|
32
|
+
content: {
|
|
33
|
+
primary: colors.global.blue[100],
|
|
34
|
+
secondary: colors.global.blue[200],
|
|
35
|
+
tertiary: colors.global.blue[300],
|
|
36
|
+
disabled: colors.global.blue[400],
|
|
37
|
+
inverse: colors.global.blue[500],
|
|
38
|
+
link: colors.global.blue[600]
|
|
39
|
+
},
|
|
40
|
+
border: {
|
|
41
|
+
"default": colors.global.blue[700],
|
|
42
|
+
subtle: colors.global.blue[800],
|
|
43
|
+
strong: colors.global.blue[900],
|
|
44
|
+
focus: colors.global.blue[1000],
|
|
45
|
+
inverse: colors.global.blue[100]
|
|
46
|
+
},
|
|
47
|
+
interactive: {
|
|
48
|
+
primary: {
|
|
49
|
+
"default": colors.global.blue[100],
|
|
50
|
+
hover: colors.global.blue[200],
|
|
51
|
+
pressed: colors.global.blue[300],
|
|
52
|
+
disabled: colors.global.blue[400]
|
|
53
|
+
},
|
|
54
|
+
secondary: {
|
|
55
|
+
"default": colors.global.blue[500],
|
|
56
|
+
hover: colors.global.blue[600],
|
|
57
|
+
pressed: colors.global.blue[700],
|
|
58
|
+
disabled: colors.global.blue[800]
|
|
59
|
+
},
|
|
60
|
+
tertiary: {
|
|
61
|
+
"default": colors.global.blue[900],
|
|
62
|
+
hover: colors.global.blue[1000],
|
|
63
|
+
pressed: colors.global.blue[1000],
|
|
64
|
+
disabled: colors.global.blue[1100]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
status: {
|
|
68
|
+
info: {
|
|
69
|
+
background: colors.global.blue[100],
|
|
70
|
+
border: colors.global.blue[200],
|
|
71
|
+
content: colors.global.blue[300],
|
|
72
|
+
icon: colors.global.blue[400]
|
|
73
|
+
},
|
|
74
|
+
success: {
|
|
75
|
+
background: colors.global.emerald[100],
|
|
76
|
+
border: colors.global.emerald[200],
|
|
77
|
+
content: colors.global.emerald[300],
|
|
78
|
+
icon: colors.global.emerald[400]
|
|
79
|
+
},
|
|
80
|
+
warning: {
|
|
81
|
+
background: colors.global.amber[100],
|
|
82
|
+
border: colors.global.amber[200],
|
|
83
|
+
content: colors.global.amber[300],
|
|
84
|
+
icon: colors.global.amber[400]
|
|
85
|
+
},
|
|
86
|
+
error: {
|
|
87
|
+
background: colors.global.red[100],
|
|
88
|
+
border: colors.global.red[200],
|
|
89
|
+
content: colors.global.red[300],
|
|
90
|
+
icon: colors.global.red[400]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// ===========================
|
|
96
|
+
// DARK THEME FINTECH TOKENS
|
|
97
|
+
// ===========================
|
|
98
|
+
|
|
99
|
+
var darkFintechTokens = {
|
|
100
|
+
market: {
|
|
101
|
+
profit: {
|
|
102
|
+
primary: colors.global.emerald[100],
|
|
103
|
+
background: colors.global.emerald[200],
|
|
104
|
+
border: colors.global.emerald[300]
|
|
105
|
+
},
|
|
106
|
+
loss: {
|
|
107
|
+
primary: colors.global.red[100],
|
|
108
|
+
background: colors.global.red[200],
|
|
109
|
+
border: colors.global.red[300]
|
|
110
|
+
},
|
|
111
|
+
neutral: {
|
|
112
|
+
primary: colors.global.blue[100],
|
|
113
|
+
background: colors.global.blue[200],
|
|
114
|
+
border: colors.global.blue[300]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
transaction: {
|
|
118
|
+
pending: {
|
|
119
|
+
primary: colors.global.amber[100],
|
|
120
|
+
background: colors.global.amber[200],
|
|
121
|
+
border: colors.global.amber[300]
|
|
122
|
+
},
|
|
123
|
+
processing: {
|
|
124
|
+
primary: colors.global.blue[100],
|
|
125
|
+
background: colors.global.blue[200],
|
|
126
|
+
border: colors.global.blue[300]
|
|
127
|
+
},
|
|
128
|
+
completed: {
|
|
129
|
+
primary: colors.global.emerald[100],
|
|
130
|
+
background: colors.global.emerald[200],
|
|
131
|
+
border: colors.global.emerald[300]
|
|
132
|
+
},
|
|
133
|
+
failed: {
|
|
134
|
+
primary: colors.global.red[100],
|
|
135
|
+
background: colors.global.red[200],
|
|
136
|
+
border: colors.global.red[300]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
risk: {
|
|
140
|
+
veryLow: colors.global.emerald[100],
|
|
141
|
+
low: colors.global.emerald[200],
|
|
142
|
+
medium: colors.global.emerald[300],
|
|
143
|
+
high: colors.global.orange[100],
|
|
144
|
+
veryHigh: colors.global.orange[200],
|
|
145
|
+
critical: colors.global.orange[300]
|
|
146
|
+
},
|
|
147
|
+
security: {
|
|
148
|
+
verified: {
|
|
149
|
+
primary: colors.global.emerald[100],
|
|
150
|
+
background: colors.global.emerald[200],
|
|
151
|
+
border: colors.global.emerald[300]
|
|
152
|
+
},
|
|
153
|
+
unverified: {
|
|
154
|
+
primary: colors.global.orange[100],
|
|
155
|
+
background: colors.global.orange[200],
|
|
156
|
+
border: colors.global.orange[300]
|
|
157
|
+
},
|
|
158
|
+
secure: {
|
|
159
|
+
primary: colors.global.emerald[100],
|
|
160
|
+
background: colors.global.emerald[200],
|
|
161
|
+
border: colors.global.emerald[300]
|
|
162
|
+
},
|
|
163
|
+
warning: {
|
|
164
|
+
primary: colors.global.orange[100],
|
|
165
|
+
background: colors.global.orange[200],
|
|
166
|
+
border: colors.global.orange[300]
|
|
167
|
+
},
|
|
168
|
+
critical: {
|
|
169
|
+
primary: colors.global.red[100],
|
|
170
|
+
background: colors.global.red[200],
|
|
171
|
+
border: colors.global.red[300]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
account: {
|
|
175
|
+
basic: colors.global.blue[100],
|
|
176
|
+
premium: colors.global.blue[200],
|
|
177
|
+
vip: colors.global.blue[300]
|
|
178
|
+
},
|
|
179
|
+
chart: {
|
|
180
|
+
primary: [colors.global.blue[100], colors.global.blue[200], colors.global.blue[300], colors.global.blue[400], colors.global.blue[500]],
|
|
181
|
+
sequential: [colors.global.blue[100], colors.global.blue[200], colors.global.blue[300], colors.global.blue[400], colors.global.blue[500], colors.global.blue[600], colors.global.blue[700], colors.global.blue[800]],
|
|
182
|
+
categorical: [colors.global.blue[100], colors.global.blue[200], colors.global.blue[300], colors.global.blue[400], colors.global.blue[500], colors.global.blue[600], colors.global.blue[700], colors.global.blue[800]]
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
// ===========================
|
|
187
|
+
// DARK THEME COMPONENT TOKENS
|
|
188
|
+
// ===========================
|
|
189
|
+
|
|
190
|
+
var darkComponentTokens = {
|
|
191
|
+
button: {
|
|
192
|
+
primary: {
|
|
193
|
+
background: colors.global.blue[100],
|
|
194
|
+
backgroundHover: colors.global.blue[200],
|
|
195
|
+
backgroundPressed: colors.global.blue[300],
|
|
196
|
+
backgroundDisabled: colors.global.blue[400],
|
|
197
|
+
content: colors.global.blue[500],
|
|
198
|
+
contentDisabled: colors.global.blue[600],
|
|
199
|
+
border: colors.global.blue[700]
|
|
200
|
+
},
|
|
201
|
+
secondary: {
|
|
202
|
+
background: colors.global.blue[800],
|
|
203
|
+
backgroundHover: colors.global.blue[900],
|
|
204
|
+
backgroundPressed: colors.global.blue[1000],
|
|
205
|
+
backgroundDisabled: colors.global.blue[1100],
|
|
206
|
+
content: colors.global.blue[1200],
|
|
207
|
+
contentDisabled: colors.global.blue[1300],
|
|
208
|
+
border: colors.global.blue[1400]
|
|
209
|
+
},
|
|
210
|
+
tertiary: {
|
|
211
|
+
background: colors.global.blue[1500],
|
|
212
|
+
backgroundHover: colors.global.blue[1600],
|
|
213
|
+
backgroundPressed: colors.global.blue[1700],
|
|
214
|
+
backgroundDisabled: colors.global.blue[1800],
|
|
215
|
+
content: colors.global.blue[100],
|
|
216
|
+
contentDisabled: colors.global.blue[200],
|
|
217
|
+
border: colors.global.blue[300]
|
|
218
|
+
},
|
|
219
|
+
destructive: {
|
|
220
|
+
background: colors.global.red[100],
|
|
221
|
+
backgroundHover: colors.global.red[200],
|
|
222
|
+
backgroundPressed: colors.global.red[300],
|
|
223
|
+
backgroundDisabled: colors.global.red[400],
|
|
224
|
+
content: colors.global.red[500],
|
|
225
|
+
contentDisabled: colors.global.red[600],
|
|
226
|
+
border: colors.global.red[700]
|
|
227
|
+
},
|
|
228
|
+
link: {
|
|
229
|
+
background: colors.global.blue[100],
|
|
230
|
+
backgroundHover: colors.global.blue[200],
|
|
231
|
+
backgroundPressed: colors.global.blue[300],
|
|
232
|
+
backgroundDisabled: colors.global.blue[400],
|
|
233
|
+
content: colors.global.blue[500],
|
|
234
|
+
contentDisabled: colors.global.blue[600],
|
|
235
|
+
border: colors.global.blue[700]
|
|
236
|
+
},
|
|
237
|
+
success: {
|
|
238
|
+
background: colors.global.emerald[100],
|
|
239
|
+
backgroundHover: colors.global.emerald[200],
|
|
240
|
+
backgroundPressed: colors.global.emerald[300],
|
|
241
|
+
backgroundDisabled: colors.global.emerald[400],
|
|
242
|
+
content: colors.global.emerald[500],
|
|
243
|
+
contentDisabled: colors.global.emerald[600],
|
|
244
|
+
border: colors.global.emerald[700]
|
|
245
|
+
},
|
|
246
|
+
warning: {
|
|
247
|
+
background: colors.global.amber[100],
|
|
248
|
+
backgroundHover: colors.global.amber[200],
|
|
249
|
+
backgroundPressed: colors.global.amber[300],
|
|
250
|
+
backgroundDisabled: colors.global.amber[400],
|
|
251
|
+
content: colors.global.amber[500],
|
|
252
|
+
contentDisabled: colors.global.amber[600],
|
|
253
|
+
border: colors.global.amber[700]
|
|
254
|
+
},
|
|
255
|
+
ghost: {
|
|
256
|
+
background: colors.global["static"].transparent,
|
|
257
|
+
backgroundHover: colors.global["static"].transparent,
|
|
258
|
+
backgroundPressed: colors.global["static"].transparent,
|
|
259
|
+
backgroundDisabled: colors.global["static"].transparent,
|
|
260
|
+
content: colors.global.blue[500],
|
|
261
|
+
contentDisabled: colors.global.gray[400],
|
|
262
|
+
border: colors.global["static"].transparent
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
input: {
|
|
266
|
+
background: colors.global.blue[100],
|
|
267
|
+
backgroundDisabled: colors.global.blue[200],
|
|
268
|
+
content: colors.global.blue[300],
|
|
269
|
+
contentPlaceholder: colors.global.blue[400],
|
|
270
|
+
contentDisabled: colors.global.blue[500],
|
|
271
|
+
border: colors.global.blue[600],
|
|
272
|
+
borderFocus: colors.global.blue[700],
|
|
273
|
+
borderError: colors.global.red[100],
|
|
274
|
+
borderDisabled: colors.global.blue[800]
|
|
275
|
+
},
|
|
276
|
+
card: {
|
|
277
|
+
background: colors.global.blue[100],
|
|
278
|
+
backgroundHover: colors.global.blue[200],
|
|
279
|
+
backgroundPressed: colors.global.blue[300],
|
|
280
|
+
content: colors.global.blue[400],
|
|
281
|
+
border: colors.global.blue[500]
|
|
282
|
+
},
|
|
283
|
+
navigation: {
|
|
284
|
+
background: colors.global.blue[100],
|
|
285
|
+
item: {
|
|
286
|
+
"default": colors.global.blue[200],
|
|
287
|
+
hover: colors.global.blue[300],
|
|
288
|
+
active: colors.global.blue[400],
|
|
289
|
+
disabled: colors.global.blue[500]
|
|
290
|
+
},
|
|
291
|
+
border: colors.global.blue[600]
|
|
292
|
+
},
|
|
293
|
+
modal: {
|
|
294
|
+
background: colors.global.blue[100],
|
|
295
|
+
overlay: colors.global.blue[200],
|
|
296
|
+
content: colors.global.blue[300],
|
|
297
|
+
border: colors.global.blue[400]
|
|
298
|
+
},
|
|
299
|
+
checkbox: {
|
|
300
|
+
background: colors.global.blue[100],
|
|
301
|
+
backgroundChecked: colors.global.blue[200],
|
|
302
|
+
backgroundDisabled: colors.global.blue[300],
|
|
303
|
+
border: colors.global.blue[400],
|
|
304
|
+
borderChecked: colors.global.blue[500],
|
|
305
|
+
borderDisabled: colors.global.blue[600],
|
|
306
|
+
icon: colors.global.blue[700],
|
|
307
|
+
iconDisabled: colors.global.blue[800]
|
|
308
|
+
},
|
|
309
|
+
radio: {
|
|
310
|
+
background: colors.global.blue[100],
|
|
311
|
+
backgroundChecked: colors.global.blue[200],
|
|
312
|
+
backgroundDisabled: colors.global.blue[300],
|
|
313
|
+
border: colors.global.blue[400],
|
|
314
|
+
borderChecked: colors.global.blue[500],
|
|
315
|
+
borderDisabled: colors.global.blue[600],
|
|
316
|
+
dot: colors.global.blue[700],
|
|
317
|
+
dotDisabled: colors.global.blue[800]
|
|
318
|
+
},
|
|
319
|
+
"switch": {
|
|
320
|
+
trackBackground: colors.global.blue[100],
|
|
321
|
+
trackBackgroundChecked: colors.global.blue[200],
|
|
322
|
+
trackBackgroundDisabled: colors.global.blue[300],
|
|
323
|
+
thumbBackground: colors.global.blue[400],
|
|
324
|
+
thumbBackgroundDisabled: colors.global.blue[500]
|
|
325
|
+
},
|
|
326
|
+
slider: {
|
|
327
|
+
trackBackground: colors.global.blue[100],
|
|
328
|
+
trackBackgroundActive: colors.global.blue[200],
|
|
329
|
+
trackBackgroundDisabled: colors.global.blue[300],
|
|
330
|
+
thumbBackground: colors.global.blue[400],
|
|
331
|
+
thumbBackgroundDisabled: colors.global.blue[500]
|
|
332
|
+
},
|
|
333
|
+
tooltip: {
|
|
334
|
+
background: colors.global.blue[100],
|
|
335
|
+
content: colors.global.blue[200]
|
|
336
|
+
},
|
|
337
|
+
tag: {
|
|
338
|
+
"default": {
|
|
339
|
+
background: colors.global.blue[100],
|
|
340
|
+
content: colors.global.blue[200],
|
|
341
|
+
border: colors.global.blue[300]
|
|
342
|
+
},
|
|
343
|
+
info: {
|
|
344
|
+
background: colors.global.blue[400],
|
|
345
|
+
content: colors.global.blue[500],
|
|
346
|
+
border: colors.global.blue[600]
|
|
347
|
+
},
|
|
348
|
+
success: {
|
|
349
|
+
background: colors.global.emerald[100],
|
|
350
|
+
content: colors.global.emerald[200],
|
|
351
|
+
border: colors.global.emerald[300]
|
|
352
|
+
},
|
|
353
|
+
warning: {
|
|
354
|
+
background: colors.global.amber[100],
|
|
355
|
+
content: colors.global.amber[200],
|
|
356
|
+
border: colors.global.amber[300]
|
|
357
|
+
},
|
|
358
|
+
error: {
|
|
359
|
+
background: colors.global.red[100],
|
|
360
|
+
content: colors.global.red[200],
|
|
361
|
+
border: colors.global.red[300]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
avatar: {
|
|
365
|
+
background: colors.global.blue[100],
|
|
366
|
+
content: colors.global.blue[200],
|
|
367
|
+
border: colors.global.blue[300]
|
|
368
|
+
},
|
|
369
|
+
badge: {
|
|
370
|
+
"default": {
|
|
371
|
+
background: colors.global.blue[100],
|
|
372
|
+
content: colors.global.blue[200]
|
|
373
|
+
},
|
|
374
|
+
primary: {
|
|
375
|
+
background: colors.global.blue[400],
|
|
376
|
+
content: colors.global.blue[500]
|
|
377
|
+
},
|
|
378
|
+
success: {
|
|
379
|
+
background: colors.global.emerald[100],
|
|
380
|
+
content: colors.global.emerald[200]
|
|
381
|
+
},
|
|
382
|
+
warning: {
|
|
383
|
+
background: colors.global.amber[100],
|
|
384
|
+
content: colors.global.amber[200]
|
|
385
|
+
},
|
|
386
|
+
error: {
|
|
387
|
+
background: colors.global.red[100],
|
|
388
|
+
content: colors.global.red[200]
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
alert: {
|
|
392
|
+
info: {
|
|
393
|
+
background: colors.global.blue[100],
|
|
394
|
+
content: colors.global.blue[200],
|
|
395
|
+
border: colors.global.blue[300],
|
|
396
|
+
icon: colors.global.blue[400]
|
|
397
|
+
},
|
|
398
|
+
success: {
|
|
399
|
+
background: colors.global.emerald[100],
|
|
400
|
+
content: colors.global.emerald[200],
|
|
401
|
+
border: colors.global.emerald[300],
|
|
402
|
+
icon: colors.global.emerald[400]
|
|
403
|
+
},
|
|
404
|
+
warning: {
|
|
405
|
+
background: colors.global.amber[100],
|
|
406
|
+
content: colors.global.amber[200],
|
|
407
|
+
border: colors.global.amber[300],
|
|
408
|
+
icon: colors.global.amber[400]
|
|
409
|
+
},
|
|
410
|
+
error: {
|
|
411
|
+
background: colors.global.red[100],
|
|
412
|
+
content: colors.global.red[200],
|
|
413
|
+
border: colors.global.red[300],
|
|
414
|
+
icon: colors.global.red[400]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
divider: {
|
|
418
|
+
"default": colors.global.blue[100],
|
|
419
|
+
subtle: colors.global.blue[200]
|
|
420
|
+
},
|
|
421
|
+
progress: {
|
|
422
|
+
trackBackground: colors.global.blue[100],
|
|
423
|
+
indicatorBackground: colors.global.blue[200]
|
|
424
|
+
},
|
|
425
|
+
spinner: {
|
|
426
|
+
primary: colors.global.blue[600],
|
|
427
|
+
secondary: colors.global.gray[400]
|
|
428
|
+
},
|
|
429
|
+
skeleton: {
|
|
430
|
+
background: colors.global.gray[100],
|
|
431
|
+
highlight: colors.global.gray[200]
|
|
432
|
+
},
|
|
433
|
+
toast: {
|
|
434
|
+
info: {
|
|
435
|
+
background: colors.global.blue[100],
|
|
436
|
+
content: colors.global.blue[200],
|
|
437
|
+
border: colors.global.blue[300]
|
|
438
|
+
},
|
|
439
|
+
success: {
|
|
440
|
+
background: colors.global.emerald[100],
|
|
441
|
+
content: colors.global.emerald[200],
|
|
442
|
+
border: colors.global.emerald[300]
|
|
443
|
+
},
|
|
444
|
+
warning: {
|
|
445
|
+
background: colors.global.amber[100],
|
|
446
|
+
content: colors.global.amber[200],
|
|
447
|
+
border: colors.global.amber[300]
|
|
448
|
+
},
|
|
449
|
+
error: {
|
|
450
|
+
background: colors.global.red[100],
|
|
451
|
+
content: colors.global.red[200],
|
|
452
|
+
border: colors.global.red[300]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
// Construct the full theme object first
|
|
458
|
+
var themeObject = {
|
|
459
|
+
name: 'dark',
|
|
460
|
+
mode: 'dark',
|
|
461
|
+
global: globalTokens,
|
|
462
|
+
semantic: darkSemanticTokens,
|
|
463
|
+
fintech: darkFintechTokens,
|
|
464
|
+
component: darkComponentTokens
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
// Create the dark theme with utils
|
|
468
|
+
export var darkTheme = _objectSpread(_objectSpread({}, themeObject), {}, {
|
|
469
|
+
utils: createThemeUtils(themeObject)
|
|
470
|
+
});
|
|
471
|
+
export default darkTheme;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/styles/theme/index.ts
|
|
2
|
+
// Theme system entry point - Minimal implementation
|
|
3
|
+
|
|
4
|
+
// Import theme instances
|
|
5
|
+
// import { globalTokens } from '../tokens';
|
|
6
|
+
|
|
7
|
+
import { darkTheme } from "./darkTheme";
|
|
8
|
+
import { lightTheme } from "./lightTheme";
|
|
9
|
+
|
|
10
|
+
// Import utilities
|
|
11
|
+
import { createThemeUtils } from "./themeUtils";
|
|
12
|
+
// Types
|
|
13
|
+
|
|
14
|
+
// Values
|
|
15
|
+
export { lightTheme } from "./lightTheme";
|
|
16
|
+
export { darkTheme } from "./darkTheme";
|
|
17
|
+
|
|
18
|
+
// Theme instances
|
|
19
|
+
export var themes = {
|
|
20
|
+
light: lightTheme,
|
|
21
|
+
dark: darkTheme
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// Theme name type
|
|
25
|
+
|
|
26
|
+
// Get theme by name
|
|
27
|
+
export function getTheme(name) {
|
|
28
|
+
return themes[name] || lightTheme;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Default theme
|
|
32
|
+
export var defaultTheme = lightTheme;
|
|
33
|
+
|
|
34
|
+
// Export theme utilities
|
|
35
|
+
export { createThemeUtils };
|
|
36
|
+
// export { globalTokens }
|
|
37
|
+
// Default export
|
|
38
|
+
var themeModule = {
|
|
39
|
+
light: lightTheme,
|
|
40
|
+
dark: darkTheme,
|
|
41
|
+
getTheme: getTheme,
|
|
42
|
+
createThemeUtils: createThemeUtils
|
|
43
|
+
};
|
|
44
|
+
export default themeModule;
|