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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@citizenplane/pimp

v8.6.3

Published

<div align="center"> <a href="https://pimp.citizenplane.com" target="_blank"> <img alt="orbit-components" src="https://i.imgur.com/ZgJ9Sfq.png" width="100px" /> </a> </div>

Downloads

705

Readme


Pimp mission

Pimp aims to bring order and consistency to all of our products and processes. We elevate user experience and increase the speed and efficiency of how we design and build products.

Installation

pimp components are served as an npm package.

Add them to your project by running:

// with npm
npm install @citizenplane/pimp

// with yarn
yarn add @citizenplane/pimp

Usage

In a nuxt project

  1. Add this line to your nuxt-config.js:
// nuxt-config.js
...
css: [
  { src: '@citizenplane/pimp/dist/pimp.css' },
],
...
  1. Include any of our components in your project and use it:
<template>
  <cp-button appearance="primary" color="purple" />
</template>
<script>
import CpButton from '@citizenplane/pimp'

export default {
  components: {
    CpButton,
  },
}
</script>

If you want to use any component without having to import them manually, you can create a plugin:

  1. Create a plugin called citizenplane-pimp.js:
// ~/plugins/citizenplane-pimp.js

import Vue from 'vue'
import Pimp from '@citizenplane/pimp'

Vue.use(Pimp)
  1. Add this line to your nuxt-config.js:
// nuxt-config.js
...
plugins: [
  { src: '~plugins/citizenplane-pimp.js' },
]
...
  1. Use components directly in your project without having to import nor declaring them:
<template>
  <cp-button appearance="primary" color="purple" />
</template>

Components

Now that you're all set up, you can retrieve components documentation on pimp.citizenplane.com.

CitizenPlane's design system hero banner

🧑‍💻 Contributing to Pimp

We are working on making this project a fully open source. We appreciate any contributions you might make.

🍴 Step 1. Fork this repository

In order to contribute to Pimp, you need to fork this repo, and develop on your own local clone.

If you don't know how to do so, follow this guide!

📖 Step 2. Get playground up and running

First, move into your local cloned repository with the help of cd, after that install your node_modules with:

// with npm
npm install

To actually start seeing the components you have to run the project with the command:

npm run dev

Now go to http://localhost:8080 in your browser.

🛠 Step 3. Make your changes

Now you can start developing!

All the components are under the src/components/ directory and associated code changes will automatically be reflected in the playground.

In order to run the documentation page locally, run these commands in your terminal:

cd docs
npm install
npm run dev

Now you can visit http://localhost:8080/ in your browser.

Documentation code is under the docs directory. A big portion of these docs are written in markdown using Vuepress, if you've never used Vuepress before, check out these docs.

🏆 Step 4. Making your pull request

To be done

🥂 Step 5. Pat yourself on the back

Congrats, you're officially a Pimp contributor!

Feedback

We want to provide only components of the highest quality. We can’t do that without your feedback. If you have any suggestions about what we can do to improve components, please report it directly as an issue or drop us a line at [email protected].

👏 Respect earns Respect

Please respect our Code of Conduct, in short:

  • Using welcoming and inclusive language
  • Being respectful of differing viewpoints and experiences
  • Gracefully accepting constructive criticism
  • Focusing on what is best for the community
  • Showing empathy towards other community members

License

Pimp is released under the MIT license.

Copyright © 2021 CitizenPlane, Inc.