Angular integration

Start with the installation of Fluid Design System in the Angular framework

npm (tag) Fluid Angular Licence

Installation

To consume Fluid Design System with Angular, the best way is via npm (or yarn if you prefer).

npm install @engie-group/fluid-design-system

Fonts and icons

The Fluid Design System uses the Lato font as global font family, read more about the typography bias on the dedicated section.

ENGIE has selected the Google material font as default icons pack, read more on the icons documentation.

Be sure to include these fonts into the main CSS file src/style.scss (or css, less, etc… according to your project configurations).

/* You can add global styles to this file, and also import other style files */
@import url('https://fonts.googleapis.com/css?family=Material+Icons|Lato:300,400,700,900&display=swap');

Stylesheets

In order to add stylesheets of the library in your project you have to include it in your angular.json file (which is at angular’s root directory).

"architect": {
    "build": {
        "options": {
            "styles": [
                "src/styles.scss",
                "node_modules/@engie-group/fluid-design-system/lib/fluid-design-system.css"
            ],
CSS version

Import the entire library

"node_modules/@engie-group/fluid-design-system/lib/fluid-design-system.css"

… or an single component

"node_modules/@engie-group/fluid-design-system/lib/components/form/index.css"
SCSS version

Import the full library

"node_modules/@engie-group/fluid-design-system/src/fluid-design-system.scss"

… or an single component

"node_modules/@engie-group/fluid-design-system/src/reboot.scss"
"node_modules/@engie-group/fluid-design-system/src/components/form/_index.scss"

JavaScript

Full library

Import lib/fluid-design-system.js directly in your main app code.

import '@engie-group/fluid-design-system';
import '@engie-group/fluid-design-system/lib/auto-init';

Troubleshooting

If you have any issues while getting set up with Fluid Design System, please create an issue or a request on our library git repository. No newline at end of file