2.0.54 • Published 2 years ago

@ecos/ecos-design-system v2.0.54

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ecos-design-system

This is a WIP experimentation to build a design system compatible with several modern development platforms. The original goal is to build something nice and fun with Aurelia 2 and Eleventy.

Install

npm install @ecos/ecos-design-system

Getting started

In order to use web-components they need to be registered. You can do this by importing each desired components.

import { EcosDesignSystemProvider, EcosButton } from "@ecos/ecos-design-system";

/*
* Ensure that tree-shaking doesn't remove these components from the bundle.
* There are multiple ways to prevent tree shaking, of which this is one.
*/
EcosDesignSystemProvider;
EcosButton;

Make sure you have a Design System Provider encapsulating all the ecos components in the DOM. A common practice is to place it right after the body tag

<ecos-design-system-provider use-defaults="">
  <!-- `use-defaults` is only required on the top level design-system-provider -->
  <!-- code continues here -->
</ecos-design-system-provider>

Use the components as native elements

<ecos-design-system-provider background-color="#FFFFFF">
  <h1>Hello World</h1>
  <p>This text is supposed to motivate you to click below</p>
  <ecos-button>Click me !</ecos-button>
</ecos-design-system-provider>

Aurelia adapter

The Ecos design system currently* ships with a AureliaEcosAdapter class. In order for the components to work smoothly with two-way bindings in Aurelia, one must teach Aurelia2 how to listen for the value changes inside custom components. This is achieved through this adapter:

import { AureliaEcosAdapter } from '@ecos/ecos-design-system'``

```ts
// main.ts
Aurelia.register(AureliaEcosAdapter)

Contribute / setup a dev environment

  1. Clone this repository
  2. Install dependencies
  3. Start the web server
git clone https://github.com/ben-girardet/ecos-design-system.git #1
cd ecos-design-system
npm i #2
npm run start  #3

PR's are welcome

Build the design system

npm run build

Build the app

npm run build-app
2.0.53

2 years ago

2.0.54

2 years ago

2.0.51

2 years ago

2.0.52

2 years ago

2.0.50

2 years ago

2.0.48

3 years ago

2.0.49

3 years ago

2.0.47

3 years ago

2.0.46

3 years ago

2.0.44

3 years ago

2.0.45

3 years ago

2.0.42

3 years ago

2.0.43

3 years ago

2.0.41

3 years ago

2.0.38

3 years ago

2.0.39

3 years ago

2.0.40

3 years ago

2.0.37

3 years ago

2.0.35

3 years ago

2.0.36

3 years ago

2.0.33

3 years ago

2.0.34

3 years ago

2.0.32

3 years ago

2.0.28

3 years ago

2.0.29

3 years ago

2.0.31

3 years ago

2.0.30

3 years ago

2.0.26

3 years ago

2.0.27

3 years ago

2.0.24

3 years ago

2.0.25

3 years ago

2.0.22

3 years ago

2.0.23

3 years ago

2.0.21

3 years ago

2.0.15

3 years ago

2.0.16

3 years ago

2.0.14

3 years ago

2.0.19

3 years ago

2.0.17

3 years ago

2.0.18

3 years ago

2.0.20

3 years ago

2.0.13

3 years ago

2.0.11

3 years ago

2.0.12

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

1.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.19

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago