matcha-theme 1.0.24 → 1.0.25

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.
@@ -377,6 +377,19 @@ $index: 0;
377
377
  #{$attribute}: map-get($warn, default) !important;
378
378
  }
379
379
  }
380
+
381
+ @if ($attribute == "color") {
382
+ .primary {
383
+ #{$attribute}: map-get($primary, default-contrast) !important;
384
+ }
385
+ .accent {
386
+ #{$attribute}: map-get($accent, default-contrast) !important;
387
+ }
388
+ .warn {
389
+ #{$attribute}: map-get($warn, default-contrast) !important;
390
+ }
391
+ }
392
+
380
393
  .#{$attribute}-primary {
381
394
  #{$attribute}: map-get($primary, default) !important;
382
395
  &-alpha {
@@ -172,7 +172,7 @@
172
172
  // Note: The spec doesn't mention letter spacing. The values here come from
173
173
  // eyeballing it until it looked exactly like the spec examples.
174
174
  @function matcha-typography-config(
175
- $font-family: '"CircularStd", "Helvetica Neue", "Arial", sans-serif, "angular";',
175
+ $font-family: 'CircularStd, "Helvetica Neue", "Arial", sans-serif, "angular";',
176
176
  $display-4: matcha-typography-level(112px, 112px, 300, $letter-spacing: -0.05em),
177
177
  $display-3: matcha-typography-level(56px, 56px, 400, $letter-spacing: -0.02em),
178
178
  $display-2: matcha-typography-level(45px, 48px, 400, $letter-spacing: -0.005em),
@@ -118,4 +118,7 @@
118
118
  & {
119
119
  font-family: matcha-font-family($config, body-1);
120
120
  }
121
+ button{
122
+ font-family: matcha-font-family($config, title);
123
+ }
121
124
  }
@@ -13,39 +13,41 @@
13
13
  transition: all 50ms linear;
14
14
  overflow: hidden;
15
15
  position: relative;
16
+ font-size: 16px;
17
+ font-weight: 700;
16
18
  &-xs {
17
- font-size: 14px;
18
- padding: $spacing-inline-s;
19
- border-radius: $border-radius-medium;
20
- line-height: $size-line-height-minimum;
19
+ padding: 0 px-to-rem(32px);
20
+ border-radius: px-to-rem(8px);
21
+ line-height: px-to-rem(32px);
22
+ max-height: px-to-rem(32px);
21
23
  }
22
24
 
23
25
  &-sm {
24
- font-size: 16px;
25
- padding: $spacing-inline-s;
26
- border-radius: $border-radius-medium;
27
- line-height: $size-line-height-small;
26
+ padding: 0 px-to-rem(32px);
27
+ border-radius: px-to-rem(8px);
28
+ line-height: px-to-rem(40px);
29
+ max-height: px-to-rem(40px);
28
30
  }
29
31
 
30
32
  &-md {
31
- font-size: 16px;
32
- padding: $spacing-inline-s;
33
- border-radius: $border-radius-medium;
34
- line-height: $size-line-height-medium;
33
+ padding: 0 px-to-rem(32px);
34
+ border-radius: px-to-rem(8px);
35
+ line-height: px-to-rem(48px);
36
+ max-height: px-to-rem(48px);
35
37
  }
36
38
 
37
39
  &-lg {
38
- font-size: 20px;
39
- padding: $spacing-inline-s;
40
- border-radius: $border-radius-medium;
41
- line-height: $size-line-height-large;
40
+ padding: 0 px-to-rem(32px);
41
+ border-radius: px-to-rem(8px);
42
+ line-height: px-to-rem(56px);
43
+ max-height: px-to-rem(56px);
42
44
  }
43
45
 
44
46
  &-xl {
45
- font-size: 20px;
46
- padding: $spacing-inline-m;
47
- border-radius: $border-radius-medium;
48
- line-height: $size-line-height-xlarge;
47
+ padding: 0 px-to-rem(32px);
48
+ border-radius: px-to-rem(8px);
49
+ line-height: px-to-rem(56px);
50
+ max-height: px-to-rem(56px);
49
51
  }
50
52
 
51
53
  &-main {
@@ -59,7 +61,7 @@
59
61
  &-md,
60
62
  &-lg,
61
63
  &-xl {
62
- min-width: 48px;
64
+ min-width: 24px;
63
65
 
64
66
  &.stroked {
65
67
  box-shadow: 0px 0px 0px 2px inset;
@@ -107,6 +109,15 @@
107
109
  text-decoration: underline;
108
110
  padding: 0;
109
111
  }
112
+
113
+ &-icon {
114
+ aspect-ratio: 1;
115
+ padding: 0 !important;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ }
120
+
110
121
  .ripple {
111
122
  position: absolute;
112
123
  background: rgba(0,0,0,.15);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "styles for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {