1.9.0 • Published 5 months ago

@maggioli-design-system/magma v1.9.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Built With Stencil

Maggioli Design System Web-Component

Questa libreria fornisce una lista di componenti basati sullo standard web-component agnostici rispetto ai framework Javascript

Fa uso della libreria @maggioli-design-system/styles per gli sitli dei componenti

Installation

npm i '@maggioli-design-system/magma'

Define Components

// insert in bootstrap file of client part of your application

import { defineCustomElements } from "@maggioli-design-system/magma/loader";

defineCustomElements();

Alternatively, if you wanted to take advantage of ES Modules, you could include the components using an import statement.

<html>
  <head>
    <script type="module">
      import { defineCustomElements } from '@maggioli-design-system/magma/loader/index.es2017.mjs';
      defineCustomElements();
    </script>
  </head>
  <body>
    <mds-text>Hello world</mds-text>
  </body>
</html>

Style

Import style used by components

/* global.css */

// color
@import "@maggioli-design-system/styles/dist/css/colors-rgb.css";

// font
@import '@fontsource/karla/400.css';
@import '@fontsource/karla/700.css';
@import '@fontsource/merriweather/400.css';
@import '@fontsource/merriweather/700.css';
@import '@fontsource/roboto-mono/400.css';
@import '@fontsource/roboto/500.css';
@import '@fontsource/roboto/700.css';
@import '@fontsource/roboto/900.css';

For more details see the library

Icon

Set the path where the mds-icon component will get the svg icons

window.sessionStorage.setItem('mdsIconSvgPath', 'assets/img/svg/');

If you are using React set this inside UseEffet otherwise window is not defined

For greater interoperability between components and frameworks, see the specific libraries for Angular and React

1.2.0

8 months ago

1.0.2

11 months ago

1.1.0

8 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.9.0

5 months ago

1.8.0

6 months ago

1.7.0

6 months ago

1.6.0

7 months ago

1.5.1

7 months ago

1.5.0

7 months ago

1.4.1

8 months ago

1.0.5

9 months ago

1.4.0

8 months ago

1.3.1

8 months ago

1.0.4

9 months ago

1.3.0

8 months ago

1.0.3

10 months ago

1.0.0-beta

12 months ago

0.23.0

4 years ago