mgplus

1.2.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i mgplus

Weekly Downloads

22

Version

1.2.5

License

MIT

Unpacked Size

265 kB

Total Files

58

Last publish

Collaborators

  • evodim