@inchurch/matcha-theme 22.40.1 → 22.40.2

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 (93) hide show
  1. package/abstracts/_colors.scss +291 -291
  2. package/abstracts/_elevation.scss +108 -108
  3. package/abstracts/_functions.scss +321 -321
  4. package/abstracts/_media-breakpoint.scss +26 -26
  5. package/abstracts/_theme-api.scss +224 -224
  6. package/abstracts/_typography.scss +128 -128
  7. package/base/_reset.scss +487 -487
  8. package/components/app-page-header.scss +260 -260
  9. package/components/matcha-accordion.scss +297 -297
  10. package/components/matcha-audio-player.scss +31 -31
  11. package/components/matcha-autocomplete.scss +145 -145
  12. package/components/matcha-avatar.scss +426 -426
  13. package/components/matcha-badge.scss +120 -120
  14. package/components/matcha-breadcrumb.scss +231 -231
  15. package/components/matcha-button-toggle.scss +484 -484
  16. package/components/matcha-buttons.scss +973 -973
  17. package/components/matcha-calendar.scss +253 -253
  18. package/components/matcha-cards.scss +212 -212
  19. package/components/matcha-chart-card.scss +53 -53
  20. package/components/matcha-checkbox.scss +266 -266
  21. package/components/matcha-chip.scss +311 -311
  22. package/components/matcha-color-pick.scss +34 -34
  23. package/components/matcha-command-palette.scss +316 -316
  24. package/components/matcha-crop.scss +419 -419
  25. package/components/matcha-date.scss +81 -81
  26. package/components/matcha-divider.scss +100 -100
  27. package/components/matcha-draggable.scss +23 -23
  28. package/components/matcha-drawer.scss +376 -376
  29. package/components/matcha-drop-image.scss +14 -14
  30. package/components/matcha-drop-list.scss +430 -430
  31. package/components/matcha-emoji.scss +69 -69
  32. package/components/matcha-empty-state.scss +230 -230
  33. package/components/matcha-file-uploader.scss +650 -650
  34. package/components/matcha-flag.scss +103 -103
  35. package/components/matcha-footer.scss +91 -91
  36. package/components/matcha-form-field.scss +883 -883
  37. package/components/matcha-form-section.scss +100 -100
  38. package/components/matcha-header.scss +135 -135
  39. package/components/matcha-highlight.scss +164 -164
  40. package/components/matcha-hint-text.scss +90 -90
  41. package/components/matcha-horizontal-tree.scss +247 -247
  42. package/components/matcha-icon.scss +111 -111
  43. package/components/matcha-image.scss +60 -60
  44. package/components/matcha-list.scss +211 -211
  45. package/components/matcha-menu.scss +99 -99
  46. package/components/matcha-modal.scss +210 -210
  47. package/components/matcha-nav.scss +770 -770
  48. package/components/matcha-notification.scss +417 -417
  49. package/components/matcha-option.scss +170 -170
  50. package/components/matcha-page-builder.scss +4196 -4196
  51. package/components/matcha-paginator.scss +699 -699
  52. package/components/matcha-panel.scss +216 -216
  53. package/components/matcha-period.scss +174 -174
  54. package/components/matcha-profile-card.scss +50 -50
  55. package/components/matcha-progress-bar.scss +355 -355
  56. package/components/matcha-radio.scss +325 -325
  57. package/components/matcha-ripple.scss +7 -7
  58. package/components/matcha-scrollbar.scss +33 -33
  59. package/components/matcha-scrollbox-shadow.scss +120 -120
  60. package/components/matcha-section.scss +102 -102
  61. package/components/matcha-select-multiple.scss +56 -56
  62. package/components/matcha-select.scss +643 -643
  63. package/components/matcha-skeleton.scss +182 -182
  64. package/components/matcha-slide-toggle.scss +369 -369
  65. package/components/matcha-slider.scss +285 -285
  66. package/components/matcha-snack-bar.scss +259 -259
  67. package/components/matcha-spin.scss +164 -164
  68. package/components/matcha-spinner.scss +97 -97
  69. package/components/matcha-stepper.scss +376 -376
  70. package/components/matcha-table-cell.scss +107 -107
  71. package/components/matcha-table.scss +722 -722
  72. package/components/matcha-tabs.scss +642 -642
  73. package/components/matcha-text-editor.scss +111 -111
  74. package/components/matcha-time.scss +33 -33
  75. package/components/matcha-timepicker.scss +13 -13
  76. package/components/matcha-toolbar.scss +366 -366
  77. package/components/matcha-tooltip.scss +235 -235
  78. package/components/matcha-tree-view.scss +658 -658
  79. package/layout/matcha-page-layout.scss +778 -778
  80. package/main.scss +334 -334
  81. package/package.json +1 -1
  82. package/tokens/_animations-tokens.scss +37 -37
  83. package/tokens/_breakpoints-tokens.scss +35 -35
  84. package/tokens/_color-tokens.scss +288 -288
  85. package/tokens/_elevation-tokens.scss +33 -33
  86. package/tokens/_emit-tokens.scss +329 -329
  87. package/tokens/_material-palette.scss +1149 -1149
  88. package/tokens/_primitives.scss +98 -98
  89. package/tokens/_semantic-aliases.scss +120 -120
  90. package/tokens/_spacing-tokens.scss +94 -94
  91. package/tokens/_static-tokens.scss +137 -137
  92. package/tokens/_typography-tokens.scss +65 -65
  93. package/vendors/charts.scss +90 -90
