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

pongo-components-vue

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pongo-components-vue

Vue 3 components library based on Tailwind CSS for Pongo 🚀

  • 0.17.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Pongo Components Vue

Vue 3 components library based on Tailwind CSS for Pongo 🚀

  • Installation
  • Usage example
  • Components list
  • Test components

Installation

1. Install @heypongo/pongo-components-vue

npm install @heypongo/pongo-components-vue

OR install the public package:

npm install pongo-components-vue

2. Install TailwindCSS

This library uses TailwindCSS classes by default. To install TailwindCSS follow his official documentation: https://tailwindcss.com/docs/installation

3. Add the @tailwindcss/forms plugin

The default theme of this library depends on the @tailwindcss/forms plugin. To use it, follow the steps on the plugin source page. https://github.com/tailwindlabs/tailwindcss-forms

4. Add the Pongo Tailwind Config

// tailwind.config.js
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')

module.exports = {
  purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', './node_modules/litepie-datepicker/**/*.js'],
  darkMode: false, // or 'media' or 'class'
  theme: {
    colors: {
      transparent: 'transparent',
      current: 'currentColor',
      black: colors.black,
      white: colors.white,
      gray: colors.blueGray,
      red: colors.red,
      yellow: colors.amber,
      green: colors.emerald,
      blue: colors.cyan,
      indigo: colors.blue,
      purple: colors.violet,
      pink: colors.pink,
      'litepie-primary': colors.blue, // color system for light mode
      'litepie-secondary': colors.coolGray // color system for dark mode
    },
    extend: {
      fontFamily: {
        sans: ['Inter var', ...defaultTheme.fontFamily.sans]
      }
    }
  },
  variants: {},
  plugins: [require('@tailwindcss/forms')]
}

Usage example

Here is an example for a Button :

<template>
  <PongoButton>{{ $t('pages.myPage.buttons.action') }}</PongoButton>
</template>
<script>
import PongoButton from '@heypongo/pongo-components-vue'

export default {
  components: {
    PongoButton
  }
}
</script>

Components list

Test components

Clone this repository

git clone git@github.com:heypongo/PongoComponentsVue.git

Copy .env.example file to .env and configure variables :

cp .env.example .env

Install dependencies

npm i

Run the server

npm run dev

Go to localhost:3000

Keywords

FAQs

Package last updated on 07 Oct 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