@cfx-dev/ui-components 4.3.1 → 4.3.3

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 (151) hide show
  1. package/dist/{Combination-CSgOhzm-.js → Combination-BGYCZNoJ.js} +375 -367
  2. package/dist/Rail-CHFAf3wJ.js +81 -0
  3. package/dist/Table.module-DffST69u.js +17 -0
  4. package/dist/assets/css/Accordion.css +1 -1
  5. package/dist/assets/css/Box.css +1 -1
  6. package/dist/assets/css/Button.css +1 -1
  7. package/dist/assets/css/DataTable.css +1 -1
  8. package/dist/assets/css/DropdownSelect.css +1 -1
  9. package/dist/assets/css/Flex.css +1 -1
  10. package/dist/assets/css/Flyout.css +1 -1
  11. package/dist/assets/css/Indicator.css +1 -1
  12. package/dist/assets/css/InfoPanel.css +1 -1
  13. package/dist/assets/css/Input.css +1 -1
  14. package/dist/assets/css/InputDropzone.css +1 -1
  15. package/dist/assets/css/Island.css +1 -1
  16. package/dist/assets/css/Link.css +1 -1
  17. package/dist/assets/css/Modal.css +1 -1
  18. package/dist/assets/css/Overlay.css +1 -1
  19. package/dist/assets/css/Pad.css +1 -1
  20. package/dist/assets/css/Popover.css +1 -1
  21. package/dist/assets/css/Radio.css +1 -1
  22. package/dist/assets/css/Rail.css +1 -1
  23. package/dist/assets/css/RichInput.css +1 -1
  24. package/dist/assets/css/Select.css +1 -1
  25. package/dist/assets/css/Separator.css +1 -1
  26. package/dist/assets/css/Switch.css +1 -1
  27. package/dist/assets/css/Table.css +1 -1
  28. package/dist/assets/css/Tabular.css +1 -1
  29. package/dist/assets/css/Text.css +1 -1
  30. package/dist/assets/css/Textarea.css +1 -1
  31. package/dist/assets/css/Title.css +1 -1
  32. package/dist/assets/css/ToggleGroup.css +1 -1
  33. package/dist/assets/general/global.css +1 -1
  34. package/dist/assets/general/themes.css +1 -1
  35. package/dist/components/Accordion/Accordion.js +5 -5
  36. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  37. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  38. package/dist/components/Badge/BadgeShowcase.js +1 -1
  39. package/dist/components/Box/Box.d.ts +6 -0
  40. package/dist/components/Box/Box.js +23 -0
  41. package/dist/components/Box/index.d.ts +3 -0
  42. package/dist/components/Box/index.js +6 -0
  43. package/dist/components/BurgerMenu/BurgerMenu.js +7 -7
  44. package/dist/components/BurgerMenu/BurgerMenuButton.js +2 -2
  45. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  46. package/dist/components/Button/ButtonShowcase.js +1 -1
  47. package/dist/components/Checkbox/Checkbox.js +252 -157
  48. package/dist/components/DataTable/DataTable.js +2 -2
  49. package/dist/components/DataTable/DataTableShowcase.js +2 -2
  50. package/dist/components/DropdownSelect/DropdownSelect.js +13 -13
  51. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  52. package/dist/components/Flex/Flex.d.ts +7 -0
  53. package/dist/components/Flex/Flex.js +23 -0
  54. package/dist/components/Flex/index.d.ts +6 -0
  55. package/dist/components/{Layout/Flex → Flex}/index.js +2 -2
  56. package/dist/components/Flyout/Flyout.js +6 -6
  57. package/dist/components/InfoPanel/InfoPanel.js +3 -3
  58. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  59. package/dist/components/Input/Input.js +87 -87
  60. package/dist/components/Input/InputShowcase.js +1 -1
  61. package/dist/components/Input/RichInput.js +42 -42
  62. package/dist/components/Island/Island.js +27 -27
  63. package/dist/components/Layout/Pad/Pad.js +20 -20
  64. package/dist/components/Link/LinkShowcase.js +1 -1
  65. package/dist/components/Logos/LogosShowcase.js +1 -1
  66. package/dist/components/Modal/ModalShowcase.js +4 -4
  67. package/dist/components/OnScreenSensor.js +13 -13
  68. package/dist/components/Popover/Popover.js +5 -5
  69. package/dist/components/Popover/PopoverShowcase.js +1 -1
  70. package/dist/components/{Layout → RSC}/Box/Box.d.ts +3 -2
  71. package/dist/components/RSC/Box/Box.js +101 -0
  72. package/dist/components/RSC/Box/index.d.ts +2 -0
  73. package/dist/components/RSC/Box/index.js +7 -0
  74. package/dist/components/{Layout → RSC}/Flex/Flex.d.ts +4 -2
  75. package/dist/components/RSC/Flex/Flex.js +119 -0
  76. package/dist/components/{Layout → RSC}/Flex/index.d.ts +1 -1
  77. package/dist/components/RSC/Flex/index.js +15 -0
  78. package/dist/components/Scrollable/Rail.js +9 -0
  79. package/dist/components/Scrollable/Scrollable.js +88 -0
  80. package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.js +3 -3
  81. package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.js +3 -3
  82. package/dist/components/{Layout/Scrollable → Scrollable}/index.js +1 -1
  83. package/dist/components/Select/Select.js +3 -3
  84. package/dist/components/Select/SelectShowcase.js +1 -1
  85. package/dist/components/Separator/Separator.js +3 -3
  86. package/dist/components/Shroud/Shroud.js +7 -7
  87. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  88. package/dist/components/Skeleton/Skeleton.js +5 -5
  89. package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
  90. package/dist/components/Slider/Slider.js +2 -2
  91. package/dist/components/Slider/SliderShowcase.js +1 -1
  92. package/dist/components/Switch/Switch.js +1 -1
  93. package/dist/components/Table/TableBody.js +1 -1
  94. package/dist/components/Table/TableCell.d.ts +1 -1
  95. package/dist/components/Table/TableCell.js +13 -12
  96. package/dist/components/Table/TableCellCheckbox.js +1 -1
  97. package/dist/components/Table/TableHeader.js +1 -1
  98. package/dist/components/Table/TableIconButton.js +1 -1
  99. package/dist/components/Table/TableRoot.js +1 -1
  100. package/dist/components/Table/TableRow.js +1 -1
  101. package/dist/components/Tabular/TabularShowcase.js +1 -1
  102. package/dist/components/Text/TextShowcase.js +2 -2
  103. package/dist/components/Textarea/Textarea.js +32 -34
  104. package/dist/components/Title/Title.js +62 -62
  105. package/dist/components/Title/TitleShowcase.js +1 -1
  106. package/dist/components/ToggleGroup/ToggleGroup.js +7 -7
  107. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  108. package/dist/index-ByKwkZKY.js +239 -0
  109. package/dist/{index-HDl8nGsm.js → index-CriGVLlo.js} +1 -1
  110. package/dist/{index-DZEAOJqB.js → index-DlJ4qUbZ.js} +1 -1
  111. package/dist/main.d.ts +6 -6
  112. package/dist/main.js +94 -93
  113. package/dist/rsc.d.ts +4 -0
  114. package/dist/rsc.js +16 -0
  115. package/dist/styles-scss/_colors.scss +41 -32
  116. package/dist/styles-scss/_typography.scss +5 -5
  117. package/dist/styles-scss/_ui.scss +36 -20
  118. package/dist/styles-scss/global.scss +24 -13
  119. package/dist/styles-scss/themes/theme_cfx.scss +3 -5
  120. package/dist/styles-scss/themes/theme_fivem.scss +5 -7
  121. package/dist/styles-scss/themes/theme_redm.scss +4 -6
  122. package/dist/styles-scss/themes/theme_wireframe.scss +5 -7
  123. package/dist/styles-scss/themes.scss +4 -4
  124. package/dist/styles-scss/tokens.scss +2 -56
  125. package/dist/utils/hooks/useGlobalKeyboardEvent.js +3 -3
  126. package/dist/utils/hooks/useWindowResize.js +5 -5
  127. package/dist/utils/string.d.ts +1 -0
  128. package/dist/utils/string.js +23 -19
  129. package/package.json +10 -5
  130. package/dist/Rail-DcVowhML.js +0 -81
  131. package/dist/Table.module-DHI1mXN2.js +0 -17
  132. package/dist/components/Layout/Box/Box.js +0 -72
  133. package/dist/components/Layout/Box/index.d.ts +0 -2
  134. package/dist/components/Layout/Box/index.js +0 -5
  135. package/dist/components/Layout/Flex/Flex.js +0 -84
  136. package/dist/components/Layout/Scrollable/Rail.js +0 -9
  137. package/dist/components/Layout/Scrollable/Scrollable.js +0 -91
  138. package/dist/index-BHuChyf5.js +0 -238
  139. /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.d.ts +0 -0
  140. /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.js +0 -0
  141. /package/dist/components/{Layout → RSC}/Box/Box.types.d.ts +0 -0
  142. /package/dist/components/{Layout → RSC}/Box/Box.types.js +0 -0
  143. /package/dist/components/{Layout → RSC}/Flex/Flex.types.d.ts +0 -0
  144. /package/dist/components/{Layout → RSC}/Flex/Flex.types.js +0 -0
  145. /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.d.ts +0 -0
  146. /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.js +0 -0
  147. /package/dist/components/{Layout/Scrollable → Scrollable}/Rail.d.ts +0 -0
  148. /package/dist/components/{Layout/Scrollable → Scrollable}/Scrollable.d.ts +0 -0
  149. /package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.d.ts +0 -0
  150. /package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.d.ts +0 -0
  151. /package/dist/components/{Layout/Scrollable → Scrollable}/index.d.ts +0 -0
