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 🙏

© 2025 – Pkg Stats / Ryan Hefner

quik-css

v1.0.2

Published

A modern utility-first CSS framework for rapid web development

Readme

Quik CSS

A modern utility-first CSS framework for rapid web development.

Installation

npm install quik-css

Usage

1. Basic Setup

Add the CSS file to your HTML:

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="node_modules/quik-css/css/styles.css">
</head>
<body>
    <!-- Your content -->
</body>
</html>

Or import it in your CSS file:

@import 'quik-css/css/styles.css';

2. Layout Examples

Container

<div class="container">
    <!-- Content with max-width and centered -->
</div>

Flexbox

<div class="flex">
    <div>Item 1</div>
    <div>Item 2</div>
</div>

<!-- Flex with space between -->
<div class="flex space-between">
    <div>Left</div>
    <div>Right</div>
</div>

<!-- Flex column -->
<div class="flex-col">
    <div>Top</div>
    <div>Bottom</div>
</div>

Grid

<div class="grid" style="grid-template-columns: repeat(3, 1fr);">
    <div>Grid Item 1</div>
    <div>Grid Item 2</div>
    <div>Grid Item 3</div>
</div>

3. Typography

<h1 class="main-heading">Main Heading</h1>
<h2 class="medium-heading">Medium Heading</h2>
<p class="normal-font">Normal text</p>
<p class="tiny-font">Small text</p>
<p class="big-font">Large text</p>

<!-- Font weights -->
<p class="fw-thin">Thin weight</p>
<p class="fw-normal">Normal weight</p>
<p class="fw-thick">Thick weight</p>

4. Spacing

<!-- Margin -->
<div class="m-4">Margin all sides</div>
<div class="mt-4">Margin top</div>
<div class="mb-4">Margin bottom</div>
<div class="ml-4">Margin left</div>
<div class="mr-4">Margin right</div>

<!-- Padding -->
<div class="p-4">Padding all sides</div>
<div class="pt-4">Padding top</div>
<div class="pb-4">Padding bottom</div>
<div class="pl-4">Padding left</div>
<div class="pr-4">Padding right</div>

5. Colors

<!-- Background colors -->
<div class="bg-white">White background</div>
<div class="bg-black">Black background</div>
<div class="bg-light-red">Light red background</div>
<div class="bg-deep-red">Deep red background</div>
<div class="bg-light-green">Light green background</div>
<div class="bg-deep-green">Deep green background</div>
<div class="bg-light-blue">Light blue background</div>
<div class="bg-deep-blue">Deep blue background</div>

<!-- Text colors -->
<p class="font-white">White text</p>
<p class="font-black">Black text</p>
<p class="font-red">Red text</p>
<p class="font-green">Green text</p>
<p class="font-blue">Blue text</p>

6. Components

Buttons

<button class="btn btn-primary">Primary Button</button>
<button class="btn btn-secondary">Secondary Button</button>
<button class="btn" disabled>Disabled Button</button>

Cards

<div class="card p-4">
    <h3 class="medium-heading">Card Title</h3>
    <p>Card content goes here</p>
</div>

Forms

<form class="form-group">
    <div class="mb-2">
        <label class="form-label">Text Input</label>
        <input type="text" class="form-control" placeholder="Enter text">
    </div>
    
    <div class="mb-2">
        <label class="form-label">Textarea</label>
        <textarea class="form-control" placeholder="Enter message"></textarea>
    </div>
    
    <button type="submit" class="btn btn-primary">Submit</button>
</form>

Tables

<table class="normal-table w-100p">
    <thead>
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Row 1, Cell 1</td>
            <td>Row 1, Cell 2</td>
        </tr>
    </tbody>
</table>

Alerts

<div class="alert bg-light-red">Danger alert</div>
<div class="alert bg-light-green">Success alert</div>
<div class="alert bg-light-blue">Info alert</div>

7. Dark Mode

Add this to your HTML:

<button id="darkModeToggle">Toggle Dark Mode</button>

And this JavaScript:

const darkModeToggle = document.getElementById('darkModeToggle');
const html = document.documentElement;

function toggleDarkMode() {
    const isDark = html.getAttribute('data-theme') === 'dark';
    const newTheme = isDark ? 'light' : 'dark';
    html.setAttribute('data-theme', newTheme);
    localStorage.setItem('theme', newTheme);
}

darkModeToggle.addEventListener('click', toggleDarkMode);

// Check for saved theme preference
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
    html.setAttribute('data-theme', savedTheme);
}

8. Responsive Design

The framework includes responsive classes:

  • hide-mobile: Hides element on mobile
  • hide-tablet: Hides element on tablet
  • w-100p-mobile: Full width on mobile
  • flex-mobile-col: Column direction on mobile

Example:

<div class="flex flex-mobile-col">
    <div class="w-20p w-100p-mobile">Sidebar</div>
    <div class="w-80p w-100p-mobile">Main Content</div>
</div>

Customization

You can customize the framework by overriding CSS variables:

:root {
    --primary-color: #your-color;
    --secondary-color: #your-color;
    --bg-color: #your-color;
    --text-color: #your-color;
    /* Add more customizations */
}

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.