File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
package (default_visibility = ["//visibility:public" ])
2
2
3
+ load ("@io_bazel_rules_sass//:defs.bzl" , "sass_binary" )
3
4
load ("@npm_bazel_typescript//:defs.bzl" , "ts_devserver" )
4
5
load ("//tools:defaults.bzl" , "ng_module" )
5
6
load ("//:packages.bzl" , "ANGULAR_LIBRARY_UMDS" )
@@ -23,9 +24,18 @@ ng_module(
23
24
"//src/material-examples:examples" ,
24
25
"//src/cdk-experimental/dialog" ,
25
26
"//src/cdk-experimental/scrolling" ,
27
+ "//src/material-experimental" ,
26
28
],
27
29
)
28
30
31
+ sass_binary (
32
+ name = "theme" ,
33
+ src = "theme.scss" ,
34
+ deps = [
35
+ "//src/lib/core:all_themes"
36
+ ]
37
+ )
38
+
29
39
ts_devserver (
30
40
name = "devserver" ,
31
41
port = 4200 ,
@@ -47,6 +57,7 @@ ts_devserver(
47
57
"@npm//@webcomponents/custom-elements" ,
48
58
"//src/lib/prebuilt-themes:indigo-pink" ,
49
59
":index.html" ,
60
+ ":theme" ,
50
61
],
51
62
# Scripts which will be included in the serving_path bundle after "require.js" has been
52
63
# loaded.
Original file line number Diff line number Diff line change 9
9
< link rel ="icon " type ="image/x-icon " href ="favicon.ico ">
10
10
< link href ="https://fonts.googleapis.com/icon?family=Material+Icons " rel ="stylesheet ">
11
11
< link href ="https://fonts.googleapis.com/css?family=Roboto:300,400,500 " rel ="stylesheet ">
12
- < link href ="angular_material/src/lib/prebuilt-themes/indigo-pink .css " rel ="stylesheet ">
12
+ < link href ="theme .css " rel ="stylesheet ">
13
13
14
14
<!-- FontAwesome for mat-icon demo. -->
15
15
< link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css ">
Original file line number Diff line number Diff line change
1
+ @import ' ../lib/core/theming/all-theme' ;
2
+
3
+ // Plus imports for other components in your app.
4
+
5
+ // Include the common styles for Angular Material. We include this here so that you only
6
+ // have to load a single css file for Angular Material in your app.
7
+ // **Be sure that you only ever include this mixin once!**
8
+ @include mat-core ();
9
+
10
+ // Define the default theme (same as the example above).
11
+ $candy-app-primary : mat-palette ($mat-indigo );
12
+ $candy-app-accent : mat-palette ($mat-pink , A200 , A100 , A400 );
13
+ $candy-app-theme : mat-light-theme ($candy-app-primary , $candy-app-accent );
14
+
15
+ // Include the default theme styles.
16
+ @include angular-material-theme ($candy-app-theme );
You can’t perform that action at this time.
0 commit comments