File tree Expand file tree Collapse file tree 8 files changed +178
-0
lines changed Expand file tree Collapse file tree 8 files changed +178
-0
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,14 @@ ng_package(
5050 ":package_json" ,
5151 ":sass_lib" ,
5252 "//src/material/core:theming_scss_lib" ,
53+ "//src/material/prebuilt-themes:azure-blue" ,
54+ "//src/material/prebuilt-themes:cyan-orange" ,
5355 "//src/material/prebuilt-themes:deeppurple-amber" ,
5456 "//src/material/prebuilt-themes:indigo-pink" ,
57+ "//src/material/prebuilt-themes:magenta-violet" ,
5558 "//src/material/prebuilt-themes:pink-bluegrey" ,
5659 "//src/material/prebuilt-themes:purple-green" ,
60+ "//src/material/prebuilt-themes:rose-red" ,
5761 ] + MATERIAL_SCSS_LIBS ,
5862 nested_packages = ["//src/material/schematics:npm_package" ],
5963 tags = ["release-package" ],
Original file line number Diff line number Diff line change @@ -95,6 +95,44 @@ sass_binary(
9595 deps = [":core_scss_lib" ],
9696)
9797
98+ # M3 themes
99+ sass_binary (
100+ name = "azure_blue_prebuilt" ,
101+ src = "theming/prebuilt/azure-blue.scss" ,
102+ deps = [
103+ ":theming_scss_lib" ,
104+ "//src/material-experimental:sass_lib" ,
105+ ],
106+ )
107+
108+ sass_binary (
109+ name = "rose_red_prebuilt" ,
110+ src = "theming/prebuilt/rose-red.scss" ,
111+ deps = [
112+ ":theming_scss_lib" ,
113+ "//src/material-experimental:sass_lib" ,
114+ ],
115+ )
116+
117+ sass_binary (
118+ name = "cyan_orange_prebuilt" ,
119+ src = "theming/prebuilt/cyan-orange.scss" ,
120+ deps = [
121+ ":theming_scss_lib" ,
122+ "//src/material-experimental:sass_lib" ,
123+ ],
124+ )
125+
126+ sass_binary (
127+ name = "magenta_violet_prebuilt" ,
128+ src = "theming/prebuilt/magenta-violet.scss" ,
129+ deps = [
130+ ":theming_scss_lib" ,
131+ "//src/material-experimental:sass_lib" ,
132+ ],
133+ )
134+
135+ # Legacy M2 themes
98136sass_binary (
99137 name = "indigo_pink_prebuilt" ,
100138 src = "theming/prebuilt/indigo-pink.scss" ,
Original file line number Diff line number Diff line change 1+ @use ' @angular/material-experimental' as matx ;
2+ @use ' ../all-theme' ;
3+ @use ' ../../core' ;
4+ @use ' ../../typography/typography' ;
5+
6+ @include core .core ();
7+
8+ $theme : matx .define-theme ((
9+ color : (
10+ theme- type: light ,
11+ primary: matx .$m3-azure-palette ,
12+ tertiary: matx .$m3-blue-palette ,
13+ ),
14+ density: (
15+ scale : 0 ,
16+ )
17+ ));
18+
19+ html {
20+ @include all-theme .all-component-themes ($theme );
21+ }
22+
23+ @include matx .color-variants-back-compat ($theme );
24+ @include typography .typography-hierarchy ($theme );
Original file line number Diff line number Diff line change 1+ @use ' @angular/material-experimental' as matx ;
2+ @use ' ../all-theme' ;
3+ @use ' ../../core' ;
4+ @use ' ../../typography/typography' ;
5+
6+ @include core .core ();
7+
8+ $theme : matx .define-theme ((
9+ color : (
10+ theme- type: dark ,
11+ primary: matx .$m3-cyan-palette ,
12+ tertiary: matx .$m3-orange-palette ,
13+ ),
14+ density: (
15+ scale : 0 ,
16+ )
17+ ));
18+
19+ html {
20+ @include all-theme .all-component-themes ($theme );
21+ }
22+
23+ @include matx .color-variants-back-compat ($theme );
24+ @include typography .typography-hierarchy ($theme );
Original file line number Diff line number Diff line change 1+ @use ' @angular/material-experimental' as matx ;
2+ @use ' ../all-theme' ;
3+ @use ' ../../core' ;
4+ @use ' ../../typography/typography' ;
5+
6+ @include core .core ();
7+
8+ $theme : matx .define-theme ((
9+ color : (
10+ theme- type: dark ,
11+ primary: matx .$m3-magenta-palette ,
12+ tertiary: matx .$m3-violet-palette ,
13+ ),
14+ density: (
15+ scale : 0 ,
16+ )
17+ ));
18+
19+ html {
20+ @include all-theme .all-component-themes ($theme );
21+ }
22+
23+ @include matx .color-variants-back-compat ($theme );
24+ @include typography .typography-hierarchy ($theme );
Original file line number Diff line number Diff line change 1+ @use ' @angular/material-experimental' as matx ;
2+ @use ' ../all-theme' ;
3+ @use ' ../../core' ;
4+ @use ' ../../typography/typography' ;
5+
6+ @include core .core ();
7+
8+ $theme : matx .define-theme ((
9+ color : (
10+ theme- type: light ,
11+ primary: matx .$m3-rose-palette ,
12+ tertiary: matx .$m3-red-palette ,
13+ ),
14+ density: (
15+ scale : 0 ,
16+ )
17+ ));
18+
19+ html {
20+ @include all-theme .all-component-themes ($theme );
21+ }
22+
23+ @include matx .color-variants-back-compat ($theme );
24+ @include typography .typography-hierarchy ($theme );
Original file line number Diff line number Diff line change 3434 "./prebuilt-themes/purple-green.css" : {
3535 "style" : " ./prebuilt-themes/purple-green.css"
3636 },
37+ "./prebuilt-themes/azure-blue.css" : {
38+ "style" : " ./prebuilt-themes/azure-blue.css"
39+ },
40+ "./prebuilt-themes/rose-red.css" : {
41+ "style" : " ./prebuilt-themes/rose-red.css"
42+ },
43+ "./prebuilt-themes/cyan-orange.css" : {
44+ "style" : " ./prebuilt-themes/cyan-orange.css"
45+ },
46+ "./prebuilt-themes/magenta-violet.css" : {
47+ "style" : " ./prebuilt-themes/magenta-violet.css"
48+ },
3749 "./prebuilt-themes/*" : {
3850 "style" : " ./prebuilt-themes/*.css"
3951 }
Original file line number Diff line number Diff line change @@ -34,3 +34,31 @@ genrule(
3434 outs = ["purple-green.css" ],
3535 cmd = "cp $< $@" ,
3636)
37+
38+ genrule (
39+ name = "azure-blue" ,
40+ srcs = ["//src/material/core:theming/prebuilt/azure-blue.css" ],
41+ outs = ["azure-blue.css" ],
42+ cmd = "cp $< $@" ,
43+ )
44+
45+ genrule (
46+ name = "rose-red" ,
47+ srcs = ["//src/material/core:theming/prebuilt/rose-red.css" ],
48+ outs = ["rose-red.css" ],
49+ cmd = "cp $< $@" ,
50+ )
51+
52+ genrule (
53+ name = "cyan-orange" ,
54+ srcs = ["//src/material/core:theming/prebuilt/cyan-orange.css" ],
55+ outs = ["cyan-orange.css" ],
56+ cmd = "cp $< $@" ,
57+ )
58+
59+ genrule (
60+ name = "magenta-violet" ,
61+ srcs = ["//src/material/core:theming/prebuilt/magenta-violet.css" ],
62+ outs = ["magenta-violet.css" ],
63+ cmd = "cp $< $@" ,
64+ )
You can’t perform that action at this time.
0 commit comments