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

vui-css-utility

v1.0.1

Published

Versatile Utility Classes for SCSS

Downloads

2

Readme

VUI - Versatile Utility Classes for SCSS

VUI is a powerful utility class generator for SCSS that empowers developers to create and maintain consistent design systems with ease. With VUI, you can simplify your stylesheets by using utility classes that cover a wide range of design properties, including colors, spacing, typography, shadows, and more. This package is designed to combine the simplicity of Bootstrap with the flexibility of Tailwind CSS, offering a versatile solution for building stylish and responsive web interfaces.

Features

  • Design System API: VUI provides an API to streamline the development of your design system, making it easy to create, customize, and maintain utility classes for your project.

  • Build Anything: Whether you're working on a simple webpage or a complex web application, VUI empowers you to build the UI you want, without the need for excessive custom CSS.

  • Responsive Everything: VUI supports responsive design with utility variants that allow you to adapt your interface to different screen sizes.

  • Hover and Focus States: Easily apply hover and focus states to your elements by using utility classes, maintaining consistency in user interactions.

  • Direction Support: VUI offers the possibility of different designs for left-to-right (LTR) and right-to-left (RTL) directions, allowing you to cater to various language preferences.

  • Dark and Light Modes: Implement dark and light mode designs seamlessly by adding the "dark" class to your HTML body and using dark mode-specific classes for colors, backgrounds, and more. Your users will appreciate the reduced eye strain during late-night browsing.

Installation

You can install VUI via npm:

npm install vui-css-utility

Or yarn:

yarn add vui-css-utility

Once installed, you can include the SCSS files in your project to start using VUI utility classes.

Usage

Dark & Light Mode

To enable dark mode, add the "dark" class to your HTML body:

<body class="dark">
  <!-- Your content here -->
</body>

Now you can apply dark mode utility classes, such as:

<button class="v-bg-gray-500 dark:v-bg-gray-100">
  Save changes
</button>

Rtl & Ltr Direction

You can switch between right-to-left (RTL) and left-to-right (LTR) directions by adding the "rtl" or "ltr" class to the HTML body:

<body class="rtl">
  <!-- Your RTL content here -->
</body>

Now you can use direction-specific utility classes like "rtl:v-text-right" to control text alignment.

Responsive Design

VUI supports responsive design with variants based on screen sizes. For example:

<p class="sm:v-font-size-10 md:v-font-size-12 lg:v-font-size-16 xl:v-font-size-18 xxl:v-font-size-22">
  Responsive text
</p>

The above class will apply different font sizes at various screen widths.

Spacer Management

You can easily manage spacing with classes for margins and padding:

<p class="v-mt-3 v-mb-8 v-ml-4 v-mr-9 v-pt-2 v-pb-1 v-pl-4 v-pr-7">
  Margins and padding example
</p>

This approach simplifies the handling of spacing in your layout.

Grid System and Flex Basis

VUI provides a comprehensive set of responsive flexbox utilities for managing grid layouts, alignment, and sizing. You can customize grid columns, rows, and more with classes like "v-grid-cols-2" and "v-col-span-6". Responsive variations are also available to adapt your layout to different screen sizes.

Contribute

If you'd like to contribute to VUI, please fork this repository, make your changes, and create a pull request. We welcome contributions that enhance the package and help make it even more versatile and user-friendly.

License

VUI is released under the MIT License. You're free to use and modify it in your projects, both personal and commercial.

Websites Designed with VUI

Here are some websites that have been designed using the VUI design system:

Usability

You can customize each class using various features, including dark mode, hover, responsiveness, direction, and importance. The properties.scss file is where you can change the properties of each class according to your specific project requirements.


With VUI, you have a robust SCSS utility package that simplifies the process of creating a well-engineered design system. Say goodbye to arbitrary values in your stylesheets and embrace the power of utility classes to build consistent and beautiful web interfaces.