@engie-group/fluid-design-system-vue
TypeScript icon, indicating that this package has built-in type declarations

0.6.4 • Public • Published

Engie's Vue components of the Fluid design system

Fluid is the Engie's design system, a collection of reusable components and styles used to build Engie's digital products.

Here is the package to benefit from Fluid's components and styles in your Vue project.

Versioning

⚠️ This package doesn't follow semantic versioning, breaking changes may be introduced in minor versions.

We recommend fixing the version with the exact package version to avoid breaking changes affecting your live website. Moreover, we recommend checking the CHANGELOG before updating the package after a release.

Getting started

This package can be installed directly with NPM:

# Using npm
npm install --save-exact @engie-group/fluid-design-system-vue @engie-group/fluid-design-tokens

# Using pnpm
pnpm add --save-exact @engie-group/fluid-design-system-vue @engie-group/fluid-design-tokens

# Using yarn
yarn add --save-exact @engie-group/fluid-design-system-vue @engie-group/fluid-design-tokens

ℹ️ If you use deprecated components or need the reboot.css, you will need to install and use some styles from the @engie-group/fluid-4-deprecated package.

Please refer to the @engie-group/fluid-4-deprecated README.md for more information.

# Using npm
npm install @engie-group/fluid-4-deprecated

# Using pnpm
pnpm add @engie-group/fluid-4-deprecated

# Using yarn
yarn add @engie-group/fluid-4-deprecated

Fonts and Icons

In order for the components to work properly, you need to include the Material Icons and Lato font in your project.

You should include them in your HTML <head>:

<!-- Material icons and Lato font -->
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Lato:300,400,700,900&display=swap" rel="stylesheet"/>

CSS

Component styling is based on CSS classes and some CSS variables (called design tokens). In order for each component to be rendered as expected, you need to include a CSS file as global stylesheet in your project.

You must include it in your HTML <head>:

<!-- Fluid design tokens as CSS variables -->
<link href="<your-relative-path-to-node_modules>/@engie-group/fluid-design-tokens/lib/css/token.css" rel="stylesheet">

or import it in your main JavaScript file:

import "@engie-group/fluid-design-tokens/css";

ℹ️ We recommend including it before your own stylesheets to avoid any conflicts.

Documentation and usage

For a better comprehension of the components and their usage, we recommend checking our Storybook documentation.

For Fluid overall documentation, you can check our Fluid documentation.

If you have correctly followed the installation steps, you should be able to use Fluid components in your project.

All components are exported in @engie-group/fluid-design-system-vue:

<script setup>
  import { Button } from "@engie-group/fluid-design-system-vue";

  function sayHello() {
    console.log("Hello world!");
  }
</script>

<template>
  <button emphasis="subtle" @click="sayHello">Do an action</button>
</template>

Troubleshooting and feature requests

If you encounter any issues, or you want any component or feature to be implemented, please create an issue or a feature request on our GitHub repository.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.10rc
0.6.46latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.46
0.6.31
0.6.21
0.6.10
0.5.730
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.20
0.4.10
0.4.00
0.3.30
0.3.20
0.3.10
0.3.00
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i @engie-group/fluid-design-system-vue

Weekly Downloads

16

Version

0.6.4

License

EPL-2.0

Unpacked Size

1.44 MB

Total Files

18

Last publish

Collaborators

  • jintus-engie
  • kangaxx