@cfx-dev/ui-components 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/dist/Button.module-Z6njvP9Z.js +17 -0
  4. package/dist/Combination-AG9vHdSx.js +1478 -0
  5. package/dist/Icons-B26SczGZ.js +162 -0
  6. package/dist/Rail-DoYzqKk4.js +89 -0
  7. package/dist/assets/Avatar.css +1 -0
  8. package/dist/assets/Badge.css +1 -0
  9. package/dist/assets/Box.css +1 -0
  10. package/dist/assets/Button.css +1 -0
  11. package/dist/assets/Center.css +1 -0
  12. package/dist/assets/Checkbox.css +1 -0
  13. package/dist/assets/ControlBox.css +1 -0
  14. package/dist/assets/CountryFlag.css +1 -0
  15. package/dist/assets/Decorate.css +1 -0
  16. package/dist/assets/Dot.css +1 -0
  17. package/dist/assets/Flex.css +1 -0
  18. package/dist/assets/FlexRestricter.css +1 -0
  19. package/dist/assets/Flyout.css +1 -0
  20. package/dist/assets/Icon.css +1 -0
  21. package/dist/assets/Indicator.css +1 -0
  22. package/dist/assets/InfoPanel.css +1 -0
  23. package/dist/assets/Input.css +1 -0
  24. package/dist/assets/Interactive.css +1 -0
  25. package/dist/assets/Island.css +1 -0
  26. package/dist/assets/Loaf.css +1 -0
  27. package/dist/assets/Modal.css +1 -0
  28. package/dist/assets/NavList.css +1 -0
  29. package/dist/assets/Overlay.css +1 -0
  30. package/dist/assets/Pad.css +1 -0
  31. package/dist/assets/Page.css +1 -0
  32. package/dist/assets/Popover.css +1 -0
  33. package/dist/assets/PremiumBadge.css +1 -0
  34. package/dist/assets/Prose.css +1 -0
  35. package/dist/assets/Radio.css +1 -0
  36. package/dist/assets/Rail.css +1 -0
  37. package/dist/assets/RichInput.css +1 -0
  38. package/dist/assets/Select.css +1 -0
  39. package/dist/assets/Separator.css +1 -0
  40. package/dist/assets/Shroud.css +1 -0
  41. package/dist/assets/Spacer.css +1 -0
  42. package/dist/assets/Switch.css +1 -0
  43. package/dist/assets/Tabular.css +1 -0
  44. package/dist/assets/Text.css +1 -0
  45. package/dist/assets/Textarea.css +1 -0
  46. package/dist/assets/Title.css +1 -0
  47. package/dist/assets/global.css +1 -0
  48. package/dist/assets/themes.css +1 -0
  49. package/dist/components/Avatar/Avatar.d.ts +8 -0
  50. package/dist/components/Avatar/Avatar.js +22 -0
  51. package/dist/components/BackdropPortal/BackdropPortal.d.ts +6 -0
  52. package/dist/components/BackdropPortal/BackdropPortal.js +11 -0
  53. package/dist/components/Badge/Badge.d.ts +9 -0
  54. package/dist/components/Badge/Badge.js +18 -0
  55. package/dist/components/Button/Button.d.ts +22 -0
  56. package/dist/components/Button/Button.js +56 -0
  57. package/dist/components/Button/ButtonBar.d.ts +6 -0
  58. package/dist/components/Button/ButtonBar.js +13 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  60. package/dist/components/Checkbox/Checkbox.js +42 -0
  61. package/dist/components/ControlBox/ControlBox.d.ts +9 -0
  62. package/dist/components/ControlBox/ControlBox.js +19 -0
  63. package/dist/components/CountryFlag/CountryFlag.d.ts +9 -0
  64. package/dist/components/CountryFlag/CountryFlag.js +21 -0
  65. package/dist/components/Decorate/Decorate.d.ts +9 -0
  66. package/dist/components/Decorate/Decorate.js +20 -0
  67. package/dist/components/Dot/Dot.d.ts +6 -0
  68. package/dist/components/Dot/Dot.js +14 -0
  69. package/dist/components/Flyout/Flyout.d.ts +17 -0
  70. package/dist/components/Flyout/Flyout.js +60 -0
  71. package/dist/components/Icon/Icon.d.ts +11 -0
  72. package/dist/components/Icon/Icon.js +24 -0
  73. package/dist/components/Icons.d.ts +38 -0
  74. package/dist/components/Icons.js +6 -0
  75. package/dist/components/Indicator/Indicator.d.ts +6 -0
  76. package/dist/components/Indicator/Indicator.js +19 -0
  77. package/dist/components/InfoPanel/InfoPanel.d.ts +13 -0
  78. package/dist/components/InfoPanel/InfoPanel.js +34 -0
  79. package/dist/components/Input/Input.d.ts +37 -0
  80. package/dist/components/Input/Input.js +96 -0
  81. package/dist/components/Input/RichInput.d.ts +18 -0
  82. package/dist/components/Input/RichInput.js +63 -0
  83. package/dist/components/Interactive/Interactive.d.ts +6 -0
  84. package/dist/components/Interactive/Interactive.js +18 -0
  85. package/dist/components/Island/Island.d.ts +26 -0
  86. package/dist/components/Island/Island.js +34 -0
  87. package/dist/components/Layout/Box/Box.d.ts +21 -0
  88. package/dist/components/Layout/Box/Box.js +38 -0
  89. package/dist/components/Layout/Center/Center.d.ts +9 -0
  90. package/dist/components/Layout/Center/Center.js +22 -0
  91. package/dist/components/Layout/Flex/Flex.d.ts +26 -0
  92. package/dist/components/Layout/Flex/Flex.js +75 -0
  93. package/dist/components/Layout/Flex/FlexRestricter.d.ts +12 -0
  94. package/dist/components/Layout/Flex/FlexRestricter.js +20 -0
  95. package/dist/components/Layout/Pad/Pad.d.ts +15 -0
  96. package/dist/components/Layout/Pad/Pad.js +36 -0
  97. package/dist/components/Layout/Page/Page.d.ts +8 -0
  98. package/dist/components/Layout/Page/Page.js +21 -0
  99. package/dist/components/Layout/Scrollable/Rail.d.ts +13 -0
  100. package/dist/components/Layout/Scrollable/Rail.js +10 -0
  101. package/dist/components/Layout/Scrollable/Scrollable.d.ts +14 -0
  102. package/dist/components/Layout/Scrollable/Scrollable.js +89 -0
  103. package/dist/components/Layout/Scrollable/VirtualScrollable.d.ts +11 -0
  104. package/dist/components/Layout/Scrollable/VirtualScrollable.js +426 -0
  105. package/dist/components/Loaf/Loaf.d.ts +12 -0
  106. package/dist/components/Loaf/Loaf.js +27 -0
  107. package/dist/components/Modal/Modal.d.ts +18 -0
  108. package/dist/components/Modal/Modal.js +42 -0
  109. package/dist/components/NavList/NavList.d.ts +14 -0
  110. package/dist/components/NavList/NavList.js +33 -0
  111. package/dist/components/OnScreenSensor.d.ts +5 -0
  112. package/dist/components/OnScreenSensor.js +26 -0
  113. package/dist/components/Overlay/Overlay.d.ts +20 -0
  114. package/dist/components/Overlay/Overlay.js +28 -0
  115. package/dist/components/Popover/Popover.d.ts +12 -0
  116. package/dist/components/Popover/Popover.js +40 -0
  117. package/dist/components/PremiumBadge/PremiumBadge.d.ts +15 -0
  118. package/dist/components/PremiumBadge/PremiumBadge.js +38 -0
  119. package/dist/components/Prose/Prose.d.ts +6 -0
  120. package/dist/components/Prose/Prose.js +12 -0
  121. package/dist/components/Radio/Radio.d.ts +12 -0
  122. package/dist/components/Radio/Radio.js +45 -0
  123. package/dist/components/Select/Select.d.ts +16 -0
  124. package/dist/components/Select/Select.js +3293 -0
  125. package/dist/components/Separator/Separator.d.ts +8 -0
  126. package/dist/components/Separator/Separator.js +29 -0
  127. package/dist/components/Shroud/Shroud.d.ts +6 -0
  128. package/dist/components/Shroud/Shroud.js +41 -0
  129. package/dist/components/Spacer/Spacer.d.ts +5 -0
  130. package/dist/components/Spacer/Spacer.js +26 -0
  131. package/dist/components/Style/Style.d.ts +12 -0
  132. package/dist/components/Style/Style.js +23 -0
  133. package/dist/components/Switch/Switch.d.ts +17 -0
  134. package/dist/components/Switch/Switch.js +65 -0
  135. package/dist/components/Symbols.d.ts +5 -0
  136. package/dist/components/Symbols.js +7 -0
  137. package/dist/components/Tabular/Tabular.d.ts +30 -0
  138. package/dist/components/Tabular/Tabular.js +64 -0
  139. package/dist/components/Text/Text.d.ts +8 -0
  140. package/dist/components/Text/Text.js +61 -0
  141. package/dist/components/Text/Text.types.d.ts +33 -0
  142. package/dist/components/Text/Text.types.js +1 -0
  143. package/dist/components/Textarea/Textarea.d.ts +15 -0
  144. package/dist/components/Textarea/Textarea.js +57 -0
  145. package/dist/components/Title/Title.d.ts +13 -0
  146. package/dist/components/Title/Title.js +113 -0
  147. package/dist/components/outlets.d.ts +10 -0
  148. package/dist/components/outlets.js +7 -0
  149. package/dist/components/ui.d.ts +28 -0
  150. package/dist/components/ui.js +29 -0
  151. package/dist/functional-C0pE183N.js +30 -0
  152. package/dist/hooks-Bv1kQUpO.js +65 -0
  153. package/dist/index-C75OpfGQ.js +19577 -0
  154. package/dist/links-CgOD-Vfj.js +1142 -0
  155. package/dist/main.d.ts +68 -0
  156. package/dist/main.js +118 -0
  157. package/dist/math-i2ceybzU.js +16 -0
  158. package/dist/medium-Dc7QRuE0.js +118 -0
  159. package/dist/outlet-C4wpavcH.js +25 -0
  160. package/dist/outlets-BsMV5obW.js +13 -0
  161. package/dist/string-NVxCUbqk.js +54 -0
  162. package/dist/styles-scss/_colors.scss +211 -0
  163. package/dist/styles-scss/_ui.scss +195 -0
  164. package/dist/styles-scss/global.scss +71 -0
  165. package/dist/styles-scss/themes/dark.scss +24 -0
  166. package/dist/styles-scss/themes/light.scss +54 -0
  167. package/dist/styles-scss/themes.scss +2 -0
  168. package/dist/styles-scss/tokens.scss +274 -0
  169. package/dist/tslib.es6-Dd_EkEfR.js +48 -0
  170. package/dist/utils/clsx.d.ts +7 -0
  171. package/dist/utils/clsx.js +14 -0
  172. package/dist/utils/functional.d.ts +5 -0
  173. package/dist/utils/functional.js +8 -0
  174. package/dist/utils/getValue.d.ts +2 -0
  175. package/dist/utils/getValue.js +6 -0
  176. package/dist/utils/hooks.d.ts +13 -0
  177. package/dist/utils/hooks.js +9 -0
  178. package/dist/utils/links.d.ts +27 -0
  179. package/dist/utils/links.js +14 -0
  180. package/dist/utils/math.d.ts +2 -0
  181. package/dist/utils/math.js +5 -0
  182. package/dist/utils/mergeRefs.d.ts +3 -0
  183. package/dist/utils/mergeRefs.js +10 -0
  184. package/dist/utils/outlet.d.ts +4 -0
  185. package/dist/utils/outlet.js +6 -0
  186. package/dist/utils/string.d.ts +6 -0
  187. package/dist/utils/string.js +9 -0
  188. package/package.json +82 -0