@@ -1,4 +1,5 @@
1
1
  @use "sass:math";
2
+ @use "sass:list";
2
3
  @use "sass:map";
3
4
  @use "sass:meta";
4
5
  @use "colors";
@@ -6,6 +7,7 @@
6
7
  @mixin def($var, $value) {
7
8
  --#{$var}: #{$value};
8
9
  }
10
+
9
11
  @function use($var, $default: initial) {
10
12
  @return var(--#{$var}, $default);
11
13
  }
@@ -53,11 +55,12 @@
53
55
  @function viewport-width($multiplier: 1.0) {
54
56
  @return calc((var(--width) - var(--offset-safezone) * 2) * #{$multiplier});
55
57
  }
58
+
56
59
  @function viewport-height($multiplier: 1.0) {
57
60
  @return calc((var(--height) - var(--offset-safezone) * 2) * #{$multiplier});
58
61
  }
59
62
 
60
- $cfxui-color-luminance: (
63
+ $cfxuiColorLuminance: (
61
64
  'pure',
62
65
  950,
63
66
  900,
@@ -71,8 +74,7 @@ $cfxui-color-luminance: (
71
74
  100,
72
75
  50,
73
76
  );
74
-
75
- $cfxui-color-alpha: (
77
+ $cfxuiColorAlpha: (
76
78
  '100': 1,
77
79
  '90': 0.9,
78
80
  '80': 0.8,
@@ -123,7 +125,7 @@ $cfxui-color-alpha: (
123
125
  }
124
126
 
125
127
  @mixin define-main-colors($bg, $fg, $overrides: ()) {
126
- $colors: map-merge((
128
+ $colors: map.merge((
127
129
  'primary': #f50551,
128
130
  'success': #01a370,
129
131
  'warning': #ffae00,
@@ -141,7 +143,7 @@ $cfxui-color-alpha: (
141
143
  }
142
144
 
143
145
  @mixin define-theme($bg, $fg, $overrides: ()) {
144
- $colors: map-merge((
146
+ $colors: map.merge((
145
147
  'accent': #F40552,
146
148
  'primary': #F1F1E4,
147
149
  'secondary': #9EA4BD,
@@ -156,7 +158,7 @@ $cfxui-color-alpha: (
156
158
  'bg-light': #1C202E,
157
159
  'bg-dark': #1C202E,
158
160
  'bg-dark-grey': #1A1A1A,
159
- 'bg-black': #000000,
161
+ 'bg-black': #000,
160
162
  ), $overrides);
161
163
 
162
164
  @each $colorName, $colorValue in $colors {
@@ -167,11 +169,11 @@ $cfxui-color-alpha: (
167
169
  @mixin define-color-token($name, $color) {
168
170
  --color-#{$name}: #{$color};
169
171
  }
172
+
170
173
  @function color-token($name, ) {
171
174
  @return var(--color-#{$name});
172
175
  }
173
176
 
174
-
175
177
  @mixin border-radius($size: 'normal') {
176
178
  border-radius: var(--border-radius-#{$size});
177
179
  }
@@ -179,12 +181,15 @@ $cfxui-color-alpha: (
179
181
  @mixin font-size($size: 'normal') {
180
182
  font-size: var(--font-size-#{$size});
181
183
  }
184
+
182
185
  @mixin font-family($family: 'primary') {
183
186
  font-family: var(--font-family-#{$family});
184
187
  }
188
+
185
189
  @mixin font-weight($weight: 'normal') {
186
190
  font-weight: var(--font-weight-#{$weight});
187
191
  }
192
+
188
193
  @mixin font-color($colorToken) {
189
194
  color: color-token($colorToken);
190
195
  }
@@ -198,10 +203,11 @@ $cfxui-color-alpha: (
198
203
  }
199
204
 
200
205
  @mixin animated($props: 'all', $subClass: '&') {
201
- @if type-of($props) == 'list' {
206
+ @if meta.type-of($props) == 'list' {
202
207
  $transition: ();
208
+
203
209
  @each $property in $props {
204
- $transition: append(
210
+ $transition: list.append(
205
211
  $transition, ($property .25s ease), $separator: comma
206
212
  );
207
213
  }
@@ -220,11 +226,11 @@ $cfxui-color-alpha: (
220
226
  }
221
227
 
222
228
  @mixin fake-backdrop-blur($topLayer: false, $topLayerBlend: false, $topLayerSize: false, $topLayerAttachement: false) {
223
- --_backdrop-color: var(--backdrop-color, transparent);
224
- --_backdrop-image-blur: var(--backdrop-image-blur, url(assets/images/bg2-blur.png));
229
+ --over-backdrop-color: var(--backdrop-color, transparent);
230
+ --over-backdrop-image-blur: var(--backdrop-image-blur, url("assets/images/bg2-blur.png"));
225
231
 
226
232
  @if not $topLayer {
227
- $topLayer: linear-gradient(use('_backdrop-color'), use('_backdrop-color'));
233
+ $topLayer: linear-gradient(use('over-backdrop-color'), use('over-backdrop-color'));
228
234
  }
229
235
 
230
236
  @if not $topLayerBlend {
@@ -239,12 +245,12 @@ $cfxui-color-alpha: (
239
245
  $topLayerAttachement: scroll;
240
246
  }
241
247
 
242
- background-color: use('_backdrop-color');
248
+ background-color: use('over-backdrop-color');
243
249
  background-image:
244
250
  $topLayer,
245
251
  linear-gradient(color-token('backdrop-shader'), color-token('backdrop-shader')),
246
- use('_backdrop-image-blur'),
247
- use('_backdrop-image-blur');
252
+ use('over-backdrop-image-blur'),
253
+ use('over-backdrop-image-blur');
248
254
  background-blend-mode: $topLayerBlend, normal, overlay;
249
255
  background-size: $topLayerSize, cover, cover, cover;
250
256
  background-attachment: $topLayerAttachement, scroll, fixed, fixed;
@@ -276,12 +282,15 @@ $offsets: (
276
282
  ::-webkit-scrollbar {
277
283
  width: use('scrollable-thumb-size');
278
284
  }
285
+
279
286
  ::-webkit-scrollbar:horizontal {
280
287
  height: use('scrollable-thumb-size');
281
288
  }
289
+
282
290
  ::-webkit-scrollbar-track {
283
291
  background-color: color-token('scrollbar-track-background');
284
292
  }
293
+
285
294
  ::-webkit-scrollbar-thumb {
286
295
  @include border-radius('pill');
287
296
 
@@ -290,10 +299,12 @@ $offsets: (
290
299
  &:hover {
291
300
  background-color: color-token('scrollbar-hover');
292
301
  }
302
+
293
303
  &:active {
294
304
  background-color: color-token('scrollbar-active');
295
305
  }
296
306
  }
307
+
297
308
  ::-webkit-scrollbar-corner {
298
309
  display: none;
299
310
  }
@@ -301,15 +312,22 @@ $offsets: (
301
312
 
302
313
  @mixin placeholder-color($color) {
303
314
  &::placeholder {color: $color}
315
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
304
316
  &::-webkit-input-placeholder {color: $color}
317
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
305
318
  &::-moz-placeholder {color: $color}
319
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
306
320
  &:-ms-input-placeholder {color: $color}
307
321
  }
308
322
 
309
323
  @mixin placeholder-animated($props: 'all', $subClass: '&') {
324
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
310
325
  &::placeholder {@include animated($props, $subClass)}
326
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
311
327
  &::-webkit-input-placeholder {@include animated($props, $subClass)}
328
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
312
329
  &::-moz-placeholder {@include animated($props, $subClass)}
330
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
313
331
  &:-ms-input-placeholder {@include animated($props, $subClass)}
314
332
  }
315
333
 
@@ -339,7 +357,7 @@ $mediaMap: (
339
357
  @if $size == 'initial' {
340
358
  @content;
341
359
  } @else {
342
- @media (min-width: calc(map.get($mediaMap, $size) - 1px)) { @content; }
360
+ @media (width >= calc(map.get($mediaMap, $size) - 1px)) { @content; }
343
361
  }
344
362
  } @else {
345
363
  @media (min-width: $fix) { @content; }
@@ -370,8 +388,7 @@ $mpMap: (
370
388
  pb: padding-bottom,
371
389
  pl: padding-left,
372
390
  );
373
-
374
- $controlHeights: (
391
+ $controlHeightsMap: (
375
392
  'xxsmall': q(1.5),
376
393
  'xsmall': q(3),
377
394
  'small': q(4),
@@ -379,8 +396,7 @@ $controlHeights: (
379
396
  'large': q(7),
380
397
  'xlarge': q(10),
381
398
  );
382
-
383
- $borderRadius: (
399
+ $borderRadiusMap: (
384
400
  'none': 0px,
385
401
  'xxsmall': q(.25),
386
402
  'xsmall': q(.5),
@@ -2,6 +2,13 @@
2
2
  @use "tokens";
3
3
 
4
4
  body {
5
+ // Set default font styles
6
+ @include ui.font-color('text');
7
+ @include ui.font-family('primary');
8
+ @include ui.font-weight('normal');
9
+ @include ui.line-height('normal');
10
+ @include ui.letter-spacing('normal');
11
+
5
12
  // initiat tokens
6
13
  @include tokens.color-tokens;
7
14
  @include tokens.offset-tokens;
@@ -27,6 +34,9 @@ body {
27
34
  @include tokens.separator-tokens;
28
35
  @include tokens.zindex-tokens;
29
36
 
37
+ // initiat fonts
38
+ @include typography.font-HelveticaNow;
39
+
30
40
  // responsive
31
41
  @include tokens.mp-tokens;
32
42
  @include tokens.responsive-tokens('display');
@@ -40,16 +50,6 @@ body {
40
50
  @include tokens.responsive-tokens('flex');
41
51
  @include tokens.responsive-tokens('font-size');
42
52
  @include tokens.responsive-tokens('line-height');
43
-
44
- // initiat fonts
45
- @include typography.font-HelveticaNow;
46
-
47
- // Set default font styles
48
- @include ui.font-color('text');
49
- @include ui.font-family('primary');
50
- @include ui.font-weight('normal');
51
- @include ui.line-height('normal');
52
- @include ui.letter-spacing('normal');
53
53
  }
54
54
 
55
55
  a {
@@ -59,16 +59,16 @@ a {
59
59
  text-decoration: underline;
60
60
  border-radius: ui.border-radius('xxsmall');
61
61
 
62
- @include ui.animated();
62
+ @include ui.animated;
63
63
 
64
64
  &:not([aria-disabled="true"]) {
65
- text-decoration-color: currentColor;
65
+ text-decoration-color: currentcolor;
66
66
 
67
67
  &:hover {
68
68
  text-decoration-color: ui.color('tertiary', $alpha: 0.5);
69
69
  }
70
70
 
71
- &:focus-visible:not(:active):not(:hover) {
71
+ &:focus-visible:not(:active, :hover) {
72
72
  box-shadow: 0 0 0 ui.use('anchor-outline-size') ui.color-token('anchor-focus-outline');
73
73
  }
74
74
  }
@@ -94,26 +94,31 @@ h1 {
94
94
  @include ui.line-height('xxxlarge');
95
95
  @include ui.font-weight('bold');
96
96
  }
97
+
97
98
  h2 {
98
99
  @include ui.font-size('xxlarge');
99
100
  @include ui.line-height('xxlarge');
100
101
  @include ui.font-weight('bold');
101
102
  }
103
+
102
104
  h3 {
103
105
  @include ui.font-size('xlarge');
104
106
  @include ui.line-height('xlarge');
105
107
  @include ui.font-weight('bold');
106
108
  }
109
+
107
110
  h4 {
108
111
  @include ui.font-size('large');
109
112
  @include ui.line-height('large');
110
113
  @include ui.font-weight('bold');
111
114
  }
115
+
112
116
  h5 {
113
117
  @include ui.font-size('medium');
114
118
  @include ui.line-height('medium');
115
119
  @include ui.font-weight('bold');
116
120
  }
121
+
117
122
  h6 {
118
123
  @include ui.font-size('medium');
119
124
  @include ui.line-height('medium');
@@ -140,23 +145,29 @@ li::marker {
140
145
  .util-full-height {
141
146
  height: 100%;
142
147
  }
148
+
143
149
  .util-full-width {
144
150
  width: 100%;
145
151
  }
152
+
146
153
  .util-z-index-9000 {
147
154
  z-index: ui.zindex('max');
148
155
  }
156
+
149
157
  .util-text-unselectable,
150
158
  .util-text-unselectable * {
151
159
  user-select: none !important;
152
160
  }
161
+
153
162
  .util-text-selectable,
154
163
  .util-text-selectable * {
155
164
  user-select: text;
156
165
  }
166
+
157
167
  .util-flex-grow {
158
168
  flex-grow: 1;
159
169
  }
170
+
160
171
  .util-flex-no-shrink {
161
172
  flex-shrink: 0;
162
173
  }
@@ -2,8 +2,7 @@
2
2
 
3
3
  $fg: #fffff0;
4
4
  $bg: #161923;
5
-
6
- $theme-cfx-colors: (
5
+ $colors: (
7
6
  'accent': #F40552,
8
7
  'primary': #F1F1E4,
9
8
  'secondary': #9EA4BD,
@@ -18,14 +17,13 @@ $theme-cfx-colors: (
18
17
  'bg-light': #1C202E,
19
18
  'bg-dark': #1C202E,
20
19
  'bg-dark-grey': #1A1A1A,
21
- 'bg-black': #000000,
20
+ 'bg-black': #000,
22
21
  );
23
22
 
24
23
  .cfxui-theme-cfx {
25
24
  // TODO: remove
26
25
  @include ui.define-main-colors($bg, $fg);
27
-
28
- @include ui.define-theme($bg, $fg, $theme-cfx-colors);
26
+ @include ui.define-theme($bg, $fg, $colors);
29
27
 
30
28
  // Invert black indicators for date/time inputs
31
29
  ::-webkit-calendar-picker-indicator {
@@ -2,10 +2,9 @@
2
2
 
3
3
  $fg: #fffff0;
4
4
  $bg: #161923;
5
-
6
- $theme-fivem-colors: (
5
+ $colors: (
7
6
  'accent': #5B8F22,
8
- 'primary': #FFFFFF,
7
+ 'primary': #FFF,
9
8
  'secondary': #ABABAB,
10
9
  'tertiary': #BBE093,
11
10
  'green': #22BF4E,
@@ -14,18 +13,17 @@ $theme-fivem-colors: (
14
13
  'argentum': #A3A3A3,
15
14
  'aurum': #BFA45E,
16
15
  'platinum': #F1F1F1,
17
- 'bg': #000000,
16
+ 'bg': #000,
18
17
  'bg-light': #252525,
19
18
  'bg-dark': #131313,
20
19
  'bg-dark-grey': #1A1A1A,
21
- 'bg-black': #000000,
20
+ 'bg-black': #000,
22
21
  );
23
22
 
24
23
  .cfxui-theme-fivem {
25
24
  // TODO: remove
26
25
  @include ui.define-main-colors($bg, $fg);
27
-
28
- @include ui.define-theme($bg, $fg, $theme-fivem-colors);
26
+ @include ui.define-theme($bg, $fg, $colors);
29
27
 
30
28
  // Invert black indicators for date/time inputs
31
29
  ::-webkit-calendar-picker-indicator {
@@ -2,8 +2,7 @@
2
2
 
3
3
  $fg: #fffff0;
4
4
  $bg: #161923;
5
-
6
- $theme-redm-colors: (
5
+ $colors: (
7
6
  'accent': #D80D0D,
8
7
  'primary': #F1F1E4,
9
8
  'secondary': #ABABAB,
@@ -14,18 +13,17 @@ $theme-redm-colors: (
14
13
  'argentum': #A3A3A3,
15
14
  'aurum': #BFA45E,
16
15
  'platinum': #F1F1F1,
17
- 'bg': #000000,
16
+ 'bg': #000,
18
17
  'bg-light': #252525,
19
18
  'bg-dark': #131313,
20
19
  'bg-dark-grey': #1A1A1A,
21
- 'bg-black': #000000,
20
+ 'bg-black': #000,
22
21
  );
23
22
 
24
23
  .cfxui-theme-redm {
25
24
  // TODO: remove
26
25
  @include ui.define-main-colors($bg, $fg);
27
-
28
- @include ui.define-theme($bg, $fg, $theme-redm-colors);
26
+ @include ui.define-theme($bg, $fg, $colors);
29
27
 
30
28
  // Invert black indicators for date/time inputs
31
29
  ::-webkit-calendar-picker-indicator {
@@ -2,9 +2,8 @@
2
2
 
3
3
  $fg: #fffff0;
4
4
  $bg: #161923;
5
-
6
- $theme-wireframe-colors: (
7
- 'accent': #444444,
5
+ $colors: (
6
+ 'accent': #444,
8
7
  'primary': #202123,
9
8
  'secondary': #797979,
10
9
  'tertiary': #9D9D9D,
@@ -14,18 +13,17 @@ $theme-wireframe-colors: (
14
13
  'argentum': #A3A3A3,
15
14
  'aurum': #BFA45E,
16
15
  'platinum': #F1F1F1,
17
- 'bg': #FFFFFF,
16
+ 'bg': #FFF,
18
17
  'bg-light': #DADADA,
19
18
  'bg-dark': #DADADA,
20
19
  'bg-dark-grey': #1A1A1A,
21
- 'bg-black': #444444,
20
+ 'bg-black': #444,
22
21
  );
23
22
 
24
23
  .cfxui-theme-wireframe {
25
24
  // TODO: remove
26
25
  @include ui.define-main-colors($bg, $fg);
27
-
28
- @include ui.define-theme($bg, $fg, $theme-wireframe-colors);
26
+ @include ui.define-theme($bg, $fg, $colors);
29
27
 
30
28
  // Invert black indicators for date/time inputs
31
29
  ::-webkit-calendar-picker-indicator {
@@ -1,4 +1,4 @@
1
- @use "./themes/theme_cfx.scss";
2
- @use "./themes/theme_fivem.scss";
3
- @use "./themes/theme_redm.scss";
4
- @use "./themes/theme_wireframe.scss";
1
+ @use "./themes/theme_cfx";
2
+ @use "./themes/theme_fivem";
3
+ @use "./themes/theme_redm";
4
+ @use "./themes/theme_wireframe";