tgui-core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/.editorconfig +10 -0
  2. package/.eslintrc.cjs +78 -0
  3. package/.gitattributes +4 -0
  4. package/.prettierrc.yml +1 -0
  5. package/.vscode/extensions.json +6 -0
  6. package/.vscode/settings.json +5 -0
  7. package/README.md +1 -0
  8. package/global.d.ts +173 -0
  9. package/package.json +25 -0
  10. package/src/assets.ts +43 -0
  11. package/src/backend.ts +369 -0
  12. package/src/common/collections.ts +349 -0
  13. package/src/common/color.ts +94 -0
  14. package/src/common/events.ts +45 -0
  15. package/src/common/exhaustive.ts +19 -0
  16. package/src/common/fp.ts +38 -0
  17. package/src/common/keycodes.ts +86 -0
  18. package/src/common/keys.ts +39 -0
  19. package/src/common/math.ts +98 -0
  20. package/src/common/perf.ts +72 -0
  21. package/src/common/random.ts +32 -0
  22. package/src/common/react.ts +65 -0
  23. package/src/common/redux.ts +196 -0
  24. package/src/common/storage.js +196 -0
  25. package/src/common/string.ts +173 -0
  26. package/src/common/timer.ts +68 -0
  27. package/src/common/type-utils.ts +41 -0
  28. package/src/common/types.ts +9 -0
  29. package/src/common/uuid.ts +24 -0
  30. package/src/common/vector.ts +51 -0
  31. package/src/components/AnimatedNumber.tsx +185 -0
  32. package/src/components/Autofocus.tsx +23 -0
  33. package/src/components/Blink.jsx +69 -0
  34. package/src/components/BlockQuote.tsx +15 -0
  35. package/src/components/BodyZoneSelector.tsx +149 -0
  36. package/src/components/Box.tsx +255 -0
  37. package/src/components/Button.tsx +415 -0
  38. package/src/components/ByondUi.jsx +121 -0
  39. package/src/components/Chart.tsx +160 -0
  40. package/src/components/Collapsible.tsx +45 -0
  41. package/src/components/ColorBox.tsx +30 -0
  42. package/src/components/Dialog.tsx +85 -0
  43. package/src/components/Dimmer.tsx +19 -0
  44. package/src/components/Divider.tsx +26 -0
  45. package/src/components/DmIcon.tsx +72 -0
  46. package/src/components/DraggableControl.jsx +282 -0
  47. package/src/components/Dropdown.tsx +246 -0
  48. package/src/components/FakeTerminal.jsx +52 -0
  49. package/src/components/FitText.tsx +99 -0
  50. package/src/components/Flex.tsx +105 -0
  51. package/src/components/Grid.tsx +44 -0
  52. package/src/components/Icon.tsx +91 -0
  53. package/src/components/Image.tsx +63 -0
  54. package/src/components/InfinitePlane.jsx +192 -0
  55. package/src/components/Input.tsx +181 -0
  56. package/src/components/KeyListener.tsx +40 -0
  57. package/src/components/Knob.tsx +185 -0
  58. package/src/components/LabeledControls.tsx +50 -0
  59. package/src/components/LabeledList.tsx +130 -0
  60. package/src/components/MenuBar.tsx +238 -0
  61. package/src/components/Modal.tsx +25 -0
  62. package/src/components/NoticeBox.tsx +48 -0
  63. package/src/components/NumberInput.tsx +328 -0
  64. package/src/components/Popper.tsx +100 -0
  65. package/src/components/ProgressBar.tsx +79 -0
  66. package/src/components/RestrictedInput.jsx +301 -0
  67. package/src/components/RoundGauge.tsx +189 -0
  68. package/src/components/Section.tsx +125 -0
  69. package/src/components/Slider.tsx +173 -0
  70. package/src/components/Stack.tsx +101 -0
  71. package/src/components/StyleableSection.tsx +30 -0
  72. package/src/components/Table.tsx +90 -0
  73. package/src/components/Tabs.tsx +90 -0
  74. package/src/components/TextArea.tsx +198 -0
  75. package/src/components/TimeDisplay.jsx +64 -0
  76. package/src/components/Tooltip.tsx +147 -0
  77. package/src/components/TrackOutsideClicks.tsx +35 -0
  78. package/src/components/VirtualList.tsx +69 -0
  79. package/src/constants.ts +355 -0
  80. package/src/debug/KitchenSink.jsx +56 -0
  81. package/src/debug/actions.js +11 -0
  82. package/src/debug/hooks.js +10 -0
  83. package/src/debug/index.ts +10 -0
  84. package/src/debug/middleware.js +86 -0
  85. package/src/debug/reducer.js +22 -0
  86. package/src/debug/selectors.js +7 -0
  87. package/src/drag.ts +280 -0
  88. package/src/events.ts +237 -0
  89. package/src/focus.ts +25 -0
  90. package/src/format.ts +173 -0
  91. package/src/hotkeys.ts +212 -0
  92. package/src/http.ts +16 -0
  93. package/src/layouts/Layout.tsx +75 -0
  94. package/src/layouts/NtosWindow.tsx +162 -0
  95. package/src/layouts/Pane.tsx +56 -0
  96. package/src/layouts/Window.tsx +227 -0
  97. package/src/renderer.ts +50 -0
  98. package/styles/base.scss +32 -0
  99. package/styles/colors.scss +92 -0
  100. package/styles/components/BlockQuote.scss +20 -0
  101. package/styles/components/Button.scss +175 -0
  102. package/styles/components/ColorBox.scss +12 -0
  103. package/styles/components/Dialog.scss +105 -0
  104. package/styles/components/Dimmer.scss +22 -0
  105. package/styles/components/Divider.scss +27 -0
  106. package/styles/components/Dropdown.scss +72 -0
  107. package/styles/components/Flex.scss +31 -0
  108. package/styles/components/Icon.scss +25 -0
  109. package/styles/components/Input.scss +68 -0
  110. package/styles/components/Knob.scss +131 -0
  111. package/styles/components/LabeledList.scss +49 -0
  112. package/styles/components/MenuBar.scss +75 -0
  113. package/styles/components/Modal.scss +14 -0
  114. package/styles/components/NoticeBox.scss +65 -0
  115. package/styles/components/NumberInput.scss +76 -0
  116. package/styles/components/ProgressBar.scss +63 -0
  117. package/styles/components/RoundGauge.scss +88 -0
  118. package/styles/components/Section.scss +143 -0
  119. package/styles/components/Slider.scss +54 -0
  120. package/styles/components/Stack.scss +59 -0
  121. package/styles/components/Table.scss +44 -0
  122. package/styles/components/Tabs.scss +144 -0
  123. package/styles/components/TextArea.scss +84 -0
  124. package/styles/components/Tooltip.scss +24 -0
  125. package/styles/functions.scss +79 -0
  126. package/styles/layouts/Layout.scss +57 -0
  127. package/styles/layouts/NtosHeader.scss +20 -0
  128. package/styles/layouts/NtosWindow.scss +26 -0
  129. package/styles/layouts/TitleBar.scss +111 -0
  130. package/styles/layouts/Window.scss +103 -0
  131. package/styles/main.scss +97 -0
  132. package/styles/reset.scss +68 -0
  133. package/styles/themes/abductor.scss +68 -0
  134. package/styles/themes/admin.scss +38 -0
  135. package/styles/themes/cardtable.scss +57 -0
  136. package/styles/themes/hackerman.scss +70 -0
  137. package/styles/themes/malfunction.scss +67 -0
  138. package/styles/themes/neutral.scss +50 -0
  139. package/styles/themes/ntOS95.scss +166 -0
  140. package/styles/themes/ntos.scss +44 -0
  141. package/styles/themes/ntos_cat.scss +148 -0
  142. package/styles/themes/ntos_darkmode.scss +44 -0
  143. package/styles/themes/ntos_lightmode.scss +67 -0
  144. package/styles/themes/ntos_spooky.scss +69 -0
  145. package/styles/themes/ntos_synth.scss +99 -0
  146. package/styles/themes/ntos_terminal.scss +112 -0
  147. package/styles/themes/paper.scss +184 -0
  148. package/styles/themes/retro.scss +72 -0
  149. package/styles/themes/spookyconsole.scss +73 -0
  150. package/styles/themes/syndicate.scss +67 -0
  151. package/styles/themes/wizard.scss +68 -0
  152. package/tsconfig.json +34 -0
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+
9
+ $nanotrasen: #384e68;
10
+
11
+ @use '../colors.scss' with (
12
+ $fg-map-keys: (),
13
+ $bg-map-keys: ()
14
+ );
15
+ @use '../base.scss' with (
16
+ $color-bg: color.scale($nanotrasen, $lightness: -45%)
17
+ );
18
+
19
+ .theme-ntos {
20
+ // Components
21
+ @include meta.load-css(
22
+ '../components/Button.scss',
23
+ $with: (
24
+ 'color-default': $nanotrasen,
25
+ 'color-transparent-text': rgba(227, 240, 255, 0.75)
26
+ )
27
+ );
28
+ @include meta.load-css(
29
+ '../components/ProgressBar.scss',
30
+ $with: (
31
+ 'color-default-fill': $nanotrasen,
32
+ 'background-color': rgba(0, 0, 0, 0.5)
33
+ )
34
+ );
35
+ @include meta.load-css('../components/Section.scss');
36
+
37
+ // Layouts
38
+ @include meta.load-css('../layouts/Layout.scss');
39
+ @include meta.load-css('../layouts/Window.scss');
40
+ @include meta.load-css(
41
+ '../layouts/TitleBar.scss',
42
+ $with: ('background-color': color.scale($nanotrasen, $lightness: -25%))
43
+ );
44
+ }
@@ -0,0 +1,148 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+ //@use 'sass:map';
9
+
10
+ //palette
11
+ $cyan: #5edba5;
12
+ $pink: #ed12f5;
13
+ $orange: #ff9900;
14
+ $purple: #463191;
15
+
16
+ $light-gray: #c3c3c3;
17
+ $dark-gray: #858585;
18
+ $scrollbar-color-multiplier: 0.5;
19
+
20
+ @use '../colors.scss' with (
21
+ $primary: black,
22
+ $label: rgb(255, 132, 153),
23
+ $good: pink,
24
+
25
+ $bad: red,
26
+ // $fg-map-keys: (),
27
+ // $bg-map-keys: (),
28
+ );
29
+
30
+ @use '../base.scss' with (
31
+ $color-bg: orange,
32
+ $color-bg-grad-spread: 12%,
33
+ //$border-radius: 0,
34
+ );
35
+
36
+ .theme-ntos_cat {
37
+ // Atomic classes
38
+ @include meta.load-css('../atomic/color.scss', $with: ());
39
+
40
+ // Components
41
+ @include meta.load-css(
42
+ '../components/Button.scss',
43
+ $with: (
44
+ 'color-default': pink,
45
+ 'color-transparent-text': rgba(227, 240, 255, 0.75),
46
+ 'color-disabled': #363636,
47
+ 'color-selected': #465899,
48
+ 'color-caution': #be6209
49
+ )
50
+ );
51
+ @include meta.load-css(
52
+ '../components/ProgressBar.scss',
53
+ $with: ('color-default-fill': rgb(255, 132, 153, 0.75))
54
+ );
55
+ @include meta.load-css(
56
+ '../components/Section.scss',
57
+ $with: ('background-color': rgba(124, 62, 34, 0.75))
58
+ );
59
+ @include meta.load-css(
60
+ '../components/Tooltip.scss',
61
+ $with: ('background-color': rgba(255, 153, 0, 0.75))
62
+ );
63
+
64
+ // Layouts
65
+ @include meta.load-css('../layouts/Layout.scss');
66
+ @include meta.load-css('../layouts/Window.scss');
67
+ @include meta.load-css(
68
+ '../layouts/TitleBar.scss',
69
+ $with: ('background-color': rgb(255, 132, 153, 0.75))
70
+ );
71
+
72
+ .Section {
73
+ color: black;
74
+ outline: base.em(2px) inset rgb(255, 132, 153);
75
+ }
76
+ .Button {
77
+ color: rgb(255, 132, 153);
78
+ background-color: rgb(255, 255, 255);
79
+ }
80
+
81
+ .ProgressBar {
82
+ color: black;
83
+ }
84
+
85
+ .Layout__content {
86
+ background-image: url('../../assets/bg-cat.svg');
87
+ background-size: 100%;
88
+ background-repeat: no-repeat;
89
+ }
90
+ .Layout,
91
+ .Layout * {
92
+ // Fancy scrollbar
93
+ scrollbar-base-color: color.scale(
94
+ #454255,
95
+ $lightness: -25% * $scrollbar-color-multiplier
96
+ );
97
+ scrollbar-face-color: color.scale(
98
+ #454255,
99
+ $lightness: 10% * $scrollbar-color-multiplier
100
+ );
101
+
102
+ scrollbar-3dlight-color: color.scale(
103
+ orange,
104
+ $lightness: 0% * $scrollbar-color-multiplier
105
+ );
106
+ scrollbar-highlight-color: color.scale(
107
+ orange,
108
+ $lightness: 0% * $scrollbar-color-multiplier
109
+ );
110
+ scrollbar-track-color: color.scale(
111
+ #ba753a,
112
+ $lightness: -25% * $scrollbar-color-multiplier
113
+ );
114
+ scrollbar-arrow-color: color.scale(
115
+ orange,
116
+ $lightness: 50% * $scrollbar-color-multiplier
117
+ );
118
+ scrollbar-shadow-color: color.scale(
119
+ #454255,
120
+ $lightness: 10% * $scrollbar-color-multiplier
121
+ );
122
+ }
123
+ .Tab {
124
+ color: rgb(255, 132, 153);
125
+ background-color: rgba(255, 255, 255, 0.5);
126
+ }
127
+ .Tab--selected {
128
+ color: black;
129
+ background-color: rgb(255, 132, 153);
130
+ }
131
+ .Box {
132
+ outline: base.em(3px) outset #c0c0c0;
133
+ }
134
+ .Tooltip {
135
+ color: black;
136
+ }
137
+ .Input {
138
+ background-color: white;
139
+ outline: base.em(2px) inset rgb(255, 132, 153);
140
+ }
141
+ .NtosWindow__header {
142
+ background-color: #454255;
143
+ }
144
+ .Flex {
145
+ color: white;
146
+ background-color: rgba(0, 0, 0, 0);
147
+ }
148
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+
9
+ $nanotrasen: #2c2c2c;
10
+
11
+ @use '../colors.scss' with (
12
+ $fg-map-keys: (),
13
+ $bg-map-keys: ()
14
+ );
15
+ @use '../base.scss' with (
16
+ $color-bg: color.scale($nanotrasen, $lightness: -45%)
17
+ );
18
+
19
+ .theme-ntos_darkmode {
20
+ // Components
21
+ @include meta.load-css(
22
+ '../components/Button.scss',
23
+ $with: (
24
+ 'color-default': $nanotrasen,
25
+ 'color-transparent-text': rgba(227, 240, 255, 0.75)
26
+ )
27
+ );
28
+ @include meta.load-css(
29
+ '../components/ProgressBar.scss',
30
+ $with: (
31
+ 'color-default-fill': $nanotrasen,
32
+ 'background-color': rgba(0, 0, 0, 0.5)
33
+ )
34
+ );
35
+ @include meta.load-css('../components/Section.scss');
36
+
37
+ // Layouts
38
+ @include meta.load-css('../layouts/Layout.scss');
39
+ @include meta.load-css('../layouts/Window.scss');
40
+ @include meta.load-css(
41
+ '../layouts/TitleBar.scss',
42
+ $with: ('background-color': color.scale($nanotrasen, $lightness: -25%))
43
+ );
44
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+
9
+ $nanotrasen: #ffffff;
10
+
11
+ @use '../colors.scss' with (
12
+ $primary: #000000,
13
+ $label: #000000
14
+ );
15
+ @use '../base.scss' with (
16
+ $color-bg: white
17
+ );
18
+
19
+ .theme-ntos_lightmode {
20
+ @include meta.load-css('../atomic/color.scss', $with: ());
21
+ // Components
22
+ @include meta.load-css(
23
+ '../components/Button.scss',
24
+ $with: ('color-default': $nanotrasen)
25
+ );
26
+ @include meta.load-css(
27
+ '../components/ProgressBar.scss',
28
+ $with: (
29
+ 'color-default-fill': $nanotrasen,
30
+ 'background-color': rgba(0, 0, 0, 0.5)
31
+ )
32
+ );
33
+ @include meta.load-css(
34
+ '../components/Section.scss',
35
+ $with: ('background-color': rgba(119, 119, 119, 0.4))
36
+ );
37
+ @include meta.load-css(
38
+ '../components/Tooltip.scss',
39
+ $with: ('background-color': white)
40
+ );
41
+
42
+ // Layouts
43
+ @include meta.load-css('../layouts/Layout.scss');
44
+ @include meta.load-css('../layouts/Window.scss');
45
+ @include meta.load-css(
46
+ '../layouts/TitleBar.scss',
47
+ $with: ('background-color': gray)
48
+ );
49
+ .Button {
50
+ color: #161613;
51
+ }
52
+ .Button:hover {
53
+ background-color: #777777;
54
+ transition: 0.1s;
55
+ }
56
+
57
+ .Section {
58
+ color: black;
59
+ }
60
+ .Tab {
61
+ color: black;
62
+ }
63
+ .Tab--selected {
64
+ color: white;
65
+ background-color: darkgray;
66
+ }
67
+ }
@@ -0,0 +1,69 @@
1
+ @use 'sass:color';
2
+ @use 'sass:meta';
3
+ @use 'sass:map';
4
+
5
+ @use '../colors.scss' with (
6
+ $primary: #3f021a,
7
+ $good: #e62626,
8
+ $bad: #970934
9
+ );
10
+ @use '../base.scss' with (
11
+ $color-bg: #240101,
12
+ $color-bg-grad-spread: 12%
13
+ );
14
+
15
+ .theme-ntos_spooky {
16
+ // Atomic classes
17
+ @include meta.load-css('../atomic/color.scss');
18
+
19
+ // Components
20
+ @include meta.load-css(
21
+ '../components/Button.scss',
22
+ $with: (
23
+ 'color-default': #7e0322,
24
+ 'color-disabled': #363636,
25
+ 'color-selected': #610a0a,
26
+ 'color-caution': #1416a3,
27
+ 'color-danger': #5c1e80
28
+ )
29
+ );
30
+ @include meta.load-css(
31
+ '../components/Dimmer.scss',
32
+ $with: ('background-dimness': 0.45)
33
+ );
34
+ @include meta.load-css(
35
+ '../components/Input.scss',
36
+ $with: ('border-color': #473a37)
37
+ );
38
+ @include meta.load-css('../components/Modal.scss');
39
+ @include meta.load-css(
40
+ '../components/NoticeBox.scss',
41
+ $with: ('background-color': #740707)
42
+ );
43
+ @include meta.load-css('../components/NumberInput.scss');
44
+ @include meta.load-css('../components/Section.scss');
45
+ @include meta.load-css('../components/Table.scss');
46
+ @include meta.load-css(
47
+ '../components/Tooltip.scss',
48
+ $with: ('background-color': #000000)
49
+ );
50
+ @include meta.load-css(
51
+ '../components/ProgressBar.scss',
52
+ $with: (
53
+ 'color-default-fill': rgba(190, 0, 0, 0.75),
54
+ 'background-color': rgba(34, 1, 1, 0.5)
55
+ )
56
+ );
57
+
58
+ // Layouts
59
+ @include meta.load-css('../layouts/Layout.scss');
60
+ @include meta.load-css('../layouts/Window.scss');
61
+ @include meta.load-css(
62
+ '../layouts/TitleBar.scss',
63
+ $with: ('background-color': #6b0808)
64
+ );
65
+
66
+ .Layout__content {
67
+ background-image: url('../../assets/bg-spookycomp-compressed.svg');
68
+ }
69
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+ //@use 'sass:map';
9
+
10
+ //palette
11
+ $cyan: #5edba5;
12
+ $pink: #ed12f5;
13
+ $orange: #ff9900;
14
+ $purple: #463191;
15
+
16
+ @use '../colors.scss' with (
17
+ $primary: $pink,
18
+ $label: $orange,
19
+ $good: $cyan,
20
+ // $fg-map-keys: (),
21
+ // $bg-map-keys: (),
22
+ );
23
+
24
+ @use '../base.scss' with (
25
+ $color-bg: $purple,
26
+ $color-bg-grad-spread: 12%
27
+ );
28
+
29
+ .theme-ntos_synth {
30
+ // Atomic classes
31
+ @include meta.load-css('../atomic/color.scss', $with: ());
32
+
33
+ // Components
34
+ @include meta.load-css(
35
+ '../components/Button.scss',
36
+ $with: (
37
+ 'color-default': $cyan,
38
+ 'color-transparent-text': rgba(227, 240, 255, 0.75),
39
+ 'color-disabled': #363636,
40
+ 'color-selected': #465899,
41
+ 'color-caution': #be6209
42
+ )
43
+ );
44
+ @include meta.load-css(
45
+ '../components/ProgressBar.scss',
46
+ $with: ('color-default-fill': rgba(237, 18, 245, 0.75))
47
+ );
48
+ @include meta.load-css(
49
+ '../components/Section.scss',
50
+ $with: ('background-color': rgba(0, 0, 0, 0.3))
51
+ );
52
+ @include meta.load-css(
53
+ '../components/Tooltip.scss',
54
+ $with: ('background-color': rgba(255, 153, 0, 0.75))
55
+ );
56
+
57
+ // Layouts
58
+ @include meta.load-css('../layouts/Layout.scss');
59
+ @include meta.load-css('../layouts/Window.scss');
60
+ @include meta.load-css(
61
+ '../layouts/TitleBar.scss',
62
+ $with: ('background-color': rgba(3, 100, 117, 0.75))
63
+ );
64
+
65
+ .Section {
66
+ color: $cyan;
67
+ background-image: linear-gradient(
68
+ to right,
69
+ rgba(194, 0, 219, 0.75),
70
+ rgba(3, 100, 117, 0.75)
71
+ );
72
+ }
73
+ .Button {
74
+ color: $cyan;
75
+ background-color: $purple;
76
+ outline: base.em(2px) outset $pink;
77
+ }
78
+ .ProgressBar {
79
+ color: $orange;
80
+ }
81
+
82
+ .Layout__content {
83
+ background-image: url('../../assets/bg-synthsunset-c-grid.svg');
84
+ background-size: 100%;
85
+ background-position: top;
86
+ background-repeat: no-repeat;
87
+ }
88
+ .Tab {
89
+ color: $cyan;
90
+ background-image: linear-gradient(
91
+ to right,
92
+ rgba(255, 153, 0, 0.4),
93
+ rgba(194, 0, 219, 0.75)
94
+ );
95
+ }
96
+ .Tab--selected {
97
+ color: $pink;
98
+ }
99
+ }
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:color';
7
+ @use 'sass:meta';
8
+
9
+ @use '../colors.scss' with (
10
+ $primary: #24e87e,
11
+ $label: #24e87e,
12
+ $good: rgba(36, 232, 127, 0.5),
13
+ // $fg-map-keys: (),
14
+ // $bg-map-keys: (),
15
+ );
16
+ @use '../base.scss' with (
17
+ $color-bg: #121b12,
18
+ $color-bg-grad-spread: 0%
19
+ );
20
+
21
+ .theme-ntos_terminal {
22
+ // Atomic classes
23
+ @include meta.load-css('../atomic/color.scss');
24
+
25
+ // Components
26
+ @include meta.load-css(
27
+ '../components/Button.scss',
28
+ $with: (
29
+ 'color-default': rgba(0, 0, 0, 0),
30
+ 'color-disabled': #4a6a4a,
31
+ 'color-selected': rgba(36, 232, 127, 0.25)
32
+ )
33
+ );
34
+ @include meta.load-css(
35
+ '../components/Input.scss',
36
+ $with: ('border-color': colors.$primary)
37
+ );
38
+ @include meta.load-css(
39
+ '../components/ProgressBar.scss',
40
+ $with: (
41
+ 'background-color': rgba(0, 0, 0, 0.5),
42
+ 'color-default-fill': rgba(36, 232, 127, 0.5)
43
+ )
44
+ );
45
+ @include meta.load-css('../components/Modal.scss');
46
+ @include meta.load-css('../components/Section.scss');
47
+
48
+ // Layouts
49
+ @include meta.load-css('../layouts/Layout.scss');
50
+ @include meta.load-css('../layouts/Window.scss');
51
+ @include meta.load-css(
52
+ '../layouts/TitleBar.scss',
53
+ $with: ('background-color': rgba(0, 97, 0, 0.25))
54
+ );
55
+
56
+ .Layout__content {
57
+ //background-image: none;
58
+ background-image: repeating-linear-gradient(
59
+ 0deg,
60
+ rgba(black, 0.15),
61
+ rgba(black, 0.15) 1px,
62
+ transparent 2.5px,
63
+ transparent 5px
64
+ ),
65
+ radial-gradient(rgba(0, 97, 0, 0.75), black 120%);
66
+ background-size: 100%, 100%;
67
+ background-position: center, center;
68
+ }
69
+
70
+ .Button {
71
+ font: Inconsolata;
72
+ color: #24e87e;
73
+ text-shadow: 0 0 2px #24e87e;
74
+ }
75
+ .Button:hover {
76
+ background-color: rgba(36, 232, 127, 0.25);
77
+ transition: 0.1s;
78
+ }
79
+ .Button--selected {
80
+ color: #24e87e;
81
+ }
82
+
83
+ body {
84
+ //background-color: black;
85
+ color: white;
86
+ font: 1.3rem Inconsolata;
87
+ text-shadow: 0 0 2px #24e87e;
88
+
89
+ //font: bold 12px Arial, 'Helvetica Neue', Helvetica, sans-serif;
90
+ }
91
+ .Section {
92
+ color: rgb(36, 232, 126);
93
+ }
94
+ .Tab {
95
+ color: #24e87e;
96
+ }
97
+ .Tab--selected {
98
+ color: #24e87e;
99
+ border: 2px solid #24e87e;
100
+ background-color: rgba(36, 232, 127, 0.25);
101
+ }
102
+ ::selection {
103
+ background: #0080ff;
104
+ text-shadow: none;
105
+ }
106
+ .Table {
107
+ text-shadow: 0 0 2px #24e87e;
108
+ }
109
+ .Flex {
110
+ text-shadow: 0 0 2px #24e87e;
111
+ }
112
+ }