@meteo28093/equinox-ui 0.1.7 → 0.1.8
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.
- package/README.md +29 -6
- package/dist/equinox-ui.0.1.7.esm.js +730 -319
- package/dist/equinox-ui.0.1.7.global.js +730 -319
- package/dist/{equinox-ui.0.1.6.global.js → equinox-ui.0.1.8.esm.js} +719 -308
- package/dist/{equinox-ui.0.1.6.esm.js → equinox-ui.0.1.8.global.js} +730 -319
- package/dist/equinox-ui.esm.js +730 -319
- package/dist/equinox-ui.global.js +730 -319
- package/package.json +5 -2
- package/reset.css +96 -0
- package/src/styles/tokens.css +28 -10
- package/tokens.css +43 -0
- package/dist/equinox-ui.0.1.3.esm.js +0 -3100
- package/dist/equinox-ui.0.1.3.global.js +0 -3100
- package/dist/equinox-ui.0.1.4.esm.js +0 -2875
- package/dist/equinox-ui.0.1.4.global.js +0 -2875
- package/dist/equinox-ui.0.1.5.esm.js +0 -2875
- package/dist/equinox-ui.0.1.5.global.js +0 -2875
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteo28093/equinox-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "A collection of Web Components for building modern UIs",
|
|
5
5
|
"main": "dist/equinox-ui.esm.js",
|
|
6
6
|
"module": "dist/equinox-ui.esm.js",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"dist/equinox-ui.global.js",
|
|
12
12
|
"dist/equinox-ui.*.js",
|
|
13
13
|
"equinox.css",
|
|
14
|
+
"tokens.css",
|
|
15
|
+
"reset.css",
|
|
14
16
|
"src/styles/tokens.css",
|
|
15
17
|
"README.md"
|
|
16
18
|
],
|
|
@@ -22,7 +24,8 @@
|
|
|
22
24
|
},
|
|
23
25
|
"./global": "./dist/equinox-ui.global.js",
|
|
24
26
|
"./equinox.css": "./equinox.css",
|
|
25
|
-
"./tokens.css": "./
|
|
27
|
+
"./tokens.css": "./tokens.css",
|
|
28
|
+
"./reset.css": "./reset.css"
|
|
26
29
|
},
|
|
27
30
|
"scripts": {
|
|
28
31
|
"test": "echo \"Error: no test specified\" && exit 1",
|
package/reset.css
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
font-family:
|
|
14
|
+
system-ui,
|
|
15
|
+
-apple-system,
|
|
16
|
+
BlinkMacSystemFont,
|
|
17
|
+
"Segoe UI",
|
|
18
|
+
Roboto,
|
|
19
|
+
Oxygen,
|
|
20
|
+
Ubuntu,
|
|
21
|
+
Cantarell,
|
|
22
|
+
"Open Sans",
|
|
23
|
+
"Helvetica Neue",
|
|
24
|
+
sans-serif;
|
|
25
|
+
font-size: var(--font-size);
|
|
26
|
+
color: var(--text);
|
|
27
|
+
max-width: var(--max-width-body);
|
|
28
|
+
margin: 0 auto;
|
|
29
|
+
background-color: var(--background);
|
|
30
|
+
padding: var(--padding-md);
|
|
31
|
+
line-height: 1.5;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a {
|
|
35
|
+
color: var(--links);
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
border-bottom: 2px dashed var(--links);
|
|
38
|
+
transition: all 0.2s ease;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
a:hover {
|
|
42
|
+
border-bottom-style: solid;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
button {
|
|
46
|
+
background: var(--background-alt);
|
|
47
|
+
color: inherit;
|
|
48
|
+
font-family: inherit;
|
|
49
|
+
font-size: inherit;
|
|
50
|
+
padding: 0.5em 1em;
|
|
51
|
+
border: none;
|
|
52
|
+
border-radius: 0.25rem;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: filter 0.2s ease;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
button:hover,
|
|
58
|
+
.button:hover {
|
|
59
|
+
filter: brightness(1.3);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
code,
|
|
63
|
+
pre {
|
|
64
|
+
background: var(--background-alt);
|
|
65
|
+
color: var(--code);
|
|
66
|
+
font-family: "Courier New", Courier, monospace;
|
|
67
|
+
padding: 0.2em 0.4em;
|
|
68
|
+
border-radius: 0.25rem;
|
|
69
|
+
overflow-x: scroll;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
input,
|
|
73
|
+
textarea {
|
|
74
|
+
padding: var(--padding-sm);
|
|
75
|
+
border: 1px solid var(--border);
|
|
76
|
+
border-radius: var(--radius-xs);
|
|
77
|
+
font-size: inherit;
|
|
78
|
+
display: block;
|
|
79
|
+
width: 100%;
|
|
80
|
+
margin: 0.1rem 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
input:focus,
|
|
84
|
+
textarea:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
border-color: var(--links);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
input::placeholder {
|
|
90
|
+
color: var(--text-muted);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
label {
|
|
94
|
+
display: block;
|
|
95
|
+
margin-bottom: 0.2rem;
|
|
96
|
+
}
|
package/src/styles/tokens.css
CHANGED
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--
|
|
2
|
+
/* Core Base Custom Properties */
|
|
3
|
+
color-scheme: light dark;
|
|
4
|
+
--primary: light-dark(#e2e2e2, #1d1d1d);
|
|
5
|
+
--radius: 5px;
|
|
6
|
+
--radius-xs: 3px;
|
|
7
|
+
--max-width-body: 1000px;
|
|
8
|
+
--background: light-dark(#fefefe, #121212);
|
|
9
|
+
--font-size: 18px;
|
|
10
|
+
--border: light-dark(#e2e2e2, #303030);
|
|
11
|
+
--links: light-dark(#840023, #ff1755);
|
|
12
|
+
--padding-md: 1.2rem;
|
|
13
|
+
--code: light-dark(#158002, #ff1755);
|
|
14
|
+
--padding-sm: 0.5rem;
|
|
15
|
+
--background-alt: light-dark(#e2e2e2, #1d1d1d);
|
|
16
|
+
--text: light-dark(#1b1b1b, #e9e9e9);
|
|
17
|
+
--text-muted: light-dark(#1b1b1bb9, #e9e9e9cf);
|
|
18
|
+
|
|
19
|
+
/* Namespaced Tokens linked to Base Properties for Unified Theming */
|
|
20
|
+
--ee-color-text: var(--text);
|
|
21
|
+
--ee-color-text-strong: light-dark(#000000, #ffffff);
|
|
22
|
+
--ee-color-muted: var(--text-muted);
|
|
5
23
|
--ee-color-surface: transparent;
|
|
6
|
-
--ee-color-surface-alt:
|
|
7
|
-
--ee-color-border:
|
|
8
|
-
--ee-color-accent:
|
|
24
|
+
--ee-color-surface-alt: var(--background-alt);
|
|
25
|
+
--ee-color-border: var(--border);
|
|
26
|
+
--ee-color-accent: var(--links);
|
|
9
27
|
--ee-color-accent-contrast: #ffffff;
|
|
10
28
|
--ee-color-success: #2e7d32;
|
|
11
29
|
--ee-color-danger: #b00020;
|
|
12
30
|
|
|
13
|
-
--ee-radius-xs:
|
|
31
|
+
--ee-radius-xs: var(--radius-xs);
|
|
14
32
|
--ee-radius-sm: 4px;
|
|
15
|
-
--ee-radius-md:
|
|
33
|
+
--ee-radius-md: var(--radius);
|
|
16
34
|
|
|
17
|
-
--ee-space-2:
|
|
18
|
-
--ee-space-4:
|
|
35
|
+
--ee-space-2: var(--padding-sm);
|
|
36
|
+
--ee-space-4: var(--padding-md);
|
|
19
37
|
|
|
20
38
|
--ee-font-size-xs: 0.8rem;
|
|
21
39
|
--ee-font-size-sm: 0.9rem;
|
package/tokens.css
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Core Base Custom Properties */
|
|
3
|
+
color-scheme: light dark;
|
|
4
|
+
--primary: light-dark(#e2e2e2, #1d1d1d);
|
|
5
|
+
--radius: 5px;
|
|
6
|
+
--radius-xs: 3px;
|
|
7
|
+
--max-width-body: 1000px;
|
|
8
|
+
--background: light-dark(#fefefe, #121212);
|
|
9
|
+
--font-size: 18px;
|
|
10
|
+
--border: light-dark(#e2e2e2, #303030);
|
|
11
|
+
--links: light-dark(#840023, #ff1755);
|
|
12
|
+
--padding-md: 1.2rem;
|
|
13
|
+
--code: light-dark(#158002, #ff1755);
|
|
14
|
+
--padding-sm: 0.5rem;
|
|
15
|
+
--background-alt: light-dark(#e2e2e2, #1d1d1d);
|
|
16
|
+
--text: light-dark(#1b1b1b, #e9e9e9);
|
|
17
|
+
--text-muted: light-dark(#1b1b1bb9, #e9e9e9cf);
|
|
18
|
+
|
|
19
|
+
/* Namespaced Tokens linked to Base Properties for Unified Theming */
|
|
20
|
+
--ee-color-text: var(--text);
|
|
21
|
+
--ee-color-text-strong: light-dark(#000000, #ffffff);
|
|
22
|
+
--ee-color-muted: var(--text-muted);
|
|
23
|
+
--ee-color-surface: transparent;
|
|
24
|
+
--ee-color-surface-alt: var(--background-alt);
|
|
25
|
+
--ee-color-border: var(--border);
|
|
26
|
+
--ee-color-accent: var(--links);
|
|
27
|
+
--ee-color-accent-contrast: #ffffff;
|
|
28
|
+
--ee-color-success: #2e7d32;
|
|
29
|
+
--ee-color-danger: #b00020;
|
|
30
|
+
|
|
31
|
+
--ee-radius-xs: var(--radius-xs);
|
|
32
|
+
--ee-radius-sm: 4px;
|
|
33
|
+
--ee-radius-md: var(--radius);
|
|
34
|
+
|
|
35
|
+
--ee-space-2: var(--padding-sm);
|
|
36
|
+
--ee-space-4: var(--padding-md);
|
|
37
|
+
|
|
38
|
+
--ee-font-size-xs: 0.8rem;
|
|
39
|
+
--ee-font-size-sm: 0.9rem;
|
|
40
|
+
--ee-font-size-md: 1.1rem;
|
|
41
|
+
|
|
42
|
+
--ee-transition-fast: 0.1s;
|
|
43
|
+
}
|