Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.15 KB

02_declarative_syntax.md

File metadata and controls

42 lines (33 loc) · 1.15 KB

@ngdoc content @name Declarative Syntax @description

Theming in AngularJS Material uses classes to apply an intention group to a given component. Most components in AngularJS Material support intention classes as expected, including:

  • md-button
  • md-checkbox
  • md-progress-circular
  • md-progress-linear
  • md-radio-button
  • md-slider
  • md-switch
  • md-tabs
  • md-input-container
  • md-toolbar

Specifying intention group

The classes to apply the color intention for a given component are as follows: md-primary, md-accent, md-warn.

Click me or maybe me Careful

Differentiating within an intention group.

If you need to slightly differentiate an element, you can specify an additional class of md-hue-1, md-hue-2, or md-hue-3. Use these classes sparingly in your application to avoid overwhelming users.

Click me Click me Click me