Coder Social home page Coder Social logo

huang-x-h / mijin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lecoueyl/mijin

1.0 1.0 0.0 8.74 MB

Tailwind CSS UI components build for Vue.js / Nuxt.js

Home Page: https://lecoueyl.github.io/mijin.web

License: MIT License

JavaScript 54.38% Vue 45.57% Shell 0.04%

mijin's Introduction

mijin-logo

Version Downloads License Coverage Status semantic-release

mijin

Tailwind CSS UI components build for Vue.js 2.x / Nuxt.js 2.x

Features

  • πŸ’… Component style relying uniquely on Tailwind CSS presets classes
  • πŸ“± Responsive
  • πŸŒ— Support dark and light mode
  • πŸ•΅οΈ No dependencies

Getting Started

tailwindcss version >= 2.0 must be already present in your application

  1. Add mijin dependency to your project
# using npm
npm install mijin tailwindcss --save-dev
# using yarn
yarn add mijin tailwindcss --dev
  1. Add mijin Tailwind CSS preset tailwind-preset.js to your Tailwind CSS configuration file tailwind.config.js
// tailwind.config.js
const mijin = require('mijin/dist/tailwind-preset.js');

module.exports = {
  // load mijin presets
  presets: [
    mijin,
  ],
  // allow PurgeCSS to analyze mijin components
  purge: {
    content: [
      'node_modules/mijin/src/components/**/*.vue',
    ],
  },
};
  1. Load the plugin in your vue application

Vue.js

import Vue from 'vue'
import Mijin from 'mijin'

Vue.use(Mijin)

// or load specific components

import {
  Button
  Input,
  // ...
} from 'mijin'

Vue.component('MjButton', Button)
Vue.component('MjInput', Select)

Nuxt.js

Add mijin.js file to your plugins directory

// plugins/mijin.js
import Vue from 'vue';

Vue.use(Mijin)

Load the plugin from nuxt.config.js

// nuxt.config.js
...
  plugins: [
    '~/plugins/mijin.js',
  ],
...

πŸ“– Β Read more

Support

Bug report

If you see an error message or run into an issue, please create a bug report, this effort is valued and it will help everybody.

Create bug report

Feature request

If you're missing a component or want to add a new feature, please submit a request. If a similar feature request already exists, don't forget to leave a "+1". Adding some information about the feature will be embraced warmly.

Submit feature request

Contributing

Mijin is an open source project. We are committed to a fully transparent development process and highly appreciate any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the community.

Please refer to our contribution guidelines.

mijin's People

Contributors

lecoueyl avatar semantic-release-bot avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

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.