tgui-core 4.1.4 → 4.2.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 (33) hide show
  1. package/package.json +1 -1
  2. package/styles/all-themes.scss +22 -0
  3. package/styles/assets/bg-admin.svg +29 -0
  4. package/styles/assets/bg-cat.svg +24 -0
  5. package/styles/assets/bg-nanotrasen.svg +8 -0
  6. package/styles/assets/bg-neutral.svg +1 -0
  7. package/styles/assets/bg-spookycomp-compressed.svg +1 -0
  8. package/styles/assets/bg-spookycomp-raw.svg +485 -0
  9. package/styles/assets/bg-spookycomp.svg +32 -0
  10. package/styles/assets/bg-syndicate.svg +6 -0
  11. package/styles/assets/bg-synthsunset-c-grid-size.svg +49 -0
  12. package/styles/assets/bg-synthsunset-c-grid.svg +49 -0
  13. package/styles/assets/bg-wizard.svg +3 -0
  14. package/styles/themes/abductor.scss +26 -0
  15. package/styles/themes/admin.scss +19 -0
  16. package/styles/themes/cardtable.scss +26 -0
  17. package/styles/themes/hackerman.scss +35 -0
  18. package/styles/themes/malfunction.scss +27 -0
  19. package/styles/themes/neutral.scss +20 -0
  20. package/styles/themes/ntOS95.scss +128 -0
  21. package/styles/themes/ntos.scss +18 -0
  22. package/styles/themes/ntos_cat.scss +57 -0
  23. package/styles/themes/ntos_darkmode.scss +17 -0
  24. package/styles/themes/ntos_lightmode.scss +25 -0
  25. package/styles/themes/ntos_spooky.scss +22 -0
  26. package/styles/themes/ntos_synth.scss +72 -0
  27. package/styles/themes/ntos_terminal.scss +78 -0
  28. package/styles/themes/paper.scss +138 -0
  29. package/styles/themes/retro.scss +47 -0
  30. package/styles/themes/spookyconsole.scss +23 -0
  31. package/styles/themes/syndicate.scss +24 -0
  32. package/styles/themes/wizard.scss +26 -0
  33. /package/styles/{atomic.scss → all-atomic.scss} +0 -0
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ // That's really cursed theme
7
+ .theme-ntos_synth {
8
+ &:root {
9
+ --synth-cyan: hsl(156, 65%, 60%);
10
+ --synth-pink: hsl(300, 91%, 52%);
11
+ --synth-orange: hsl(36, 100%, 50%);
12
+ --synth-purple: hsl(248, 47%, 37%);
13
+
14
+ // Base
15
+ --color-base: var(--synth-purple);
16
+ --color-secondary: hsla(185, 95%, 23%, 0.75);
17
+ --color-primary: var(--synth-pink);
18
+ --color-label: var(--synth-orange);
19
+ --color-good: var(--synth-cyan);
20
+ --base-gradient-spread: 12;
21
+
22
+ // Components
23
+ --button-color: var(--color-black);
24
+ --button-background-default: var(--synth-cyan);
25
+ --button-background-selected: hsl(227, 37%, 45%);
26
+ --button-background-caution: hsl(30, 88%, 39%);
27
+ --button-background-disabled: var(--synth-purple);
28
+ --tooltip-background: hsla(36, 100%, 50%, 0.75);
29
+ }
30
+
31
+ .Section {
32
+ color: var(--synth-cyan);
33
+ background-image: linear-gradient(
34
+ to right,
35
+ hsla(300, 100%, 42%, 0.75),
36
+ hsla(185, 95%, 23%, 0.75)
37
+ );
38
+ }
39
+
40
+ :where(.Button) {
41
+ background-color: var(--synth-purple);
42
+ color: var(--synth-cyan);
43
+ }
44
+
45
+ .Button {
46
+ outline: var(--border-thickness-small) outset var(--synth-pink);
47
+ }
48
+
49
+ .ProgressBar {
50
+ color: var(--synth-orange);
51
+ }
52
+
53
+ .Layout__content {
54
+ background-image: url("../assets/bg-synthsunset-c-grid.svg");
55
+ background-size: 100%;
56
+ background-position: top;
57
+ background-repeat: no-repeat;
58
+ }
59
+
60
+ .Tab {
61
+ color: var(--synth-cyan);
62
+ background-image: linear-gradient(
63
+ to right,
64
+ hsla(36, 100%, 50%, 0.4),
65
+ hsla(300, 100%, 42%, 0.75)
66
+ );
67
+ }
68
+
69
+ .Tab--selected {
70
+ color: var(--synth-pink);
71
+ }
72
+ }
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ .theme-ntos_terminal:root {
7
+ --terminal-color: hsl(146, 82%, 53%);
8
+
9
+ // Base
10
+ --color-base: hsl(120, 10%, 10%);
11
+ --color-secondary: hsl(
12
+ from var(--terminal-color) calc(h - 25) calc(s + 20) calc(l - 34) / 0.25
13
+ );
14
+ --color-primary: var(--terminal-color);
15
+ --color-good: hsl(from var(--terminal-color) h s l / 0.5);
16
+ --color-text: var(--color-white);
17
+ --color-action: var(--terminal-color);
18
+ --font-family: Inconsolata;
19
+ --base-gradient-spread: 0;
20
+
21
+ // Components
22
+ --button-color: var(--terminal-color);
23
+ --button-background-default: transparent;
24
+ --button-background-selected: hsl(from var(--terminal-color) h s l / 0.25);
25
+ --progress-bar-background: hsla(0, 0%, 0%, 0.5);
26
+ --progress-bar-fill: hsl(from var(--terminal-color) h s l / 0.5);
27
+
28
+ body {
29
+ letter-spacing: 1px;
30
+ }
31
+
32
+ .Window__rest {
33
+ background-image:
34
+ repeating-linear-gradient(
35
+ 0deg,
36
+ hsla(0, 0%, 0%, 0.15),
37
+ hsla(0, 0%, 0%, 0.15) 1px,
38
+ transparent 2.5px,
39
+ transparent 5px
40
+ ),
41
+ radial-gradient(
42
+ hsl(
43
+ from var(--terminal-color) calc(h - 25) calc(s + 20) calc(l - 34) /
44
+ 0.75
45
+ ),
46
+ black 150%
47
+ );
48
+ background-size: 100%, 100%;
49
+ background-position: center, center;
50
+ }
51
+
52
+ .Layout__content {
53
+ background-image: none;
54
+ }
55
+
56
+ .Button:hover {
57
+ background-color: hsla(146, 82%, 53%, 0.25);
58
+ transition: 0.1s;
59
+ }
60
+
61
+ .Tab,
62
+ .Section,
63
+ .Tab--selected {
64
+ color: var(--terminal-color);
65
+ }
66
+
67
+ body,
68
+ .Flex,
69
+ .Table,
70
+ .Button {
71
+ text-shadow: 0 0 2px var(--terminal-color);
72
+ }
73
+
74
+ ::selection {
75
+ background: hsl(210, 100%, 50%);
76
+ text-shadow: none;
77
+ }
78
+ }
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Copyright (c) 2020 Paul Bruner
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ .theme-paper:root {
7
+ // Base
8
+ --color-base: hsl(0, 0%, 90%);
9
+ --secondary-lightness-adjustment: -3;
10
+ --color-section: hsla(0, 0%, 0%, 0.1);
11
+ --color-primary: var(--color-white);
12
+ --color-text: var(--color-black);
13
+ --color-scrollbar-base: var(--color-white);
14
+ --color-scrollbar-thumb: var(--color-light-grey);
15
+ --border-primary-saturation: 0;
16
+ --base-gradient-spread: 0;
17
+
18
+ // Components
19
+ --button-background-default: hsl(50, 50%, 90%);
20
+ --button-background-selected: hsl(0, 100%, 30%);
21
+ --button-background-caution: hsl(30, 90%, 40%);
22
+ --button-background-danger: hsl(60, 100%, 30%);
23
+
24
+ .Layout__content {
25
+ background-image: none;
26
+ }
27
+
28
+ .PaperInput {
29
+ position: relative;
30
+ display: inline-block;
31
+ width: 120px;
32
+ border: none;
33
+ background: transparent;
34
+ border-bottom: 1px solid var(--color-black);
35
+ outline: none;
36
+ background-color: hsla(60, 100%, 60%, 0.8);
37
+ padding: 0 4px;
38
+ margin-right: 2px;
39
+ line-height: 17px;
40
+ overflow: visible;
41
+ }
42
+
43
+ .PaperInput__baseline {
44
+ display: inline-block;
45
+ color: transparent;
46
+ }
47
+
48
+ .PaperInput__input {
49
+ display: block;
50
+ position: absolute;
51
+ top: 0;
52
+ bottom: 0;
53
+ left: 0;
54
+ right: 0;
55
+ border: 0;
56
+ outline: 0;
57
+ width: 100%;
58
+ font-size: 12px;
59
+ line-height: 17px;
60
+ height: 17px;
61
+ margin: 0;
62
+ padding: 0 6px;
63
+ font-family: Verdana, sans-serif;
64
+ background-color: transparent;
65
+ color: hsl(0, 0%, 100%);
66
+ color: inherit;
67
+
68
+ &::placeholder {
69
+ font-style: italic;
70
+ color: hsl(0, 0%, 47%);
71
+ color: hsla(0, 0%, 100%, 0.45);
72
+ }
73
+ }
74
+
75
+ .paper-text {
76
+ input:disabled {
77
+ position: relative;
78
+ display: inline-block;
79
+ border: none;
80
+ background: transparent;
81
+ border-bottom: 1px solid var(--color-black);
82
+ outline: none;
83
+ background-color: hsla(60, 100%, 60%, 0.8);
84
+ padding: 0 4px;
85
+ margin-right: 2px;
86
+ line-height: 17px;
87
+ overflow: visible;
88
+ }
89
+
90
+ input {
91
+ position: relative;
92
+ display: inline-block;
93
+ border: none;
94
+ background: transparent;
95
+ border-bottom: 1px solid var(--color-black);
96
+ outline: none;
97
+ background-color: hsla(60, 100%, 60%, 0.8);
98
+ padding: 0 4px;
99
+ margin-right: 2px;
100
+ line-height: 17px;
101
+ overflow: visible;
102
+ }
103
+ }
104
+
105
+ .Section__title {
106
+ border-bottom: none;
107
+ }
108
+
109
+ .paper-field {
110
+ position: relative;
111
+ display: inline-block;
112
+
113
+ border: none;
114
+ background: transparent;
115
+ border-bottom: 1px solid var(--color-black);
116
+ outline: none;
117
+ background-color: hsla(60, 100%, 60%, 0.8);
118
+ padding: 0 4px;
119
+ margin-right: 2px;
120
+ line-height: 17px;
121
+ overflow: visible;
122
+
123
+ input:disabled {
124
+ position: relative;
125
+ display: inline-block;
126
+
127
+ border: none;
128
+ background: transparent;
129
+ border-bottom: 1px solid var(--color-black);
130
+ outline: none;
131
+ background-color: hsla(60, 100%, 60%, 0.8);
132
+ padding: 0 4px;
133
+ margin-right: 2px;
134
+ line-height: 17px;
135
+ overflow: visible;
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ .theme-retro:root {
7
+ // Base
8
+ --color-base: hsl(45, 40%, 85%);
9
+ --color-primary: hsl(from var(--color-base) h s calc(l - 30));
10
+ --color-label: hsl(from var(--color-primary) h s 65);
11
+ --secondary-saturation: 10;
12
+ --secondary-lightness-adjustment: -56;
13
+ --base-gradient-spread: 0;
14
+ --border-radius-unit: 0;
15
+
16
+ // Components
17
+ --button-color: var(--color-black);
18
+ --button-background-default: var(--color-base);
19
+ --button-background-selected: hsl(0, 90%, 35%);
20
+ --button-background-caution: hsl(30, 85%, 40%);
21
+ --button-background-danger: hsl(60, 100%, 30%);
22
+ --progress-bar-background: hsl(0, 0%, 0%, 0.5);
23
+ --input-background: transparent;
24
+
25
+ .Layout__content {
26
+ background-image: none;
27
+ }
28
+
29
+ .Button {
30
+ font-family: var(--font-family-mono);
31
+ border: var(--border-thickness-small) outset var(--color-base);
32
+ outline: var(--border-thickness-tiny) solid hsl(60, 6%, 8%);
33
+
34
+ &-disabled {
35
+ color: hsl(60, 6%, 77%);
36
+ font-family: var(--font-family-mono);
37
+
38
+ &:hover {
39
+ color: hsl(0, 0%, 100%);
40
+ }
41
+ }
42
+
43
+ &--selected {
44
+ border-style: inset;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,23 @@
1
+ .theme-spookyconsole:root,
2
+ .theme-ntos_spooky:root {
3
+ // Base
4
+ --color-base: hsl(0, 100%, 12.5%);
5
+ --color-primary: hsl(345, 95%, 30%);
6
+ --color-good: hsl(0, 82%, 52%);
7
+ --color-bad: hsl(340, 91%, 32%);
8
+ --base-gradient-spread: 12;
9
+ --secondary-lightness-adjustment: 9;
10
+
11
+ // Components
12
+ --button-background-selected: var(--color-good);
13
+ --button-background-caution: hsl(240, 80%, 35%);
14
+ --button-background-danger: hsl(282, 61%, 30%);
15
+ --dimmer-background-opacity: 0.45;
16
+ --notice-box-background: hsl(0, 90%, 23%);
17
+ --notice-box-color: var(--color-fixed-white);
18
+ --progress-bar-background: hsla(0, 97%, 7%, 0.5);
19
+
20
+ .Layout__content {
21
+ background-image: url("../assets/bg-spookycomp-compressed.svg");
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ .theme-syndicate:root {
7
+ // Base
8
+ --color-base: hsl(0, 96%, 17%);
9
+ --color-primary: hsl(120, 34%, 35%);
10
+ --secondary-lightness-adjustment: 11.5;
11
+ --base-gradient-spread: 6;
12
+ // Components
13
+ --button-background-selected: hsl(0, 90%, 37.5%);
14
+ --button-background-caution: hsl(28, 87%, 39%);
15
+ --button-background-danger: hsl(61, 100%, 30%);
16
+ --notice-box-background: hsl(0, 98%, 28%);
17
+ --notice-box-color: var(--color-text-fixed-white);
18
+ --progress-bar-background: hsla(0, 0%, 0%, 0.5);
19
+ --tooltip-background-lightness: 25;
20
+
21
+ .Layout__content {
22
+ background-image: url("../assets/bg-syndicate.svg");
23
+ }
24
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ .theme-wizard:root {
7
+ // Base
8
+ --color-base: hsl(205, 40%, 20%);
9
+ --color-primary: hsl(190, 80%, 40%);
10
+ --color-secondary: hsl(134, 71%, 31%);
11
+ --color-border-primary: hsl(225, 25%, 40%);
12
+ --base-gradient-spread: 6;
13
+
14
+ // Components
15
+ --button-background-selected: hsl(227, 40%, 44%);
16
+ --button-background-caution: hsl(28, 89%, 39%);
17
+ --button-background-danger: hsl(0, 91%, 35%);
18
+ --notice-box-background: hsl(340, 58%, 41%);
19
+ --notice-box-color: var(--color-white);
20
+ --progress-bar-background: hsla(0, 0%, 0%, 0.5);
21
+ --tooltip-background: hsl(134, 61%, 42%);
22
+
23
+ .Layout__content {
24
+ background-image: url("../assets/bg-wizard.svg");
25
+ }
26
+ }
File without changes