matcha-theme 1.0.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 (56) hide show
  1. package/abstracts/_breakpoints.scss +33 -0
  2. package/abstracts/_colors.scss +422 -0
  3. package/abstracts/_elevation.scss +102 -0
  4. package/abstracts/_functions.scss +321 -0
  5. package/abstracts/_grid.scss +130 -0
  6. package/abstracts/_order.scss +46 -0
  7. package/abstracts/_position.scss +51 -0
  8. package/abstracts/_sizes.scss +74 -0
  9. package/abstracts/_spacings.scss +236 -0
  10. package/abstracts/_typography.scss +137 -0
  11. package/base/_helpers.scss +3019 -0
  12. package/base/_reset.scss +9 -0
  13. package/base/_typography.scss +242 -0
  14. package/components/matcha-audio-player.scss +37 -0
  15. package/components/matcha-buttons.scss +91 -0
  16. package/components/matcha-cards.scss +93 -0
  17. package/components/matcha-color-pick.scss +32 -0
  18. package/components/matcha-draggable.scss +25 -0
  19. package/components/matcha-header.scss +326 -0
  20. package/components/matcha-horizontal-tree.scss +275 -0
  21. package/components/matcha-icons.scss +11 -0
  22. package/components/matcha-progress-bar.scss +107 -0
  23. package/components/matcha-scrollbar.scss +36 -0
  24. package/components/matcha-scrollbox-shadow.scss +127 -0
  25. package/components/matcha-table.scss +259 -0
  26. package/fonts/CircularStd-Bold.eot +0 -0
  27. package/fonts/CircularStd-Bold.otf +0 -0
  28. package/fonts/CircularStd-Bold.svg +13532 -0
  29. package/fonts/CircularStd-Bold.ttf +0 -0
  30. package/fonts/CircularStd-Bold.woff +0 -0
  31. package/fonts/CircularStd-Bold.woff2 +0 -0
  32. package/fonts/CircularStd-Medium.eot +0 -0
  33. package/fonts/CircularStd-Medium.otf +0 -0
  34. package/fonts/CircularStd-Medium.svg +13511 -0
  35. package/fonts/CircularStd-Medium.ttf +0 -0
  36. package/fonts/CircularStd-Medium.woff +0 -0
  37. package/fonts/CircularStd-Medium.woff2 +0 -0
  38. package/fonts/CircularStd-Regular.eot +0 -0
  39. package/fonts/CircularStd-Regular.otf +0 -0
  40. package/fonts/CircularStd-Regular.svg +5562 -0
  41. package/fonts/CircularStd-Regular.ttf +0 -0
  42. package/fonts/CircularStd-Regular.woff +0 -0
  43. package/main.scss +87 -0
  44. package/package.json +11 -0
  45. package/tokens/_animations.scss +37 -0
  46. package/tokens/_breakpoints.scss +46 -0
  47. package/tokens/_color-tokens.scss +1419 -0
  48. package/tokens/_elevation-tokens.scss +14 -0
  49. package/tokens/_spacing-tokens.scss +96 -0
  50. package/tokens/_typography-tokens.scss +25 -0
  51. package/vendors/angular-editor.scss +56 -0
  52. package/vendors/angular-material-fixes.scss +21 -0
  53. package/vendors/calendar.scss +2876 -0
  54. package/vendors/charts.scss +92 -0
  55. package/vendors/ng5-slider.scss +56 -0
  56. package/vendors/ngx-material-timepicker.scss +50 -0
