npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@behzodjon/platon-ui-kit

v0.1.8

Published

A Vue 3 UI component library built with Tailwind CSS

Readme

Platon UI Kit

A Vue 3 UI component library built with Tailwind CSS, featuring modern, accessible, and customizable components.

Installation

npm install @behzodjon/platon-ui-kit

Usage

Setup

Step 1: Import the CSS file in your main application file:

import '@behzodjon/platon-ui-kit/style.css'

Step 2: Wrap your components with the platon-ui class to enable scoped styles:

All Platon UI Kit components must be wrapped in an element with the platon-ui class. This ensures complete style isolation and prevents conflicts with your project's existing styles.

Option A: Wrap your entire app (Recommended)

<!-- index.html -->
<div id="app" class="platon-ui"></div>

Or in your root component:

<!-- App.vue -->
<template>
  <div class="platon-ui">
    <!-- Your entire app here -->
    <RouterView />
  </div>
</template>

Option B: Wrap individual sections

<template>
  <div>
    <!-- Your existing project styles -->
    <h1>My Project</h1>

    <!-- Platon UI Kit components wrapped -->
    <div class="platon-ui">
      <Button variant="primary">Click me</Button>
    </div>
  </div>
</template>

Importing Components

import { Button, Input, Badge, Table } from '@behzodjon/platon-ui-kit'

Complete Example

<template>
  <div class="platon-ui">
    <Button variant="primary" size="medium">
      Click me
    </Button>

    <Input
      v-model="text"
      label="Enter text"
      placeholder="Type here..."
    />

    <Badge variant="success">
      5
    </Badge>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { Button, Input, Badge } from '@behzodjon/platon-ui-kit'

const text = ref('')
</script>

Why is the platon-ui class required?

The platon-ui class ensures:

  • Style Isolation: Platon UI Kit styles won't affect your existing project styles
  • No Conflicts: Your project's CSS (Bootstrap, Tailwind, custom styles) won't override Platon UI Kit components
  • Predictable Behavior: Components will always render correctly regardless of your project's CSS setup

All Platon UI Kit utility classes are prefixed with pl: (e.g., pl:rounded-xl, pl:bg-primary) and are scoped to the .platon-ui class for maximum compatibility.

Components

Button

  • Multiple variants: primary, secondary, info, success, warning, error
  • Sizes: small-x, small, medium, large, large-x
  • Outlined style support
  • Icon-only mode
  • Badge support via ButtonWithBadge

Input

  • Label support
  • Clearable option
  • Icon slots (left and right)

Badge

  • Multiple variants matching button styles
  • Sizes: sm, md, lg

MultiselectButton

  • Multi-option selection
  • Customizable variants

Table

Complete table component set:

  • Table, TableHeader, TableBody, TableFooter
  • TableRow, TableHead, TableCell
  • TableCaption, TableEmpty

Tooltip

  • TooltipProvider, Tooltip, TooltipTrigger, TooltipContent

Icons

Pre-built icons: IconCheck, IconClose, IconSearch, IconDocs, IconUser

Requirements

  • Vue 3.5+
  • Tailwind CSS (peer dependency - you need to configure it in your project)

Development

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Build Library

npm run build:lib

Storybook

npm run storybook

Lint with ESLint

npm run lint

Migration from v0.1.x

If you're upgrading from version 0.1.x, you need to wrap your components with the platon-ui class.

Before (v0.1.x):

<template>
  <Button variant="primary">Click me</Button>
</template>

<script setup>
import { Button } from '@behzodjon/platon-ui-kit'
import '@behzodjon/platon-ui-kit/style.css'
</script>

After (v0.2.0+):

<template>
  <div class="platon-ui">
    <Button variant="primary">Click me</Button>
  </div>
</template>

<script setup>
import { Button } from '@behzodjon/platon-ui-kit'
import '@behzodjon/platon-ui-kit/style.css'
</script>

Why this change? Version 0.2.0 introduces complete style isolation to prevent conflicts with your project's existing CSS frameworks (Bootstrap, Tailwind, etc.). This ensures Platon UI Kit components work perfectly alongside any other styling solution without interference.

License

MIT