diff --git a/packages/mosaic-examples/mosaic/typography/module.ts b/packages/mosaic-examples/mosaic/typography/module.ts new file mode 100644 index 000000000..3db13c209 --- /dev/null +++ b/packages/mosaic-examples/mosaic/typography/module.ts @@ -0,0 +1,18 @@ +import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; + +import { TypographyOverviewExample } from './typography-overview/typography-overview-example'; + + +const EXAMPLES = [ + TypographyOverviewExample +]; + +@NgModule({ + imports: [ + CommonModule + ], + declarations: EXAMPLES, + exports: EXAMPLES +}) +export class TypographyExamplesModule {} diff --git a/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.css b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.css new file mode 100644 index 000000000..51019da92 --- /dev/null +++ b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.css @@ -0,0 +1,7 @@ +small { + color: rgba(0, 0, 0, 0.3); +} + +.typography-group { + margin-bottom: 20px; +} diff --git a/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.html b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.html new file mode 100644 index 000000000..8dd6b34aa --- /dev/null +++ b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.html @@ -0,0 +1,38 @@ +
+ mc-display-3 +
Display 3
+ mc-display-2 +
Display 2
+ mc-display-1 +
Display 1
+
+ +
+ mc-headline +
Headline
+ mc-title +
Title
+ mc-subheading +
Subheading
+
+ +
+
Body
+
+ +
+
Body strong
+
BODY CAPS
+
Body mono
+
+ +
+
Caption
+
CAPTION CAPS
+
Caption mono
+
+ +
+
Small text
+
Extra Small text
+
diff --git a/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.ts b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.ts new file mode 100644 index 000000000..7fe370341 --- /dev/null +++ b/packages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + + +/** + * @title Basic typography + */ +@Component({ + selector: 'typography-overview-example', + templateUrl: 'typography-overview-example.html', + styleUrls: ['typography-overview-example.css'] +}) +export class TypographyOverviewExample {} diff --git a/packages/mosaic/core/styles/typography/typography.md b/packages/mosaic/core/styles/typography/typography.md index 74a4c3a81..185cb77ad 100644 --- a/packages/mosaic/core/styles/typography/typography.md +++ b/packages/mosaic/core/styles/typography/typography.md @@ -1,3 +1,5 @@ + + ### Usage and Override ```scss