Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jfbrennan/m-

The modern web's design system.
https://github.com/jfbrennan/m-

6kb better-code css cures-coding-migraines custom-elements fun html javascript less-code more-winning no-code not-react painless pwa spa ssr standards static-site the-m-is-for-freedom

Last synced: 30 days ago
JSON representation

The modern web's design system.

Awesome Lists containing this project

README

        



Mdash logo


A design system that fully embraces web standards.


Mdash seeks to leverage HTML, not replace it or try to outsmart it.
This makes Mdash ideal for all web projects and skill levels.


linkable | tiny 6kb | responsive | accessible | zero dependencies



Mdash UI elements are built with 100% web standards following the [TAC CSS methodology](https://jordanbrennan.hashnode.dev/tac-a-new-css-methodology). This makes Mdash [extremely light](https://m-docs.org/#performance), very fast, and compatible with any type of web project.

Mdash can work with any framework client-side and server-side or no framework at all because it's made from native HTML, custom HTML tags, and [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements). Be it SSR, SPA, PWA, static site, and even some email templates - whatever type of project you have Mdash will work. This is especially useful to organizations looking to share a design system across products.

Try Mdash right now by simply linking to the CDN files below and visiting the [doc site](https://m-docs.org) for code samples and full API documentation.

To apply your own design language, fork and customize Mdash. It's 100% vanilla HTML, CSS, and JavaScript.

## Quick start
This is the web. Include these files in `` and you're all set!
```html

```
Or install via NPM and bundle with your own assets: `npm install m-` (built files are located in `/dist`)

Then try some Mdash:
```html
Success!
```

## Browser support
Mdash works with the latest versions of all mainstream browsers.

## Working on this project
_Pre-reqs:_ [Node](https://nodejs.org) and [Gulp CLI](https://gulpjs.com/docs/en/getting-started/quick-start)

1. Clone the repo (or fork)
1. `cd m-`
1. `npm install`
1. `gulp watch`
1. `cd docs`
1. `npm install`
1. `npm start`

That builds Mdash, watches for changes, and starts the doc site. Start coding!

### Developer notes
Custom Element constructors have strict rules about what you can safely do inside them. Please get familiar with [Requirements for custom element constructors and reactions](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance).

Some components are custom HTML tags that require no JavaScript. Other components are Custom Elements and for these the styles are still maintained in a separate CSS file.

The [TAC CSS methodology](https://jordanbrennan.hashnode.dev/tac-a-new-css-methodology) is followed.

Some IDEs complain about unknown HTML tags. If that's the case, add this list to make it happy:
```
m-accordion, m-alert, m-autocomplete, m-badge, m-box, m-breadcrumb, m-col, m-container, m-crumb, m-dot, m-icon, m-loader, m-menu, m-row, m-tab, m-tabs, m-tag, m-vbar
```