-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/core): update prebuilt themes to use mat.theme (#29989)
Co-authored-by: Andrew Seguin <andrewseguin@google.com>
- Loading branch information
1 parent
0a5b036
commit 1568ac2
Showing
4 changed files
with
40 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
@use '../../theming/definition'; | ||
@use '../../theming/color-api-backwards-compatibility'; | ||
@use '../../theming/palettes'; | ||
@use '../all-theme'; | ||
@use '../../core'; | ||
@use '../../typography/typography'; | ||
|
||
@include core.app-background(); | ||
@include core.elevation-classes(); | ||
|
||
$theme: definition.define-theme(( | ||
color: ( | ||
theme-type: light, | ||
primary: palettes.$azure-palette, | ||
tertiary: palettes.$blue-palette, | ||
), | ||
density: ( | ||
scale: 0, | ||
) | ||
)); | ||
@use '../../../core/tokens/m3-system'; | ||
|
||
html { | ||
@include all-theme.all-component-themes($theme); | ||
@include m3-system.theme(( | ||
color: ( | ||
theme-type: light, | ||
primary: palettes.$azure-palette, | ||
tertiary: palettes.$blue-palette, | ||
), | ||
typography: Roboto, | ||
density: 0, | ||
)); | ||
} | ||
|
||
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme); | ||
@include typography.typography-hierarchy($theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
@use '../../theming/definition'; | ||
@use '../../theming/color-api-backwards-compatibility'; | ||
@use '../../theming/palettes'; | ||
@use '../all-theme'; | ||
@use '../../core'; | ||
@use '../../typography/typography'; | ||
|
||
@include core.app-background(); | ||
@include core.elevation-classes(); | ||
|
||
$theme: definition.define-theme(( | ||
color: ( | ||
theme-type: dark, | ||
primary: palettes.$cyan-palette, | ||
tertiary: palettes.$orange-palette, | ||
), | ||
density: ( | ||
scale: 0, | ||
) | ||
)); | ||
@use '../../../core/tokens/m3-system'; | ||
|
||
html { | ||
@include all-theme.all-component-themes($theme); | ||
@include m3-system.theme(( | ||
color: ( | ||
theme-type: dark, | ||
primary: palettes.$cyan-palette, | ||
tertiary: palettes.$orange-palette, | ||
), | ||
typography: Roboto, | ||
density: 0, | ||
)); | ||
} | ||
|
||
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme); | ||
@include typography.typography-hierarchy($theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
@use '../../theming/definition'; | ||
@use '../../theming/color-api-backwards-compatibility'; | ||
@use '../../theming/palettes'; | ||
@use '../all-theme'; | ||
@use '../../core'; | ||
@use '../../typography/typography'; | ||
|
||
@include core.app-background(); | ||
@include core.elevation-classes(); | ||
|
||
$theme: definition.define-theme(( | ||
color: ( | ||
theme-type: dark, | ||
primary: palettes.$magenta-palette, | ||
tertiary: palettes.$violet-palette, | ||
), | ||
density: ( | ||
scale: 0, | ||
) | ||
)); | ||
@use '../../../core/tokens/m3-system'; | ||
|
||
html { | ||
@include all-theme.all-component-themes($theme); | ||
@include m3-system.theme(( | ||
color: ( | ||
theme-type: dark, | ||
primary: palettes.$magenta-palette, | ||
tertiary: palettes.$violet-palette, | ||
), | ||
typography: Roboto, | ||
density: 0, | ||
)); | ||
} | ||
|
||
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme); | ||
@include typography.typography-hierarchy($theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
@use '../../theming/definition'; | ||
@use '../../theming/color-api-backwards-compatibility'; | ||
@use '../../theming/palettes'; | ||
@use '../all-theme'; | ||
@use '../../core'; | ||
@use '../../typography/typography'; | ||
|
||
@include core.app-background(); | ||
@include core.elevation-classes(); | ||
|
||
$theme: definition.define-theme(( | ||
color: ( | ||
theme-type: light, | ||
primary: palettes.$rose-palette, | ||
tertiary: palettes.$red-palette, | ||
), | ||
density: ( | ||
scale: 0, | ||
) | ||
)); | ||
@use '../../../core/tokens/m3-system'; | ||
|
||
html { | ||
@include all-theme.all-component-themes($theme); | ||
@include m3-system.theme(( | ||
color: ( | ||
theme-type: light, | ||
primary: palettes.$rose-palette, | ||
tertiary: palettes.$red-palette, | ||
), | ||
typography: Roboto, | ||
density: 0, | ||
)); | ||
} | ||
|
||
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme); | ||
@include typography.typography-hierarchy($theme); |