@@ -0,0 +1,195 @@
1
+ @use "sass:math";
2
+ @use "colors";
3
+
4
+ @mixin def($var, $value) {
5
+ --#{$var}: #{$value};
6
+ }
7
+ @function use($var, $default: initial) {
8
+ @return var(--#{$var}, $default);
9
+ }
10
+
11
+ @function color($name, $luminance: 'pure', $alpha: 1.0) {
12
+ @if $luminance == 'pure' {
13
+ @return rgba(var(--color-#{$name}), #{$alpha});
14
+ }
15
+
16
+ @return rgba(var(--color-#{$name}-#{$luminance}), #{$alpha});
17
+ }
18
+
19
+ @function offset($size: 'normal') {
20
+ @return var(--offset-#{$size});
21
+ }
22
+
23
+ @function q($multiplier: 1) {
24
+ @if $multiplier == 1 {
25
+ @return var(--quant);
26
+ }
27
+
28
+ @return calc(var(--quant) * #{$multiplier});
29
+ }
30
+
31
+ @function control-height($size: 'normal') {
32
+ @return var(--control-height-#{$size});
33
+ }
34
+
35
+ @function font-size($size: 'normal') {
36
+ @return var(--font-size-#{$size});
37
+ }
38
+
39
+ @function font-weight($weight: 'normal') {
40
+ @return var(--font-weight-#{$weight});
41
+ }
42
+
43
+ @function negative($cssValue) {
44
+ @return calc(-1 * #{$cssValue});
45
+ }
46
+
47
+ @function border-radius($size: 'normal') {
48
+ @return var(--border-radius-#{$size});
49
+ }
50
+
51
+ @function viewport-width($multiplier: 1.0) {
52
+ @return calc((var(--width) - var(--offset-safezone) * 2) * #{$multiplier});
53
+ }
54
+ @function viewport-height($multiplier: 1.0) {
55
+ @return calc((var(--height) - var(--offset-safezone) * 2) * #{$multiplier});
56
+ }
57
+
58
+ @mixin define-color($name, $color, $bg, $fg) {
59
+ .cfx-color-#{$name} { color: $color }
60
+
61
+ --color-#{$name}: #{colors.color-triplet($color)};
62
+ --color-#{$name}-50: #{colors.color-triplet(colors.lab-gradient-step($bg, $color, 1, 7))};
63
+ --color-#{$name}-100: #{colors.color-triplet(colors.lab-gradient-step($bg, $color, 2, 7))};
64
+ --color-#{$name}-200: #{colors.color-triplet(colors.lab-gradient-step($bg, $color, 3, 7))};
65
+ --color-#{$name}-300: #{colors.color-triplet(colors.lab-gradient-step($bg, $color, 4, 7))};
66
+ --color-#{$name}-400: #{colors.color-triplet(colors.lab-gradient-step($bg, $color, 5, 7))};
67
+ --color-#{$name}-500: #{colors.color-triplet($color)};
68
+ --color-#{$name}-600: #{colors.color-triplet(colors.lab-gradient-step($color, $fg, 1, 7))};
69
+ --color-#{$name}-700: #{colors.color-triplet(colors.lab-gradient-step($color, $fg, 2, 7))};
70
+ --color-#{$name}-800: #{colors.color-triplet(colors.lab-gradient-step($color, $fg, 3, 7))};
71
+ --color-#{$name}-900: #{colors.color-triplet(colors.lab-gradient-step($color, $fg, 4, 7))};
72
+ --color-#{$name}-950: #{colors.color-triplet(colors.lab-gradient-step($color, $fg, 5, 7))};
73
+ }
74
+ @mixin define-main-color($bg, $fg) {
75
+ --color-main: #{colors.color-triplet($bg)};
76
+ --color-main-50: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 1, 12))};
77
+ --color-main-100: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 2, 12))};
78
+ --color-main-200: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 3, 12))};
79
+ --color-main-300: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 4, 12))};
80
+ --color-main-400: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 5, 12))};
81
+ --color-main-500: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 6, 12))};
82
+ --color-main-600: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 7, 12))};
83
+ --color-main-700: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 8, 12))};
84
+ --color-main-800: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 9, 12))};
85
+ --color-main-900: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 10, 12))};
86
+ --color-main-950: #{colors.color-triplet(colors.lab-gradient-step($bg, $fg, 11, 12))};
87
+ }
88
+ @mixin define-main-colors($bg, $fg, $overrides: ()) {
89
+ $colors: map-merge((
90
+ 'primary': #f50551,
91
+ 'success': #01a370,
92
+ 'warning': #ffae00,
93
+ 'error': #ff2600,
94
+ 'teal': #007892,
95
+ 'aurum': #aa6f0d,
96
+ 'silver': #a5a5a5
97
+ ), $overrides);
98
+
99
+ @include define-main-color($bg, $fg);
100
+
101
+ @each $colorName, $colorValue in $colors {
102
+ @include define-color($colorName, $colorValue, $bg, $fg);
103
+ }
104
+ }
105
+ @mixin define-color-token($name, $color) {
106
+ --color-#{$name}: #{$color};
107
+ }
108
+ @function color-token($name, ) {
109
+ @return var(--color-#{$name});
110
+ }
111
+
112
+
113
+ @mixin border-radius($size: 'normal') {
114
+ border-radius: var(--border-radius-#{$size});
115
+ }
116
+
117
+ @mixin font-size($size: 'normal') {
118
+ font-size: var(--font-size-#{$size});
119
+ }
120
+ @mixin font-family($family: 'primary') {
121
+ font-family: var(--font-family-#{$family});
122
+ }
123
+ @mixin font-weight($weight: 'normal') {
124
+ font-weight: var(--font-weight-#{$weight});
125
+ }
126
+ @mixin font-color($colorToken) {
127
+ color: color-token($colorToken);
128
+ }
129
+
130
+ @mixin animated($props: 'all', $subClass: '&') {
131
+ #{$subClass} {
132
+ transition: #{$props} .2s ease;
133
+ }
134
+
135
+ &:hover {
136
+ #{$subClass} {
137
+ transition: none;
138
+ }
139
+ }
140
+ }
141
+
142
+ @mixin fake-backdrop-blur($topLayer: false, $topLayerBlend: false, $topLayerSize: false, $topLayerAttachement: false) {
143
+ --_backdrop-color: var(--backdrop-color, transparent);
144
+ --_backdrop-image-blur: var(--backdrop-image-blur, url(assets/images/bg2-blur.png));
145
+
146
+ @if not $topLayer {
147
+ $topLayer: linear-gradient(use('_backdrop-color'), use('_backdrop-color'));
148
+ }
149
+
150
+ @if not $topLayerBlend {
151
+ $topLayerBlend: normal;
152
+ }
153
+
154
+ @if not $topLayerSize {
155
+ $topLayerSize: cover;
156
+ }
157
+
158
+ @if not $topLayerAttachement {
159
+ $topLayerAttachement: scroll;
160
+ }
161
+
162
+ background-color: use('_backdrop-color');
163
+ background-image:
164
+ $topLayer,
165
+ linear-gradient(color-token('backdrop-shader'), color-token('backdrop-shader')),
166
+ use('_backdrop-image-blur'),
167
+ use('_backdrop-image-blur');
168
+ background-blend-mode: $topLayerBlend, normal, overlay;
169
+ background-size: $topLayerSize, cover, cover, cover;
170
+ background-attachment: $topLayerAttachement, scroll, fixed, fixed;
171
+ }
172
+
173
+ @mixin offset-classes($prefix: 'offset', $property: 'gap') {
174
+ &.#{$prefix}-none {
175
+ #{$property}: 0;
176
+ }
177
+ &.#{$prefix}-thin {
178
+ #{$property}: 2px;
179
+ }
180
+ &.#{$prefix}-xsmall {
181
+ #{$property}: offset('xsmall');
182
+ }
183
+ &.#{$prefix}-small {
184
+ #{$property}: offset('small');
185
+ }
186
+ &.#{$prefix}-normal {
187
+ #{$property}: offset('normal');
188
+ }
189
+ &.#{$prefix}-large {
190
+ #{$property}: offset('large');
191
+ }
192
+ &.#{$prefix}-xlarge {
193
+ #{$property}: offset('xlarge');
194
+ }
195
+ }
@@ -0,0 +1,71 @@
1
+ @import "tokens";
2
+
3
+ body {
4
+ @include color-tokens;
5
+
6
+ @include ui.def('control-height-xxsmall', ui.q(1.5));
7
+ @include ui.def('control-height-xsmall', ui.q(3));
8
+ @include ui.def('control-height-small', ui.q(4));
9
+ @include ui.def('control-height-normal', ui.q(6));
10
+ @include ui.def('control-height-large', ui.q(7));
11
+
12
+ @include ui.def('offset-none', 0px);
13
+ @include ui.def('offset-hairthin', 1px);
14
+ @include ui.def('offset-thin', 2px);
15
+ @include ui.def('offset-xsmall', ui.q(.5));
16
+ @include ui.def('offset-small', ui.q(1));
17
+ @include ui.def('offset-normal', ui.q(2));
18
+ @include ui.def('offset-large', ui.q(4));
19
+ @include ui.def('offset-xlarge', ui.q(6));
20
+
21
+ @include ui.def('offset-safezone', ui.q(8));
22
+
23
+ @include ui.def('font-size-xsmall', 0.7rem);
24
+ @include ui.def('font-size-small', 0.8rem);
25
+ @include ui.def('font-size-normal', 1rem);
26
+ @include ui.def('font-size-large', 1.25rem);
27
+ @include ui.def('font-size-xlarge', 1.5rem);
28
+ @include ui.def('font-size-xxlarge', 1.75rem);
29
+ @include ui.def('font-size-xxxlarge', 2rem);
30
+
31
+ @include ui.def('font-weight-thin', 100);
32
+ @include ui.def('font-weight-normal', 300);
33
+ @include ui.def('font-weight-bold', 400);
34
+ @include ui.def('font-weight-bolder', 600);
35
+ @include ui.def('font-weight-boldest', 900);
36
+
37
+ @include ui.def('font-family-primary', 'RubikVariable');
38
+ @include ui.def('font-family-secondary', 'MontserratVariable');
39
+ @include ui.def('font-family-monospace', 'Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace');
40
+
41
+ @include ui.def('border-radius-none', 0);
42
+ @include ui.def('border-radius-xxsmall', ui.q(.25));
43
+ @include ui.def('border-radius-xsmall', ui.q(.5));
44
+ @include ui.def('border-radius-small', ui.q(.75));
45
+ @include ui.def('border-radius-normal', ui.q(1.5));
46
+
47
+ @include ui.font-color('text');
48
+ @include ui.font-family('primary');
49
+ @include ui.font-weight('normal');
50
+ }
51
+
52
+ // Utilities
53
+ .util-full-height {
54
+ height: 100%;
55
+ }
56
+ .util-full-width {
57
+ width: 100%;
58
+ }
59
+ .util-z-index-9000 {
60
+ z-index: 9000;
61
+ }
62
+ .util-text-selectable,
63
+ .util-text-selectable * {
64
+ user-select: text !important;
65
+ }
66
+ .util-flex-grow {
67
+ flex-grow: 1;
68
+ }
69
+ .util-flex-no-shrink {
70
+ flex-shrink: 0;
71
+ }
@@ -0,0 +1,24 @@
1
+ @use "ui";
2
+
3
+ $fg: #fffff0;
4
+ $bg: #161923;
5
+
6
+ .cfxui-theme-dark {
7
+ @include ui.define-main-colors($bg, $fg, (
8
+ 'primary': darken(#f50551, 10%)
9
+ ));
10
+
11
+ .color-1 { color: lighten(#F44336, 30%); }
12
+ .color-2 { color: lighten(#4CAF50, 30%); }
13
+ .color-3 { color: lighten(#FFEB3B, 30%); }
14
+ .color-4 { color: lighten(#42A5F5, 30%); }
15
+ .color-5 { color: lighten(#03A9F4, 30%); }
16
+ .color-6 { color: lighten(#9C27B0, 30%); }
17
+ .color-8 { color: lighten(#FF5722, 30%); }
18
+ .color-9 { color: lighten(#9E9E9E, 30%); }
19
+
20
+ // Invert black indicators for date/time inputs
21
+ ::-webkit-calendar-picker-indicator {
22
+ filter: invert(1);
23
+ }
24
+ }
@@ -0,0 +1,54 @@
1
+ @use "ui";
2
+
3
+ $fg: #161923;
4
+ $bg: #ffffff;
5
+
6
+ .cfxui-theme-light {
7
+ @include ui.define-main-colors($bg, $fg);
8
+
9
+ // Asset overrides
10
+ @include ui.def('checkered-pattern', url(assets/images/checkered_light.svg));
11
+
12
+ // Color overrides
13
+ @include ui.def ('text-opacity-10', .20);
14
+ @include ui.define-color-token('text-a10', ui.color('main', 950, .20));
15
+ @include ui.def ('text-opacity-25', .35);
16
+ @include ui.define-color-token('text-a25', ui.color('main', 950, .35));
17
+ @include ui.def ('text-opacity-50', .60);
18
+ @include ui.define-color-token('text-a50', ui.color('main', 950, .60));
19
+ @include ui.def ('text-opacity-75', .85);
20
+ @include ui.define-color-token('text-a75', ui.color('main', 950, .85));
21
+
22
+ @include ui.define-color-token('text-warning', ui.color('warning', 700));
23
+
24
+ @include ui.define-color-token('shadow-small', rgba(0, 0, 0, .3));
25
+ @include ui.define-color-token('shadow-large', rgba(0, 0, 0, .3));
26
+
27
+ @include ui.define-color-token('backdrop', ui.color('main', 50, .75));
28
+ @include ui.define-color-token('backdrop-shader', ui.color('main', 100, .75));
29
+
30
+ @include ui.define-color-token('button-primary-text', ui.color('main'));
31
+ @include ui.define-color-token('button-primary-hover-text', ui.color('main'));
32
+ @include ui.define-color-token('button-primary-active-text', ui.color('main', 950));
33
+
34
+ @include ui.define-color-token('premium-badge-text', ui.color('main'));
35
+ @include ui.define-color-token('premium-badge-background', ui.color('main', 950));
36
+
37
+ @include ui.define-color-token('loaf-text', ui.color('main', 950, .75));
38
+ @include ui.define-color-token('loaf-background', ui.color('main', 950, .075));
39
+
40
+
41
+ .color-1 { color: darken(#F44336, 30%); }
42
+ .color-2 { color: darken(#4CAF50, 30%); }
43
+ .color-3 { color: darken(#FFEB3B, 30%); }
44
+ .color-4 { color: darken(#42A5F5, 30%); }
45
+ .color-5 { color: darken(#03A9F4, 30%); }
46
+ .color-6 { color: darken(#9C27B0, 30%); }
47
+ .color-8 { color: darken(#FF5722, 30%); }
48
+ .color-9 { color: darken(#9E9E9E, 30%); }
49
+
50
+ // Too thin otherwise
51
+ --font-weight-normal: 400;
52
+ --font-weight-bold: 500;
53
+ --font-weight-bolder: 600;
54
+ }
@@ -0,0 +1,2 @@
1
+ @import "themes/dark.scss";
2
+ @import "themes/light.scss";
@@ -0,0 +1,274 @@
1
+ /**
2
+ * Look for usages by searching for `ui.color-token('name')`
3
+ */
4
+ @mixin color-tokens() {
5
+ // Asset images
6
+ @include ui.def('asset-image-bgpat', url(assets/images/bgpat.png));
7
+
8
+ @include ui.def('checkered-pattern', url(assets/images/checkered_dark.svg));
9
+ // /Asset images
10
+
11
+
12
+ @include ui.define-color-token('shadow-small', rgba(0, 0, 0, .5));
13
+ @include ui.def('shadow-small', 0 2.5px 5px ui.color-token('shadow-small'));
14
+
15
+ @include ui.define-color-token('shadow-large', rgba(0, 0, 0, .5));
16
+ @include ui.def('shadow-large', 0 ui.q(2) ui.q(8) 2px ui.color-token('shadow-large'));
17
+
18
+
19
+ @include ui.define-color-token('text', ui.color('main', 950 ));
20
+ @include ui.def ('text-opacity-10', .10);
21
+ @include ui.define-color-token('text-a10', ui.color('main', 950, .10));
22
+ @include ui.def ('text-opacity-25', .25);
23
+ @include ui.define-color-token('text-a25', ui.color('main', 950, .25));
24
+ @include ui.def ('text-opacity-50', .50);
25
+ @include ui.define-color-token('text-a50', ui.color('main', 950, .50));
26
+ @include ui.def ('text-opacity-75', .75);
27
+ @include ui.define-color-token('text-a75', ui.color('main', 950, .75));
28
+
29
+ @include ui.define-color-token('text-warning', ui.color('warning'));
30
+
31
+ @include ui.define-color-token('link-hover-decoration', ui.color('main', 950));
32
+
33
+ @include ui.define-color-token('li-marker', ui.color('main', 950, .75));
34
+
35
+ @include ui.define-color-token('kbd-border', ui.color('main', 300));
36
+ @include ui.define-color-token('kbd-background', ui.color('main', 200));
37
+
38
+ @include ui.define-color-token('scrollbar', ui.color('main', 950, .1));
39
+ @include ui.define-color-token('scrollbar-hover', ui.color('main', 950, .25));
40
+ @include ui.define-color-token('scrollbar-active', ui.color('main', 950, .5));
41
+
42
+ @include ui.define-color-token('backdrop', ui.color('main', $alpha: .75));
43
+ @include ui.define-color-token('backdrop-100', ui.color('main', $alpha: .25));
44
+ @include ui.define-color-token('backdrop-200', ui.color('main', $alpha: .5));
45
+ @include ui.define-color-token('backdrop-300', ui.color('main', $alpha: .75));
46
+
47
+ @include ui.define-color-token('backdrop-shader', ui.color('main', $alpha: .75));
48
+
49
+
50
+ // COMPONENTS
51
+ @include ui.define-color-token('avatar-background', ui.color('main'));
52
+
53
+
54
+ @include ui.define-color-token('badge-text', ui.color('main', 900));
55
+ @include ui.define-color-token('badge-border', ui.color('main', 300));
56
+ @include ui.define-color-token('badge-background', ui.color('main', 200));
57
+
58
+ @include ui.define-color-token('badge-primary-border', ui.color('primary', 50));
59
+ @include ui.define-color-token('badge-primary-background', ui.color('primary'));
60
+
61
+
62
+ @include ui.define-color-token('button-focus-outline', ui.color('primary', 'pure', .5));
63
+
64
+ @include ui.define-color-token('button-text', ui.color('main', 950));
65
+ @include ui.define-color-token('button-border', transparent);
66
+ @include ui.define-color-token('button-background', ui.color('main', 950, .15));
67
+ @include ui.define-color-token('button-hover-border', ui.color('main', 950, .05));
68
+ @include ui.define-color-token('button-hover-background', ui.color('main', 950, .1));
69
+ @include ui.define-color-token('button-active-border', ui.color('main', 950, .15));
70
+ @include ui.define-color-token('button-active-background', transparent);
71
+
72
+ @include ui.define-color-token('button-primary-text', ui.color('main', 950));
73
+ @include ui.define-color-token('button-primary-border', ui.color('primary'));
74
+ @include ui.define-color-token('button-primary-background', ui.color('primary'));
75
+ @include ui.define-color-token('button-primary-hover-text', ui.color('main', 950));
76
+ @include ui.define-color-token('button-primary-hover-border', ui.color('primary'));
77
+ @include ui.define-color-token('button-primary-hover-background', ui.color('primary', 400));
78
+ @include ui.define-color-token('button-primary-active-text', ui.color('main', 950));
79
+ @include ui.define-color-token('button-primary-active-border', ui.color('primary'));
80
+ @include ui.define-color-token('button-primary-active-background', transparent);
81
+
82
+
83
+ @include ui.define-color-token('checkbox-focus-outline', ui.color('primary', 'pure', .5));
84
+ @include ui.define-color-token('checkbox-indicator', ui.color('main', 800));
85
+
86
+ @include ui.define-color-token('checkbox-text', ui.color('main', 950));
87
+ @include ui.define-color-token('checkbox-border', ui.color('main', 950, .25));
88
+ @include ui.define-color-token('checkbox-background', ui.color('main', 950, .1));
89
+ @include ui.define-color-token('checkbox-hover-background', ui.color('main', 950, .05));
90
+
91
+
92
+ @include ui.define-color-token('flyout-backdrop-background', ui.color('main', 100, .9));
93
+ @include ui.define-color-token('flyout-holder-border', ui.color('main', 100, .25));
94
+ @include ui.define-color-token('flyout-holder-blur-background', ui.color('main', 50, .75));
95
+ @include ui.define-color-token('flyout-holder-unblur-background', ui.color('main'));
96
+
97
+
98
+ @include ui.define-color-token('indicator-bright', ui.color('primary'));
99
+ @include ui.define-color-token('indicator-dim', transparent);
100
+
101
+
102
+ @include ui.define-color-token('info-panel-border', ui.color('main', 950, .1));
103
+ @include ui.define-color-token('info-panel-background', ui.color('main', 950, .1));
104
+
105
+ @include ui.define-color-token('info-panel-error-border', ui.color('error', $alpha: .8));
106
+ @include ui.define-color-token('info-panel-error-background', ui.color('error', $alpha: .4));
107
+
108
+ @include ui.define-color-token('info-panel-success-border', ui.color('success', $alpha: .8));
109
+ @include ui.define-color-token('info-panel-success-background', ui.color('success', $alpha: .4));
110
+
111
+ @include ui.define-color-token('info-panel-warning-border', ui.color('warning', $alpha: .8));
112
+ @include ui.define-color-token('info-panel-warning-background', ui.color('warning', $alpha: .4));
113
+
114
+
115
+ @include ui.define-color-token('input-placeholder-text', ui.color('main', 950, .5));
116
+ @include ui.define-color-token('input-description-text', ui.color('main', 950, .5));
117
+ @include ui.define-color-token('input-label-text', ui.color('main', 950));
118
+
119
+ @include ui.define-color-token('input-text', ui.color('main', 950));
120
+ @include ui.define-color-token('input-background', ui.color('main', 950, .1));
121
+
122
+ @include ui.define-color-token('input-border', ui.color('main', 950, .25));
123
+ @include ui.define-color-token('input-hover-border', ui.color('main', 950, .5));
124
+ @include ui.define-color-token('input-focus-border', ui.color('primary'));
125
+
126
+ @include ui.define-color-token('input-disabled-border', ui.color('main', 950, .05));
127
+ @include ui.define-color-token('input-disabled-label-text', ui.color('main', 950, .5));
128
+
129
+
130
+ @include ui.define-color-token('island-border', ui.color('main', 50, .25));
131
+ @include ui.define-color-token('island-blur-background', ui.color('main', 50, .75));
132
+ @include ui.define-color-token('island-unblur-background', ui.color('main', 50, .95));
133
+
134
+
135
+ @include ui.define-color-token('loaf-text', ui.color('main', 950, .5));
136
+ @include ui.define-color-token('loaf-background', ui.color('main', 950, .05));
137
+ @include ui.define-color-token('loaf-bright-text', ui.color('main', 950));
138
+
139
+ @include ui.define-color-token('loaf-gold-text', ui.color('aurum', 500, .5));
140
+ @include ui.define-color-token('loaf-gold-background', ui.color('main', 950, .05));
141
+ @include ui.define-color-token('loaf-gold-bright-text', ui.color('aurum', 500));
142
+
143
+ @include ui.define-color-token('loaf-error-text', ui.color('error', 500));
144
+ @include ui.define-color-token('loaf-error-background', ui.color('error', 500, .15));
145
+ @include ui.define-color-token('loaf-error-bright-text', ui.color('error', 500));
146
+
147
+
148
+ @include ui.define-color-token('modal-border', ui.color('main', 950, .15));
149
+ @include ui.define-color-token('modal-background', ui.color('main'));
150
+ @include ui.define-color-token('modal-footer-background', ui.color('main', 50, .95));
151
+
152
+
153
+ @include ui.define-color-token('navlist-item-border', ui.color('main', 950, .1));
154
+ @include ui.define-color-token('navlist-item-background', transparent);
155
+ @include ui.define-color-token('navlist-item-active-border', transparent);
156
+ @include ui.define-color-token('navlist-item-active-background', ui.color('main', 950, .1));
157
+ @include ui.define-color-token('navlist-item-hover-border', transparent);
158
+ @include ui.define-color-token('navlist-item-hover-background', ui.color('main', 950, .2));
159
+
160
+
161
+ @include ui.define-color-token('overlay-backdrop-background', ui.color('main', 50, .95));
162
+
163
+
164
+ @include ui.define-color-token('popover-background', ui.color('main', 50));
165
+
166
+
167
+ @include ui.define-color-token('premium-badge-text', ui.color('main', 'pure'));
168
+ @include ui.define-color-token('premium-badge-background', ui.color('main'));
169
+
170
+ @include ui.define-color-token('premium-badge-pt-gradient-1', darken(#f50551, 15%));
171
+ @include ui.define-color-token('premium-badge-pt-gradient-2', #f50551);
172
+
173
+ @include ui.define-color-token('premium-badge-au-gradient-1', ui.color('aurum', 200));
174
+ @include ui.define-color-token('premium-badge-au-gradient-2', ui.color('aurum', 'pure', 1));
175
+
176
+ @include ui.define-color-token('premium-badge-ag-gradient-1', ui.color('silver', 200));
177
+ @include ui.define-color-token('premium-badge-ag-gradient-2', ui.color('silver', 'pure', 1));
178
+
179
+
180
+ @include ui.define-color-token('select-option-background', ui.color('main'));
181
+ @include ui.define-color-token('select-text', ui.color('main', 950));
182
+ @include ui.define-color-token('select-background', ui.color('main', 950, .1));
183
+ @include ui.define-color-token('select-border', ui.color('main', 950, .25));
184
+
185
+ @include ui.define-color-token('select-hover-border', ui.color('main', 950, .5));
186
+ @include ui.define-color-token('select-focus-border', ui.color('primary'));
187
+
188
+
189
+ @include ui.define-color-token('separator-text', ui.color('main', 950, .25));
190
+ @include ui.define-color-token('separator-background', ui.color('main', 950, .1));
191
+
192
+
193
+ @include ui.define-color-token('switch-description-text', ui.color('main', 950, .5));
194
+ @include ui.define-color-token('switch-border', ui.color('main', 950, .25));
195
+ @include ui.define-color-token('switch-background', ui.color('main', 950, .1));
196
+
197
+ @include ui.define-color-token('switch-hover-background', ui.color('main', 200));
198
+
199
+ @include ui.define-color-token('switch-active-text', ui.color('main'));
200
+ @include ui.define-color-token('switch-active-background', ui.color('main', 950, .75));
201
+
202
+
203
+ @include ui.define-color-token('title-text', ui.color('main'));
204
+ @include ui.define-color-token('title-background', ui.color('main', 950));
205
+
206
+
207
+ @include ui.define-color-token('server-icon-loader-background', ui.color('main', $alpha: .5));
208
+
209
+
210
+ @include ui.define-color-token('server-banner-background-from', ui.color('main', $alpha: .75));
211
+ @include ui.define-color-token('server-banner-background-to', ui.color('main', $alpha: .95));
212
+
213
+
214
+ @include ui.define-color-token('server-review-background', ui.color('main', 'pure', .5));
215
+ @include ui.define-color-token('server-review-form-background', ui.color('main', 100, .5));
216
+
217
+
218
+ @include ui.define-color-token('server-item-border', ui.color('main', 100, 1));
219
+ @include ui.define-color-token('server-item-description-text', ui.color('main', 950, .5));
220
+ @include ui.define-color-token('server-item-players-text', ui.color('main', 950, .5));
221
+
222
+ @include ui.define-color-token('server-item-standalone-background', ui.color('main', 'pure'));
223
+ @include ui.define-color-token('server-item-standalone-hover-background', ui.color('main', 50));
224
+
225
+ @include ui.define-color-token('server-item-background', ui.color('main', 'pure', .5));
226
+ @include ui.define-color-token('server-item-hover-background', ui.color('main', 50, .5));
227
+
228
+ @include ui.define-color-token('server-item-platinum-background', ui.color('primary', 'pure', .1));
229
+
230
+ @include ui.define-color-token('server-item-density-background-from', ui.color('success'));
231
+ @include ui.define-color-token('server-item-density-background-via', ui.color('warning'));
232
+ @include ui.define-color-token('server-item-density-background-to', ui.color('error'));
233
+
234
+
235
+ @include ui.define-color-token('server-filters-sort-item-background', transparent);
236
+ @include ui.define-color-token('server-filters-sort-item-hover-background', ui.color('main', 'pure', 1));
237
+ @include ui.define-color-token('server-filters-sort-item-active-background', ui.color('main', 'pure', .5));
238
+
239
+ @include ui.define-color-token('server-filters-faucet-background', transparent);
240
+ @include ui.define-color-token('server-filters-faucet-hover-background', ui.color('main', 200, .5));
241
+ @include ui.define-color-token('server-filters-faucet-inclusive-background', ui.color('success', $alpha: .5));
242
+ @include ui.define-color-token('server-filters-faucet-inclusive-hover-background', ui.color('success', $alpha: .4));
243
+ @include ui.define-color-token('server-filters-faucet-exclusive-background', ui.color('error', $alpha: .5));
244
+ @include ui.define-color-token('server-filters-faucet-exclusive-hover-background', ui.color('error', $alpha: .4));
245
+
246
+
247
+ @include ui.define-color-token('platform-status-background', ui.color('bg', 'pure', .5));
248
+ @include ui.define-color-token('platform-status-border', transparent);
249
+ @include ui.define-color-token('platform-status-shadow', transparent);
250
+ @include ui.define-color-token('platform-status-warning-border', ui.color('warning'));
251
+ @include ui.define-color-token('platform-status-warning-shadow', ui.color('warning', 'pure', .25));
252
+ @include ui.define-color-token('platform-status-error-border', ui.color('error'));
253
+ @include ui.define-color-token('platform-status-error-shadow', ui.color('primary', 'pure', .5));
254
+
255
+
256
+ @include ui.define-color-token('interactive-list-background', ui.color('main', 100, 1));
257
+ @include ui.define-color-token('interactive-list-item-background', transparent);
258
+ @include ui.define-color-token('interactive-list-item-hover-background', ui.color('main', 200, 1));
259
+ @include ui.define-color-token('interactive-list-item-active-background', ui.color('main', 200, .5));
260
+
261
+
262
+ @include ui.define-color-token('carousel-selector-item-progress-background', ui.color('main', 500, .25));
263
+
264
+
265
+ @include ui.define-color-token('outlined-hover-border', ui.color('main', 500, .25));
266
+
267
+
268
+ @include ui.define-color-token('tabular-item-decorator-active-background', ui.color('main', 950, .5));
269
+ @include ui.define-color-token('tabular-item-decorator-hover-background', ui.color('main', 950, .1));
270
+
271
+
272
+ @include ui.define-color-token('play-button-background-1', rgba(255, 143, 178, 1));
273
+ @include ui.define-color-token('play-button-background-2', rgba(170, 49, 146, 1));
274
+ }
@@ -0,0 +1,48 @@
1
+ var c = function(n, t) {
2
+ return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
3
+ e.__proto__ = r;
4
+ } || function(e, r) {
5
+ for (var o in r)
6
+ Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
7
+ }, c(n, t);
8
+ };
9
+ function s(n, t) {
10
+ if (typeof t != "function" && t !== null)
11
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
+ c(n, t);
13
+ function e() {
14
+ this.constructor = n;
15
+ }
16
+ n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
+ }
18
+ var p = function() {
19
+ return p = Object.assign || function(t) {
20
+ for (var e, r = 1, o = arguments.length; r < o; r++) {
21
+ e = arguments[r];
22
+ for (var a in e)
23
+ Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
24
+ }
25
+ return t;
26
+ }, p.apply(this, arguments);
27
+ };
28
+ function u(n, t) {
29
+ var e = {};
30
+ for (var r in n)
31
+ Object.prototype.hasOwnProperty.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
32
+ if (n != null && typeof Object.getOwnPropertySymbols == "function")
33
+ for (var o = 0, r = Object.getOwnPropertySymbols(n); o < r.length; o++)
34
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[o]) && (e[r[o]] = n[r[o]]);
35
+ return e;
36
+ }
37
+ function l(n, t, e) {
38
+ if (e || arguments.length === 2)
39
+ for (var r = 0, o = t.length, a; r < o; r++)
40
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
41
+ return n.concat(a || Array.prototype.slice.call(t));
42
+ }
43
+ export {
44
+ p as _,
45
+ s as a,
46
+ u as b,
47
+ l as c
48
+ };