@@ -1,128 +1,128 @@
1
- @use "functions" as *;
2
- // -------------------------------------------------------------------------------------------------------------------
3
- // @ Typography mixins
4
- // -------------------------------------------------------------------------------------------------------------------
5
- // Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
6
- // the individual properties if a value that isn't allowed in the shorthand is passed in.
7
- @mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
8
- // If any of the values are set to `inherit`, we can't use the shorthand
9
- // so we fall back to passing in the individual properties.
10
- @if (
11
- $font-size
12
- ==inherit or
13
- $font-weight
14
- ==inherit or
15
- $line-height
16
- ==inherit or
17
- $font-family
18
- ==inherit or
19
- $font-size
20
- ==null or
21
- $font-weight
22
- ==null or
23
- $line-height
24
- ==null or
25
- $font-family
26
- ==null
27
- ) {
28
- font-size: $font-size;
29
- font-weight: $font-weight;
30
- line-height: $line-height;
31
- font-family: $font-family;
32
- } @else {
33
- // Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
34
- // that we need to use interpolation for `font-size/line-height` in order to prevent
35
- // Sass from dividing the two values.
36
- font: $font-weight #{$font-size}/#{$line-height} $font-family;
37
- }
38
- }
39
-
40
- // Converts a typography level into CSS styles.
41
- @mixin matcha-typography-level-to-styles($config, $level) {
42
- $font-size: matcha-font-size($config, $level);
43
- $font-weight: matcha-font-weight($config, $level);
44
- $line-height: matcha-line-height($config, $level);
45
- $font-family: matcha-font-family($config, $level);
46
-
47
- @include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
48
- letter-spacing: matcha-letter-spacing($config, $level);
49
- }
50
-
51
- // Represents a collection of typography levels.
52
- // Defaults come from https://material.io/guidelines/style/typography.html
53
- // Note: The spec doesn't mention letter spacing. The values here come from
54
- // eyeballing it until it looked exactly like the spec examples.
55
-
56
- // h1 40px headline - bold
57
- // h2 32px title - medium
58
- // h3 24px subheading - bold
59
- // h4 20px subheading - bold
60
-
61
- // h5-5 18px '' - bold
62
- // h6 18px '' - bold
63
- // h7 18px '' - bold
64
- // h8 12px '' - bold
65
-
66
- // m 16px body - regular
67
- // p 14px body - regular
68
- // small 12px caption - regular
69
- @mixin matcha-reset-typography($config) {
70
- // Headings — aligned with Figma matcha/text/* styles
71
- .h1,
72
- h1 {
73
- @include matcha-typography-level-to-styles($config, display);
74
- }
75
-
76
- .h2,
77
- h2 {
78
- @include matcha-typography-level-to-styles($config, headline);
79
- }
80
-
81
- .h3,
82
- h3 {
83
- @include matcha-typography-level-to-styles($config, title-lg);
84
- }
85
-
86
- .h4,
87
- h4 {
88
- @include matcha-typography-level-to-styles($config, title-md);
89
- }
90
-
91
- .h5,
92
- h5 {
93
- @include matcha-typography-level-to-styles($config, title-sm);
94
- }
95
-
96
- .h6,
97
- h6 {
98
- @include matcha-typography-level-to-styles($config, label-sm);
99
- }
100
-
101
- .text-bold,
102
- strong,
103
- b {
104
- font-weight: matcha-font-weight($config, title-lg);
105
- }
106
-
107
- & {
108
- font-family: matcha-font-family($config, body-md);
109
- }
110
-
111
- button {
112
- font-family: matcha-font-family($config, button-md);
113
- font-weight: matcha-font-weight($config, button-md);
114
- }
115
-
116
- input[type="text"],
117
- input[type="email"],
118
- input[type="tel"],
119
- input[type="url"],
120
- input[type="password"],
121
- input[type="number"],
122
- input[type="search"],
123
- textarea {
124
- font-family: matcha-font-family($config, body-md);
125
- font-weight: matcha-font-weight($config, body-md);
126
- font-size: px-to-rem(16px);
127
- }
128
- }
1
+ @use "functions" as *;
2
+ // -------------------------------------------------------------------------------------------------------------------
3
+ // @ Typography mixins
4
+ // -------------------------------------------------------------------------------------------------------------------
5
+ // Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
6
+ // the individual properties if a value that isn't allowed in the shorthand is passed in.
7
+ @mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
8
+ // If any of the values are set to `inherit`, we can't use the shorthand
9
+ // so we fall back to passing in the individual properties.
10
+ @if (
11
+ $font-size
12
+ ==inherit or
13
+ $font-weight
14
+ ==inherit or
15
+ $line-height
16
+ ==inherit or
17
+ $font-family
18
+ ==inherit or
19
+ $font-size
20
+ ==null or
21
+ $font-weight
22
+ ==null or
23
+ $line-height
24
+ ==null or
25
+ $font-family
26
+ ==null
27
+ ) {
28
+ font-size: $font-size;
29
+ font-weight: $font-weight;
30
+ line-height: $line-height;
31
+ font-family: $font-family;
32
+ } @else {
33
+ // Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
34
+ // that we need to use interpolation for `font-size/line-height` in order to prevent
35
+ // Sass from dividing the two values.
36
+ font: $font-weight #{$font-size}/#{$line-height} $font-family;
37
+ }
38
+ }
39
+
40
+ // Converts a typography level into CSS styles.
41
+ @mixin matcha-typography-level-to-styles($config, $level) {
42
+ $font-size: matcha-font-size($config, $level);
43
+ $font-weight: matcha-font-weight($config, $level);
44
+ $line-height: matcha-line-height($config, $level);
45
+ $font-family: matcha-font-family($config, $level);
46
+
47
+ @include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
48
+ letter-spacing: matcha-letter-spacing($config, $level);
49
+ }
50
+
51
+ // Represents a collection of typography levels.
52
+ // Defaults come from https://material.io/guidelines/style/typography.html
53
+ // Note: The spec doesn't mention letter spacing. The values here come from
54
+ // eyeballing it until it looked exactly like the spec examples.
55
+
56
+ // h1 40px headline - bold
57
+ // h2 32px title - medium
58
+ // h3 24px subheading - bold
59
+ // h4 20px subheading - bold
60
+
61
+ // h5-5 18px '' - bold
62
+ // h6 18px '' - bold
63
+ // h7 18px '' - bold
64
+ // h8 12px '' - bold
65
+
66
+ // m 16px body - regular
67
+ // p 14px body - regular
68
+ // small 12px caption - regular
69
+ @mixin matcha-reset-typography($config) {
70
+ // Headings — aligned with Figma matcha/text/* styles
71
+ .h1,
72
+ h1 {
73
+ @include matcha-typography-level-to-styles($config, display);
74
+ }
75
+
76
+ .h2,
77
+ h2 {
78
+ @include matcha-typography-level-to-styles($config, headline);
79
+ }
80
+
81
+ .h3,
82
+ h3 {
83
+ @include matcha-typography-level-to-styles($config, title-lg);
84
+ }
85
+
86
+ .h4,
87
+ h4 {
88
+ @include matcha-typography-level-to-styles($config, title-md);
89
+ }
90
+
91
+ .h5,
92
+ h5 {
93
+ @include matcha-typography-level-to-styles($config, title-sm);
94
+ }
95
+
96
+ .h6,
97
+ h6 {
98
+ @include matcha-typography-level-to-styles($config, label-sm);
99
+ }
100
+
101
+ .text-bold,
102
+ strong,
103
+ b {
104
+ font-weight: matcha-font-weight($config, title-lg);
105
+ }
106
+
107
+ & {
108
+ font-family: matcha-font-family($config, body-md);
109
+ }
110
+
111
+ button {
112
+ font-family: matcha-font-family($config, button-md);
113
+ font-weight: matcha-font-weight($config, button-md);
114
+ }
115
+
116
+ input[type="text"],
117
+ input[type="email"],
118
+ input[type="tel"],
119
+ input[type="url"],
120
+ input[type="password"],
121
+ input[type="number"],
122
+ input[type="search"],
123
+ textarea {
124
+ font-family: matcha-font-family($config, body-md);
125
+ font-weight: matcha-font-weight($config, body-md);
126
+ font-size: px-to-rem(16px);
127
+ }
128
+ }