ngx-strata 0.1.0 → 0.2.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 (72) hide show
  1. package/assets/styles/base.scss +7 -3
  2. package/assets/styles/colors.scss +3 -11
  3. package/assets/styles/components/_breadcrumb.scss +68 -0
  4. package/assets/styles/components/accordion.scss +4 -2
  5. package/assets/styles/components/action-menu.scss +14 -3
  6. package/assets/styles/components/alert.scss +112 -0
  7. package/assets/styles/components/avatar.scss +40 -22
  8. package/assets/styles/components/button.scss +27 -20
  9. package/assets/styles/components/card.scss +21 -13
  10. package/assets/styles/components/checkbox.scss +11 -9
  11. package/assets/styles/components/icon.scss +5 -0
  12. package/assets/styles/components/input-field.scss +6 -3
  13. package/assets/styles/components/item.scss +11 -1
  14. package/assets/styles/components/modal.scss +3 -9
  15. package/assets/styles/components/notification.scss +40 -20
  16. package/assets/styles/components/overlay.scss +4 -0
  17. package/assets/styles/components/pagination.scss +16 -8
  18. package/assets/styles/components/progress.scss +32 -22
  19. package/assets/styles/components/radio.scss +101 -0
  20. package/assets/styles/components/segmented-control.scss +41 -9
  21. package/assets/styles/components/select.scss +24 -30
  22. package/assets/styles/components/sidemenu.scss +62 -0
  23. package/assets/styles/components/spinner.scss +10 -7
  24. package/assets/styles/components/table.scss +4 -2
  25. package/assets/styles/components/tabs.scss +71 -0
  26. package/assets/styles/components/tag.scss +17 -13
  27. package/assets/styles/components/toggle.scss +69 -40
  28. package/assets/styles/focus-outline.scss +2 -1
  29. package/assets/styles/primitives/color-primitives.scss +88 -0
  30. package/assets/styles/primitives/spacing-primitives.scss +16 -0
  31. package/assets/styles/public-api.scss +43 -34
  32. package/assets/styles/semantics/color-semantic.scss +121 -0
  33. package/assets/styles/typography.scss +123 -34
  34. package/dist/strata/strata.css +1 -1
  35. package/fesm2022/ngx-strata.mjs +1154 -439
  36. package/fesm2022/ngx-strata.mjs.map +1 -1
  37. package/package.json +3 -3
  38. package/skills/ngx-strata/SKILL.md +106 -0
  39. package/skills/ngx-strata/components/accordion.md +38 -0
  40. package/skills/ngx-strata/components/action-menu.md +36 -0
  41. package/skills/ngx-strata/components/alert.md +28 -0
  42. package/skills/ngx-strata/components/avatar.md +33 -0
  43. package/skills/ngx-strata/components/breadcrumb.md +32 -0
  44. package/skills/ngx-strata/components/button.md +34 -0
  45. package/skills/ngx-strata/components/card.md +24 -0
  46. package/skills/ngx-strata/components/checkbox.md +22 -0
  47. package/skills/ngx-strata/components/divider.md +19 -0
  48. package/skills/ngx-strata/components/icon.md +21 -0
  49. package/skills/ngx-strata/components/input-field.md +29 -0
  50. package/skills/ngx-strata/components/item.md +31 -0
  51. package/skills/ngx-strata/components/kbd.md +18 -0
  52. package/skills/ngx-strata/components/message-state.md +32 -0
  53. package/skills/ngx-strata/components/modal.md +86 -0
  54. package/skills/ngx-strata/components/notification.md +46 -0
  55. package/skills/ngx-strata/components/number-display.md +26 -0
  56. package/skills/ngx-strata/components/overlay.md +20 -0
  57. package/skills/ngx-strata/components/pagination.md +23 -0
  58. package/skills/ngx-strata/components/progress.md +46 -0
  59. package/skills/ngx-strata/components/radio.md +29 -0
  60. package/skills/ngx-strata/components/segmented-control.md +38 -0
  61. package/skills/ngx-strata/components/shell.md +18 -0
  62. package/skills/ngx-strata/components/sidemenu.md +41 -0
  63. package/skills/ngx-strata/components/single-select.md +45 -0
  64. package/skills/ngx-strata/components/slider.md +24 -0
  65. package/skills/ngx-strata/components/spinner.md +17 -0
  66. package/skills/ngx-strata/components/tabs.md +27 -0
  67. package/skills/ngx-strata/components/tag.md +17 -0
  68. package/skills/ngx-strata/components/text-stack.md +21 -0
  69. package/skills/ngx-strata/components/theming.md +19 -0
  70. package/skills/ngx-strata/components/toggle.md +22 -0
  71. package/types/ngx-strata.d.ts +464 -228
  72. package/dist/my-lib/strata.css +0 -1
@@ -9,9 +9,11 @@
9
9
  }
10
10
 
11
11
  html {
12
- color: var(--st-text);
13
- background-color: var(--st-bg-dark);
14
- --st-current-bg-color: var(--st-bg-dark);
12
+ color: var(--st-color-text-primary);
13
+
14
+ background-color: var(--st-color-bg-default);
15
+ --st-current-bg-color: var(--st-color-bg-default);
16
+
15
17
  }
16
18
 
17
19
  :root {
@@ -23,4 +25,6 @@ html {
23
25
  --st-interactive-element-height-sm: 26px;
24
26
  --st-interactive-element-height-md: 34px;
25
27
  --st-interactive-element-height-lg: 40px;
28
+
29
+ --st-selection-control-size: 20px;
26
30
  }
@@ -1,13 +1,9 @@
1
1
  :root {
2
- --st-bg-dark: oklch(0.92 0.005 267);
3
- --st-bg: oklch(0.96 0.005 267);
4
2
  --st-bg-light: oklch(1 0.005 267);
5
3
  --st-bg-contrast-dark: oklch(0.1 0.005 267);
6
4
  --st-bg-contrast: oklch(0.15 0.005 267);
7
5
  --st-bg-contrast-light: oklch(0.3 0.005 267);
8
- --st-text: oklch(0.15 0.01 267);
9
- --st-text-muted: oklch(0.4 0.01 267);
10
- --st-text-faded: oklch(0.6 0.01 267);
6
+
11
7
  --st-text-faded-contrast: oklch(0.56 0.01 267);
12
8
  --st-text-contrast: oklch(0.96 0.01 267);
13
9
  --st-highlight: oklch(1 0.01 267);
@@ -28,15 +24,11 @@
28
24
  }
29
25
 
30
26
  [data-theme='dark'] {
31
- --st-bg-dark: oklch(0.1 0.005 267);
32
- --st-bg: oklch(0.2 0.005 267);
33
27
  --st-bg-light: oklch(0.3 0.005 267);
34
28
  --st-bg-contrast-dark: oklch(0.92 0.005 267);
35
29
  --st-bg-contrast: oklch(0.96 0.005 267);
36
30
  --st-bg-contrast-light: oklch(1 0.005 267);
37
- --st-text: oklch(0.96 0.01 267);
38
- --st-text-muted: oklch(0.76 0.01 267);
39
- --st-text-faded: oklch(0.56 0.01 267);
31
+
40
32
  --st-text-faded-contrast: oklch(0.6 0.01 267);
41
33
  --st-text-contrast: oklch(0.15 0.01 267);
42
34
  --st-highlight: oklch(0.5 0.01 267);
@@ -54,4 +46,4 @@
54
46
  --st-success: oklch(0.7 0.05 160);
55
47
  --st-info-darl: oklch(0.6 0.05 260);
56
48
  --st-info: oklch(0.7 0.05 260);
57
- }
49
+ }
@@ -0,0 +1,68 @@
1
+ .st-breadcrumb {
2
+ --st-breadcrumb-gap: var(--st-spacing-xs, 4px);
3
+ --st-breadcrumb-color: var(--st-color-text-secondary);
4
+ --st-breadcrumb-color-active: var(--st-color-text-primary);
5
+ --st-breadcrumb-separator-color: var(--st-color-text-tertiary);
6
+ --st-breadcrumb-font-size: var(--st-font-size-sm, 14px);
7
+
8
+ display: block;
9
+ font-size: var(--st-breadcrumb-font-size);
10
+
11
+ .st-breadcrumb-list {
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ align-items: center;
15
+ list-style: none;
16
+ padding: 0;
17
+ margin: 0;
18
+ }
19
+ }
20
+
21
+ .st-breadcrumb-item {
22
+ display: flex;
23
+ align-items: center;
24
+ color: var(--st-breadcrumb-color);
25
+
26
+ .st-breadcrumb-item-container {
27
+ display: flex;
28
+ align-items: center;
29
+ }
30
+
31
+ .st-breadcrumb-item-content {
32
+ display: flex;
33
+ align-items: center;
34
+ gap: var(--st-breadcrumb-gap);
35
+ border-radius: var(--st-border-radius-sm, 4px);
36
+ outline-offset: 2px;
37
+
38
+ &:focus-visible {
39
+ outline: 2px solid var(--st-color-accent-default);
40
+ }
41
+
42
+ &.interactable {
43
+ cursor: pointer;
44
+ transition: color 0.2s ease;
45
+
46
+ &:hover {
47
+ color: var(--st-breadcrumb-color-active);
48
+ }
49
+
50
+ &:active {
51
+ opacity: 0.8;
52
+ }
53
+ }
54
+
55
+ &.disabled {
56
+ opacity: 0.5;
57
+ cursor: not-allowed;
58
+ pointer-events: none;
59
+ }
60
+ }
61
+
62
+ .st-breadcrumb-separator {
63
+ color: var(--st-breadcrumb-separator-color);
64
+ display: flex;
65
+ align-items: center;
66
+ margin: 0 var(--st-breadcrumb-gap);
67
+ }
68
+ }
@@ -4,10 +4,12 @@ st-accordion-item {
4
4
  width: 100%;
5
5
  border: 1px solid var(--st-border);
6
6
  border-radius: var(--st-border-radius-sm);
7
- background-color: var(--st-bg);
7
+ background-color: var(--st-color-bg-raised);
8
+
8
9
  transition: 0.1s ease-in height;
9
10
  &[open='true'] {
10
- background-color: var(--st-bg-dark);
11
+ background-color: var(--st-color-bg-default);
12
+
11
13
  height: auto;
12
14
  svg {
13
15
  transform: rotateZ(180deg);
@@ -16,6 +16,11 @@ st-action-menu-item {
16
16
  cursor: pointer;
17
17
  }
18
18
 
19
+ &.active {
20
+ color: var(--st-color-accent-active);
21
+ background-color: var(--st-color-bg-raised);
22
+ }
23
+
19
24
  .item-start,
20
25
  .item-end {
21
26
  width: min-content;
@@ -45,6 +50,7 @@ st-action-menu-item {
45
50
  }
46
51
 
47
52
  st-item .item-default {
53
+
48
54
  h1,
49
55
  h2,
50
56
  h3,
@@ -57,10 +63,15 @@ st-item .item-default {
57
63
  }
58
64
  }
59
65
 
60
- st-card {
61
- width: 200px;
66
+ st-card.action-menu-card {
67
+ min-width: 200px;
68
+ z-index: 10000;
69
+ background-color: var(--st-color-bg-overlay) !important;
70
+ box-shadow: var(--st-shadow-2);
71
+ display: block;
72
+ pointer-events: auto;
62
73
 
63
74
  st-action-menu-item:not(:last-child) {
64
75
  border-bottom: 1px solid var(--st-border-faded);
65
76
  }
66
- }
77
+ }
@@ -0,0 +1,112 @@
1
+ st-alert {
2
+ --st-alert-bg: var(--st-color-neutral-200);
3
+ --st-alert-text: var(--st-color-neutral-900);
4
+ --st-alert-icon-color: var(--st-color-neutral-500);
5
+
6
+ display: block;
7
+ width: 100%;
8
+ box-sizing: border-box;
9
+
10
+ .st-alert-container {
11
+ display: flex;
12
+ flex-direction: row;
13
+ align-items: flex-start;
14
+ padding: var(--st-size-sm) var(--st-size-md);
15
+ background-color: var(--st-alert-bg);
16
+ border-radius: var(--st-border-radius-md, 8px);
17
+ gap: var(--st-size-sm);
18
+ position: relative;
19
+ }
20
+
21
+ .st-alert-icon {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ color: var(--st-alert-icon-color);
26
+ padding-top: 2px; // Minor alignment adjustment
27
+
28
+ st-icon {
29
+ --st-icon-size: 20px;
30
+ }
31
+ }
32
+
33
+ .st-alert-content {
34
+ flex: 1;
35
+ min-width: 0;
36
+ color: var(--st-alert-text);
37
+ align-self: center;
38
+
39
+ .st-alert-header {
40
+ font-weight: var(--st-font-weight-bold, 700);
41
+ margin-bottom: var(--st-size-2xs, 2px);
42
+ }
43
+
44
+ .st-alert-message {
45
+ font-size: var(--st-font-md, 14px);
46
+ }
47
+ }
48
+
49
+ .st-alert-actions {
50
+ display: flex;
51
+ gap: var(--st-size-xs);
52
+ align-self: center;
53
+ flex-shrink: 0;
54
+ }
55
+
56
+ .st-alert-dismiss {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ flex-shrink: 0;
61
+ width: 28px;
62
+ height: 28px;
63
+ padding: 0;
64
+ background: transparent;
65
+ border: none;
66
+ border-radius: 4px;
67
+ color: var(--st-alert-icon-color);
68
+ cursor: pointer;
69
+ transition: background-color 0.15s ease;
70
+ align-self: flex-start;
71
+
72
+ &:hover {
73
+ background-color: rgba(0, 0, 0, 0.08);
74
+ }
75
+
76
+ st-icon {
77
+ --st-icon-size: 16px;
78
+ }
79
+ }
80
+
81
+ // Themes
82
+ &.st-theme-brand {
83
+ --st-alert-bg: var(--st-color-accent-subtle);
84
+ --st-alert-text: var(--st-color-accent-text);
85
+ --st-alert-icon-color: var(--st-color-accent-default);
86
+ }
87
+
88
+
89
+ &.st-theme-info {
90
+ --st-alert-bg: var(--st-color-feedback-info-subtle);
91
+ --st-alert-text: var(--st-color-feedback-info-text);
92
+ --st-alert-icon-color: var(--st-color-feedback-info-default);
93
+ }
94
+
95
+ &.st-theme-success {
96
+ --st-alert-bg: var(--st-color-feedback-success-subtle);
97
+ --st-alert-text: var(--st-color-feedback-success-text);
98
+ --st-alert-icon-color: var(--st-color-feedback-success-default);
99
+ }
100
+
101
+ &.st-theme-warning {
102
+ --st-alert-bg: var(--st-color-feedback-warning-subtle);
103
+ --st-alert-text: var(--st-color-feedback-warning-text);
104
+ --st-alert-icon-color: var(--st-color-feedback-warning-default);
105
+ }
106
+
107
+ &.st-theme-danger {
108
+ --st-alert-bg: var(--st-color-feedback-error-subtle);
109
+ --st-alert-text: var(--st-color-feedback-error-text);
110
+ --st-alert-icon-color: var(--st-color-feedback-error-default);
111
+ }
112
+ }
@@ -1,8 +1,10 @@
1
1
  st-avatar {
2
2
  --st-avatar-bg-color: var(--st-bg-light);
3
- --st-avatar-text-color: var(--st-text);
3
+ --st-avatar-text-color: var(--st-color-text-primary);
4
+
4
5
  z-index: var(--z, 0);
5
- transition: z-index 0s; /* avoids flicker */
6
+ transition: z-index 0s;
7
+ /* avoids flicker */
6
8
  background-color: var(--st-avatar-bg-color);
7
9
  border-radius: var(--avatar-size);
8
10
  overflow: hidden;
@@ -21,6 +23,7 @@ st-avatar {
21
23
  font-weight: bold;
22
24
  user-select: none;
23
25
  }
26
+
24
27
  img {
25
28
  width: 100%;
26
29
  height: 100%;
@@ -28,56 +31,65 @@ st-avatar {
28
31
  }
29
32
 
30
33
  st-avatar.st-theme-success {
31
- --st-avatar-bg-color: var(--st-success);
32
- --st-avatar-text-color: var(--st-text-contrast);
34
+ --st-avatar-bg-color: var(--st-color-feedback-success-subtle);
35
+ --st-avatar-text-color: var(--st-color-feedback-success-text);
33
36
  }
34
37
 
35
38
  st-avatar.st-theme-info {
36
- --st-avatar-bg-color: var(--st-info);
37
- --st-avatar-text-color: var(--st-text-contrast);
39
+ --st-avatar-bg-color: var(--st-color-feedback-info-subtle);
40
+ --st-avatar-text-color: var(--st-color-feedback-info-text);
38
41
  }
39
42
 
40
43
  st-avatar.st-theme-warning {
41
- --st-avatar-bg-color: var(--st-warning);
42
- --st-avatar-text-color: var(--st-text-contrast);
44
+ --st-avatar-bg-color: var(--st-color-feedback-warning-subtle);
45
+ --st-avatar-text-color: var(--st-color-feedback-warning-text);
43
46
  }
44
47
 
45
48
  st-avatar.st-theme-danger {
46
- --st-avatar-bg-color: var(--st-danger);
47
- --st-avatar-text-color: var(--st-text-contrast);
49
+ --st-avatar-bg-color: var(--st-color-feedback-error-subtle);
50
+ --st-avatar-text-color: var(--st-color-feedback-error-text);
48
51
  }
49
52
 
50
53
  st-avatar.st-theme-brand {
51
- --st-avatar-bg-color: var(--st-brand);
52
- --st-avatar-text-color: var(--st-text-contrast);
54
+ --st-avatar-bg-color: var(--st-color-accent-subtle);
55
+ --st-avatar-text-color: var(--st-color-accent-text);
53
56
  }
54
57
 
55
- st-avatar-stack.xs > st-avatar {
58
+ st-avatar-stack.xs>st-avatar {
56
59
  --avatar-size: 20px;
60
+
57
61
  span {
58
62
  font-size: 0.6rem !important;
59
63
  }
60
64
  }
65
+
61
66
  st-avatar.xs {
62
67
  --avatar-size: 20px;
68
+
63
69
  span {
64
70
  font-size: 0.6rem;
65
71
  }
66
72
  }
67
- st-avatar-stack.sm > st-avatar {
73
+
74
+ st-avatar-stack.sm>st-avatar {
68
75
  --avatar-size: 32px;
76
+
69
77
  span {
70
78
  font-size: 0.8rem !important;
71
79
  }
72
80
  }
81
+
73
82
  st-avatar.sm {
74
83
  --avatar-size: 32px;
84
+
75
85
  span {
76
86
  font-size: 0.8rem;
77
87
  }
78
88
  }
79
- st-avatar-stack.md > st-avatar {
89
+
90
+ st-avatar-stack.md>st-avatar {
80
91
  --avatar-size: 48px;
92
+
81
93
  span {
82
94
  font-size: 1rem !important;
83
95
  }
@@ -85,19 +97,23 @@ st-avatar-stack.md > st-avatar {
85
97
 
86
98
  st-avatar.md {
87
99
  --avatar-size: 48px;
100
+
88
101
  span {
89
102
  font-size: 1rem;
90
103
  }
91
104
  }
92
105
 
93
- st-avatar-stack.lg > st-avatar {
106
+ st-avatar-stack.lg>st-avatar {
94
107
  --avatar-size: 72px;
108
+
95
109
  span {
96
110
  font-size: 1.6rem !important;
97
111
  }
98
112
  }
113
+
99
114
  st-avatar.lg {
100
115
  --avatar-size: 72px;
116
+
101
117
  span {
102
118
  font-size: 1.6rem;
103
119
  }
@@ -105,28 +121,30 @@ st-avatar.lg {
105
121
 
106
122
  st-avatar-stack {
107
123
  position: relative;
108
- isolation: isolate; /* ← critical */
124
+ isolation: isolate;
125
+ /* ← critical */
109
126
  display: flex;
110
127
  align-items: center;
111
128
 
112
- &.tight > st-avatar:not(:first-child) {
129
+ &.tight>st-avatar:not(:first-child) {
113
130
  margin-left: calc(var(--avatar-size) * -0.65);
114
131
  }
115
132
 
116
- &.mid > st-avatar:not(:first-child) {
133
+ &.mid>st-avatar:not(:first-child) {
117
134
  margin-left: calc(var(--avatar-size) * -0.55);
118
135
  }
119
136
 
120
- &.loose > st-avatar:not(:first-child) {
137
+ &.loose>st-avatar:not(:first-child) {
121
138
  margin-left: calc(var(--avatar-size) * -0.3);
122
139
  }
123
140
  }
124
141
 
125
- st-avatar-stack > st-avatar {
142
+ st-avatar-stack>st-avatar {
126
143
  position: relative;
127
144
  border: var(--st-current-bg-color) solid 3px;
128
145
  margin: 0px;
146
+
129
147
  &:hover {
130
148
  z-index: calc(var(--z, 0) + 100);
131
149
  }
132
- }
150
+ }
@@ -28,8 +28,10 @@ st-button-group {
28
28
 
29
29
  button[stButton] {
30
30
  --st-button-background-color: var(--st-bg-light);
31
- --st-button-text-color: var(--st-text);
32
- --st-button-hover-color: var(--st-bg);
31
+ --st-button-text-color: var(--st-color-text-primary);
32
+
33
+ --st-button-hover-color: var(--st-color-bg-raised);
34
+
33
35
  color: var(--st-button-text-color);
34
36
  background: none;
35
37
  display: inline-flex;
@@ -105,20 +107,23 @@ button[stButton] {
105
107
 
106
108
  &.st-button-secondary {
107
109
  --st-button-background-color: var(--st-bg-light);
108
- --st-button-text-color: var(--st-text);
110
+ --st-button-text-color: var(--st-color-text-primary);
111
+
109
112
  font-weight: 500;
110
113
  }
111
114
 
112
115
  &.st-button-outline {
113
116
  --st-button-background-color: transparent;
114
- --st-button-text-color: var(--st-text);
117
+ --st-button-text-color: var(--st-color-text-primary);
118
+
115
119
  border: 1px solid var(--st-border-muted);
116
120
  }
117
121
 
118
122
  &.st-button-ghost {
119
123
  --st-button-background-color: transparent;
120
124
  --st-button-hover-color: var(--st-bg-light);
121
- --st-button-text-color: var(--st-text);
125
+ --st-button-text-color: var(--st-color-text-primary);
126
+
122
127
  }
123
128
 
124
129
  &:not(:disabled):hover {
@@ -142,33 +147,35 @@ button[stButton] {
142
147
 
143
148
  &.st-button-primary {
144
149
  &.st-theme-brand {
145
- --st-button-background-color: var(--st-brand);
146
- --st-button-text-color: var(--st-text-contrast);
147
- --st-button-hover-color: var(--st-brand-dark);
150
+ --st-button-background-color: var(--st-color-accent-subtle);
151
+ --st-button-text-color: var(--st-color-accent-text);
152
+ --st-button-hover-color: var(--st-color-accent-hover);
148
153
  }
149
154
 
150
155
  &.st-theme-success {
151
- --st-button-background-color: var(--st-success);
152
- --st-button-text-color: var(--st-text-contrast);
153
- --st-button-hover-color: var(--st-success-dark);
156
+ --st-button-background-color: var(--st-color-feedback-success-subtle);
157
+ --st-button-text-color: var(--st-color-feedback-success-text);
158
+ --st-button-hover-color: var(--st-color-feedback-success-hover);
154
159
  }
155
160
 
156
161
  &.st-theme-danger {
157
- --st-button-background-color: var(--st-danger);
158
- --st-button-text-color: var(--st-text-contrast);
159
- --st-button-hover-color: var(--st-danger-dark);
162
+ --st-button-background-color: var(--st-color-feedback-error-subtle);
163
+ --st-button-text-color: var(--st-color-feedback-error-text);
164
+ --st-button-hover-color: var(--st-color-feedback-error-hover);
160
165
  }
161
166
 
162
167
  &.st-theme-warning {
163
- --st-button-background-color: var(--st-warning);
164
- --st-button-text-color: var(--st-text-contrast);
165
- --st-button-hover-color: var(--st-warning-dark);
168
+ --st-button-background-color: var(--st-color-feedback-warning-subtle);
169
+ --st-button-text-color: var(--st-color-feedback-warning-text);
170
+ --st-button-hover-color: var(--st-color-feedback-warning-hover);
166
171
  }
167
172
 
168
173
  &.st-theme-info {
169
- --st-button-background-color: var(--st-info);
170
- --st-button-text-color: var(--st-text-contrast);
171
- --st-button-hover-color: var(--st-info-dark);
174
+ --st-button-background-color: var(--st-color-feedback-info-subtle);
175
+ --st-button-text-color: var(--st-color-feedback-info-text);
176
+ --st-button-hover-color: var(--st-color-feedback-info-hover);
172
177
  }
178
+
179
+
173
180
  }
174
181
  }
@@ -1,6 +1,7 @@
1
1
  st-card {
2
2
  --st-card-padding: var(--st-size-xs);
3
- --st-card-background-color: var(--st-bg);
3
+ --st-card-background-color: var(--st-color-bg-subtle);
4
+
4
5
  width: 100%;
5
6
  display: inline-block;
6
7
  border-radius: var(--st-border-radius-sm);
@@ -9,34 +10,39 @@ st-card {
9
10
  background-color: var(--st-card-background-color);
10
11
 
11
12
  &.elevated {
12
- --st-current-bg-color: var(--st-bg-dark);
13
- --st-avatar-bg-color: var(--st-bg-dark);
13
+ --st-current-bg-color: var(--st-color-bg-default);
14
+ --st-avatar-bg-color: var(--st-color-bg-default);
14
15
  box-shadow: var(--st-shadow-1);
15
16
  }
16
17
 
18
+
17
19
  &.outline {
18
20
  border: 1px solid var(--st-border-muted);
19
21
  --st-card-background-color: transparent;
20
22
  }
21
23
 
22
24
  &.st-theme-brand {
23
- --st-card-background-color: var(--st-brand-dark);
25
+ --st-card-background-color: var(--st-color-accent-subtle);
24
26
  }
27
+
25
28
  &.st-theme-info {
26
- --st-card-background-color: var(--st-info-dark);
29
+ --st-card-background-color: var(--st-color-feedback-info-subtle);
27
30
  }
31
+
28
32
  &.st-theme-danger {
29
- --st-card-background-color: var(--st-danger-dark);
33
+ --st-card-background-color: var(--st-color-feedback-error-subtle);
30
34
  }
35
+
31
36
  &.st-theme-warning {
32
- --st-card-background-color: var(--st-warning-dark);
37
+ --st-card-background-color: var(--st-color-feedback-warning-subtle);
33
38
  }
39
+
34
40
  &.st-theme-success {
35
- --st-card-background-color: var(--st-success-dark);
41
+ --st-card-background-color: var(--st-color-feedback-success-subtle);
36
42
  }
37
43
  }
38
44
 
39
- st-card .card-content > st-divider {
45
+ st-card .card-content>st-divider {
40
46
  margin-left: calc(-1 * var(--st-card-padding));
41
47
  margin-right: calc(-1 * var(--st-card-padding));
42
48
  }
@@ -46,11 +52,13 @@ st-card.with-padding .card-content {
46
52
  }
47
53
 
48
54
  st-card.flat {
49
- background-color: var(--st-bg);
50
- --st-current-bg-color: var(--st-bg-dark);
51
- --st-avatar-bg-color: var(--st-bg-dark);
55
+ background-color: var(--st-color-bg-raised);
56
+
57
+ --st-current-bg-color: var(--st-color-bg-default);
58
+ --st-avatar-bg-color: var(--st-color-bg-default);
52
59
  }
53
60
 
61
+
54
62
  st-card.outline {
55
63
  border: 1px solid var(--st-border);
56
64
  }
@@ -79,4 +87,4 @@ st-card h4,
79
87
  st-card h5,
80
88
  st-card h6 {
81
89
  margin-block-start: 0rem;
82
- }
90
+ }
@@ -1,7 +1,8 @@
1
1
  st-checkbox {
2
- --st-checkbox-checked-bg-color: var(--st-brand);
3
- --st-checkbox-checked-bg-hover-color: var(--st-brand-light);
4
- --st-checkbox-checked-icon-color: var(--st-text-contrast);
2
+ --st-checkbox-checked-bg-color: var(--st-color-accent-default);
3
+ --st-checkbox-checked-bg-hover-color: var(--st-color-accent-hover);
4
+ --st-checkbox-checked-icon-color: var(--st-color-text-on-accent);
5
+
5
6
 
6
7
  user-select: none;
7
8
  display: flex;
@@ -31,17 +32,18 @@ st-checkbox {
31
32
  }
32
33
 
33
34
  input:focus + .checkbox-visual {
34
- outline: 1px solid var(--st-brand);
35
+ outline: 1px solid var(--st-color-accent-default);
36
+
35
37
  outline-offset: 2px;
36
38
  }
37
39
 
38
40
  .checkbox-visual {
39
41
  box-sizing: border-box;
40
- height: var(--st-interactive-element-height-sm);
41
- width: var(--st-interactive-element-height-sm);
42
- max-width: var(--st-interactive-element-height-sm);
43
- max-height: var(--st-interactive-element-height-sm);
44
- background-color: var(--st-bg-dark);
42
+ height: var(--st-selection-control-size);
43
+ width: var(--st-selection-control-size);
44
+ max-width: var(--st-selection-control-size);
45
+ max-height: var(--st-selection-control-size);
46
+ background-color: var(--st-color-bg-default);
45
47
  border: 1px solid var(--st-border);
46
48
  border-radius: var(--st-border-radius-sm);
47
49
  color: var(--st-checkbox-checked-icon-color);
@@ -32,5 +32,10 @@ st-icon {
32
32
  display: flex;
33
33
  width: inherit;
34
34
  height: inherit;
35
+
36
+ svg {
37
+ width: 100%;
38
+ height: 100%;
39
+ }
35
40
  }
36
41
  }
@@ -1,7 +1,9 @@
1
1
  st-input-field {
2
2
  --st-input-field-bg-color: var(--st-bg-light);
3
- --st-input-field-bg-hover-color: var(--st-bg);
4
- --st-input-field-text-color: var(--st-text);
3
+ --st-input-field-bg-hover-color: var(--st-color-bg-raised);
4
+
5
+ --st-input-field-text-color: var(--st-color-text-primary);
6
+
5
7
  display: flex;
6
8
  flex-direction: column;
7
9
  box-sizing: border-box;
@@ -31,7 +33,8 @@ st-input-field {
31
33
  justify-items: center;
32
34
  align-items: center;
33
35
  padding: 8px;
34
- color: var(--st-text-faded);
36
+ color: var(--st-color-text-tertiary);
37
+
35
38
  &:empty {
36
39
  display: none;
37
40
  }