@area8975/ui 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.
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@area8975/ui",
3
+ "version": "0.1.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^22.0.0",
6
+ "@angular/core": "^22.0.0",
7
+ "@floating-ui/dom": "^1.8.0",
8
+ "@ng-icons/core": "^35.0.1",
9
+ "@ng-icons/heroicons": "^35.0.1",
10
+ "@tailwindcss/forms": "^0.5.11",
11
+ "apexcharts": "^4.7.0",
12
+ "preline": "^4.2.0",
13
+ "rxjs": "~7.8.0",
14
+ "tailwindcss": "^4.3.3"
15
+ },
16
+ "dependencies": {
17
+ "tslib": "^2.3.0"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "sideEffects": false,
23
+ "exports": {
24
+ "./theme.css": "./theme.css",
25
+ "./package.json": {
26
+ "default": "./package.json"
27
+ },
28
+ ".": {
29
+ "types": "./types/area8975-ui.d.ts",
30
+ "default": "./fesm2022/area8975-ui.mjs"
31
+ }
32
+ },
33
+ "module": "fesm2022/area8975-ui.mjs",
34
+ "typings": "types/area8975-ui.d.ts",
35
+ "type": "module"
36
+ }
@@ -0,0 +1,52 @@
1
+
2
+
3
+ @layer components {
4
+ .ui-text-h1 {
5
+ @apply
6
+ text-4xl
7
+ font-bold
8
+ font-heading;
9
+ }
10
+
11
+ .ui-text-h2 {
12
+ @apply
13
+ text-2xl
14
+ font-medium
15
+ font-heading;
16
+ }
17
+
18
+ .ui-text-h3 {
19
+ @apply
20
+ text-xl
21
+ font-medium
22
+ font-heading;
23
+ }
24
+
25
+ .ui-text-h4 {
26
+ @apply
27
+ text-base
28
+ font-medium
29
+ font-heading;
30
+ }
31
+
32
+ .ui-text-body {
33
+ @apply
34
+ text-base
35
+ font-normal
36
+ font-body;
37
+ }
38
+
39
+ .ui-text-body-alt {
40
+ @apply
41
+ text-sm
42
+ font-normal
43
+ font-body;
44
+ }
45
+
46
+ .ui-text-caption {
47
+ @apply
48
+ text-xs
49
+ font-normal
50
+ font-body;
51
+ }
52
+ }
package/theme.css ADDED
@@ -0,0 +1,113 @@
1
+ @import "./styles/typography.css";
2
+ @plugin "@tailwindcss/forms";
3
+
4
+
5
+ /* Adds pointer cursor to buttons */
6
+ @layer base {
7
+ button:not(:disabled),
8
+ [role="button"]:not(:disabled) {
9
+ cursor: pointer;
10
+ }
11
+ }
12
+
13
+ /* Defaults hover styles on all devices */
14
+ @custom-variant hover (&:hover);
15
+
16
+
17
+ @font-face {
18
+ font-family: "Inter";
19
+ src: url("./fonts/Inter-VariableFont_opsz,wght.woff2") format("woff2");
20
+ font-weight: 100 900;
21
+ font-style: normal;
22
+ font-display: swap;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "Ubuntu";
27
+ src: url("./fonts/UbuntuSans-VariableFont_wdth,wght.woff2") format("woff2");
28
+ font-weight: 100 900;
29
+ font-style: normal;
30
+ font-display: swap;
31
+ }
32
+
33
+
34
+ @theme {
35
+ --font-heading: "Ubuntu", sans-serif;
36
+ --font-body: "Inter", sans-serif;
37
+
38
+
39
+ /* These aliases should make it easier to use colours consistently */
40
+
41
+ /* Primary */
42
+
43
+ --color-primary-50: var(--color-blue-50);
44
+ --color-primary-100: var(--color-blue-100);
45
+ --color-primary-200: var(--color-blue-200);
46
+ --color-primary-300: var(--color-blue-300);
47
+ --color-primary-400: var(--color-blue-400);
48
+ --color-primary-500: var(--color-blue-500);
49
+ --color-primary-600: var(--color-blue-600);
50
+ --color-primary-700: var(--color-blue-700);
51
+ --color-primary-800: var(--color-blue-800);
52
+ --color-primary-900: var(--color-blue-900);
53
+ --color-primary-950: var(--color-blue-950);
54
+
55
+ /* Secondary */
56
+
57
+ --color-secondary-50: var(--color-gray-50);
58
+ --color-secondary-100: var(--color-gray-100);
59
+ --color-secondary-200: var(--color-gray-200);
60
+ --color-secondary-300: var(--color-gray-300);
61
+ --color-secondary-400: var(--color-gray-400);
62
+ --color-secondary-500: var(--color-gray-500);
63
+ --color-secondary-600: var(--color-gray-600);
64
+ --color-secondary-700: var(--color-gray-700);
65
+ --color-secondary-800: var(--color-gray-800);
66
+ --color-secondary-900: var(--color-gray-900);
67
+ --color-secondary-950: var(--color-gray-950);
68
+
69
+
70
+ /* Success */
71
+
72
+ --color-success-50: var(--color-teal-50);
73
+ --color-success-100: var(--color-teal-100);
74
+ --color-success-200: var(--color-teal-200);
75
+ --color-success-300: var(--color-teal-300);
76
+ --color-success-400: var(--color-teal-400);
77
+ --color-success-500: var(--color-teal-500);
78
+ --color-success-600: var(--color-teal-600);
79
+ --color-success-700: var(--color-teal-700);
80
+ --color-success-800: var(--color-teal-800);
81
+ --color-success-900: var(--color-teal-900);
82
+ --color-success-950: var(--color-teal-950);
83
+
84
+
85
+ /* Warning */
86
+
87
+ --color-warning-50: var(--color-yellow-50);
88
+ --color-warning-100: var(--color-yellow-100);
89
+ --color-warning-200: var(--color-yellow-200);
90
+ --color-warning-300: var(--color-yellow-300);
91
+ --color-warning-400: var(--color-yellow-400);
92
+ --color-warning-500: var(--color-yellow-500);
93
+ --color-warning-600: var(--color-yellow-600);
94
+ --color-warning-700: var(--color-yellow-700);
95
+ --color-warning-800: var(--color-yellow-800);
96
+ --color-warning-900: var(--color-yellow-900);
97
+ --color-warning-950: var(--color-yellow-950);
98
+
99
+
100
+ /* Danger */
101
+
102
+ --color-danger-50: var(--color-red-50);
103
+ --color-danger-100: var(--color-red-100);
104
+ --color-danger-200: var(--color-red-200);
105
+ --color-danger-300: var(--color-red-300);
106
+ --color-danger-400: var(--color-red-400);
107
+ --color-danger-500: var(--color-red-500);
108
+ --color-danger-600: var(--color-red-600);
109
+ --color-danger-700: var(--color-red-700);
110
+ --color-danger-800: var(--color-red-800);
111
+ --color-danger-900: var(--color-red-900);
112
+ --color-danger-950: var(--color-red-950);
113
+ }