Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Tailwind CSS UI components for Vue.js 2.x and Nuxt.js 2.x with dark mode, responsive design, and no extra dependencies.
Mijin is an open-source Tailwind CSS UI component library for Vue.js 2.x and Nuxt.js 2.x that provides styled components with zero additional runtime dependencies.
Mijin is an npm-distributed component library that generates UI components such as Button and Input, styled entirely through Tailwind CSS preset classes. It runs inside Vue.js 2.x and Nuxt.js 2.x applications that already have Tailwind CSS version 2.0 or higher installed. The library is maintained on GitHub at github.com/lecoueyl/mijin and has a documentation site at lecoueyl.github.io/mijin.web/docs. Its key outputs are the Vue components you can register globally or individually, a tailwind-preset.js file, and a documented PurgeCSS configuration for production builds.
tailwind-preset.js, which you load into the presets array of tailwind.config.js.node_modules/mijin/src/components/**/*.vue to your purge content list so unused component styles are removed.Vue.use(Mijin) to load everything, or import components like Button and Input and register them as MjButton and MjInput.plugins/mijin.js so components are available on every page and layout.Follow the README's getting-started steps:
mijin and tailwindcss as dev dependencies using npm or yarn.mijin/dist/tailwind-preset.js to the presets array in tailwind.config.js, and add node_modules/mijin/src/components/**/*.vue to the purge.content array.Vue.use(Mijin), or import Button, Input, and other components and register them manually.plugins/mijin.js with Vue.use(Mijin) and list ~/plugins/mijin.js in the plugins array of nuxt.config.js.Note that Tailwind CSS version 2.0 or higher must already be present in the project.
No. The README states Mijin is built for Vue.js 2.x and Nuxt.js 2.x. There is no mention of Vue 3 support, so treat it as a Vue 2 / Nuxt 2 library until the project announces otherwise.
Yes. The getting-started instructions explicitly require Tailwind CSS version 2.0 or higher to already exist in your application before adding Mijin.
Yes. The README shows importing Button, Input, and other components individually and registering them under custom names like MjButton and MjInput.
Create a file at plugins/mijin.js containing import Vue from 'vue'; Vue.use(Mijin), then add '~/plugins/mijin.js' to the plugins array in nuxt.config.js.
The README lists "No dependencies" as a feature, meaning the package does not bring any third-party runtime dependencies beyond the Vue and Tailwind stack your project already uses.
