elements-kit 0.3.4 → 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.
Files changed (74) hide show
  1. package/dist/ui/button/button.css +547 -0
  2. package/dist/ui/styles/accent/amber.css +30 -0
  3. package/dist/ui/styles/accent/blue.css +30 -0
  4. package/dist/ui/styles/accent/bronze.css +30 -0
  5. package/dist/ui/styles/accent/brown.css +30 -0
  6. package/dist/ui/styles/accent/crimson.css +30 -0
  7. package/dist/ui/styles/accent/cyan.css +30 -0
  8. package/dist/ui/styles/accent/gold.css +30 -0
  9. package/dist/ui/styles/accent/grass.css +30 -0
  10. package/dist/ui/styles/accent/gray.css +30 -0
  11. package/dist/ui/styles/accent/green.css +30 -0
  12. package/dist/ui/styles/accent/indigo.css +30 -0
  13. package/dist/ui/styles/accent/iris.css +30 -0
  14. package/dist/ui/styles/accent/jade.css +30 -0
  15. package/dist/ui/styles/accent/lime.css +30 -0
  16. package/dist/ui/styles/accent/mint.css +30 -0
  17. package/dist/ui/styles/accent/orange.css +30 -0
  18. package/dist/ui/styles/accent/pink.css +30 -0
  19. package/dist/ui/styles/accent/plum.css +30 -0
  20. package/dist/ui/styles/accent/purple.css +30 -0
  21. package/dist/ui/styles/accent/red.css +30 -0
  22. package/dist/ui/styles/accent/ruby.css +30 -0
  23. package/dist/ui/styles/accent/sky.css +30 -0
  24. package/dist/ui/styles/accent/teal.css +30 -0
  25. package/dist/ui/styles/accent/tomato.css +30 -0
  26. package/dist/ui/styles/accent/violet.css +30 -0
  27. package/dist/ui/styles/accent/yellow.css +30 -0
  28. package/dist/ui/styles/base.css +156 -0
  29. package/dist/ui/styles/colors/amber.css +133 -0
  30. package/dist/ui/styles/colors/black-alpha.css +33 -0
  31. package/dist/ui/styles/colors/blue.css +127 -0
  32. package/dist/ui/styles/colors/bronze.css +127 -0
  33. package/dist/ui/styles/colors/brown.css +127 -0
  34. package/dist/ui/styles/colors/crimson.css +127 -0
  35. package/dist/ui/styles/colors/cyan.css +127 -0
  36. package/dist/ui/styles/colors/gold.css +127 -0
  37. package/dist/ui/styles/colors/grass.css +127 -0
  38. package/dist/ui/styles/colors/gray.css +127 -0
  39. package/dist/ui/styles/colors/green.css +127 -0
  40. package/dist/ui/styles/colors/indigo.css +127 -0
  41. package/dist/ui/styles/colors/iris.css +127 -0
  42. package/dist/ui/styles/colors/jade.css +127 -0
  43. package/dist/ui/styles/colors/lime.css +133 -0
  44. package/dist/ui/styles/colors/mauve.css +127 -0
  45. package/dist/ui/styles/colors/mint.css +133 -0
  46. package/dist/ui/styles/colors/olive.css +127 -0
  47. package/dist/ui/styles/colors/orange.css +127 -0
  48. package/dist/ui/styles/colors/pink.css +127 -0
  49. package/dist/ui/styles/colors/plum.css +127 -0
  50. package/dist/ui/styles/colors/purple.css +127 -0
  51. package/dist/ui/styles/colors/red.css +127 -0
  52. package/dist/ui/styles/colors/ruby.css +127 -0
  53. package/dist/ui/styles/colors/sage.css +127 -0
  54. package/dist/ui/styles/colors/sand.css +127 -0
  55. package/dist/ui/styles/colors/sky.css +133 -0
  56. package/dist/ui/styles/colors/slate.css +127 -0
  57. package/dist/ui/styles/colors/teal.css +127 -0
  58. package/dist/ui/styles/colors/tomato.css +127 -0
  59. package/dist/ui/styles/colors/violet.css +127 -0
  60. package/dist/ui/styles/colors/white-alpha.css +33 -0
  61. package/dist/ui/styles/colors/yellow.css +133 -0
  62. package/dist/ui/styles/cursor.css +11 -0
  63. package/dist/ui/styles/gray/mauve.css +30 -0
  64. package/dist/ui/styles/gray/olive.css +30 -0
  65. package/dist/ui/styles/gray/sage.css +30 -0
  66. package/dist/ui/styles/gray/sand.css +30 -0
  67. package/dist/ui/styles/gray/slate.css +30 -0
  68. package/dist/ui/styles/radius.css +38 -0
  69. package/dist/ui/styles/scaling.css +23 -0
  70. package/dist/ui/styles/shadow.css +105 -0
  71. package/dist/ui/styles/space.css +11 -0
  72. package/dist/ui/styles/typography.css +97 -0
  73. package/dist/ui/styles/unset.css +197 -0
  74. package/package.json +4 -2
