@inchurch/matcha-theme 21.4.0 → 22.1.0

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 (94) hide show
  1. package/abstracts/_colors.scss +236 -236
  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 +219 -219
  6. package/abstracts/_typography.scss +128 -128
  7. package/base/_reset.scss +446 -445
  8. package/components/app-page-header.scss +260 -260
  9. package/components/matcha-accordion.scss +293 -293
  10. package/components/matcha-audio-player.scss +31 -31
  11. package/components/matcha-autocomplete.scss +145 -145
  12. package/components/matcha-avatar.scss +440 -301
  13. package/components/matcha-badge.scss +120 -120
  14. package/components/matcha-breadcrumb.scss +231 -231
  15. package/components/matcha-button-toggle.scss +383 -384
  16. package/components/matcha-buttons.scss +913 -913
  17. package/components/matcha-calendar.scss +218 -218
  18. package/components/matcha-cards.scss +230 -230
  19. package/components/matcha-chart-card.scss +53 -53
  20. package/components/matcha-checkbox.scss +255 -255
  21. package/components/matcha-chip.scss +292 -292
  22. package/components/matcha-color-pick.scss +34 -34
  23. package/components/matcha-command-palette.scss +316 -316
  24. package/components/matcha-contact.scss +35 -0
  25. package/components/matcha-crop.scss +406 -406
  26. package/components/matcha-date.scss +81 -81
  27. package/components/matcha-divider.scss +100 -100
  28. package/components/matcha-draggable.scss +23 -23
  29. package/components/matcha-drawer.scss +376 -376
  30. package/components/matcha-drop-image.scss +14 -14
  31. package/components/matcha-drop-list.scss +430 -430
  32. package/components/matcha-emoji.scss +69 -69
  33. package/components/matcha-empty-state.scss +230 -230
  34. package/components/matcha-file-uploader.scss +471 -471
  35. package/components/matcha-flag.scss +103 -103
  36. package/components/matcha-footer.scss +91 -91
  37. package/components/matcha-form-field.scss +606 -606
  38. package/components/matcha-form-section.scss +100 -100
  39. package/components/matcha-header.scss +135 -135
  40. package/components/matcha-highlight.scss +164 -164
  41. package/components/matcha-hint-text.scss +90 -90
  42. package/components/matcha-horizontal-tree.scss +316 -316
  43. package/components/matcha-icon.scss +98 -98
  44. package/components/matcha-image.scss +61 -61
  45. package/components/matcha-list.scss +211 -211
  46. package/components/matcha-menu.scss +99 -99
  47. package/components/matcha-modal.scss +210 -210
  48. package/components/matcha-nav.scss +581 -581
  49. package/components/matcha-notification.scss +413 -413
  50. package/components/matcha-option.scss +170 -170
  51. package/components/matcha-page-builder.scss +4196 -4196
  52. package/components/matcha-paginator.scss +689 -689
  53. package/components/matcha-panel.scss +194 -194
  54. package/components/matcha-profile-card.scss +50 -50
  55. package/components/matcha-progress-bar.scss +313 -313
  56. package/components/matcha-radio.scss +320 -320
  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 +667 -667
  63. package/components/matcha-skeleton.scss +155 -155
  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-status-pill.scss +38 -18
  70. package/components/matcha-stepper.scss +376 -376
  71. package/components/matcha-table-cell.scss +49 -41
  72. package/components/matcha-table.scss +579 -579
  73. package/components/matcha-tabs.scss +600 -600
  74. package/components/matcha-text-editor.scss +105 -105
  75. package/components/matcha-time.scss +33 -33
  76. package/components/matcha-timepicker.scss +13 -13
  77. package/components/matcha-toolbar.scss +359 -359
  78. package/components/matcha-tooltip.scss +224 -224
  79. package/components/matcha-tree-view.scss +257 -257
  80. package/layout/matcha-page-layout.scss +778 -778
  81. package/main.scss +331 -329
  82. package/package.json +1 -1
  83. package/tokens/_animations-tokens.scss +37 -37
  84. package/tokens/_breakpoints-tokens.scss +35 -35
  85. package/tokens/_color-tokens.scss +274 -274
  86. package/tokens/_elevation-tokens.scss +33 -33
  87. package/tokens/_emit-tokens.scss +324 -324
  88. package/tokens/_material-palette.scss +1149 -1149
  89. package/tokens/_primitives.scss +98 -98
  90. package/tokens/_semantic-aliases.scss +120 -120
  91. package/tokens/_spacing-tokens.scss +94 -94
  92. package/tokens/_static-tokens.scss +137 -137
  93. package/tokens/_typography-tokens.scss +65 -65
  94. 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
+ }