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

varvara-css

v0.4.0

Published

CSS library of customizable UI components based on CSS Variables.

Downloads

8

Readme

Varvara CSS

NPM Version (with dist tag)

Varvara CSS is a library of prebuilt UI components designed for smooth and simple browsing experiences, implemented using simple class names and easily customizable with CSS Variables.

It can be used alongside Tailwind CSS and with any JavaScript framework.

Install

CDN

The easiest way to use Varvara CSS is through a CDN:

@import url('https://unpkg.com/varvara-css');

Alternatively, add this line to the head tag of your HTML:

<link href="https://unpkg.com/varvara-css" rel="stylesheet" type="text/css" />

You'll have access to both variables and components from the same import.

NPM

Another option is to add Varvara CSS to your own build process:

npm i varvara-css

After, you have to import the package into your stylesheet:

@import 'varvara-css/css';

[!TIP] An @import rule must be defined at the top of the stylesheet

Tailwind Plugin

Finally, you can extend Tailwind CSS with Varvara CSS.

Install Varvara CSS via NPM:

npm i varvara-css

Make sure Tailwind CSS is also installed.

Next, modify your tailwind.config.js file to include the Varvara CSS plugin:

import varvara from 'varvara-css'

module.exports = {
  plugins: [varvara]
  // ...
}

Your Tailwind setup is now extended with Varvara CSS, ready to use its variables and components in your project.

Usage

Once installed Varvara CSS, copy and paste components classes to get started.

Simply add a component class like this:

<button class="va-button">Example button</button>

Customize

Each component already has its own CSS variables, with basic properties such as padding, background color, border, etc... You can modify to customize it.

--va-button-font-size: var(--va-font-size-2);
--va-button-padding: var(--va-space-3);
--va-button-border-width: var(--va-border-width);
--va-button-border-color: var(--va-border-color);
--va-button-background-color: var(--va-surface-primary);

Also you can override the styles if you prefer:

.va-button {
  font-family: 'Rubik Variable', sans-serif;
}

Changelog

For a detailed record of changes, new features, and fixes in each version, see our CHANGELOG.md.

Contributing

Feel free to explore, test, and provide feedback. Your contribution is highly appreciated as we work towards improving and stabilizing the project.

License

MIT License © 2024 Marc Mariné