@@ -0,0 +1,97 @@
1
+ :where(:root) {
2
+ --font-size-1: calc(12px * var(--scaling));
3
+ --font-size-2: calc(14px * var(--scaling));
4
+ --font-size-3: calc(16px * var(--scaling));
5
+ --font-size-4: calc(18px * var(--scaling));
6
+ --font-size-5: calc(20px * var(--scaling));
7
+ --font-size-6: calc(24px * var(--scaling));
8
+ --font-size-7: calc(28px * var(--scaling));
9
+ --font-size-8: calc(35px * var(--scaling));
10
+ --font-size-9: calc(60px * var(--scaling));
11
+ --font-weight-light: 300;
12
+ --font-weight-regular: 400;
13
+ --font-weight-medium: 500;
14
+ --font-weight-bold: 700;
15
+ --line-height-1: calc(16px * var(--scaling));
16
+ --line-height-2: calc(20px * var(--scaling));
17
+ --line-height-3: calc(24px * var(--scaling));
18
+ --line-height-4: calc(26px * var(--scaling));
19
+ --line-height-5: calc(28px * var(--scaling));
20
+ --line-height-6: calc(30px * var(--scaling));
21
+ --line-height-7: calc(36px * var(--scaling));
22
+ --line-height-8: calc(40px * var(--scaling));
23
+ --line-height-9: calc(60px * var(--scaling));
24
+ --letter-spacing-1: .0025em;
25
+ --letter-spacing-2: 0em;
26
+ --letter-spacing-3: 0em;
27
+ --letter-spacing-4: -.0025em;
28
+ --letter-spacing-5: -.005em;
29
+ --letter-spacing-6: -.00625em;
30
+ --letter-spacing-7: -.0075em;
31
+ --letter-spacing-8: -.01em;
32
+ --letter-spacing-9: -.025em;
33
+ --default-font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", system-ui,
34
+ sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
35
+ --default-font-size: var(--font-size-3);
36
+ --default-font-style: normal;
37
+ --default-font-weight: var(--font-weight-regular);
38
+ --default-line-height: 1.5;
39
+ --default-letter-spacing: 0em;
40
+ --default-leading-trim-start: .42em;
41
+ --default-leading-trim-end: .36em;
42
+ --heading-font-family: var(--default-font-family);
43
+ --heading-font-size-adjust: 1;
44
+ --heading-font-style: normal;
45
+ --heading-leading-trim-start: var(--default-leading-trim-start);
46
+ --heading-leading-trim-end: var(--default-leading-trim-end);
47
+ --heading-letter-spacing: 0em;
48
+ --heading-line-height-1: calc(16px * var(--scaling));
49
+ --heading-line-height-2: calc(18px * var(--scaling));
50
+ --heading-line-height-3: calc(22px * var(--scaling));
51
+ --heading-line-height-4: calc(24px * var(--scaling));
52
+ --heading-line-height-5: calc(26px * var(--scaling));
53
+ --heading-line-height-6: calc(30px * var(--scaling));
54
+ --heading-line-height-7: calc(36px * var(--scaling));
55
+ --heading-line-height-8: calc(40px * var(--scaling));
56
+ --heading-line-height-9: calc(60px * var(--scaling));
57
+ --code-font-family: "Menlo", "Bitstream Vera Sans Mono", monospace, "Apple Color Emoji",
58
+ "Segoe UI Emoji";
59
+ --code-font-size-adjust: .95;
60
+ --code-font-style: normal;
61
+ --code-font-weight: inherit;
62
+ --code-letter-spacing: -.007em;
63
+ --code-padding-top: .1em;
64
+ --code-padding-bottom: .1em;
65
+ --code-padding-left: .25em;
66
+ --code-padding-right: .25em;
67
+ --strong-font-family: var(--default-font-family);
68
+ --strong-font-size-adjust: 1;
69
+ --strong-font-style: inherit;
70
+ --strong-font-weight: var(--font-weight-bold);
71
+ --strong-letter-spacing: 0em;
72
+ --em-font-family: "Times New Roman", "Times", serif;
73
+ --em-font-size-adjust: 1.18;
74
+ --em-font-style: italic;
75
+ --em-font-weight: inherit;
76
+ --em-letter-spacing: -.025em;
77
+ --quote-font-family: "Times New Roman", "Times", serif;
78
+ --quote-font-size-adjust: 1.18;
79
+ --quote-font-style: italic;
80
+ --quote-font-weight: inherit;
81
+ --quote-letter-spacing: -.025em;
82
+ --tab-active-letter-spacing: -.01em;
83
+ --tab-active-word-spacing: 0em;
84
+ --tab-inactive-letter-spacing: 0em;
85
+ --tab-inactive-word-spacing: 0em;
86
+ overflow-wrap: break-word;
87
+ font-family: var(--default-font-family);
88
+ font-size: var(--default-font-size);
89
+ font-weight: var(--default-font-weight);
90
+ font-style: var(--default-font-style);
91
+ line-height: var(--default-line-height);
92
+ letter-spacing: var(--default-letter-spacing);
93
+ -moz-text-size-adjust: none;
94
+ text-size-adjust: none;
95
+ -webkit-font-smoothing: antialiased;
96
+ -moz-osx-font-smoothing: grayscale;
97
+ }
@@ -0,0 +1,197 @@
1
+ .unset:where(body, blockquote, dl, dd, figure, p) {
2
+ margin: 0;
3
+ }
4
+
5
+ .unset:where(address, b, cite, code, dfn, em, i, kbd, q, samp, small, strong, var) {
6
+ font: unset;
7
+ }
8
+
9
+ .unset:where(h1, h2, h3, h4, h5, h6) {
10
+ font: unset;
11
+ margin: 0;
12
+ }
13
+
14
+ .unset:where(a) {
15
+ all: unset;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ .unset:where(button, select, [type="button"], [type="image"], [type="reset"], [type="submit"], [type="checkbox"], [type="color"], [type="radio"], [type="range"]) {
20
+ all: unset;
21
+ text-indent: initial;
22
+ -webkit-tap-highlight-color: transparent;
23
+ font-style: normal;
24
+ font-weight: normal;
25
+ display: inline-block;
26
+ }
27
+
28
+ .unset:where(label) {
29
+ -webkit-tap-highlight-color: transparent;
30
+ }
31
+
32
+ .unset:where(select) {
33
+ text-align: start;
34
+ font-style: normal;
35
+ font-weight: normal;
36
+ }
37
+
38
+ .unset:where(textarea, input:not([type="button"], [type="image"], [type="reset"], [type="submit"], [type="checkbox"], [type="color"], [type="radio"], [type="range"])) {
39
+ all: unset;
40
+ text-align: start;
41
+ width: -webkit-fill-available;
42
+ width: -moz-available;
43
+ width: stretch;
44
+ text-indent: initial;
45
+ -webkit-tap-highlight-color: transparent;
46
+ cursor: text;
47
+ white-space: pre-wrap;
48
+ font-style: normal;
49
+ font-weight: normal;
50
+ display: block;
51
+ }
52
+
53
+ .unset:where(:focus) {
54
+ outline: none;
55
+ }
56
+
57
+ .unset::placeholder {
58
+ color: unset;
59
+ opacity: unset;
60
+ -webkit-user-select: none;
61
+ user-select: none;
62
+ }
63
+
64
+ .unset:where(table) {
65
+ all: unset;
66
+ text-indent: initial;
67
+ display: table;
68
+ }
69
+
70
+ .unset:where(caption) {
71
+ text-align: inherit;
72
+ }
73
+
74
+ .unset:where(td) {
75
+ padding: 0;
76
+ }
77
+
78
+ .unset:where(th) {
79
+ font-weight: unset;
80
+ text-align: inherit;
81
+ padding: 0;
82
+ }
83
+
84
+ .unset:where(abbr, acronym) {
85
+ text-decoration: none;
86
+ }
87
+
88
+ .unset:where(canvas, object, picture, summary) {
89
+ display: block;
90
+ }
91
+
92
+ .unset:where(del, s) {
93
+ -webkit-text-decoration: unset;
94
+ text-decoration: unset;
95
+ }
96
+
97
+ .unset:where(fieldset, hr) {
98
+ all: unset;
99
+ display: block;
100
+ }
101
+
102
+ .unset:where(legend) {
103
+ cursor: default;
104
+ border: none;
105
+ padding: 0;
106
+ }
107
+
108
+ .unset:where(li) {
109
+ text-align: unset;
110
+ display: block;
111
+ }
112
+
113
+ .unset:where(ol, ul) {
114
+ margin: 0;
115
+ padding: 0;
116
+ list-style: none;
117
+ }
118
+
119
+ .unset:where(iframe) {
120
+ width: -webkit-fill-available;
121
+ width: -moz-available;
122
+ border: none;
123
+ width: stretch;
124
+ display: block;
125
+ }
126
+
127
+ .unset:where(ins, u) {
128
+ text-decoration: none;
129
+ }
130
+
131
+ .unset:where(img) {
132
+ max-width: 100%;
133
+ display: block;
134
+ }
135
+
136
+ .unset:where(svg) {
137
+ flex-shrink: 0;
138
+ max-width: 100%;
139
+ display: block;
140
+ }
141
+
142
+ .unset:where(mark) {
143
+ all: unset;
144
+ }
145
+
146
+ .unset:where(pre) {
147
+ font: unset;
148
+ margin: unset;
149
+ }
150
+
151
+ .unset:where(q):before, .unset:where(q):after {
152
+ content: "";
153
+ }
154
+
155
+ .unset:where(sub, sup) {
156
+ font: unset;
157
+ vertical-align: unset;
158
+ }
159
+
160
+ .unset:where(details) ::marker {
161
+ content: none;
162
+ }
163
+
164
+ .unset:where(summary)::marker {
165
+ content: none;
166
+ }
167
+
168
+ .unset:where(video) {
169
+ width: -webkit-fill-available;
170
+ width: -moz-available;
171
+ width: stretch;
172
+ display: block;
173
+ }
174
+
175
+ .unset:where(:any-link) {
176
+ cursor: var(--cursor-link);
177
+ }
178
+
179
+ .unset:where(button) {
180
+ cursor: var(--cursor-button);
181
+ }
182
+
183
+ .unset:where(:disabled, [data-disabled]) {
184
+ cursor: var(--cursor-disabled);
185
+ }
186
+
187
+ .unset:where(input[type="checkbox"]) {
188
+ cursor: var(--cursor-checkbox);
189
+ }
190
+
191
+ .unset:where(input[type="radio"]) {
192
+ cursor: var(--cursor-radio);
193
+ }
194
+
195
+ .unset, .unset:before, .unset:after {
196
+ box-sizing: border-box;
197
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elements-kit",
3
3
  "type": "module",
4
- "version": "0.3.4",
4
+ "version": "0.4.1",
5
5
  "description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
6
6
  "keywords": [
7
7
  "webcomponents",
@@ -88,7 +88,8 @@
88
88
  "source": "./src/utilities/*.ts",
89
89
  "import": "./dist/utilities/*.mjs",
90
90
  "types": "./dist/utilities/*.d.mts"
91
- }
91
+ },
92
+ "./ui/*": "./dist/ui/*"
92
93
  },
93
94
  "scripts": {
94
95
  "build": "tsdown",
@@ -99,6 +100,7 @@
99
100
  },
100
101
  "packageManager": "pnpm@10.33.0",
101
102
  "devDependencies": {
103
+ "@tsdown/css": "^0.22.0",
102
104
  "@types/react": "^19.2.14",
103
105
  "@types/react-dom": "^19.2.3",
104
106
  "happy-dom": "^20.8.9",