0.17.0 • Published 3 years ago

pongo-components-vue v0.17.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

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

0.11.0

3 years ago

0.11.1

3 years ago

0.11.2

3 years ago

0.15.0

3 years ago

0.15.1

3 years ago

0.17.0

3 years ago

0.13.4

3 years ago

0.18.1-next

3 years ago

0.17.2-next

3 years ago

0.9.2

3 years ago

0.18.0-next

3 years ago

0.16.5

3 years ago

0.16.7

3 years ago

0.16.8

3 years ago

0.10.2

3 years ago

0.12.1

3 years ago

0.14.0

3 years ago

0.12.2

3 years ago

0.14.1

3 years ago

0.12.3

3 years ago

0.16.0

3 years ago

0.17.4-next

3 years ago

0.17.5-next

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.9.1

3 years ago

0.7.2

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.3.0

3 years ago

0.2.7

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago