Skip to content
项目

关于

The modern web's design system.

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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


About

Mdash is a design system. It is based 100% on web standards following the TAC CSS methodology, which has helped Mdash achieve these engineering goals:

  • Smallest overhead possible - all of Mdash is just one 6kb stylesheet
  • Compatible with every web project now and in the future
  • Leverages the modern web platform
  • Easiest codebase to maintain, use, and debug

Try Mdash right now by linking to the CDN files below and visiting the doc site for code samples and full API documentation.

Quick Start

Insert this in the <head> section of your project and you're all set:

<link href="https://unpkg.com/[email protected]/dist/m-.woff2" rel="preload" as="font" crossorigin>
<link href="https://unpkg.com/[email protected]/dist/m-.css" rel="stylesheet">

Mdash is also installable as a package: npm install m-. The path to the stylesheet is node_modules/m-/dist/m-.css. You should still preload the icon font.

Contributions

Thank you for your interest in improving Mdash! You'll need to clone or fork the repo and have Node.js installed.

Run these and start making source code changes

  1. npm install
  2. npm run watch

Edit doc site and preview your changes

  1. Edit /docs/index.html
  2. Open it in your browser to see changes

Opening a pull request

  1. Be sure your changes have followed the TAC CSS methodology
  2. If editing docs, please follow the patterns you see in that file
  3. For the PR summary in GitHub please use the conventional commit format

Some additional notes

The project follows the TAC CSS methodology. Getting familiar with that will help when making contributions.

Your IDE might warn about unknown custom HTML tags. If that's the case, this is the list of custom tags your IDE needs to know about:

m-accordion, m-alert, m-badge, m-card, m-breadcrumb, m-container, m-crumb, m-dot, m-icon, m-menu, m-tab, m-tabs, m-tag

Browser Support

Mdash works with the latest versions of all mainstream browsers.

探索相关项目

加载中…