0.0.5 • Published 6 months ago

pxd v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

PXD

Vue component library based on radix-vue and geist design system. Everything is just right.

!IMPORTANT The library is still under development and may undergo major changes at any time.

!IMPORTANT This is a COMMUNITY PROJECT, not associated with Vercel, originating from Vercel design system. Did not strictly follow its implementation, and added some personal ideas.

Install

pnpm i pxd

Usage

Styles

// tailwind.config.js

export default {
  content: [
    './src/**/*.{ts,tsx,vue}',
    './node_modules/pxd/dist/components/**/*.js',
  ]
}

vars.css

// main.ts
import 'pxd/vars.css'

Auto import

// vite.config.js
import PxResolver from 'pxd/resolver'
import VueComponents from 'unplugin-vue-components/vite'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    VueComponents({
      resolvers: [
        PxResolver()
      ]
    })
  ]
})

Global import

We strongly recommend using automatic import because it can significantly reduce the package size.

Manual Import

// main.ts

// All components only need to import this style file.
import 'pxd/vars.css'
<script setup>
import Button from 'pxd/components/button/index.js'
</script>

<template>
  <Button>
    Button
  </Button>
</template>

Acknowledgement

rankings are in no particular order, they are all very important to this project.

0.0.5

6 months ago

0.0.4

7 months ago

0.0.3

1 year ago

0.0.2

2 years ago

0.0.1

3 years ago