Skip to content

Commit

Permalink
feat(docs): adding typography example (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Margar1ta authored and pimenovoleg committed Jan 22, 2020
1 parent ee251ca commit 081bb22
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/mosaic-examples/mosaic/typography/module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
small {
color: rgba(0, 0, 0, 0.3);
}

.typography-group {
margin-bottom: 20px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<div class="typography-group">
<small>mc-display-3</small>
<div class="mc-display-3">Display 3</div>
<small>mc-display-2</small>
<div class="mc-display-2">Display 2</div>
<small>mc-display-1</small>
<div class="mc-display-1">Display 1</div>
</div>

<div class="typography-group">
<small>mc-headline</small>
<div class="mc-headline">Headline</div>
<small>mc-title</small>
<div class="mc-title">Title</div>
<small>mc-subheading</small>
<div class="mc-subheading">Subheading</div>
</div>

<div class="typography-group">
<div class="mc-body">Body</div>
</div>

<div class="typography-group">
<div class="mc-body_strong">Body strong</div>
<div class="mc-body_caps">BODY CAPS</div>
<div class="mc-body_mono">Body mono</div>
</div>

<div class="typography-group">
<div class="mc-caption">Caption</div>
<div class="mc-caption_caps">CAPTION CAPS</div>
<div class="mc-caption_mono">Caption mono</div>
</div>

<div class="typography-group">
<div class="mc-small-text">Small text</div>
<div class="mc-extra-small-text">Extra Small text</div>
</div>
Original file line number Diff line number Diff line change
@@ -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 {}
2 changes: 2 additions & 0 deletions packages/mosaic/core/styles/typography/typography.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- example(typography-overview) -->

### Usage and Override

```scss
Expand Down

0 comments on commit 081bb22

Please sign in to comment.