New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@engie-group/fluid-design-system

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@engie-group/fluid-design-system

ENGIE Fluid is open-source design system to create, build and deliver ENGIE digital services in a more efficient way.

  • 3.0.0-alpha.1
  • npm
  • Socket score

Version published
Weekly downloads
542
decreased by-29.24%
Maintainers
3
Weekly downloads
 
Created
Source

Fluid Design System by ENGIE

Welcome to the Fluid Design System by ENGIE. It's a library of UI components written in HTML/CSS/Vanilla JS. To begin with, you have multiple ways to work with our design system. Start with the installation and then feel free to explore the different sections of the design system to start building applications based on ENGIE standards. https://design.engie.com/

Quick Start

Install the package inside your new application: npm install @engie-group/fluid-design-system

For an alternative use (zip, cdn), please read the dedicated section https://design.engie.com/design-system/getting-started/developers/introduction/#quick-start

How to use

You can start using the design system through two methods :

The package has the following file structure:

  .
  ├── CHANGELOG.md
  ├── README.md
  ├── lib
  │   ├── components
  │   │   ├── ...
  │   │   ├── toggle/
  │   │   └── ...
  │   ├── body-and-reset.css
  │   ├── fluid-design-system.css
  │   ├── fluid-design-system.d.ts
  │   ├── fluid-design-system.js
  └── src
      ├── components
      │   ├── ...
      │   ├── toggle/
      │   └── ...
      ├── globals
      │   ├── scss/
      │   └── ts/
      ├── body-and-reset.scss
      ├── fluid-design-system.scss
      └── fluid-design-system.ts

Basic usage

You can use the built files from the lib/ directory.

CSS

Make sure to include the Google material icons first.

Include the library

Copy-paste the stylesheet <link> into your <head> before all other stylesheets to load our CSS.

<link href="/your-css-path/fluid-design-system.css" rel="stylesheet">
Include a single component

Include the Toggle component styles only:

<link href="/your-css-path/components/toggle/index.css" rel="stylesheet">
JS
Include the library

Place the following <script> near the end of your pages, right before the closing </body> tag, to enable them.

<script src="/your-js-path/fluid-design-system.js"></script>
Include a single component

Include the Toggle component scripts only:

<script src="/your-js-path/components/toggle/index.js"></script>

Advanced usage

You can import the sources files from the src/ directory. Feel free to use your asset builder (Webpack, gulp, grunt...)

SCSS

Fonts path: In case you have to resolve the relative path to fonts files you can set the $icon-font-path variable or use resolve-url-loader with webpack.

Make sure to include the Google material icons first.

Import the library

Import the library in your project:

@import "~@engie-group/fluid-design-system/src/fluid-design-system.scss";
Import a single component

Import the Toggle component file only:

@import "~@engie-group/fluid-design-system/src/components/toggle";

If the import is not working, use this one instead (see Index Files):

@import "~@engie-group/fluid-design-system/src/components/toggle/_index";
JS
Import the library
  1. Import the library in your project:

    import NJ from '@engie-group/fluid-design-system';
    
  2. Initialize all components:

    document.addEventListener('DOMContentLoaded', function(event) {
      NJ.AutoInit();
    });
    
Import a single component
  1. Import the library component in your project.

    import Toggle from '@engie-group/fluid-design-system/lib/components/toggle';
    
  2. Initialize the component:

    document.addEventListener('DOMContentLoaded', function(event) {
      Toggle.init();
    });
    

Troubleshooting

If you have any issues while getting set up with ENGIE Design System, please create an issue here.

Keywords

FAQs

Package last updated on 21 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc