Giter VIP home page Giter VIP logo

mgplus's Introduction

MgPlus (Mg+)

Mg+ is a micro CSS library

Formerly called Milligram Plus, Mg+ was based on milligram which provides a minimal setup of styles for a fast and clean starting point

Only one css file, 50KB minified

This library is in active development, some breaking may occurs until next stable release including a new documentation portal

Demo Page

Latest preview

Features

  • Lightweight and many components
  • Reponsive and mobile first design
  • Sass sources could be extended or composed for your custom needs

Usefull components was included in this library:

  • Custom variables
  • Theming (dark theme)
  • Navs
  • Tabs
  • Forms inputs
  • Badges
  • Modals
  • Grid system
  • Icon helper including some css icons
  • Styling helpers like tailwindcss
  • Optionnal vanilla js plugin to handle ui interaction with some css components

Mg+ is specially designed to quickly create a website or a small page with minimal dependencies for better performance and higher productivity

Getting started

Install dependencies from npm :

npm

$ npm install mgplus

yarn

$ yarn add mgplus

Finaly import mgplus.css file to your project

Alternatively, you can import directly css library from official cdn resources without nodejs stack:

mgplus.css

Optionaly: use vanilla js plugin to handle UI interaction for some components (toggle classes on dom events)

mgplus-dom.js

Js extensions are required only to handle interactions with dom events for navs, tabs, dropdowns, modals, etc. It could be replaced by creating wrapped UI components with react, angular or other any UI framework

For debugging run demo site directly from the repository :

  • Clone the repository
$ git clone https://github.com/Evodim/mgplus.git
  • Install packages
$ npm install
  • To start demo page:
$ npm run start 
  • Debugging: Run watch command to enable hot reload for the scss library
$ npm run watch 

In order to start watch command, you should launch demo page with start command in another process

  • To build only the library :
$ npm run build

yarn commands are also supported

License

Licensed under the MIT License.

mgplus's People

Contributors

medevod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

baezfb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.