@inchurch/matcha-theme 20.0.8 → 20.276.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.
- package/abstracts/_colors.scss +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1212 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +260 -0
- package/components/matcha-accordion.scss +294 -157
- package/components/matcha-avatar.scss +171 -31
- package/components/matcha-badge.scss +4 -4
- package/components/matcha-breadcrumb.scss +232 -126
- package/components/matcha-button-toggle.scss +44 -0
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +70 -2
- package/components/matcha-cards.scss +28 -2
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-command-palette.scss +291 -63
- package/components/matcha-crop.scss +407 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-drawer.scss +201 -50
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +42 -1
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +68 -164
- package/components/matcha-form-field.scss +52 -0
- package/components/matcha-form-section.scss +101 -101
- package/components/matcha-header.scss +135 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +21 -0
- package/components/matcha-horizontal-tree.scss +317 -317
- package/components/matcha-icon.scss +17 -25
- package/components/matcha-list.scss +5 -5
- package/components/matcha-menu.scss +13 -0
- package/components/matcha-modal.scss +58 -84
- package/components/matcha-nav.scss +361 -230
- package/components/matcha-notification.scss +413 -197
- package/components/matcha-option.scss +79 -23
- package/components/matcha-paginator.scss +689 -235
- package/components/matcha-panel.scss +42 -26
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +257 -153
- package/components/matcha-radio.scss +244 -452
- package/components/matcha-scrollbox-shadow.scss +122 -122
- package/components/matcha-select.scss +3 -3
- package/components/matcha-skeleton.scss +18 -0
- package/components/matcha-slide-toggle.scss +47 -2
- package/components/matcha-slider.scss +172 -75
- package/components/matcha-snack-bar.scss +114 -121
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +377 -177
- package/components/matcha-table.scss +569 -785
- package/components/matcha-tabs.scss +624 -469
- package/components/matcha-text-editor.scss +98 -144
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +156 -62
- package/components/matcha-tree-view.scss +189 -0
- package/components/matcha-uploader.scss +240 -62
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +776 -0
- package/main.scss +232 -261
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1152 -1152
- package/tokens/_css-custom-properties.scss +650 -568
- package/tokens/_spacing-tokens.scss +94 -94
- package/vendors/angular-editor.scss +56 -56
- package/vendors/angular-material-fixes.scss +297 -297
- package/vendors/charts.scss +92 -92
- package/vendors/ng5-slider.scss +56 -56
- package/vendors/ngx-material-timepicker.scss +50 -50
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +0 -3426
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +0 -13532
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +0 -13511
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +0 -2378
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
// -------------------------------------------------------------------------------------------------------------------
|
|
2
|
-
// @ Theme mixins
|
|
3
|
-
// --------------------------------------------------------------------------------------------------------------------
|
|
4
|
-
/*
|
|
5
|
-
Esse mixin foi criado para não precisar escrever o valor em pixels de cada breakpoint toda vez que for necessário
|
|
6
|
-
criar um media query. Se em algum momento for necessário alterar o valor de um breakpoint, basta alterar o valor nos
|
|
7
|
-
tokens e o mixin irá se encarregar de atualizar todos os media queries que utilizam aquele breakpoint.
|
|
8
|
-
|
|
9
|
-
Exemplo de uso:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
@mixin media-breakpoint($breakpointName) {
|
|
15
|
-
$mediaQuery: map-get($breakpoints, $breakpointName);
|
|
16
|
-
@if ($mediaQuery == null) {
|
|
17
|
-
@content;
|
|
18
|
-
} @else {
|
|
19
|
-
@media #{$mediaQuery} {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// @ Theme mixins
|
|
3
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
/*
|
|
5
|
+
Esse mixin foi criado para não precisar escrever o valor em pixels de cada breakpoint toda vez que for necessário
|
|
6
|
+
criar um media query. Se em algum momento for necessário alterar o valor de um breakpoint, basta alterar o valor nos
|
|
7
|
+
tokens e o mixin irá se encarregar de atualizar todos os media queries que utilizam aquele breakpoint.
|
|
8
|
+
|
|
9
|
+
Exemplo de uso:
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
*/
|
|
14
|
+
@mixin media-breakpoint($breakpointName) {
|
|
15
|
+
$mediaQuery: map-get($breakpoints, $breakpointName);
|
|
16
|
+
@if ($mediaQuery == null) {
|
|
17
|
+
@content;
|
|
18
|
+
} @else {
|
|
19
|
+
@media #{$mediaQuery} {
|
|
20
|
+
@content;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
// -------------------------------------------------------------------------------------------------------------------
|
|
2
|
-
// @ Typography mixins
|
|
3
|
-
// -------------------------------------------------------------------------------------------------------------------
|
|
4
|
-
// Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
|
|
5
|
-
// the individual properties if a value that isn't allowed in the shorthand is passed in.
|
|
6
|
-
@mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
|
|
7
|
-
// If any of the values are set to `inherit`, we can't use the shorthand
|
|
8
|
-
// so we fall back to passing in the individual properties.
|
|
9
|
-
@if (
|
|
10
|
-
$font-size
|
|
11
|
-
==inherit or
|
|
12
|
-
$font-weight
|
|
13
|
-
==inherit or
|
|
14
|
-
$line-height
|
|
15
|
-
==inherit or
|
|
16
|
-
$font-family
|
|
17
|
-
==inherit or
|
|
18
|
-
$font-size
|
|
19
|
-
==null or
|
|
20
|
-
$font-weight
|
|
21
|
-
==null or
|
|
22
|
-
$line-height
|
|
23
|
-
==null or
|
|
24
|
-
$font-family
|
|
25
|
-
==null
|
|
26
|
-
) {
|
|
27
|
-
font-size: $font-size;
|
|
28
|
-
font-weight: $font-weight;
|
|
29
|
-
line-height: $line-height;
|
|
30
|
-
font-family: $font-family;
|
|
31
|
-
} @else {
|
|
32
|
-
// Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
|
|
33
|
-
// that we need to use interpolation for `font-size/line-height` in order to prevent
|
|
34
|
-
// Sass from dividing the two values.
|
|
35
|
-
font: $font-weight #{$font-size}/#{$line-height} $font-family;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Converts a typography level into CSS styles.
|
|
40
|
-
@mixin matcha-typography-level-to-styles($config, $level) {
|
|
41
|
-
$font-size: matcha-font-size($config, $level);
|
|
42
|
-
$font-weight: matcha-font-weight($config, $level);
|
|
43
|
-
$line-height: matcha-line-height($config, $level);
|
|
44
|
-
$font-family: matcha-font-family($config, $level);
|
|
45
|
-
|
|
46
|
-
@include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
|
|
47
|
-
letter-spacing: matcha-letter-spacing($config, $level);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Represents a collection of typography levels.
|
|
51
|
-
// Defaults come from https://material.io/guidelines/style/typography.html
|
|
52
|
-
// Note: The spec doesn't mention letter spacing. The values here come from
|
|
53
|
-
// eyeballing it until it looked exactly like the spec examples.
|
|
54
|
-
|
|
55
|
-
// h1 40px headline - bold
|
|
56
|
-
// h2 32px title - medium
|
|
57
|
-
// h3 24px subheading - bold
|
|
58
|
-
// h4 20px subheading - bold
|
|
59
|
-
|
|
60
|
-
// h5-5 18px '' - bold
|
|
61
|
-
// h6 18px '' - bold
|
|
62
|
-
// h7 18px '' - bold
|
|
63
|
-
// h8 12px '' - bold
|
|
64
|
-
|
|
65
|
-
// m 16px body - regular
|
|
66
|
-
// p 14px body - regular
|
|
67
|
-
// small 12px caption - regular
|
|
68
|
-
@mixin matcha-reset-typography($config) {
|
|
69
|
-
// Headings — aligned with Figma matcha/text/* styles
|
|
70
|
-
.h1,
|
|
71
|
-
h1 {
|
|
72
|
-
@include matcha-typography-level-to-styles($config, display);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.h2,
|
|
76
|
-
h2 {
|
|
77
|
-
@include matcha-typography-level-to-styles($config, headline);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.h3,
|
|
81
|
-
h3 {
|
|
82
|
-
@include matcha-typography-level-to-styles($config, title-lg);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.h4,
|
|
86
|
-
h4 {
|
|
87
|
-
@include matcha-typography-level-to-styles($config, title-md);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.h5,
|
|
91
|
-
h5 {
|
|
92
|
-
@include matcha-typography-level-to-styles($config, title-sm);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.h6,
|
|
96
|
-
h6 {
|
|
97
|
-
@include matcha-typography-level-to-styles($config, label-sm);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.text-bold,
|
|
101
|
-
strong,
|
|
102
|
-
b {
|
|
103
|
-
font-weight: matcha-font-weight($config, title-lg);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
& {
|
|
107
|
-
font-family: matcha-font-family($config, body-md);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
button {
|
|
111
|
-
font-family: matcha-font-family($config, button-md);
|
|
112
|
-
font-weight: matcha-font-weight($config, button-md);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
input[type="text"],
|
|
116
|
-
input[type="email"],
|
|
117
|
-
input[type="tel"],
|
|
118
|
-
input[type="url"],
|
|
119
|
-
input[type="password"],
|
|
120
|
-
input[type="number"],
|
|
121
|
-
input[type="search"],
|
|
122
|
-
textarea {
|
|
123
|
-
font-family: matcha-font-family($config, body-md);
|
|
124
|
-
font-weight: matcha-font-weight($config, body-md);
|
|
125
|
-
font-size: px-to-rem(16px);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
1
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// @ Typography mixins
|
|
3
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
|
|
5
|
+
// the individual properties if a value that isn't allowed in the shorthand is passed in.
|
|
6
|
+
@mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
|
|
7
|
+
// If any of the values are set to `inherit`, we can't use the shorthand
|
|
8
|
+
// so we fall back to passing in the individual properties.
|
|
9
|
+
@if (
|
|
10
|
+
$font-size
|
|
11
|
+
==inherit or
|
|
12
|
+
$font-weight
|
|
13
|
+
==inherit or
|
|
14
|
+
$line-height
|
|
15
|
+
==inherit or
|
|
16
|
+
$font-family
|
|
17
|
+
==inherit or
|
|
18
|
+
$font-size
|
|
19
|
+
==null or
|
|
20
|
+
$font-weight
|
|
21
|
+
==null or
|
|
22
|
+
$line-height
|
|
23
|
+
==null or
|
|
24
|
+
$font-family
|
|
25
|
+
==null
|
|
26
|
+
) {
|
|
27
|
+
font-size: $font-size;
|
|
28
|
+
font-weight: $font-weight;
|
|
29
|
+
line-height: $line-height;
|
|
30
|
+
font-family: $font-family;
|
|
31
|
+
} @else {
|
|
32
|
+
// Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
|
|
33
|
+
// that we need to use interpolation for `font-size/line-height` in order to prevent
|
|
34
|
+
// Sass from dividing the two values.
|
|
35
|
+
font: $font-weight #{$font-size}/#{$line-height} $font-family;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Converts a typography level into CSS styles.
|
|
40
|
+
@mixin matcha-typography-level-to-styles($config, $level) {
|
|
41
|
+
$font-size: matcha-font-size($config, $level);
|
|
42
|
+
$font-weight: matcha-font-weight($config, $level);
|
|
43
|
+
$line-height: matcha-line-height($config, $level);
|
|
44
|
+
$font-family: matcha-font-family($config, $level);
|
|
45
|
+
|
|
46
|
+
@include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
|
|
47
|
+
letter-spacing: matcha-letter-spacing($config, $level);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Represents a collection of typography levels.
|
|
51
|
+
// Defaults come from https://material.io/guidelines/style/typography.html
|
|
52
|
+
// Note: The spec doesn't mention letter spacing. The values here come from
|
|
53
|
+
// eyeballing it until it looked exactly like the spec examples.
|
|
54
|
+
|
|
55
|
+
// h1 40px headline - bold
|
|
56
|
+
// h2 32px title - medium
|
|
57
|
+
// h3 24px subheading - bold
|
|
58
|
+
// h4 20px subheading - bold
|
|
59
|
+
|
|
60
|
+
// h5-5 18px '' - bold
|
|
61
|
+
// h6 18px '' - bold
|
|
62
|
+
// h7 18px '' - bold
|
|
63
|
+
// h8 12px '' - bold
|
|
64
|
+
|
|
65
|
+
// m 16px body - regular
|
|
66
|
+
// p 14px body - regular
|
|
67
|
+
// small 12px caption - regular
|
|
68
|
+
@mixin matcha-reset-typography($config) {
|
|
69
|
+
// Headings — aligned with Figma matcha/text/* styles
|
|
70
|
+
.h1,
|
|
71
|
+
h1 {
|
|
72
|
+
@include matcha-typography-level-to-styles($config, display);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.h2,
|
|
76
|
+
h2 {
|
|
77
|
+
@include matcha-typography-level-to-styles($config, headline);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.h3,
|
|
81
|
+
h3 {
|
|
82
|
+
@include matcha-typography-level-to-styles($config, title-lg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.h4,
|
|
86
|
+
h4 {
|
|
87
|
+
@include matcha-typography-level-to-styles($config, title-md);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.h5,
|
|
91
|
+
h5 {
|
|
92
|
+
@include matcha-typography-level-to-styles($config, title-sm);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.h6,
|
|
96
|
+
h6 {
|
|
97
|
+
@include matcha-typography-level-to-styles($config, label-sm);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.text-bold,
|
|
101
|
+
strong,
|
|
102
|
+
b {
|
|
103
|
+
font-weight: matcha-font-weight($config, title-lg);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& {
|
|
107
|
+
font-family: matcha-font-family($config, body-md);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
button {
|
|
111
|
+
font-family: matcha-font-family($config, button-md);
|
|
112
|
+
font-weight: matcha-font-weight($config, button-md);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
input[type="text"],
|
|
116
|
+
input[type="email"],
|
|
117
|
+
input[type="tel"],
|
|
118
|
+
input[type="url"],
|
|
119
|
+
input[type="password"],
|
|
120
|
+
input[type="number"],
|
|
121
|
+
input[type="search"],
|
|
122
|
+
textarea {
|
|
123
|
+
font-family: matcha-font-family($config, body-md);
|
|
124
|
+
font-weight: matcha-font-weight($config, body-md);
|
|
125
|
+
font-size: px-to-rem(16px);
|
|
126
|
+
}
|
|
127
|
+
}
|