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

@dewib/dw-ui

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dewib/dw-ui

Dewib ui is an open source ui library for developing HTML/CSS and JS websites. This package is developed with Vue.js and tailwindcss and to use with NuxtJS

  • 4.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dw-ui

Dewib ui is an open source ui library for developing HTML/CSS and JS websites. This package is developed with Vue.js and tailwindcss and to use with NuxtJS

Get started with the documentation

Requirement

Dewib ui provide @nuxtjs/tailwindcss by default so please remove it or use v4 version

Setup

yarn add @dewib/dw-ui # yarn
npm i @dewib/dw-ui # npm

Edit nuxt.config.js

modules: [
  '@dewib/dw-ui'
]

dw-ui using tailwindcss-forms plugin as recommanded by tailwindui If you want to overide default https://github.com/tailwindlabs/tailwindcss-forms config please overide the plugin An exemple is provided in storybook/plugins/custom.form.js

import forms from 'path/to/custom'

modules: [
  ['@dewib/dw-ui', {
    forms
  }]
]

Theme

Dewib ui allows you to customize the default theme https://github.com/gaetansenn/dw-ui/blob/master/lib/utils/config.js To do so create this path dewib/config.js to the root of your project

export default {
  ui: {
    Button: {
      variants: {
        'yellow-600': 'bg-yellow-600 hover:opacity-75 text-white border-yellow-600',
        'red-50': 'bg-red-50 hover:opacity-75 text-red-600 border-red-50',
      },
      size: (props) => {
        return ({
          sm: 'px-3 py-1 text-sm leading-4',
          md: 'px-3 py-2 text-sm leading-4',
          lg: 'px-3 py-3 text-sm leading-4'
        })[props.size]
      }
    },
  }
}

Keywords

FAQs

Package last updated on 24 May 2024

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