UNPKG

1.19 kBSCSSView Raw
1@import '../breadcrumbs/breadcrumbs-theme';
2@import '../common/common-theme';
3@import '../layout/layout-theme';
4@import '../loading/loading-theme';
5@import '../file/file-theme';
6@import '../dialogs/dialog-theme';
7@import '../json-formatter/json-formatter-theme';
8@import '../message/message-theme';
9@import '../side-sheet/side-sheet.theme';
10// import the covalent mixins
11@import '../common/styles/styles';
12@import '../typography/all-typography';
13
14// Create a theme.
15@mixin covalent-theme($theme, $config: null) {
16 @include td-typography($config);
17 @include td-breadcrumbs-theme($theme);
18 @include td-common-theme($theme);
19 @include td-layout-theme($theme);
20 @include td-loading-theme($theme);
21 @include td-file-theme($theme);
22 @include td-dialog-theme($theme);
23 @include td-json-formatter-theme($theme);
24 @include td-message-theme($theme);
25 @include td-side-sheet-theme($theme);
26
27 $foreground: map-get(map-get($theme, color), foreground);
28 $inverse-on-surface: map-get($foreground, inverse-on-surface);
29
30 .mdc-tooltip__surface {
31 // Tooltip fix to override the correct fill color in MDC styles
32 --mdc-plain-tooltip-supporting-text-color: #{$inverse-on-surface};
33 }
34}