@macawkit/theme 0.0.0-stage → 0.1.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.
@@ -0,0 +1,161 @@
1
+ input[type="radio"],
2
+ input[type="checkbox"]:not(.switch) {
3
+ width: var(--box-size);
4
+ height: var(--box-size);
5
+ }
6
+
7
+ input[type="radio"]::before,
8
+ input[type="checkbox"]:not(.switch)::before {
9
+ content: "";
10
+ inset: 0;
11
+ position: absolute;
12
+ pointer-events: none;
13
+ transition:
14
+ transform var(--transition),
15
+ background var(--transition),
16
+ opacity var(--transition);
17
+ }
18
+
19
+ input[type="radio"],
20
+ input[type="checkbox"] {
21
+ border-radius: 0;
22
+ background-color: var(--mtt-color-body);
23
+ box-shadow: 0 0 0 1px var(--mtt-color-line);
24
+ transition:
25
+ background-color var(--transition),
26
+ box-shadow var(--transition);
27
+ }
28
+
29
+ /* Checkbox: a tick that scales in, a glowing dash when indeterminate */
30
+ input[type="checkbox"]:not(.switch) {
31
+ &::before {
32
+ background: var(--mtt-color-text-brightest);
33
+ -webkit-mask: var(--mtt-icon-check) 50% / var(--box-size) no-repeat;
34
+ mask: var(--mtt-icon-check) 50% / var(--box-size) no-repeat;
35
+ opacity: 0;
36
+ transform: scale(.5);
37
+ transform-origin: center;
38
+ }
39
+
40
+ &:is(:checked, :indeterminate)::before {
41
+ opacity: 1;
42
+ transform: scale(1);
43
+ transition-duration: var(--animation-duration-fast);
44
+ }
45
+
46
+ &:indeterminate {
47
+ --glow-source: var(--mtt-color-main-highlight);
48
+ box-shadow:
49
+ inset 0 0 var(--shine-radius) var(--mtt-color-text-decorated),
50
+ 0 0 0 calc(var(--shine-radius) / 2) var(--mtt-color-text-decorated),
51
+ inset 0 0 0 calc(var(--shine-radius) / 2) var(--mtt-color-text-decorated),
52
+ 0 0 var(--glow-radius) var(--glow-color);
53
+
54
+ &::before {
55
+ width: calc(var(--box-size) - 8px);
56
+ height: var(--highlight-thickness);
57
+ top: calc(50% - var(--highlight-thickness) / 2);
58
+ left: var(--element-inner-margin);
59
+ background: var(--mtt-color-line-decorated);
60
+ -webkit-mask: none;
61
+ mask: none;
62
+ filter: drop-shadow(0 0 var(--shine-radius) var(--mtt-color-line-decorated));
63
+ }
64
+
65
+ &:is(:hover, .hover) {
66
+ --glow-source: var(--mtt-color-text-decorated);
67
+ box-shadow:
68
+ inset 0 0 calc(var(--shine-radius) * 2) var(--mtt-color-text-decorated),
69
+ 0 0 0 calc(var(--shine-radius) / 2) var(--mtt-color-text-decorated),
70
+ inset 0 0 0 calc(var(--shine-radius) / 2) var(--mtt-color-text-decorated),
71
+ 0 0 var(--glow-radius) var(--glow-color);
72
+
73
+ &::before {
74
+ background: var(--mtt-color-text-bright);
75
+ filter: drop-shadow(0 0 var(--shine-radius) var(--mtt-color-text-bright));
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ /* Switch and radio: a solid knob */
82
+ input[type="checkbox"].switch {
83
+ width: calc(var(--element-height-tiny) * 2);
84
+ height: var(--element-height-tiny);
85
+ }
86
+
87
+ input[type="radio"]::before,
88
+ input[type="checkbox"].switch::before {
89
+ content: '';
90
+ position: absolute;
91
+ background-color: var(--mtt-color-text-bright);
92
+ transition:
93
+ background-color var(--transition),
94
+ transform var(--transition);
95
+ }
96
+
97
+ input[type="checkbox"].switch {
98
+ &::before {
99
+ top: var(--element-inner-margin);
100
+ left: var(--element-inner-margin-small);
101
+ width: calc(50% - var(--element-inner-margin-small));
102
+ height: calc(100% - var(--element-inner-margin) * 2);
103
+ }
104
+
105
+ &:checked::before {
106
+ transform: translateX(100%);
107
+ }
108
+ }
109
+
110
+ input[type="radio"] {
111
+ &::before {
112
+ top: var(--element-inner-margin-small);
113
+ left: var(--element-inner-margin-small);
114
+ width: calc(100% - var(--element-inner-margin-small) * 2);
115
+ height: calc(100% - var(--element-inner-margin-small) * 2);
116
+ transform: scale(.8);
117
+ background-color: var(--mtt-color-line);
118
+ }
119
+
120
+ &:checked::before {
121
+ background-color: var(--mtt-color-text-bright);
122
+ transform: scale(1);
123
+ }
124
+
125
+ &:is(:hover, .hover):not(:disabled, [aria-disabled=true])::before {
126
+ background-color: var(--mtt-color-line-highlight);
127
+ }
128
+
129
+ &:is(:hover, .hover):checked:not(:disabled, [aria-disabled=true])::before {
130
+ background-color: var(--mtt-color-text-brightest);
131
+ }
132
+ }
133
+
134
+ /* States shared by all three */
135
+ input[type="radio"]:checked:not(:disabled, [aria-disabled=true])::before,
136
+ input[type="checkbox"]:checked:not(:disabled, [aria-disabled=true])::before {
137
+ filter: drop-shadow(0 0 var(--shine-radius) var(--mtt-color-text-bright));
138
+ }
139
+
140
+ input[type="radio"]:is(:hover, .hover):not(:disabled, [aria-disabled=true], :checked),
141
+ input[type="checkbox"]:is(:hover, .hover):not(:disabled, [aria-disabled=true], :checked) {
142
+ --glow-source: var(--mtt-color-line-highlight);
143
+ box-shadow:
144
+ 0 0 0 calc(var(--shine-radius) / 2) var(--glow-color),
145
+ 0 0 var(--glow-radius) var(--glow-color);
146
+ }
147
+
148
+ input[type="radio"]:checked,
149
+ input[type="checkbox"]:checked {
150
+ --background-color: var(--mtt-color-main);
151
+ --glow-source: var(--background-color);
152
+ background-color: var(--background-color);
153
+ box-shadow:
154
+ 0 0 0 calc(var(--shine-radius) / 2) var(--background-color),
155
+ 0 0 var(--glow-radius) var(--glow-color);
156
+ }
157
+
158
+ input[type="radio"]:checked:is(.hover, :hover):not(:disabled, [aria-disabled=true]),
159
+ input[type="checkbox"]:checked:is(.hover, :hover):not(:disabled, [aria-disabled=true]) {
160
+ --background-color: var(--mtt-color-main-highlight);
161
+ }
@@ -0,0 +1,69 @@
1
+ .spark {
2
+ --width: var(--highlight-thickness);
3
+ gap: var(--highlight-thickness)
4
+ }
5
+
6
+ .spark > i:last-child {
7
+ --glow-source: var(--shine-color);
8
+ background: var(--color);
9
+ box-shadow:
10
+ 0 0 calc(var(--shine-radius) * 2) var(--color),
11
+ 0 0 calc(var(--glow-radius) * 2) var(--glow-color);
12
+ }
13
+
14
+ .share {
15
+ display: flex;
16
+ gap: var(--element-inner-margin-small);
17
+ height: var(--bar-thickness);
18
+ }
19
+
20
+ .share > i {
21
+ --glow-source: var(--shine-color);
22
+ flex: var(--value);
23
+ height: 100%;
24
+ background: var(--color);
25
+ box-shadow: 0 0 var(--glow-radius) var(--glow-color);
26
+ }
27
+
28
+ .badge, .tag {
29
+ height: var(--element-height-tiny);
30
+ padding: 0 var(--margin-tight);
31
+ font-weight: 500;
32
+ font-size: var(--decrease-font-size);
33
+ clip-path: var(--chipped-corner-small);
34
+ }
35
+
36
+ .badge {
37
+ gap: var(--margin-tight);
38
+ font-family: var(--mono);
39
+ letter-spacing: var(--letter-spacing-wide);
40
+ text-transform: uppercase;
41
+ }
42
+
43
+ .badge::before {
44
+ content: "";
45
+ flex: none;
46
+ width: calc(var(--element-inner-margin-small) * 2);
47
+ height: calc(var(--element-inner-margin-small) * 2);
48
+ border-radius: 50%;
49
+ background: var(--shine-color);
50
+ box-shadow: 0 0 calc(var(--glow-radius) / 2) calc(var(--shine-radius) / 2) var(--shine-color);
51
+ }
52
+
53
+ div[role="meter"] {
54
+ height: var(--bar-thickness-small);
55
+ background: var(--background);
56
+ position: relative;
57
+ }
58
+
59
+ div[role="meter"]:before {
60
+ --glow-source: var(--shine-color);
61
+ content: "";
62
+ position: absolute;
63
+ top: 0;
64
+ left: 0;
65
+ width: var(--value);
66
+ height: 100%;
67
+ background: var(--color);
68
+ box-shadow: 0 0 var(--glow-radius) var(--glow-color);
69
+ }
@@ -0,0 +1,9 @@
1
+ @import "base.css";
2
+
3
+ @import "scrollbar.css";
4
+ @import "panel.css";
5
+ @import "button.css";
6
+ @import "bar.css";
7
+ @import "input.css";
8
+ @import "checkbox.css";
9
+ @import "decorations.css";
@@ -0,0 +1,157 @@
1
+ /* Text fields. `label:has(> &)` is the label wrapping the field, it mirrors the state of the field */
2
+ :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
3
+ --field-corners: var(--ticks);
4
+
5
+ inline-size: 100%;
6
+ min-inline-size: 0;
7
+ min-block-size: var(--element-height);
8
+ margin: 0;
9
+ padding: 0 var(--margin-tight);
10
+ border: 0;
11
+ border-radius: 0;
12
+
13
+ color: var(--field-ink);
14
+ caret-color: var(--mtt-color-line-decorated);
15
+ font-family: var(--mono);
16
+
17
+ background:
18
+ var(--field-corners),
19
+ var(--field-extra-background, none),
20
+ var(--field-surface);
21
+ background-repeat: no-repeat;
22
+
23
+ transition:
24
+ background var(--transition),
25
+ box-shadow var(--transition);
26
+
27
+ &,
28
+ label:has(> &) {
29
+ --field-surface: var(--mtt-color-body);
30
+ --field-ink: var(--mtt-color-text-bright);
31
+ --tick-color: var(--mtt-color-line-highlight);
32
+ --tick-size: calc(var(--chip) / 2);
33
+ }
34
+
35
+ &:is(:focus, .focus),
36
+ label:has(> &:is(:focus, .focus)) {
37
+ --field-surface: var(--mtt-color-main-dimmed);
38
+ --tick-color: var(--mtt-color-line-decorated);
39
+ --tick-size: var(--chip);
40
+ }
41
+ }
42
+
43
+ :is(input, select, textarea) {
44
+ &:is(:user-invalid, [aria-invalid="true"], .error) {
45
+ &,
46
+ label:has(> &) {
47
+ --tick-color: var(--color-danger-highlight);
48
+ }
49
+
50
+ &:is(:focus, .focus),
51
+ label:has(> &:is(:focus, .focus)) {
52
+ --field-surface: var(--color-danger);
53
+ --tick-color: var(--color-danger-text);
54
+ }
55
+
56
+ label:has(> &) > small {
57
+ color: var(--color-danger-text);
58
+ }
59
+ }
60
+
61
+ &:is(:disabled, [aria-disabled=true]),
62
+ label:has(> &:is(:disabled, [aria-disabled=true])) {
63
+ --field-surface: transparent;
64
+ --tick-color: var(--mtt-color-line-dimmed);
65
+ }
66
+ }
67
+
68
+ select {
69
+ padding-inline-end: 34px;
70
+
71
+ /* odd width: the tip is one whole pixel, the edges never split a pixel */
72
+ --field-extra-background:
73
+ conic-gradient(from -45deg at 50% 100%, var(--mtt-color-text-muted) 90deg, #0000 0)
74
+ calc(100% - 10px) calc(50% - 2px) / 11px 6px;
75
+ }
76
+
77
+ textarea {
78
+ min-block-size: 64px;
79
+ padding-block: var(--margin-tight);
80
+ line-height: var(--line-height);
81
+ resize: vertical;
82
+ }
83
+
84
+ :is(input, textarea)::placeholder {
85
+ color: var(--mtt-color-text-muted);
86
+ opacity: 1;
87
+ }
88
+
89
+ /*
90
+ Progressive enhancement.
91
+
92
+ The label can contain arbitrary text, help, or decorations: the pseudo
93
+ elements use the control's anchor box rather than label layout.
94
+ */
95
+ @supports (anchor-name: --mtt-field-control) {
96
+ label:has(> :is(input:not([type="checkbox"], [type="radio"]), select, textarea)) {
97
+ position: relative;
98
+ anchor-scope: --mtt-field-control;
99
+
100
+ /* the corners are drawn by the label, over the field */
101
+ > :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
102
+ anchor-name: --mtt-field-control;
103
+ --field-corners: none;
104
+ }
105
+
106
+ &::after {
107
+ content: "";
108
+ position: absolute;
109
+ position-anchor: --mtt-field-control;
110
+ z-index: 1;
111
+
112
+ inset-inline-start: anchor(start);
113
+ inset-block-start: anchor(start);
114
+ inline-size: anchor-size(--mtt-field-control width);
115
+ block-size: anchor-size(--mtt-field-control height);
116
+
117
+ pointer-events: none;
118
+ background: var(--ticks);
119
+ background-repeat: no-repeat;
120
+
121
+ transition:
122
+ background var(--transition),
123
+ filter var(--transition);
124
+ }
125
+ }
126
+
127
+ label:has(> input[type="search"]) {
128
+ > input[type="search"] {
129
+ padding-inline-start: var(--element-height);
130
+ }
131
+
132
+ &::before {
133
+ content: "";
134
+ position: absolute;
135
+ position-anchor: --mtt-field-control;
136
+ z-index: 1;
137
+
138
+ inset-inline-start: calc(anchor(start) + var(--margin-tight));
139
+ inset-block-start: anchor(center);
140
+ inline-size: var(--element-height-tiny);
141
+ block-size: var(--element-height-tiny);
142
+ transform: translateY(-50%);
143
+
144
+ pointer-events: none;
145
+ background-color: var(--field-ink);
146
+ -webkit-mask: var(--mtt-icon-search) center / contain no-repeat;
147
+ mask: var(--mtt-icon-search) center / contain no-repeat;
148
+ }
149
+ }
150
+
151
+ label:has(> :is(input:not([type="checkbox"], [type="radio"], :disabled, [aria-disabled=true]), select, textarea):is(:focus, .focus))::after {
152
+ --glow-source: var(--tick-color);
153
+ filter:
154
+ drop-shadow(0 0 var(--shine-radius) var(--tick-color))
155
+ drop-shadow(0 0 var(--glow-radius) var(--glow-color));
156
+ }
157
+ }
@@ -0,0 +1,72 @@
1
+ :is(.panel, .card, .alert) {
2
+ padding: var(--margin);
3
+ position: relative;
4
+ background-color: var(--mtt-color-panel);
5
+ border: 1px solid var(--mtt-color-line-dimmed);
6
+ background-image: linear-gradient(
7
+ 135deg,
8
+ #0000 calc(50% - 1px),
9
+ var(--corner-line, var(--mtt-color-line-highlight)) 0 calc(50% + 1px),
10
+ #0000 0
11
+ );
12
+ background-size: var(--chip) var(--chip);
13
+ background-position: 100% 100%;
14
+ background-repeat: no-repeat;
15
+ background-origin: border-box;
16
+ clip-path: var(--chipped-corner);
17
+ }
18
+
19
+ .card {
20
+ background-color: var(--mtt-color-body);
21
+ }
22
+
23
+ :is(.panel, .card) {
24
+ &::before,
25
+ &::after {
26
+ content: "";
27
+ position: absolute;
28
+ width: var(--chip);
29
+ height: var(--chip);
30
+ border: 0 solid var(--mtt-color-line-highlight);
31
+ pointer-events: none;
32
+ z-index: 2;
33
+ }
34
+
35
+ &::before {
36
+ left: -1px;
37
+ top: -1px;
38
+ border-width: 1px 0 0 1px;
39
+ }
40
+
41
+ &::after {
42
+ right: -1px;
43
+ bottom: -1px;
44
+ border-width: 0 1px 1px 0;
45
+ }
46
+ }
47
+
48
+ .alert {
49
+ display: grid;
50
+ grid-template-columns: auto minmax(0, 1fr) auto;
51
+ align-items: center;
52
+ gap: var(--margin-tight);
53
+ min-width: 0;
54
+ --corner-line: var(--color);
55
+ border: none;
56
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color) calc(var(--glow-strength) / 2), var(--background));
57
+ background-color: var(--background);
58
+ }
59
+
60
+ .alert > .stack {
61
+ gap: 0;
62
+ min-width: 0;
63
+ }
64
+
65
+ /* Add glow */
66
+ header {
67
+ background:
68
+ linear-gradient(var(--mtt-color-text-decorated), var(--mtt-color-text-decorated)) 0 100% / calc(var(--chip) * 2) 1px no-repeat,
69
+ linear-gradient(var(--mtt-color-line-highlight), var(--mtt-color-line-highlight)) 100% 100% / var(--chip) 1px no-repeat,
70
+ linear-gradient(var(--mtt-color-line-dimmed), var(--mtt-color-line-dimmed)) 0 100% / 100% 1px no-repeat;
71
+ background-origin: border-box;
72
+ }
@@ -0,0 +1,27 @@
1
+ @supports not selector(::-webkit-scrollbar) {
2
+ * {
3
+ scrollbar-color: var(--mtt-color-main) transparent;
4
+ scrollbar-width: thin;
5
+ }
6
+ }
7
+
8
+ @supports selector(::-webkit-scrollbar) {
9
+ *::-webkit-scrollbar {
10
+ width: 1px;
11
+ height: 1px;
12
+ }
13
+
14
+ *::-webkit-scrollbar-button {
15
+ display: none;
16
+ width: 0;
17
+ height: 0;
18
+ }
19
+
20
+ *::-webkit-scrollbar-track {
21
+ background: transparent;
22
+ }
23
+
24
+ *::-webkit-scrollbar-thumb {
25
+ background: var(--mtt-color-main);
26
+ }
27
+ }
package/src/icon.css ADDED
@@ -0,0 +1,64 @@
1
+ i.icon {
2
+ display: inline-block;
3
+ width: 1.2em;
4
+ height: 1.2em;
5
+ flex-shrink: 0;
6
+ position: relative;
7
+ }
8
+
9
+ i.icon::before {
10
+ content: "";
11
+ position: absolute;
12
+ inset: 0;
13
+ background-color: currentColor;
14
+ -webkit-mask-image: var(--svg);
15
+ mask-image: var(--svg);
16
+ -webkit-mask-size: contain;
17
+ mask-size: contain;
18
+ -webkit-mask-position: center;
19
+ mask-position: center;
20
+ -webkit-mask-repeat: no-repeat;
21
+ mask-repeat: no-repeat;
22
+ }
23
+
24
+ :root {
25
+ --mtt-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
26
+ --mtt-icon-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.4-5.7'/%3E%3Cpath d='M20 4.5v4.5h-4.5'/%3E%3C/svg%3E");
27
+ --mtt-icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E");
28
+ --mtt-icon-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M10 11v5.5M14 11v5.5M6.5 7l.8 12.2a1 1 0 0 0 1 .8h7.4a1 1 0 0 0 1-.8L17.5 7M9.5 7V4.5h5V7'/%3E%3C/svg%3E");
29
+ --mtt-icon-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5h16l-6.2 7.2v5.5l-3.6 1.8v-7.3L4 5.5Z'/%3E%3C/svg%3E");
30
+ --mtt-icon-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 3.5 10 14'/%3E%3Cpath d='M20.5 3.5 14 20.5l-4-6.5-6.5-4 17-6.5Z'/%3E%3C/svg%3E");
31
+ --mtt-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
32
+ --mtt-icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.6 2.6 3.8 5.6 3.8 9s-1.2 6.4-3.8 9c-2.6-2.6-3.8-5.6-3.8-9S9.4 5.6 12 3Z'/%3E%3C/svg%3E");
33
+ --mtt-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.2'/%3E%3Cpath d='m3.8 6.8 8.2 6 8.2-6'/%3E%3C/svg%3E");
34
+ --mtt-icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14'/%3E%3Cpath d='m15 4.5 3.5 3.5-3.5 3.5'/%3E%3Cpath d='M20 16H6'/%3E%3Cpath d='M9 12.5 5.5 16 9 19.5'/%3E%3C/svg%3E");
35
+ --mtt-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.8'/%3E%3Cpath d='M4.5 20c1.2-3.8 4-5.5 7.5-5.5s6.3 1.7 7.5 5.5'/%3E%3C/svg%3E");
36
+ --mtt-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E");
37
+ --mtt-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
38
+ --mtt-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.01'/%3E%3C/svg%3E");
39
+ --mtt-icon-success: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.3 2.8 2.8L16.2 9'/%3E%3C/svg%3E");
40
+ --mtt-icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4L12 3.5Z'/%3E%3Cpath d='M12 10v4M12 16.8v.01'/%3E%3C/svg%3E");
41
+ --mtt-icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9.2 9.2 5.6 5.6M14.8 9.2l-5.6 5.6'/%3E%3C/svg%3E");
42
+ --mtt-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9.5 9.5 5 5M14.5 9.5l-5 5'/%3E%3C/svg%3E");
43
+ --mtt-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
44
+ }
45
+
46
+ .i-search { --svg: var(--mtt-icon-search); }
47
+ .i-refresh { --svg: var(--mtt-icon-refresh); }
48
+ .i-pause { --svg: var(--mtt-icon-pause); }
49
+ .i-trash { --svg: var(--mtt-icon-trash); }
50
+ .i-filter { --svg: var(--mtt-icon-filter); }
51
+ .i-send { --svg: var(--mtt-icon-send); }
52
+ .i-plus { --svg: var(--mtt-icon-plus); }
53
+ .i-globe { --svg: var(--mtt-icon-globe); }
54
+ .i-mail { --svg: var(--mtt-icon-mail); }
55
+ .i-swap { --svg: var(--mtt-icon-swap); }
56
+ .i-user { --svg: var(--mtt-icon-user); }
57
+ .i-lock { --svg: var(--mtt-icon-lock); }
58
+ .i-arrow { --svg: var(--mtt-icon-arrow); }
59
+ .i-info { --svg: var(--mtt-icon-info); }
60
+ .i-success { --svg: var(--mtt-icon-success); }
61
+ .i-warn { --svg: var(--mtt-icon-warn); }
62
+ .i-error { --svg: var(--mtt-icon-error); }
63
+ .i-x { --svg: var(--mtt-icon-x); }
64
+ .i-check { --svg: var(--mtt-icon-check); }
@@ -0,0 +1,53 @@
1
+ :root {
2
+ --mtt-color-body: #050a22;
3
+ --mtt-color-panel: #060f28;
4
+
5
+ --mtt-color-main-dimmed: #0a1b51;
6
+ --mtt-color-button: #112a73;
7
+ --mtt-color-main: #2456F0;
8
+ --mtt-color-main-highlight: #3462ff;
9
+
10
+ --mtt-color-text-muted: #5d6c99;
11
+ --mtt-color-text: #97a6cf;
12
+ --mtt-color-text-decorated: #6d93ff;
13
+ --mtt-color-text-bright: #e8eeff;
14
+ --mtt-color-text-brightest: #ffffff;
15
+
16
+ --mtt-color-line: #182756;
17
+ --mtt-color-line-dimmed: #101c3f;
18
+ --mtt-color-line-highlight: #3e589f;
19
+ --mtt-color-line-decorated: #9db8ff;
20
+
21
+ --color-info: var(--mtt-color-main-dimmed);
22
+ --color-info-highlight: var(--mtt-color-text-decorated);
23
+ --color-info-text: var(--mtt-color-line-decorated);
24
+
25
+ --color-signature: #0d2b41;
26
+ --color-signature-highlight: #3de6f2;
27
+ --color-signature-text: #7aedf5;
28
+
29
+ --color-success: #0f2a37;
30
+ --color-success-highlight: #4fe3a0;
31
+ --color-success-text: #8eecc0;
32
+
33
+ --color-priority: #1e1f43;
34
+ --color-priority-highlight: #c48aff;
35
+ --color-priority-text: #dbb8ff;
36
+
37
+ --color-warning: #26242b;
38
+ --color-warning-highlight: #ffb547;
39
+ --color-warning-text: #ffd08a;
40
+
41
+ --color-danger: #2e1a33;
42
+ --color-danger-highlight: #d33650;
43
+ --color-danger-text: #ff8e9c;
44
+
45
+ --glow-radius: 10px;
46
+ --shine-radius: 2px;
47
+ --glow-strength: 50%;
48
+ --disabled-filter: brightness(0.7) contrast(0.9) saturate(0.7);
49
+ }
50
+
51
+ html {
52
+ color-scheme: dark;
53
+ }