Overview
The document provides instructions for getting started with the carbon-components-angular project. It includes information on the installation process and compatibility with different Angular versions.
Features
- Offline usage: The document explains how to set the
$font-pathin thesrc/styles.scssfile to copy fonts to thedistfolder for offline usage. - Assets folder: If desired, users can copy fonts from the
node_modules/carbon-components/src/globals/fontsdirectory to the app’ssrc/assets/fontsfolder for organizing fonts separately from thedistfolder. - Compatibility matrix: The document includes a matrix that lists the supported versions of Angular and Carbon Components Angular, indicating community support and active support for each version.
Installation
To get started with the carbon-components-angular project, follow these steps:
- Start with a new
@angular/cliproject. - Include
carbon-componentsin thesrc/styles.scssfile.- For offline usage, set
$font-path: '~carbon-components/src/globals/fonts';at the top ofsrc/styles.scss. This will copy the fonts to thedistfolder during the build. - To keep the fonts in the assets folder instead, copy them from
node_modules/carbon-components/src/globals/fontsto the app’ssrc/assets/fontsfolder. Then, add$font-path: '/assets/fonts/';at the top ofsrc/styles.scss.
- For offline usage, set
- Run
npm startto start building the application.
Summary
The document provides instructions for installing and getting started with the carbon-components-angular project. It explains the process of including carbon-components in the project and provides options for offline usage and organizing fonts. Additionally, it includes a compatibility matrix indicating the supported versions of Angular and Carbon Components Angular.