From 5ba6d03ba831f5921062d1efdeeb965cfd0fdc36 Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Mon, 10 Oct 2016 16:49:26 -0700 Subject: [PATCH] docs(GETTING_STARTED): add info on core styles and theming --- GETTING_STARTED.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index f8af7ef9e3b7..7401fa953848 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -33,9 +33,21 @@ import { MaterialModule } from '@angular/material'; export class PizzaPartyAppModule { } ``` -### Including core and theme styles: -See the [theming guide](docs/theming.md) for more information. +## Include core and theme styles +To ensure the components display correctly, you'll need to include Material's core style rules and +your desired theme. The easiest way to do this is to use one of the pre-built theme files that comes +with Angular Material (it already includes the core styles for you). + +Select a theme file from `@angular/material/core/theming/prebuilt` and import it at the top of your +global `styles.css` file. + +**src/styles.css** +``` +@import '~@angular/material/core/theming/prebuilt/deeppurple-amber.css'; +``` + +See our [theming guide](docs/theming.md) for more information. ### Additional setup for `md-slide-toggle` and `md-slider`: The slide-toggle and slider components have a dependency on [HammerJS](http://hammerjs.github.io/).