
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
varvara-css
Advanced tools
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.
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.
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
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.
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>
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-background-color-default);
Also you can override the styles if you prefer:
.va-button {
font-family: 'Rubik Variable', sans-serif;
}
For a detailed record of changes, new features, and fixes in each version, see our CHANGELOG.md.
Feel free to explore, test, and provide feedback. Your contribution is highly appreciated as we work towards improving and stabilizing the project.
MIT License © 2024 Marc Mariné
FAQs
CSS library of customizable UI components based on CSS Variables.
The npm package varvara-css receives a total of 107 weekly downloads. As such, varvara-css popularity was classified as not popular.
We found that varvara-css demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.