# commit_m_design_system

A Package for the commit-m company

## Getting Started

<p>Add commit_m_design_system to your pubspec.yaml file:</p>
<div class="-pub-pre-copy-container"><pre><code class="language-yaml hljs" data-highlighted="yes"><span class="hljs-attr">dependencies:</span>
  <span class="hljs-attr">commit_m_design_system:</span>
</code></pre><div class="-pub-pre-copy-button filter-invert-on-dark" title="copy to clipboard" tabindex="0"></div>
<p>Or simply run this command:</p>
<div class="-pub-pre-copy-container"><pre><code class="language-dart hljs" data-highlighted="yes"> <span class="hljs-string">flutter pub add commit_m_design_system</span>
</code></pre><div class="-pub-pre-copy-button filter-invert-on-dark" title="copy to clipboard" tabindex="0"></div>  
<p>Import commit_m_design_system in files that it will be used:</p>
<div class="-pub-pre-copy-container"><pre><code class="language-dart hljs" data-highlighted="yes"><span class="hljs-keyword">import</span> <span class="hljs-string">'package:commit_m_design_system/commit_m_design_system.dart'</span>;
</code></pre><div class="-pub-pre-copy-button filter-invert-on-dark" title="copy to clipboard" tabindex="0"></div>

Add fonts in your pubspec.yaml file:

```yaml
flutter:
  uses-material-design: true

  # Add this to your project
  fonts:
    - family: IRANSansXFaNum
      fonts:
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Thin.ttf
          weight: 100
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-UltraLight.ttf
          weight: 200
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Light.ttf
          weight: 300
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Regular.ttf
          weight: 400
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Medium.ttf
          weight: 500
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-DemiBold.ttf
          weight: 600
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Bold.ttf
          weight: 700
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-ExtraBold.ttf
          weight: 800
        - asset: packages/commit_m_design_system/fonts/iranSans/IRANSansXFaNum-Black.ttf
          weight: 900

    - family: Roboto
      fonts:
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Thin.ttf
          weight: 100
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-ExtraLight.ttf
          weight: 200
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Light.ttf
          weight: 300
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Regular.ttf
          weight: 400
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Medium.ttf
          weight: 500
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-SemiBold.ttf
          weight: 600
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Bold.ttf
          weight: 700
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-ExtraBold.ttf
          weight: 800
        - asset: packages/commit_m_design_system/fonts/roboto/Roboto-Black.ttf
          weight: 900
```

