New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@indielayer/ui

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@indielayer/ui

Indielayer UI Components with Tailwind CSS build for Vue 3

  • 0.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
506
decreased by-5.6%
Maintainers
1
Weekly downloads
 
Created
Source
Indielayer

Tools for creators.

Indielayer UI

Tailwind CSS UI components for Vue.js 3 / Nuxt.js 3. Build and prototype fast web applications.

Getting Started

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

1. Add @indielayer/ui dependency to your project
# using npm
npm install @indielayer/ui --save-dev
# using yarn
yarn add @indielayer/ui --dev
2. Add Indielayer UI Tailwind CSS preset tailwind-preset.js to your Tailwind CSS configuration file tailwind.config.js with the purge css configurations
// tailwind.config.js
const indielayer = require('@indielayer/ui/tailwind.preset')

module.exports = {
  // load indielayer ui presets
  presets: [indielayer],
  // allow PurgeCSS to analyze components
  content: [
    'node_modules/@indielayer/ui/src/**/*.vue',
    './src/**/*.vue',
  ],
};

3. Load the plugin

Load the plugin in your vue 3 application
import { createApp } from 'vue'
import UI from '@indielayer/ui'

const app = createApp(App)

app.use(UI, { prefix: 'X' })

// or
import {
  Input,
  Button,
  // ...
} from '@indielayer/ui'

app.component('XButton', Button)
app.component('XInput', Input)
Load the module in your nuxt 3 application
import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
  css: ["~/assets/css/tailwind.css"],
  buildModules: ['@indielayer/ui/nuxt'],
  build: {
    postcss: {
      postcssOptions: {
        plugins: {
          tailwindcss: {},
          autoprefixer: {},
        },
      },
    },
  },
})

📖  Read more

Keywords

FAQs

Package last updated on 29 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc