@odx/ui 1.0.0-rc.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 (37) hide show
  1. package/24031beb1b96a58f519c.woff2 +0 -0
  2. package/5eabf29514e9649c8c73.woff2 +0 -0
  3. package/README.md +0 -0
  4. package/core-icons.css +13 -0
  5. package/core-theme.css +1 -0
  6. package/eb2051d1f9da906e0b3e.woff2 +0 -0
  7. package/package.json +16 -0
  8. package/scss/_helpers.scss +15 -0
  9. package/scss/base/_mixins.scss +3 -0
  10. package/scss/base/_reset.scss +136 -0
  11. package/scss/base/_utils.scss +19 -0
  12. package/scss/base/mixins/_container.scss +31 -0
  13. package/scss/base/mixins/_control.scss +50 -0
  14. package/scss/base/mixins/_transition.scss +10 -0
  15. package/scss/components/action-group/action-group.component.scss +25 -0
  16. package/scss/components/area-header/area-header.component.scss +164 -0
  17. package/scss/components/avatar/avatar.component.scss +59 -0
  18. package/scss/components/badge/badge.component.scss +59 -0
  19. package/scss/components/button/button.component.scss +94 -0
  20. package/scss/components/checkbox/checkbox.component.scss +130 -0
  21. package/scss/components/content-box/content-box.component.scss +50 -0
  22. package/scss/components/header/header.component.scss +39 -0
  23. package/scss/components/icon/icon.component.scss +38 -0
  24. package/scss/components/link/link.component.scss +50 -0
  25. package/scss/components/logo/logo.component.scss +27 -0
  26. package/scss/components/main-menu/components/main-menu-button.component.scss +7 -0
  27. package/scss/components/main-menu/components/main-menu-item.component.scss +45 -0
  28. package/scss/components/main-menu/main-menu.component.scss +117 -0
  29. package/scss/components/radio-group/_radio-group.component.scss +145 -0
  30. package/scss/core.scss +43 -0
  31. package/scss/modules/_breakpoints.scss +80 -0
  32. package/scss/modules/_layout.scss +108 -0
  33. package/scss/modules/_typography.scss +161 -0
  34. package/scss/modules/_vertical-rythm.scss +78 -0
  35. package/scss/variables/_color-palettes.scss +90 -0
  36. package/scss/variables/_colors.scss +85 -0
  37. package/scss/variables/_visuals.scss +11 -0