@@ -0,0 +1,9 @@
1
+ @mixin base-body-reset-theme($theme) {
2
+ $background: map-get($theme, background);
3
+ $foreground: map-get($theme, foreground);
4
+
5
+ & {
6
+ color: map-get($foreground, text);
7
+ background: map-get($background, background);
8
+ }
9
+ }
@@ -0,0 +1,242 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-typography.scss';
4
+ @include base-typography-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Typography [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin base-typography-theme($theme) {
10
+ $is-dark: map-get($theme, is-dark);
11
+ $accent: map-get($theme, accent);
12
+ $warn: map-get($theme, warn);
13
+ $primary: map-get($theme, primary);
14
+ $background: map-get($theme, background);
15
+ $foreground: map-get($theme, foreground);
16
+
17
+ a {
18
+ color: map-get($accent, default);
19
+ }
20
+
21
+ code {
22
+ &:not(.highlight) {
23
+ background-color: map-get($background, app-bar);
24
+ }
25
+ }
26
+
27
+ .changelog {
28
+ .entry {
29
+ background-color: map-get($background, card);
30
+ }
31
+ }
32
+
33
+ .text-boxed {
34
+ @if ($is-dark) {
35
+ background-color: rgba(255, 255, 255, 0.12);
36
+ color: rgba(255, 255, 255, 0.54);
37
+ }
38
+
39
+ @else {
40
+ background-color: rgba(0, 0, 0, 0.12);
41
+ color: rgba(0, 0, 0, 0.54);
42
+ }
43
+ }
44
+
45
+ .text-primary {
46
+ color: map-get($primary, default);
47
+ }
48
+
49
+ .text-warn {
50
+ color: map-get($warn, default);
51
+ }
52
+
53
+ .text-label {
54
+ color: map-get($foreground, label);
55
+ }
56
+
57
+ .text-placeholder {
58
+ color: map-get($foreground, placeholder);
59
+ }
60
+
61
+ .text-basic {
62
+ color: map-get($foreground, text);
63
+ }
64
+
65
+ // Changelog
66
+ .changelog {
67
+ .entry {
68
+ .groups {
69
+ .breaking-changes {
70
+ .title {
71
+ background: map-get($background, red);
72
+ }
73
+ }
74
+
75
+ .new {
76
+ .title {
77
+ background: map-get($background, green);
78
+ }
79
+ }
80
+
81
+ .improved {
82
+ .title {
83
+ background: map-get($background, purple);
84
+ }
85
+ }
86
+
87
+ .fixed {
88
+ .title {
89
+ background: map-get($background, blue);
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+
96
+ // Code
97
+ code {
98
+ &:not(.highlight) {
99
+ color: map-get($background, blue);
100
+ }
101
+ }
102
+
103
+ // Mark
104
+ mark {
105
+ background: map-get($background, yellow);
106
+ }
107
+
108
+ // Message boxes
109
+ .matcha-message-box,
110
+ .matcha-msg-box,
111
+ .message-box {
112
+ background-color: rgba(map-get($primary, default), 0.2);
113
+ border-left-color: map-get($primary, default);
114
+ color: map-get($foreground, text);
115
+
116
+ &.error,
117
+ &.warning,
118
+ &.success,
119
+ &.info,
120
+ &--error,
121
+ &--warning,
122
+ &--success,
123
+ &--info {
124
+ color: map-get($foreground, text);
125
+ }
126
+
127
+ &--error,
128
+ &.error {
129
+ background-color: map-get($background, red-alpha);
130
+ border-left-color: map-get($background, red);
131
+ }
132
+
133
+ &--warning,
134
+ &.warning {
135
+ background-color: map-get($background, yellow-alpha);
136
+ border-left-color: map-get($background, yellow);
137
+ }
138
+
139
+ &--success,
140
+ &.success {
141
+ background-color: map-get($background, green-alpha);
142
+ border-left-color: map-get($background, green);
143
+ }
144
+
145
+ &--info,
146
+ &.info {
147
+ background-color: map-get($background, blue-alpha);
148
+ border-left-color: map-get($background, blue);
149
+ }
150
+ }
151
+ }
152
+
153
+ // -----------------------------------------------------------------------------------------------------
154
+ // Typography [Style]
155
+ // -----------------------------------------------------------------------------------------------------
156
+ // Paragraph
157
+ .par-xs {
158
+ font-size: 12px;
159
+ }
160
+
161
+ .par-sm,
162
+ .par-p {
163
+ font-size: 14px;
164
+ }
165
+
166
+ .par-md,
167
+ .par-m {
168
+ font-size: 16px;
169
+ }
170
+
171
+ .par-lg {
172
+ font-size: 20;
173
+ }
174
+
175
+ .par-xl {
176
+ font-size: 24;
177
+ }
178
+
179
+ .text-semibold {
180
+ font-weight: 600;
181
+ }
182
+
183
+ .text-regular {
184
+ font-weight: 400;
185
+ }
186
+
187
+ .text-book {
188
+ font-weight: 500;
189
+ }
190
+
191
+ .matcha-message-box,
192
+ .matcha-msg-box,
193
+ .message-box {
194
+ padding: 16px;
195
+ border-left: 6px solid;
196
+
197
+ &.error,
198
+ &.warning,
199
+ &.success,
200
+ &.info,
201
+ &--error,
202
+ &--warning,
203
+ &--success,
204
+ &--info {
205
+ padding: 16px;
206
+ border-left: 6px solid;
207
+ }
208
+ }
209
+
210
+
211
+ .title {
212
+ line-height: 24px;
213
+ margin: 0 0 16px 0;
214
+ display: flex;
215
+ align-items: center;
216
+
217
+ .title-bullet {
218
+ margin: 0px 8px 0 0;
219
+ display: inline-block;
220
+ position: relative;
221
+ border-radius: 10px;
222
+ }
223
+
224
+ .title-content {
225
+ line-height: 20px;
226
+ display: -webkit-box;
227
+ -webkit-line-clamp: 2;
228
+ overflow: hidden;
229
+ text-overflow: ellipsis;
230
+ word-break: break-word;
231
+ white-space: initial;
232
+ -webkit-box-orient: vertical;
233
+ text-transform: capitalize;
234
+ }
235
+ }
236
+
237
+ .title-sm {
238
+ display: block;
239
+ overflow: hidden;
240
+ text-overflow: ellipsis;
241
+ white-space: nowrap;
242
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-audio-player.scss';
4
+ @include matcha-audio-player-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Audio Player [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-audio-player-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-audio-player {
17
+ .audio-player {
18
+ audio {
19
+ // display:none
20
+ }
21
+
22
+ .audio & {
23
+ a {
24
+ display: none;
25
+ }
26
+
27
+ audio {
28
+ display: inline-block;
29
+ }
30
+ }
31
+ }
32
+
33
+ .is-selected {
34
+ box-shadow: 0px 0px 0px 2px inset map-get($accent, default);
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,91 @@
1
+ @mixin matcha-button-theme($theme) {
2
+ $primary: map-get($theme, primary);
3
+ $accent: map-get($theme, accent);
4
+ $warn: map-get($theme, warn);
5
+ $background: map-get($theme, background);
6
+ $foreground: map-get($theme, foreground);
7
+
8
+ .matcha-button {
9
+ &-xs {
10
+ font-size: 14px;
11
+ padding: $spacing-inline-s;
12
+ border-radius: $border-radius-medium;
13
+ line-height: $size-line-height-minimum;
14
+ }
15
+
16
+ &-sm {
17
+ font-size: 16px;
18
+ padding: $spacing-inline-s;
19
+ border-radius: $border-radius-medium;
20
+ line-height: $size-line-height-small;
21
+ }
22
+
23
+ &-md {
24
+ font-size: 16px;
25
+ padding: $spacing-inline-s;
26
+ border-radius: $border-radius-medium;
27
+ line-height: $size-line-height-medium;
28
+ }
29
+
30
+ &-lg {
31
+ font-size: 20px;
32
+ padding: $spacing-inline-s;
33
+ border-radius: $border-radius-medium;
34
+ line-height: $size-line-height-large;
35
+ }
36
+
37
+ &-xl {
38
+ font-size: 20px;
39
+ padding: $spacing-inline-m;
40
+ border-radius: $border-radius-medium;
41
+ line-height: $size-line-height-xlarge;
42
+ }
43
+
44
+ &-main {
45
+ background: map-get($background, background);
46
+ line-height: 32px;
47
+ padding: 0 16px;
48
+ }
49
+
50
+ &-xs,
51
+ &-sm,
52
+ &-md,
53
+ &-lg,
54
+ &-xl {
55
+ min-width: 48px;
56
+
57
+ &.stroked {
58
+ border: 0px solid currentColor;
59
+ box-shadow: 0px 0px 0px 2px inset;
60
+
61
+ &.color-label {
62
+ box-shadow: 0px 0px 0px 2px inset map-color($foreground, label);
63
+ color: map-color($foreground, label);
64
+ }
65
+
66
+ &.color-placeholder {
67
+ box-shadow: 0px 0px 0px 2px inset map-color($foreground, placeholder);
68
+ color: map-color($foreground, placeholder);
69
+ }
70
+
71
+ &.color-primary {
72
+ box-shadow: 0px 0px 0px 2px inset map-color($primary, default);
73
+ color: map-color($primary, default);
74
+ }
75
+ }
76
+ }
77
+
78
+ &-pill {
79
+ border-radius: $border-radius-wider;
80
+ }
81
+
82
+ &-link {
83
+ background-color: transparent;
84
+ color: map-color($foreground, label);
85
+ text-transform: initial;
86
+ letter-spacing: 0;
87
+ text-decoration: underline;
88
+ padding: 0;
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,93 @@
1
+ @mixin matcha-cards-theme($theme) {
2
+ $primary: map-get($theme, primary);
3
+ $accent: map-get($theme, accent);
4
+ $warn: map-get($theme, warn);
5
+ $background: map-get($theme, background);
6
+ $foreground: map-get($theme, foreground);
7
+
8
+ .matcha-card,
9
+ .matcha-card-flat {
10
+ // background: map-get($background, card);
11
+ }
12
+ }
13
+
14
+ // -----------------------------------------------------------------------------------------------------
15
+ // @ Cards
16
+ // -----------------------------------------------------------------------------------------------------
17
+ .matcha-card,
18
+ .matcha-card-flat {
19
+ padding: 16px;
20
+ border-radius: 8px;
21
+
22
+ &-border,
23
+ &-border-left {
24
+ border-left: 8px solid;
25
+ }
26
+
27
+ &-border-right {
28
+ border-right: 8px solid;
29
+ }
30
+
31
+ &.disabled {
32
+ transition: opacity 100ms linear;
33
+ opacity: 0.5;
34
+ pointer-events: none;
35
+ }
36
+
37
+ &.enabled {
38
+ transition: opacity 100ms linear;
39
+ opacity: 1;
40
+ }
41
+
42
+ &.variable-width {
43
+ min-width: 0;
44
+ }
45
+
46
+ &.auto-width {
47
+ min-width: 0;
48
+ max-width: none;
49
+ }
50
+
51
+ &.fixed-width {
52
+ min-width: 264px;
53
+ max-width: 264px;
54
+ width: 264px;
55
+ }
56
+
57
+ // Buttons
58
+ .mat-button {
59
+ min-width: 0 !important;
60
+ padding: 0 8px !important;
61
+ }
62
+
63
+ // Button Toggle Group
64
+ .mat-button-toggle-group,
65
+ .mat-button-toggle-standalone {
66
+ box-shadow: none !important;
67
+ }
68
+
69
+ .mat-tab-label {
70
+ min-width: 0 !important;
71
+ }
72
+
73
+ // Divider
74
+ .card-divider {
75
+ margin: 16px;
76
+
77
+ &.full-width {
78
+ margin: 0;
79
+ }
80
+ }
81
+
82
+ // Expand Area
83
+ .card-expand-area {
84
+ overflow: hidden;
85
+
86
+ .card-expanded-content {
87
+ padding: 8px 16px 16px 16px;
88
+ line-height: 1.75;
89
+ }
90
+ }
91
+
92
+ }
93
+
@@ -0,0 +1,32 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-color-pick.scss';
4
+ @include matcha-color-pick-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Color Pick [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-color-pick-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-color-pick {
17
+ .mat-radio-group {
18
+ .mat-radio-button {
19
+ .mat-radio-label {
20
+ .mat-radio-label-content {
21
+ width: 100%;
22
+ }
23
+ }
24
+ }
25
+ }
26
+
27
+ .is-selected {
28
+ border-radius: 8px;
29
+ box-shadow: 0px 0px 0px 2px map-get($background, card);
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,25 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-draggable.scss';
4
+ @include matcha-draggable-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Draggable [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-draggable-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-draggable {
17
+ .check-with-label:checked+.label-for-check {
18
+ box-shadow: 0px 0px 0px 8px map-get($background, card), 0px 0px 0px 10px map-get($foreground, placeholder);
19
+ }
20
+
21
+ .is-selected {
22
+ box-shadow: 0px 0px 0px 8px map-get($background, card), 0px 0px 0px 10px map-get($foreground, placeholder);
23
+ }
24
+ }
25
+ }