Commit 4473a37 1 parent c932512 commit 4473a37 Copy full SHA for 4473a37
File tree 8 files changed +178
-0
lines changed
8 files changed +178
-0
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,14 @@ ng_package(
50
50
":package_json" ,
51
51
":sass_lib" ,
52
52
"//src/material/core:theming_scss_lib" ,
53
+ "//src/material/prebuilt-themes:azure-blue" ,
54
+ "//src/material/prebuilt-themes:cyan-orange" ,
53
55
"//src/material/prebuilt-themes:deeppurple-amber" ,
54
56
"//src/material/prebuilt-themes:indigo-pink" ,
57
+ "//src/material/prebuilt-themes:magenta-violet" ,
55
58
"//src/material/prebuilt-themes:pink-bluegrey" ,
56
59
"//src/material/prebuilt-themes:purple-green" ,
60
+ "//src/material/prebuilt-themes:rose-red" ,
57
61
] + MATERIAL_SCSS_LIBS ,
58
62
nested_packages = ["//src/material/schematics:npm_package" ],
59
63
tags = ["release-package" ],
Original file line number Diff line number Diff line change @@ -95,6 +95,44 @@ sass_binary(
95
95
deps = [":core_scss_lib" ],
96
96
)
97
97
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
98
136
sass_binary (
99
137
name = "indigo_pink_prebuilt" ,
100
138
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 34
34
"./prebuilt-themes/purple-green.css" : {
35
35
"style" : " ./prebuilt-themes/purple-green.css"
36
36
},
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
+ },
37
49
"./prebuilt-themes/*" : {
38
50
"style" : " ./prebuilt-themes/*.css"
39
51
}
Original file line number Diff line number Diff line change @@ -34,3 +34,31 @@ genrule(
34
34
outs = ["purple-green.css" ],
35
35
cmd = "cp $< $@" ,
36
36
)
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