elbe-ui 0.2.5

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/elbe.scss ADDED
@@ -0,0 +1,100 @@
1
+ /* BUILD CSS BY:
2
+ - npm install -g sass
3
+ - sass style/elbe.scss dist/elbe.css
4
+ */
5
+
6
+ @import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");
7
+ @import url("https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&display=swap");
8
+ @import url("https://fonts.googleapis.com/css2?family=Calistoga&display=swap");
9
+ @import url("https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap");
10
+
11
+ // COPY OF THE FUNCTION IN COLOR_STYLE
12
+ @function inter($colorA, $colorB: #888888, $weight: 50%) {
13
+ @return mix($colorA, $colorB, $weight);
14
+ }
15
+
16
+ $g-radius: 9px !default;
17
+ $c-accent: #1a396f !default;
18
+ $t-font-body: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif !default;
19
+ $t-font-accent: Calistoga, $t-font-body !default;
20
+
21
+ $c-modes: (
22
+ primary: (
23
+ back: #ffffff,
24
+ front: #222222,
25
+ border: #22222218,
26
+ ),
27
+ inverse: (
28
+ back: #222222,
29
+ front: #ffffff,
30
+ border: #ffffff14,
31
+ ),
32
+ secondary: (
33
+ back: inter($c-accent, #ffffff, 5%),
34
+ front: #222222,
35
+ border: #22222214,
36
+ ),
37
+ ) !default;
38
+
39
+ $c-styles: (
40
+ accent: (
41
+ back: $c-accent,
42
+ ),
43
+ error: (
44
+ back: #f34343,
45
+ ),
46
+ warning: (
47
+ back: #ffbf00,
48
+ front: #222222,
49
+ ),
50
+ success: (
51
+ back: #29ac5e,
52
+ ),
53
+ info: (
54
+ back: #2463aa,
55
+ ),
56
+ //TODO: Button Styles
57
+ loud:
58
+ (
59
+ back: $c-accent,
60
+ border: transparent,
61
+ ),
62
+ action: (
63
+ back: transparent,
64
+ front: $c-accent,
65
+ border: transparent,
66
+ ),
67
+ integrated: (
68
+ back: transparent,
69
+ border: transparent,
70
+ ),
71
+ ) !default;
72
+
73
+ $t-styles: (
74
+ "s": 0.7rem,
75
+ "m": 1rem,
76
+ "l": 1.2rem,
77
+ "huge": 4rem,
78
+ ) !default;
79
+
80
+ $t-headers: (
81
+ "6": 1.1rem,
82
+ "5": 1.2rem,
83
+ "4": 1.4rem,
84
+ "3": 1.5rem,
85
+ "2": 1.8rem,
86
+ "1": 2rem,
87
+ ) !default;
88
+
89
+ // CSS Variables
90
+ :root {
91
+ --g-radius: #{$g-radius};
92
+ --c-accent: #{$c-accent};
93
+ --t-font-body: #{$t-font-body};
94
+ --t-font-accent: #{$t-font-accent};
95
+ }
96
+
97
+ @import "./style/root.scss";
98
+ @import "./style/color_style.scss";
99
+ @import "./style/type_style.scss";
100
+ @import "./style/components.scss";
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "elbe-ui",
3
+ "type": "module",
4
+ "version": "0.2.5",
5
+ "author": "Robin Naumann",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/RobinNaumann/elbe_react.git"
10
+ },
11
+ "keywords": [
12
+ "ui",
13
+ "ui-framework",
14
+ "flutter"
15
+ ],
16
+ "files": [
17
+ "elbe.scss",
18
+ "dist/*.js",
19
+ "dist/*.d.ts"
20
+ ],
21
+ "main": "dist/index.js",
22
+ "types": "dist/index.d.ts",
23
+ "scripts": {
24
+ "build": "rm -r ./dist ; bun build --target=node src/index.tsx --outdir=dist && bun run build:declaration",
25
+ "build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json"
26
+ },
27
+ "module": "src/index.tsx",
28
+ "devDependencies": {
29
+ "@types/bun": "latest"
30
+ },
31
+ "peerDependencies": {
32
+ "typescript": "^5.0.0"
33
+ },
34
+ "dependencies": {
35
+ "lucide-react": "^0.438.0",
36
+ "preact": "^10.23.2"
37
+ }
38
+ }