@realminc/ui 0.9.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 +99 -0
- package/README.md +254 -0
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/chart_pane.d.ts +7 -0
- package/dist/components/chart/index.d.ts +5 -0
- package/dist/components/chart/indicators.d.ts +7 -0
- package/dist/components/chart/types.d.ts +110 -0
- package/dist/components/display/benchmark_table.d.ts +26 -0
- package/dist/components/display/code_block.d.ts +33 -0
- package/dist/components/display/feature_card.d.ts +22 -0
- package/dist/components/display/hero.d.ts +28 -0
- package/dist/components/display/image_card.d.ts +33 -0
- package/dist/components/display/index.d.ts +28 -0
- package/dist/components/display/label.d.ts +25 -0
- package/dist/components/display/line_table.d.ts +35 -0
- package/dist/components/display/marquee.d.ts +38 -0
- package/dist/components/display/number_display.d.ts +29 -0
- package/dist/components/display/price_display.d.ts +31 -0
- package/dist/components/display/side_indicator.d.ts +23 -0
- package/dist/components/display/side_line.d.ts +31 -0
- package/dist/components/display/stat_card.d.ts +20 -0
- package/dist/components/display/token_icon.d.ts +15 -0
- package/dist/components/feedback/callout.d.ts +22 -0
- package/dist/components/feedback/index.d.ts +6 -0
- package/dist/components/feedback/loading.d.ts +46 -0
- package/dist/components/feedback/modal.d.ts +29 -0
- package/dist/components/form/button.d.ts +54 -0
- package/dist/components/form/index.d.ts +8 -0
- package/dist/components/form/input.d.ts +18 -0
- package/dist/components/form/number_input.d.ts +41 -0
- package/dist/components/form/select.d.ts +43 -0
- package/dist/components/fx/index.d.ts +7 -0
- package/dist/components/fx/scramble_button.d.ts +9 -0
- package/dist/components/fx/scramble_control.d.ts +12 -0
- package/dist/components/fx/scramble_link.d.ts +10 -0
- package/dist/components/fx/scramble_text.d.ts +13 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/layout/container.d.ts +17 -0
- package/dist/components/layout/index.d.ts +8 -0
- package/dist/components/layout/table.d.ts +73 -0
- package/dist/components/layout/tabs.d.ts +37 -0
- package/dist/components/layout/widget.d.ts +26 -0
- package/dist/components/nav/footer.d.ts +32 -0
- package/dist/components/nav/index.d.ts +6 -0
- package/dist/components/nav/logo.d.ts +17 -0
- package/dist/components/nav/navbar.d.ts +47 -0
- package/dist/components/transition/index.d.ts +4 -0
- package/dist/components/transition/page_entrance.d.ts +39 -0
- package/dist/components/transition/page_transition.d.ts +62 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +17138 -0
- package/dist/styles/fonts.css +104 -0
- package/dist/styles/tailwind.preset.d.ts +3 -0
- package/dist/styles/theme.d.ts +372 -0
- package/dist/tailwind.js +47 -0
- package/dist/theme.js +143 -0
- package/package.json +84 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Bold.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-BoldItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-ExtraLight.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-ExtraLightItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Italic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Light.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-LightItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Medium.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-MediumItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Regular.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-SemiBoldItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Text.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-TextItalic.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-Thin.ttf +0 -0
- package/public/fonts/ibm-plex-sans/IBMPlexSans-ThinItalic.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-Bold.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-BoldItalic.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-Italic.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-Light.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-LightItalic.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-Medium.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-MediumItalic.ttf +0 -0
- package/public/fonts/intel-one-mono/IntelOneMono-Regular.ttf +0 -0
- package/public/fonts/switzer/SwitzerVariable-Italic.ttf +0 -0
- package/public/fonts/switzer/SwitzerVariable.ttf +0 -0
- package/public/logo/README.md +75 -0
- package/public/logo/apple-touch-icon.png +0 -0
- package/public/logo/favicon-192.png +0 -0
- package/public/logo/favicon-512.png +0 -0
- package/public/logo/favicon.ico +0 -0
- package/public/logo/favicon.svg +4 -0
- package/public/logo/oa-wordmark-dark.svg +6 -0
- package/public/logo/oa-wordmark-light.svg +6 -0
- package/public/logo/realm-app-dark.svg +4 -0
- package/public/logo/realm-app-light.svg +4 -0
- package/public/logo/realm-integrated-wordmark-dark.svg +4 -0
- package/public/logo/realm-integrated-wordmark-light.svg +4 -0
- package/public/logo/realm-logo-dark.svg +6 -0
- package/public/logo/realm-logo-light.svg +6 -0
- package/public/logo/realm-mark-dark.svg +3 -0
- package/public/logo/realm-mark-light.svg +3 -0
- package/public/logo/realm-r-mark.svg +6 -0
- package/public/logo/realm-token.svg +4 -0
- package/public/logo/realm-wordmark-dark.svg +6 -0
- package/public/logo/realm-wordmark-light.svg +6 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// @empyrealm/ui — Typography System
|
|
2
|
+
// IBM Plex Sans: UI text, headings, body copy
|
|
3
|
+
// Intel One Mono: Code blocks, terminal, technical content
|
|
4
|
+
|
|
5
|
+
// IBM Plex Sans
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'IBM Plex Sans';
|
|
9
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-Light.ttf') format('truetype');
|
|
10
|
+
font-weight: 300;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-display: swap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'IBM Plex Sans';
|
|
17
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-Regular.ttf') format('truetype');
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-display: swap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'IBM Plex Sans';
|
|
25
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-Italic.ttf') format('truetype');
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
font-display: swap;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'IBM Plex Sans';
|
|
33
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-Medium.ttf') format('truetype');
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-display: swap;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@font-face {
|
|
40
|
+
font-family: 'IBM Plex Sans';
|
|
41
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.ttf') format('truetype');
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-display: swap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: 'IBM Plex Sans';
|
|
49
|
+
src: url('/fonts/ibm-plex-sans/IBMPlexSans-Bold.ttf') format('truetype');
|
|
50
|
+
font-weight: 700;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-display: swap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Intel One Mono
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: 'Intel One Mono';
|
|
59
|
+
src: url('/fonts/intel-one-mono/IntelOneMono-Regular.ttf') format('truetype');
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-display: swap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Intel One Mono';
|
|
67
|
+
src: url('/fonts/intel-one-mono/IntelOneMono-Italic.ttf') format('truetype');
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-style: italic;
|
|
70
|
+
font-display: swap;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@font-face {
|
|
74
|
+
font-family: 'Intel One Mono';
|
|
75
|
+
src: url('/fonts/intel-one-mono/IntelOneMono-Medium.ttf') format('truetype');
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@font-face {
|
|
82
|
+
font-family: 'Intel One Mono';
|
|
83
|
+
src: url('/fonts/intel-one-mono/IntelOneMono-Bold.ttf') format('truetype');
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-display: swap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// CSS Custom Properties
|
|
90
|
+
|
|
91
|
+
:root {
|
|
92
|
+
--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
93
|
+
--font-mono: 'Intel One Mono', 'SF Mono', 'Fira Code', monospace;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Base defaults — apply `.realm-typography` on app root
|
|
97
|
+
|
|
98
|
+
.realm-typography {
|
|
99
|
+
font-family: var(--font-sans);
|
|
100
|
+
font-size: 0.875rem;
|
|
101
|
+
line-height: 1.5;
|
|
102
|
+
-webkit-font-smoothing: antialiased;
|
|
103
|
+
-moz-osx-font-smoothing: grayscale;
|
|
104
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realm Design System - Theme Configuration
|
|
3
|
+
* Based on IBM Design Language: https://www.ibm.com/design/language/typography
|
|
4
|
+
*
|
|
5
|
+
* Single source of truth for all colors, typography, spacing, etc.
|
|
6
|
+
* Import this in your Tailwind config or use directly in components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const colors: {
|
|
9
|
+
readonly realm: {
|
|
10
|
+
readonly bg: {
|
|
11
|
+
readonly base: "#0a0a0a";
|
|
12
|
+
readonly widget: "#1a1a1a";
|
|
13
|
+
readonly hover: "#222222";
|
|
14
|
+
readonly active: "#303030";
|
|
15
|
+
readonly input: "#111111";
|
|
16
|
+
readonly line: "#111111";
|
|
17
|
+
};
|
|
18
|
+
readonly text: {
|
|
19
|
+
readonly primary: "#f5f5f5";
|
|
20
|
+
readonly secondary: "#d4d4d4";
|
|
21
|
+
readonly tertiary: "#909090";
|
|
22
|
+
readonly muted: "#666666";
|
|
23
|
+
readonly faint: "#4a4a4a";
|
|
24
|
+
};
|
|
25
|
+
readonly border: {
|
|
26
|
+
readonly subtle: "rgba(255, 255, 255, 0.06)";
|
|
27
|
+
readonly DEFAULT: "rgba(255, 255, 255, 0.10)";
|
|
28
|
+
readonly strong: "rgba(255, 255, 255, 0.15)";
|
|
29
|
+
};
|
|
30
|
+
readonly buy: "#30d158";
|
|
31
|
+
readonly buyMuted: "rgba(48, 209, 88, 0.15)";
|
|
32
|
+
readonly sell: "#ff453a";
|
|
33
|
+
readonly sellMuted: "rgba(255, 69, 58, 0.15)";
|
|
34
|
+
readonly accent: {
|
|
35
|
+
readonly DEFAULT: "#6366f1";
|
|
36
|
+
readonly hover: "#818cf8";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly light: {
|
|
40
|
+
readonly bg: {
|
|
41
|
+
readonly base: "#fafafa";
|
|
42
|
+
readonly widget: "#ffffff";
|
|
43
|
+
readonly hover: "#f5f5f5";
|
|
44
|
+
readonly active: "#f0f0f0";
|
|
45
|
+
readonly input: "#ffffff";
|
|
46
|
+
};
|
|
47
|
+
readonly text: {
|
|
48
|
+
readonly primary: "#0a0a0a";
|
|
49
|
+
readonly secondary: "#262626";
|
|
50
|
+
readonly tertiary: "#525252";
|
|
51
|
+
readonly muted: "#737373";
|
|
52
|
+
readonly faint: "#a3a3a3";
|
|
53
|
+
};
|
|
54
|
+
readonly border: {
|
|
55
|
+
readonly subtle: "rgba(0, 0, 0, 0.05)";
|
|
56
|
+
readonly DEFAULT: "rgba(0, 0, 0, 0.08)";
|
|
57
|
+
readonly strong: "rgba(0, 0, 0, 0.12)";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const fonts: {
|
|
62
|
+
readonly sans: readonly ["IBM Plex Sans", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "sans-serif"];
|
|
63
|
+
readonly mono: readonly ["Intel One Mono", "SF Mono", "Fira Code", "monospace"];
|
|
64
|
+
};
|
|
65
|
+
export declare const fontSize: {
|
|
66
|
+
readonly 'display-01': readonly ["2.625rem", {
|
|
67
|
+
readonly lineHeight: "1.25";
|
|
68
|
+
readonly letterSpacing: "-0.02em";
|
|
69
|
+
readonly fontWeight: "300";
|
|
70
|
+
}];
|
|
71
|
+
readonly 'display-02': readonly ["3.375rem", {
|
|
72
|
+
readonly lineHeight: "1.25";
|
|
73
|
+
readonly letterSpacing: "-0.02em";
|
|
74
|
+
readonly fontWeight: "300";
|
|
75
|
+
}];
|
|
76
|
+
readonly 'heading-01': readonly ["0.875rem", {
|
|
77
|
+
readonly lineHeight: "1.25";
|
|
78
|
+
readonly letterSpacing: "0.1em";
|
|
79
|
+
readonly fontWeight: "600";
|
|
80
|
+
}];
|
|
81
|
+
readonly 'heading-02': readonly ["1rem", {
|
|
82
|
+
readonly lineHeight: "1.25";
|
|
83
|
+
readonly fontWeight: "600";
|
|
84
|
+
}];
|
|
85
|
+
readonly 'heading-03': readonly ["1.25rem", {
|
|
86
|
+
readonly lineHeight: "1.25";
|
|
87
|
+
readonly fontWeight: "500";
|
|
88
|
+
}];
|
|
89
|
+
readonly 'heading-04': readonly ["1.75rem", {
|
|
90
|
+
readonly lineHeight: "1.25";
|
|
91
|
+
readonly letterSpacing: "-0.02em";
|
|
92
|
+
readonly fontWeight: "500";
|
|
93
|
+
}];
|
|
94
|
+
readonly 'heading-05': readonly ["2rem", {
|
|
95
|
+
readonly lineHeight: "1.25";
|
|
96
|
+
readonly letterSpacing: "-0.02em";
|
|
97
|
+
readonly fontWeight: "400";
|
|
98
|
+
}];
|
|
99
|
+
readonly 'heading-06': readonly ["2.625rem", {
|
|
100
|
+
readonly lineHeight: "1.25";
|
|
101
|
+
readonly letterSpacing: "-0.02em";
|
|
102
|
+
readonly fontWeight: "300";
|
|
103
|
+
}];
|
|
104
|
+
readonly 'heading-07': readonly ["3.375rem", {
|
|
105
|
+
readonly lineHeight: "1.25";
|
|
106
|
+
readonly letterSpacing: "-0.02em";
|
|
107
|
+
readonly fontWeight: "300";
|
|
108
|
+
}];
|
|
109
|
+
readonly 'body-compact-01': readonly ["0.875rem", {
|
|
110
|
+
readonly lineHeight: "1.25";
|
|
111
|
+
readonly fontWeight: "400";
|
|
112
|
+
}];
|
|
113
|
+
readonly 'body-compact-02': readonly ["1rem", {
|
|
114
|
+
readonly lineHeight: "1.25";
|
|
115
|
+
readonly fontWeight: "400";
|
|
116
|
+
}];
|
|
117
|
+
readonly 'body-01': readonly ["0.875rem", {
|
|
118
|
+
readonly lineHeight: "1.5";
|
|
119
|
+
readonly fontWeight: "400";
|
|
120
|
+
}];
|
|
121
|
+
readonly 'body-02': readonly ["1rem", {
|
|
122
|
+
readonly lineHeight: "1.5";
|
|
123
|
+
readonly fontWeight: "400";
|
|
124
|
+
}];
|
|
125
|
+
readonly 'label-01': readonly ["0.75rem", {
|
|
126
|
+
readonly lineHeight: "1.25";
|
|
127
|
+
readonly letterSpacing: "0.1em";
|
|
128
|
+
readonly fontWeight: "400";
|
|
129
|
+
}];
|
|
130
|
+
readonly 'label-02': readonly ["0.875rem", {
|
|
131
|
+
readonly lineHeight: "1.25";
|
|
132
|
+
readonly fontWeight: "500";
|
|
133
|
+
}];
|
|
134
|
+
readonly 'helper-01': readonly ["0.75rem", {
|
|
135
|
+
readonly lineHeight: "1.5";
|
|
136
|
+
readonly fontWeight: "400";
|
|
137
|
+
}];
|
|
138
|
+
readonly 'code-01': readonly ["0.75rem", {
|
|
139
|
+
readonly lineHeight: "1.5";
|
|
140
|
+
readonly fontWeight: "400";
|
|
141
|
+
}];
|
|
142
|
+
readonly 'code-02': readonly ["0.875rem", {
|
|
143
|
+
readonly lineHeight: "1.5";
|
|
144
|
+
readonly fontWeight: "400";
|
|
145
|
+
}];
|
|
146
|
+
readonly 'widget-header': readonly ["0.6875rem", {
|
|
147
|
+
readonly lineHeight: "1.25";
|
|
148
|
+
readonly letterSpacing: "0.1em";
|
|
149
|
+
readonly fontWeight: "500";
|
|
150
|
+
}];
|
|
151
|
+
readonly 'widget-label': readonly ["0.625rem", {
|
|
152
|
+
readonly lineHeight: "1.25";
|
|
153
|
+
readonly letterSpacing: "0.1em";
|
|
154
|
+
readonly fontWeight: "400";
|
|
155
|
+
}];
|
|
156
|
+
readonly price: readonly ["0.8125rem", {
|
|
157
|
+
readonly lineHeight: "1.25";
|
|
158
|
+
readonly fontWeight: "400";
|
|
159
|
+
}];
|
|
160
|
+
readonly 'price-lg': readonly ["1.5rem", {
|
|
161
|
+
readonly lineHeight: "1.25";
|
|
162
|
+
readonly letterSpacing: "-0.02em";
|
|
163
|
+
readonly fontWeight: "500";
|
|
164
|
+
}];
|
|
165
|
+
};
|
|
166
|
+
export declare const borderRadius: {
|
|
167
|
+
readonly sm: "4px";
|
|
168
|
+
readonly DEFAULT: "6px";
|
|
169
|
+
readonly lg: "8px";
|
|
170
|
+
readonly xl: "8px";
|
|
171
|
+
readonly '2xl': "12px";
|
|
172
|
+
};
|
|
173
|
+
export declare const zIndex: {
|
|
174
|
+
readonly dropdown: 50;
|
|
175
|
+
readonly navbar: 50;
|
|
176
|
+
readonly modalBackdrop: 60;
|
|
177
|
+
readonly modal: 70;
|
|
178
|
+
readonly toast: 80;
|
|
179
|
+
};
|
|
180
|
+
export declare const animation: {
|
|
181
|
+
readonly entrance: {
|
|
182
|
+
readonly duration: 300;
|
|
183
|
+
readonly stagger: 30;
|
|
184
|
+
};
|
|
185
|
+
readonly hover: {
|
|
186
|
+
readonly duration: 200;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
export declare const theme: {
|
|
190
|
+
readonly colors: {
|
|
191
|
+
readonly realm: {
|
|
192
|
+
readonly bg: {
|
|
193
|
+
readonly base: "#0a0a0a";
|
|
194
|
+
readonly widget: "#1a1a1a";
|
|
195
|
+
readonly hover: "#222222";
|
|
196
|
+
readonly active: "#303030";
|
|
197
|
+
readonly input: "#111111";
|
|
198
|
+
readonly line: "#111111";
|
|
199
|
+
};
|
|
200
|
+
readonly text: {
|
|
201
|
+
readonly primary: "#f5f5f5";
|
|
202
|
+
readonly secondary: "#d4d4d4";
|
|
203
|
+
readonly tertiary: "#909090";
|
|
204
|
+
readonly muted: "#666666";
|
|
205
|
+
readonly faint: "#4a4a4a";
|
|
206
|
+
};
|
|
207
|
+
readonly border: {
|
|
208
|
+
readonly subtle: "rgba(255, 255, 255, 0.06)";
|
|
209
|
+
readonly DEFAULT: "rgba(255, 255, 255, 0.10)";
|
|
210
|
+
readonly strong: "rgba(255, 255, 255, 0.15)";
|
|
211
|
+
};
|
|
212
|
+
readonly buy: "#30d158";
|
|
213
|
+
readonly buyMuted: "rgba(48, 209, 88, 0.15)";
|
|
214
|
+
readonly sell: "#ff453a";
|
|
215
|
+
readonly sellMuted: "rgba(255, 69, 58, 0.15)";
|
|
216
|
+
readonly accent: {
|
|
217
|
+
readonly DEFAULT: "#6366f1";
|
|
218
|
+
readonly hover: "#818cf8";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly light: {
|
|
222
|
+
readonly bg: {
|
|
223
|
+
readonly base: "#fafafa";
|
|
224
|
+
readonly widget: "#ffffff";
|
|
225
|
+
readonly hover: "#f5f5f5";
|
|
226
|
+
readonly active: "#f0f0f0";
|
|
227
|
+
readonly input: "#ffffff";
|
|
228
|
+
};
|
|
229
|
+
readonly text: {
|
|
230
|
+
readonly primary: "#0a0a0a";
|
|
231
|
+
readonly secondary: "#262626";
|
|
232
|
+
readonly tertiary: "#525252";
|
|
233
|
+
readonly muted: "#737373";
|
|
234
|
+
readonly faint: "#a3a3a3";
|
|
235
|
+
};
|
|
236
|
+
readonly border: {
|
|
237
|
+
readonly subtle: "rgba(0, 0, 0, 0.05)";
|
|
238
|
+
readonly DEFAULT: "rgba(0, 0, 0, 0.08)";
|
|
239
|
+
readonly strong: "rgba(0, 0, 0, 0.12)";
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly fonts: {
|
|
244
|
+
readonly sans: readonly ["IBM Plex Sans", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "sans-serif"];
|
|
245
|
+
readonly mono: readonly ["Intel One Mono", "SF Mono", "Fira Code", "monospace"];
|
|
246
|
+
};
|
|
247
|
+
readonly fontSize: {
|
|
248
|
+
readonly 'display-01': readonly ["2.625rem", {
|
|
249
|
+
readonly lineHeight: "1.25";
|
|
250
|
+
readonly letterSpacing: "-0.02em";
|
|
251
|
+
readonly fontWeight: "300";
|
|
252
|
+
}];
|
|
253
|
+
readonly 'display-02': readonly ["3.375rem", {
|
|
254
|
+
readonly lineHeight: "1.25";
|
|
255
|
+
readonly letterSpacing: "-0.02em";
|
|
256
|
+
readonly fontWeight: "300";
|
|
257
|
+
}];
|
|
258
|
+
readonly 'heading-01': readonly ["0.875rem", {
|
|
259
|
+
readonly lineHeight: "1.25";
|
|
260
|
+
readonly letterSpacing: "0.1em";
|
|
261
|
+
readonly fontWeight: "600";
|
|
262
|
+
}];
|
|
263
|
+
readonly 'heading-02': readonly ["1rem", {
|
|
264
|
+
readonly lineHeight: "1.25";
|
|
265
|
+
readonly fontWeight: "600";
|
|
266
|
+
}];
|
|
267
|
+
readonly 'heading-03': readonly ["1.25rem", {
|
|
268
|
+
readonly lineHeight: "1.25";
|
|
269
|
+
readonly fontWeight: "500";
|
|
270
|
+
}];
|
|
271
|
+
readonly 'heading-04': readonly ["1.75rem", {
|
|
272
|
+
readonly lineHeight: "1.25";
|
|
273
|
+
readonly letterSpacing: "-0.02em";
|
|
274
|
+
readonly fontWeight: "500";
|
|
275
|
+
}];
|
|
276
|
+
readonly 'heading-05': readonly ["2rem", {
|
|
277
|
+
readonly lineHeight: "1.25";
|
|
278
|
+
readonly letterSpacing: "-0.02em";
|
|
279
|
+
readonly fontWeight: "400";
|
|
280
|
+
}];
|
|
281
|
+
readonly 'heading-06': readonly ["2.625rem", {
|
|
282
|
+
readonly lineHeight: "1.25";
|
|
283
|
+
readonly letterSpacing: "-0.02em";
|
|
284
|
+
readonly fontWeight: "300";
|
|
285
|
+
}];
|
|
286
|
+
readonly 'heading-07': readonly ["3.375rem", {
|
|
287
|
+
readonly lineHeight: "1.25";
|
|
288
|
+
readonly letterSpacing: "-0.02em";
|
|
289
|
+
readonly fontWeight: "300";
|
|
290
|
+
}];
|
|
291
|
+
readonly 'body-compact-01': readonly ["0.875rem", {
|
|
292
|
+
readonly lineHeight: "1.25";
|
|
293
|
+
readonly fontWeight: "400";
|
|
294
|
+
}];
|
|
295
|
+
readonly 'body-compact-02': readonly ["1rem", {
|
|
296
|
+
readonly lineHeight: "1.25";
|
|
297
|
+
readonly fontWeight: "400";
|
|
298
|
+
}];
|
|
299
|
+
readonly 'body-01': readonly ["0.875rem", {
|
|
300
|
+
readonly lineHeight: "1.5";
|
|
301
|
+
readonly fontWeight: "400";
|
|
302
|
+
}];
|
|
303
|
+
readonly 'body-02': readonly ["1rem", {
|
|
304
|
+
readonly lineHeight: "1.5";
|
|
305
|
+
readonly fontWeight: "400";
|
|
306
|
+
}];
|
|
307
|
+
readonly 'label-01': readonly ["0.75rem", {
|
|
308
|
+
readonly lineHeight: "1.25";
|
|
309
|
+
readonly letterSpacing: "0.1em";
|
|
310
|
+
readonly fontWeight: "400";
|
|
311
|
+
}];
|
|
312
|
+
readonly 'label-02': readonly ["0.875rem", {
|
|
313
|
+
readonly lineHeight: "1.25";
|
|
314
|
+
readonly fontWeight: "500";
|
|
315
|
+
}];
|
|
316
|
+
readonly 'helper-01': readonly ["0.75rem", {
|
|
317
|
+
readonly lineHeight: "1.5";
|
|
318
|
+
readonly fontWeight: "400";
|
|
319
|
+
}];
|
|
320
|
+
readonly 'code-01': readonly ["0.75rem", {
|
|
321
|
+
readonly lineHeight: "1.5";
|
|
322
|
+
readonly fontWeight: "400";
|
|
323
|
+
}];
|
|
324
|
+
readonly 'code-02': readonly ["0.875rem", {
|
|
325
|
+
readonly lineHeight: "1.5";
|
|
326
|
+
readonly fontWeight: "400";
|
|
327
|
+
}];
|
|
328
|
+
readonly 'widget-header': readonly ["0.6875rem", {
|
|
329
|
+
readonly lineHeight: "1.25";
|
|
330
|
+
readonly letterSpacing: "0.1em";
|
|
331
|
+
readonly fontWeight: "500";
|
|
332
|
+
}];
|
|
333
|
+
readonly 'widget-label': readonly ["0.625rem", {
|
|
334
|
+
readonly lineHeight: "1.25";
|
|
335
|
+
readonly letterSpacing: "0.1em";
|
|
336
|
+
readonly fontWeight: "400";
|
|
337
|
+
}];
|
|
338
|
+
readonly price: readonly ["0.8125rem", {
|
|
339
|
+
readonly lineHeight: "1.25";
|
|
340
|
+
readonly fontWeight: "400";
|
|
341
|
+
}];
|
|
342
|
+
readonly 'price-lg': readonly ["1.5rem", {
|
|
343
|
+
readonly lineHeight: "1.25";
|
|
344
|
+
readonly letterSpacing: "-0.02em";
|
|
345
|
+
readonly fontWeight: "500";
|
|
346
|
+
}];
|
|
347
|
+
};
|
|
348
|
+
readonly borderRadius: {
|
|
349
|
+
readonly sm: "4px";
|
|
350
|
+
readonly DEFAULT: "6px";
|
|
351
|
+
readonly lg: "8px";
|
|
352
|
+
readonly xl: "8px";
|
|
353
|
+
readonly '2xl': "12px";
|
|
354
|
+
};
|
|
355
|
+
readonly zIndex: {
|
|
356
|
+
readonly dropdown: 50;
|
|
357
|
+
readonly navbar: 50;
|
|
358
|
+
readonly modalBackdrop: 60;
|
|
359
|
+
readonly modal: 70;
|
|
360
|
+
readonly toast: 80;
|
|
361
|
+
};
|
|
362
|
+
readonly animation: {
|
|
363
|
+
readonly entrance: {
|
|
364
|
+
readonly duration: 300;
|
|
365
|
+
readonly stagger: 30;
|
|
366
|
+
};
|
|
367
|
+
readonly hover: {
|
|
368
|
+
readonly duration: 200;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
export default theme;
|
package/dist/tailwind.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { borderRadius as t, fontSize as s, fonts as a, colors as e } from "./theme.js";
|
|
3
|
+
const n = {
|
|
4
|
+
theme: {
|
|
5
|
+
extend: {
|
|
6
|
+
colors: {
|
|
7
|
+
realm: e.realm,
|
|
8
|
+
light: e.light
|
|
9
|
+
},
|
|
10
|
+
fontFamily: {
|
|
11
|
+
// IBM Plex Sans for all UI
|
|
12
|
+
sans: a.sans,
|
|
13
|
+
// Intel One Mono for code
|
|
14
|
+
mono: a.mono
|
|
15
|
+
},
|
|
16
|
+
fontSize: s,
|
|
17
|
+
borderRadius: t,
|
|
18
|
+
animation: {
|
|
19
|
+
"fade-in": "fadeIn 300ms ease-out",
|
|
20
|
+
"slide-up": "slideUp 300ms ease-out",
|
|
21
|
+
"slide-down": "slideDown 300ms ease-out",
|
|
22
|
+
marquee: "marquee 30s linear infinite"
|
|
23
|
+
},
|
|
24
|
+
keyframes: {
|
|
25
|
+
fadeIn: {
|
|
26
|
+
"0%": { opacity: "0" },
|
|
27
|
+
"100%": { opacity: "1" }
|
|
28
|
+
},
|
|
29
|
+
slideUp: {
|
|
30
|
+
"0%": { opacity: "0", transform: "translateY(10px)" },
|
|
31
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
32
|
+
},
|
|
33
|
+
slideDown: {
|
|
34
|
+
"0%": { opacity: "0", transform: "translateY(-10px)" },
|
|
35
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
36
|
+
},
|
|
37
|
+
marquee: {
|
|
38
|
+
"0%": { transform: "translateX(0)" },
|
|
39
|
+
"100%": { transform: "translateX(-33.333%)" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
n as default
|
|
47
|
+
};
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = {
|
|
3
|
+
// Dark theme - Revolut-inspired neutral greys
|
|
4
|
+
realm: {
|
|
5
|
+
bg: {
|
|
6
|
+
base: "#0a0a0a",
|
|
7
|
+
// Canonical dark background (design.mdc)
|
|
8
|
+
widget: "#1a1a1a",
|
|
9
|
+
// Elevated surface - widget panels
|
|
10
|
+
hover: "#222222",
|
|
11
|
+
// Hover state
|
|
12
|
+
active: "#303030",
|
|
13
|
+
// Active/pressed state
|
|
14
|
+
input: "#111111",
|
|
15
|
+
// Input fields
|
|
16
|
+
line: "#111111"
|
|
17
|
+
// Bordered line tables and API contracts
|
|
18
|
+
},
|
|
19
|
+
text: {
|
|
20
|
+
primary: "#f5f5f5",
|
|
21
|
+
// Soft white - headings
|
|
22
|
+
secondary: "#d4d4d4",
|
|
23
|
+
// 83% - body text
|
|
24
|
+
tertiary: "#909090",
|
|
25
|
+
// 56% - labels, hints
|
|
26
|
+
muted: "#666666",
|
|
27
|
+
// 40% - disabled
|
|
28
|
+
faint: "#4a4a4a"
|
|
29
|
+
// 29% - very subtle
|
|
30
|
+
},
|
|
31
|
+
border: {
|
|
32
|
+
subtle: "rgba(255, 255, 255, 0.06)",
|
|
33
|
+
DEFAULT: "rgba(255, 255, 255, 0.10)",
|
|
34
|
+
strong: "rgba(255, 255, 255, 0.15)"
|
|
35
|
+
},
|
|
36
|
+
// Trading colors - Apple-style
|
|
37
|
+
buy: "#30d158",
|
|
38
|
+
buyMuted: "rgba(48, 209, 88, 0.15)",
|
|
39
|
+
sell: "#ff453a",
|
|
40
|
+
sellMuted: "rgba(255, 69, 58, 0.15)",
|
|
41
|
+
// Accent
|
|
42
|
+
accent: {
|
|
43
|
+
DEFAULT: "#6366f1",
|
|
44
|
+
hover: "#818cf8"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// Light theme (for landing page)
|
|
48
|
+
light: {
|
|
49
|
+
bg: {
|
|
50
|
+
base: "#fafafa",
|
|
51
|
+
widget: "#ffffff",
|
|
52
|
+
hover: "#f5f5f5",
|
|
53
|
+
active: "#f0f0f0",
|
|
54
|
+
input: "#ffffff"
|
|
55
|
+
},
|
|
56
|
+
text: {
|
|
57
|
+
primary: "#0a0a0a",
|
|
58
|
+
secondary: "#262626",
|
|
59
|
+
tertiary: "#525252",
|
|
60
|
+
muted: "#737373",
|
|
61
|
+
faint: "#a3a3a3"
|
|
62
|
+
},
|
|
63
|
+
border: {
|
|
64
|
+
subtle: "rgba(0, 0, 0, 0.05)",
|
|
65
|
+
DEFAULT: "rgba(0, 0, 0, 0.08)",
|
|
66
|
+
strong: "rgba(0, 0, 0, 0.12)"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, t = {
|
|
70
|
+
// UI text, headings, body - IBM Plex Sans
|
|
71
|
+
sans: ["IBM Plex Sans", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "sans-serif"],
|
|
72
|
+
// Code blocks, terminals - Intel One Mono
|
|
73
|
+
mono: ["Intel One Mono", "SF Mono", "Fira Code", "monospace"]
|
|
74
|
+
}, i = {
|
|
75
|
+
// Display - Hero sections, marketing
|
|
76
|
+
"display-01": ["2.625rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "300" }],
|
|
77
|
+
"display-02": ["3.375rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "300" }],
|
|
78
|
+
// Headings
|
|
79
|
+
"heading-01": ["0.875rem", { lineHeight: "1.25", letterSpacing: "0.1em", fontWeight: "600" }],
|
|
80
|
+
"heading-02": ["1rem", { lineHeight: "1.25", fontWeight: "600" }],
|
|
81
|
+
"heading-03": ["1.25rem", { lineHeight: "1.25", fontWeight: "500" }],
|
|
82
|
+
"heading-04": ["1.75rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "500" }],
|
|
83
|
+
"heading-05": ["2rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "400" }],
|
|
84
|
+
"heading-06": ["2.625rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "300" }],
|
|
85
|
+
"heading-07": ["3.375rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "300" }],
|
|
86
|
+
// Body
|
|
87
|
+
"body-compact-01": ["0.875rem", { lineHeight: "1.25", fontWeight: "400" }],
|
|
88
|
+
"body-compact-02": ["1rem", { lineHeight: "1.25", fontWeight: "400" }],
|
|
89
|
+
"body-01": ["0.875rem", { lineHeight: "1.5", fontWeight: "400" }],
|
|
90
|
+
"body-02": ["1rem", { lineHeight: "1.5", fontWeight: "400" }],
|
|
91
|
+
// Utility
|
|
92
|
+
"label-01": ["0.75rem", { lineHeight: "1.25", letterSpacing: "0.1em", fontWeight: "400" }],
|
|
93
|
+
"label-02": ["0.875rem", { lineHeight: "1.25", fontWeight: "500" }],
|
|
94
|
+
"helper-01": ["0.75rem", { lineHeight: "1.5", fontWeight: "400" }],
|
|
95
|
+
"code-01": ["0.75rem", { lineHeight: "1.5", fontWeight: "400" }],
|
|
96
|
+
"code-02": ["0.875rem", { lineHeight: "1.5", fontWeight: "400" }],
|
|
97
|
+
// Widget-specific
|
|
98
|
+
"widget-header": ["0.6875rem", { lineHeight: "1.25", letterSpacing: "0.1em", fontWeight: "500" }],
|
|
99
|
+
"widget-label": ["0.625rem", { lineHeight: "1.25", letterSpacing: "0.1em", fontWeight: "400" }],
|
|
100
|
+
price: ["0.8125rem", { lineHeight: "1.25", fontWeight: "400" }],
|
|
101
|
+
"price-lg": ["1.5rem", { lineHeight: "1.25", letterSpacing: "-0.02em", fontWeight: "500" }]
|
|
102
|
+
}, n = {
|
|
103
|
+
sm: "4px",
|
|
104
|
+
DEFAULT: "6px",
|
|
105
|
+
lg: "8px",
|
|
106
|
+
xl: "8px",
|
|
107
|
+
// Widgets
|
|
108
|
+
"2xl": "12px"
|
|
109
|
+
}, a = {
|
|
110
|
+
dropdown: 50,
|
|
111
|
+
navbar: 50,
|
|
112
|
+
modalBackdrop: 60,
|
|
113
|
+
modal: 70,
|
|
114
|
+
toast: 80
|
|
115
|
+
}, g = {
|
|
116
|
+
// Page entrance
|
|
117
|
+
entrance: {
|
|
118
|
+
duration: 300,
|
|
119
|
+
stagger: 30
|
|
120
|
+
// ms between each item
|
|
121
|
+
},
|
|
122
|
+
// Hover transitions
|
|
123
|
+
hover: {
|
|
124
|
+
duration: 200
|
|
125
|
+
}
|
|
126
|
+
}, r = {
|
|
127
|
+
colors: e,
|
|
128
|
+
fonts: t,
|
|
129
|
+
fontSize: i,
|
|
130
|
+
borderRadius: n,
|
|
131
|
+
zIndex: a,
|
|
132
|
+
animation: g
|
|
133
|
+
};
|
|
134
|
+
export {
|
|
135
|
+
g as animation,
|
|
136
|
+
n as borderRadius,
|
|
137
|
+
e as colors,
|
|
138
|
+
r as default,
|
|
139
|
+
i as fontSize,
|
|
140
|
+
t as fonts,
|
|
141
|
+
r as theme,
|
|
142
|
+
a as zIndex
|
|
143
|
+
};
|