Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/munierujp/matter-design

Design system for components
https://github.com/munierujp/matter-design

Last synced: about 1 month ago
JSON representation

Design system for components

Awesome Lists containing this project

README

        

# Matter Design
Design system for components

## Component types
### Elements
Elements are abstract components like HTML elements. These can contain Elements.

### Matters
Elements are concrete components. These can contain Elements, Matters.

### Pages
Pages are page components. These can contain Elements, Matters.

## Example
### Nuxt.js
```
.
├── components
│ │── elements
│ │ └── AppButton.vue
│ └── matters
│ └── AppLoginButton.vue
├── layouts
│ └── default.vue
└── pages
└── index.vue
```

#### Elements
`components/elements/AppButton.vue`:

```vue



export default {
methods: {
click (e) {
this.$emit('click', e)
}
}
}

```

#### Matters
`components/matters/AppLoginButton.vue`:

```vue

Login

import AppButton from '~/components/elements/AppButton'

export default {
components: {
AppButton
},
methods: {
login () {
// login
}
}

```

#### Pages
`layouts/default.vue`:

```vue





```

`pages/index.vue`:

```vue


Cancel

import AppButton from '~/components/elements/AppButton'
import AppLoginButton from '~/components/matters/AppLoginButton'

export default {
components: {
AppButton,
AppLoginButton
}
}

```

## Badge
You can use the badge to show that your project is using Matter Design.

[![using Matter Design](https://img.shields.io/badge/using-Matter%20Design-brightgreen)](https://github.com/munierujp/matter-design)

Markdown:

```md
[![using Matter Design](https://img.shields.io/badge/using-Matter%20Design-brightgreen)](https://github.com/munierujp/matter-design)
```

HTML:

```html
using Matter Design
```