ada-ui 0.0.0-20240120120530

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,90 @@
1
+ @import "ada.theme-base";
2
+
3
+ .primary {
4
+ @extend %colourShades;
5
+
6
+ --h: 105;
7
+ --s: 50%;
8
+ --l: 24%;
9
+ --h-light: 102;
10
+ --s-light: 72%;
11
+ //actual, designer-correct
12
+ //--l-light: 49%;
13
+ --l-light: 34%;
14
+
15
+ --h-fg: var(--h);
16
+ --s-fg: 100%;
17
+ --l-fg: 89%;
18
+ }
19
+
20
+ :root {
21
+ @extend .primary;
22
+ --bg: hsl(135, 34%, 12%);
23
+ }
24
+
25
+ .shade1 {
26
+ @extend %colourShades;
27
+ --h: 150;
28
+ --s: 70%;
29
+ --l: 20%;
30
+ --h-light: 133;
31
+ --s-light: 82%;
32
+ //actual, designer-correct
33
+ //--l-light: 43%;
34
+ --l-light: 30%;
35
+
36
+ --h-fg: var(--h);
37
+ --s-fg: 100%;
38
+ --l-fg: 89%;
39
+ }
40
+
41
+ .shade2 {
42
+ @extend %colourShades;
43
+ --h: 168;
44
+ --s: 57%;
45
+ --l: 32%;
46
+ --h-light: 167;
47
+ --s-light: 68%;
48
+ //actual, designer-correct
49
+ //--l-light: 59%;
50
+ --l-light: 40%;
51
+
52
+ // darker version
53
+ //--h: 165;
54
+ //--s: 66%;
55
+ //--l: 24%;
56
+
57
+ --h-fg: var(--h);
58
+ --s-fg: 100%;
59
+ --l-fg: 89%;
60
+ }
61
+
62
+ .accent {
63
+ @extend %colourShades;
64
+
65
+ --h: 11;
66
+ --s: 74%;
67
+ --l: 45%;
68
+ --h-light: 10;
69
+ --s-light: 89%;
70
+ --l-light: 56%;
71
+
72
+ --h-fg: var(--h);
73
+ --s-fg: 100%;
74
+ --l-fg: 89%;
75
+ }
76
+
77
+ .warn {
78
+ @extend %colourShades;
79
+
80
+ --h: 0;
81
+ --s: 100%;
82
+ --l: 28%;
83
+ --h-light: 0;
84
+ --s-light: 85%;
85
+ --l-light: 48%;
86
+
87
+ --h-fg: var(--h);
88
+ --s-fg: 100%;
89
+ --l-fg: 89%;
90
+ }
package/scss/ada.scss ADDED
@@ -0,0 +1,54 @@
1
+ //TODO Use css vars
2
+ $font-family: "Open Sans", sans-serif !default;
3
+ $box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
4
+
5
+ @mixin desktop() {
6
+ @media screen and (min-width: 1200px) {
7
+ @content;
8
+ }
9
+ }
10
+
11
+ @mixin tablet() {
12
+ @media screen and (max-width: 1199px) {
13
+ @content;
14
+ }
15
+ }
16
+
17
+ *,
18
+ ::before,
19
+ ::after {
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ html {
24
+ font-size: 14px;
25
+ font-family: $font-family;
26
+ font-weight: 400;
27
+ @include tablet {
28
+ font-size: 12px;
29
+ }
30
+ }
31
+
32
+ html,
33
+ body {
34
+ height: 100%;
35
+ min-height: 100%;
36
+ margin: 0;
37
+ padding: 0;
38
+ background: var(--bg);
39
+ color: var(--fg);
40
+ }
41
+
42
+ body {
43
+ font-size: 1rem;
44
+ -webkit-tap-highlight-color: transparent;
45
+ padding: 0.5rem;
46
+ }
47
+
48
+ @import "typography";
49
+ @import "button";
50
+ @import "input";
51
+ @import "panel";
52
+ @import "commands";
53
+ @import "tile";
54
+ @import "spinner";
@@ -0,0 +1,8 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ["./src/**/*.{html,jsx,tsx}"],
4
+ theme: {
5
+ extend: {},
6
+ },
7
+ plugins: [],
8
+ };