@axium/client 0.4.0 → 0.4.1

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,140 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ color: hsl(0 0 var(--fg-light));
4
+ accent-color: hsl(0 0 var(--fg-light));
5
+ font-family: sans-serif;
6
+ }
7
+
8
+ body {
9
+ font-family: sans-serif;
10
+ font-size: 16px;
11
+ background-color: var(--bg-normal);
12
+ color: hsl(0 0 var(--fg-light));
13
+ accent-color: hsl(0 0 var(--fg-light));
14
+ overflow-y: scroll;
15
+ }
16
+
17
+ .main {
18
+ padding: 2em;
19
+ border-radius: 1em;
20
+ background-color: var(--bg-menu);
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 1em;
24
+ }
25
+
26
+ .main-container:has(form.main) {
27
+ position: absolute;
28
+ inset: 0;
29
+ display: flex;
30
+ justify-content: center;
31
+ align-items: center;
32
+ }
33
+
34
+ form.main {
35
+ width: max-content;
36
+ height: max-content;
37
+ }
38
+
39
+ form {
40
+ div:has(label ~ input),
41
+ div:has(label ~ textarea),
42
+ div:has(label ~ select) {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 0;
46
+ }
47
+ }
48
+
49
+ input,
50
+ button,
51
+ select {
52
+ border-radius: 0.5em;
53
+ border: 1px solid var(--border-accent);
54
+ background-color: var(--bg-normal);
55
+ padding: 0.5em 1em;
56
+ }
57
+
58
+ textarea {
59
+ background: var(--bg-normal);
60
+ border: 1px solid var(--border-accent);
61
+ }
62
+
63
+ input,
64
+ textarea {
65
+ outline: none;
66
+ }
67
+
68
+ button {
69
+ cursor: pointer;
70
+ }
71
+
72
+ button:hover {
73
+ background-color: hsl(var(--hue) 15 calc(var(--bg-light) + (var(--light-step) * 2)));
74
+ }
75
+
76
+ .error {
77
+ padding: 1em;
78
+ border-radius: 0.5em;
79
+ background-color: var(--bg-error);
80
+ }
81
+
82
+ .error-text {
83
+ color: hsl(0 50 50%);
84
+ }
85
+
86
+ .success {
87
+ padding: 1em;
88
+ border-radius: 0.5em;
89
+ background-color: var(--bg-success);
90
+ }
91
+
92
+ .subtle {
93
+ opacity: 69%;
94
+ font-size: 0.9em;
95
+ }
96
+
97
+ .flex-content {
98
+ display: flex;
99
+ align-items: center;
100
+ flex-direction: column;
101
+ gap: 1em;
102
+ overflow-y: scroll;
103
+ }
104
+
105
+ .danger {
106
+ border: 1px solid hsl(0 50 var(--fg-light));
107
+ background-color: hsl(0 20 calc(var(--bg-light) + var(--light-step)));
108
+ color: hsl(0 33 var(--fg-light));
109
+ accent-color: hsl(0 33 var(--fg-light));
110
+ }
111
+
112
+ .danger:hover {
113
+ background-color: hsl(0 20 calc(var(--bg-light) + (var(--light-step) * 3)));
114
+ }
115
+
116
+ :disabled,
117
+ .disabled {
118
+ cursor: not-allowed;
119
+ }
120
+
121
+ :popover-open {
122
+ border: 1px solid hsl(var(--hue) 10 calc(var(--fg-light) - var(--light-step)));
123
+ background-color: hsl(from var(--bg-menu) h s l / 95%);
124
+ border-radius: 0.5em;
125
+ padding: 0.25em;
126
+ inset: unset;
127
+ display: flex;
128
+ flex-direction: column;
129
+ gap: 0.1em;
130
+ }
131
+
132
+ .icon-text {
133
+ display: inline-flex;
134
+ align-items: center;
135
+ gap: 1em;
136
+ }
137
+
138
+ a:has(button, div) {
139
+ display: contents;
140
+ }
@@ -0,0 +1,42 @@
1
+ @property --hue {
2
+ syntax: '<number>|<angle>';
3
+ inherits: true;
4
+ initial-value: 240deg;
5
+ }
6
+
7
+ @property --fg-light {
8
+ syntax: '<percentage>';
9
+ inherits: true;
10
+ initial-value: 73%;
11
+ }
12
+
13
+ @property --bg-light {
14
+ syntax: '<percentage>';
15
+ inherits: true;
16
+ initial-value: 13.3%;
17
+ }
18
+
19
+ @property --light-step {
20
+ syntax: '<percentage>';
21
+ inherits: true;
22
+ initial-value: 6.6%;
23
+ }
24
+
25
+ @property --bg-light-status {
26
+ syntax: '<percentage>';
27
+ inherits: true;
28
+ initial-value: 33%;
29
+ }
30
+
31
+ /* html is used so themes can use :root to override these if needed */
32
+ html {
33
+ --bg-normal: hsl(0 0 var(--bg-light));
34
+ --bg-menu: hsl(0 0 calc(var(--bg-light) - var(--light-step)));
35
+ --bg-accent: hsl(var(--hue) 15 calc(var(--bg-light) + (var(--light-step) * 2)));
36
+ --bg-alt: hsl(var(--hue) 5 calc(var(--bg-light) + var(--light-step)));
37
+ --bg-strong: hsl(var(--hue) 20 calc(var(--bg-light) + var(--light-step)));
38
+ --bg-error: hsl(0 40 var(--bg-light-status));
39
+ --bg-success: hsl(120 40 var(--bg-light-status));
40
+ --fg-accent: hsl(var(--hue) 15 var(--fg-light));
41
+ --border-accent: hsl(var(--hue) 10 calc(var(--bg-light) + (var(--light-step) * 3)));
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -19,6 +19,7 @@
19
19
  "main": "dist/index.js",
20
20
  "types": "dist/index.d.ts",
21
21
  "files": [
22
+ "assets",
22
23
  "dist",
23
24
  "lib"
24
25
  ],