ada-ui 0.0.0-20240120121659 → 0.0.0-beta-v5-20240723120941

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,68 @@
1
+ @import "ada.theme-base";
2
+
3
+ :root {
4
+ --bg-body: lch(5 8 260);
5
+
6
+ //Defaults to primary color
7
+ @extend .primary;
8
+ }
9
+
10
+ .primary {
11
+ @extend %colourShades;
12
+
13
+ --100: 90 17 260;
14
+ --200: 70 17 260;
15
+
16
+ --600: 36 36 260;
17
+ --700: 29 30 260;
18
+ --800: 26 29 260;
19
+ --900: 19 23 260;
20
+ }
21
+
22
+ .primary-alt {
23
+ @extend %colourShades;
24
+
25
+ --100: 90 17 246;
26
+ --200: 70 17 246;
27
+
28
+ --600: 51 40 246;
29
+ --700: 44 34 246;
30
+ --800: 41 33 246;
31
+ --900: 34 27 246;
32
+ }
33
+
34
+ .accent {
35
+ @extend %colourShades;
36
+
37
+ --100: 90 17 152;
38
+ --200: 70 17 152;
39
+
40
+ --600: 40 37 152;
41
+ --700: 33 31 152;
42
+ --800: 30 30 152;
43
+ --900: 23 24 152;
44
+ }
45
+
46
+ .accent-alt {
47
+ @extend %colourShades;
48
+
49
+ --100: 90 17 206;
50
+ --200: 70 17 206;
51
+
52
+ --600: 52 30 206;
53
+ --700: 45 24 206;
54
+ --800: 42 23 206;
55
+ --900: 35 17 206;
56
+ }
57
+
58
+ .warn {
59
+ @extend %colourShades;
60
+
61
+ --100: 90 17 40;
62
+ --200: 70 17 40;
63
+
64
+ --600: 40 75 40;
65
+ --700: 33 69 40;
66
+ --800: 30 68 40;
67
+ --900: 23 62 40;
68
+ }
@@ -21,6 +21,10 @@
21
21
  --h-fg: var(--h);
22
22
  --s-fg: 100%;
23
23
  --l-fg: 89%;
24
+
25
+ //lch test
26
+ //--default: lch(26 29 260);
27
+ //--default-alpha70: lch(18 20 260);
24
28
  }
25
29
 
26
30
  :root {
package/scss/ada.scss CHANGED
@@ -1,54 +1,7 @@
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
-
1
+ @import "reset";
2
+ @import "global";
48
3
  @import "typography";
49
- @import "button";
4
+ @import "command";
50
5
  @import "input";
51
6
  @import "panel";
52
- @import "commands";
53
- @import "tile";
54
7
  @import "spinner";
package/todo ADDED
@@ -0,0 +1,6 @@
1
+ - Introduce tokens as css variables
2
+ - Spacing
3
+ - Font Sizes
4
+ - Correctly put `:` for pseudo classes and `::` for pseudo elements
5
+ - Only one disabled style for all colors?
6
+ - headlines w/ or w/o margin?
@@ -1,15 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ["./src/**/*.{html,jsx,tsx}"],
4
- theme: {
5
- colors: {
6
- brand: {
7
- DEFAULT: "#F5A623",
8
- dark: "#F5A623",
9
- light: "#F5A623",
10
- },
11
- },
12
- extend: {},
13
- },
14
- plugins: [],
15
- };