@@ -0,0 +1,78 @@
1
+ @use 'sass:math';
2
+
3
+ @function get-size($factor) {
4
+ $factor: math.div(math.ceil($factor * 1e4), 1e4);
5
+
6
+ @return calc(var(--odx-vr-base-size) * $factor);
7
+ }
8
+
9
+ @mixin margin($factor, $directions: ('top', 'right', 'bottom', 'left')) {
10
+ @each $side in $directions {
11
+ margin-#{$side}: get-size($factor);
12
+ }
13
+ }
14
+
15
+ @mixin margin-x($factor: 1) {
16
+ $spacing: calc(var(--odx-vr-base-size) * $factor);
17
+
18
+ @include margin($factor, ('right', 'left'));
19
+ }
20
+
21
+ @mixin margin-y($factor: 1) {
22
+ $spacing: calc(var(--odx-vr-base-size) * $factor);
23
+
24
+ @include margin($factor, ('top', 'bottom'));
25
+ }
26
+
27
+ @mixin padding($factor, $directions: ('top', 'right', 'bottom', 'left')) {
28
+ @each $side in $directions {
29
+ padding-#{$side}: get-size($factor);
30
+ }
31
+ }
32
+
33
+ @mixin padding-x($factor: 1) {
34
+ $spacing: calc(var(--odx-vr-base-size) * $factor);
35
+
36
+ @include padding($factor, ('right', 'left'));
37
+ }
38
+
39
+ @mixin padding-y($factor: 1) {
40
+ $spacing: calc(var(--odx-vr-base-size) * $factor);
41
+
42
+ @include padding($factor, ('top', 'bottom'));
43
+ }
44
+
45
+ @mixin container($factor: 1, $line-height-factor: null) {
46
+ @if $line-height-factor == null {
47
+ $line-height-factor: $factor;
48
+ }
49
+
50
+ @include margin-y(calc(($factor - $line-height-factor) / 2));
51
+
52
+ aspect-ratio: 1;
53
+ width: get-size($line-height-factor);
54
+ }
55
+
56
+ @mixin height($factor: 1, $line-height-factor: null) {
57
+ @if $line-height-factor == null {
58
+ $line-height-factor: $factor;
59
+ }
60
+
61
+ @include margin-y(calc(($factor - $line-height-factor) / 2));
62
+
63
+ height: get-size($line-height-factor);
64
+ }
65
+
66
+ @mixin line-height($factor: 1, $line-height-factor: null) {
67
+ @if $line-height-factor == null {
68
+ $line-height-factor: $factor;
69
+ }
70
+
71
+ @include padding-y(calc(($factor - $line-height-factor) / 2));
72
+
73
+ line-height: get-size($line-height-factor);
74
+ }
75
+
76
+ :root {
77
+ --odx-vr-base-size: calc(var(--odx-t-base-line-height) * var(--odx-t-base-size));
78
+ }
@@ -0,0 +1,90 @@
1
+ :root {
2
+ --white: #ffffff;
3
+ --black: #060a12;
4
+
5
+ --white-5: rgba(255 255 255 / 5%);
6
+ --white-60: rgba(255 255 255 / 60%);
7
+
8
+ --gray-50: #f5f7fa;
9
+ --gray-100: #e9eef4;
10
+ --gray-200: #dde5ee;
11
+ --gray-300: #c7d3e0;
12
+ --gray-400: #b2c1d2;
13
+ --gray-500: #9eb0c2;
14
+ --gray-600: #8b9fb1;
15
+ --gray-700: #798ea0;
16
+ --gray-800: #697c8c;
17
+ --gray-900: #5d6a74;
18
+
19
+ --blue-50: #d3e2f3;
20
+ --blue-100: #a2c4eb;
21
+ --blue-200: #6ea5e7;
22
+ --blue-300: #3683e7;
23
+ --blue-400: #1062d5;
24
+ --blue-500: #0647a7;
25
+ --blue-600: #03398f;
26
+ --blue-700: #002d74;
27
+ --blue-800: #02193b;
28
+ --blue-900: #000205;
29
+
30
+ --blue-700-5: rgba(0 45 116 / 5%);
31
+ --blue-700-10: rgba(0 45 116 / 10%);
32
+
33
+ --cyan-50: #dbf2ff;
34
+ --cyan-100: #c7eaff;
35
+ --cyan-200: #9edbff;
36
+ --cyan-300: #75cdfe;
37
+ --cyan-400: #4dbefe;
38
+ --cyan-500: #22aaff;
39
+ --cyan-600: #009efa;
40
+ --cyan-700: #0084d1;
41
+ --cyan-800: #006ba8;
42
+ --cyan-900: #005180;
43
+
44
+ --cyan-500-15: rgb(34 170 255 / 15%);
45
+
46
+ --red-00: #ffe0e3;
47
+ --red-50: #ffa3ac;
48
+ --red-100: #ff8f9c;
49
+ --red-200: #ff667d;
50
+ --red-300: #ff3d61;
51
+ --red-400: #ff1447;
52
+ --red-500: #eb003b;
53
+ --red-600: #c20030;
54
+ --red-700: #990026;
55
+ --red-800: #70001c;
56
+ --red-900: #470012;
57
+
58
+ --yellow-50: #fbffd1;
59
+ --yellow-100: #f9ffbd;
60
+ --yellow-200: #f6ff94;
61
+ --yellow-300: #f3ff6b;
62
+ --yellow-400: #efff42;
63
+ --yellow-500: #ecff1a;
64
+ --yellow-600: #dcf000;
65
+ --yellow-700: #b6c700;
66
+ --yellow-800: #919e00;
67
+ --yellow-900: #6c7500;
68
+
69
+ --green-50: #adffc5;
70
+ --green-100: #99ffb6;
71
+ --green-200: #70ff99;
72
+ --green-300: #47ff7b;
73
+ --green-400: #1fff5e;
74
+ --green-500: #00f545;
75
+ --green-600: #00cc3a;
76
+ --green-700: #00a32e;
77
+ --green-800: #007a23;
78
+ --green-900: #005217;
79
+
80
+ --orange-50: #fff6ed;
81
+ --orange-100: #ffebd6;
82
+ --orange-200: #ffd4a8;
83
+ --orange-300: #ffd4a8;
84
+ --orange-400: #ffa64d;
85
+ --orange-500: #ff8f1f;
86
+ --orange-600: #f57a00;
87
+ --orange-700: #cc6600;
88
+ --orange-800: #a35200;
89
+ --orange-900: #7a3d00;
90
+ }
@@ -0,0 +1,85 @@
1
+ :root {
2
+ --odx-c-headline: var(--blue-700);
3
+
4
+ --odx-c-text: var(--blue-700);
5
+ --odx-c-text-inverse: var(--white);
6
+ --odx-c-text-disabled: var(--gray-500);
7
+
8
+ --odx-c-link: var(--odx-c-highlight);
9
+ --odx-c-link-hover: var(--odx-c-highlight-hover);
10
+ --odx-c-link-active: var(--odx-c-highlight-active);
11
+ --odx-c-link-disabled: var(--odx-c-text-disabled);
12
+ --odx-c-link-visited: var(--blue-600);
13
+
14
+ --odx-c-error: var(--red-00);
15
+ --odx-c-error-outline: var(--red-50);
16
+ --odx-c-error-outline-hover: var(--red-100);
17
+ --odx-c-error-text: var(--red-600);
18
+
19
+ --odx-c-focus: var(--cyan-500-15);
20
+ --odx-c-focus-outline: var(--cyan-300);
21
+
22
+ --odx-c-selection: var(--cyan-500-15);
23
+
24
+ --odx-c-overlay: var(--white-60);
25
+ --odx-c-seperator: var(--gray-200);
26
+
27
+ --odx-c-background: var(--gray-50);
28
+ --odx-c-background-content: var(--white);
29
+
30
+ --odx-c-control: var(--gray-100);
31
+ --odx-c-control-hover: var(--gray-400);
32
+ --odx-c-control-active: var(--gray-500);
33
+ --odx-c-control-disabled: var(--gray-300);
34
+ --odx-c-control-text: var(--odx-c-text);
35
+ --odx-c-control-text-disabled: var(--gray-600);
36
+
37
+ --odx-c-highlight: var(--cyan-500);
38
+ --odx-c-highlight-hover: var(--cyan-600);
39
+ --odx-c-highlight-active: var(--cyan-700);
40
+ --odx-c-highlight-disabled: var(--odx-c-highlight);
41
+ --odx-c-highlight-text: var(--odx-c-text-inverse);
42
+ --odx-c-highlight-text-disabled: var(--cyan-700);
43
+
44
+ --odx-c-primary: var(--blue-700);
45
+ --odx-c-primary-hover: var(--blue-800);
46
+ --odx-c-primary-active: var(--blue-900);
47
+ --odx-c-primary-disabled: var(--odx-c-primary);
48
+ --odx-c-primary-text: var(--odx-c-text-inverse);
49
+ --odx-c-primary-text-disabled: var(--blue-500);
50
+
51
+ --odx-c-secondary: var(--gray-300);
52
+ --odx-c-secondary-hover: var(--gray-400);
53
+ --odx-c-secondary-active: var(--gray-500);
54
+ --odx-c-secondary-disabled: var(--gray-300);
55
+ --odx-c-secondary-text: var(--odx-c-text);
56
+ --odx-c-secondary-text-disabled: var(--gray-700);
57
+
58
+ --odx-c-success: var(--green-500);
59
+ --odx-c-success-hover: var(--green-600);
60
+ --odx-c-success-active: var(--green-700);
61
+ --odx-c-success-disabled: var(--green-500);
62
+ --odx-c-success-text: var(--odx-c-text);
63
+ --odx-c-success-text-disabled: var(--green-600);
64
+
65
+ --odx-c-warning: var(--yellow-500);
66
+ --odx-c-warning-hover: var(--yellow-600);
67
+ --odx-c-warning-active: var(--yellow-700);
68
+ --odx-c-warning-disabled: var(--yellow-500);
69
+ --odx-c-warning-text: var(--odx-c-text);
70
+ --odx-c-warning-text-disabled: var(--yellow-700);
71
+
72
+ --odx-c-danger: var(--red-500);
73
+ --odx-c-danger-hover: var(--red-600);
74
+ --odx-c-danger-active: var(--red-700);
75
+ --odx-c-danger-disabled: var(--red-500);
76
+ --odx-c-danger-text: var(--odx-c-text-inverse);
77
+ --odx-c-danger-text-disabled: var(--red-600);
78
+
79
+ --odx-c-confirmation: var(--orange-500);
80
+ --odx-c-confirmation-hover: var(--orange-600);
81
+ --odx-c-confirmation-active: var(--orange-700);
82
+ --odx-c-confirmation-disabled: var(--orange-500);
83
+ --odx-c-confirmation-text: var(--odx-c-text);
84
+ --odx-c-confirmation-text-disabled: var(--orange-700);
85
+ }
@@ -0,0 +1,11 @@
1
+ :root {
2
+ --odx-v-border-radius: calc(var(--odx-t-base-size) * 0.375);
3
+ --odx-v-border-radius-controls: calc(var(--odx-t-base-size) * 0.19);
4
+ // --odx-v-shadow-layer-1: 0 2px 6px 0 rgba(var(--blue-500), 0.4);
5
+ // --odx-v-shadow-layer-2: 0 4px 12px 0 rgba(var(--blue-500), 0.3);
6
+ // --odx-v-shadow-layer-3: 0 6px 18px 0 rgba(var(--blue-500), 0.2);
7
+ // --odx-v-shadow-layer-4: 0 8px 24px 0 rgba(var(--blue-500), 0.1);
8
+ --odx-v-transition-duration: 200ms;
9
+ --odx-v-transition-easing-fn: ease;
10
+ --odx-v-focus-outline: 1px solid var(--odx-c-focus-outline);
11
+ }