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

neo-retro-ui

v0.5.3

Published

A Neo-Retro UI component library

Downloads

53

Readme

NeoRetro UI with Tailwind CSS - Usage Guide

npm GitHub license

This guide will help you integrate the NeoRetro UI components into your Tailwind CSS project.

Preview Demo

Installation

  1. First, make sure you have Tailwind CSS installed in your project. If not, follow the official Tailwind CSS installation guide.

  2. Install the NeoRetro UI libaray

    npm install neo-retro-ui
  3. In your tailwind.config.js file, require and spread the NeoRetro UI configuration:

     const neoretroUI = require('neo-retro-ui')
     module.exports = {
     content: ["./src/**/*.{html,js}"],
     theme: {
         extend: {},
     },
     plugins: [neoretroUI],
     }

Components

Buttons

<button class="btn">Default Button</button>
<button class="btn bg-secondary text-white">Secondary Button</button>
<button class="btn bg-transparent text-secondary border-secondary hover:bg-secondary hover:text-white">Outline Button</button>

Cards

<div class="card bg-white">
    <h3 class="text-xl font-semibold mb-2">Default Card</h3>
    <p>This is a default card in the NeoRetro style.</p>
</div>
<div class="card bg-primary text-primary-dark">
    <h3 class="text-xl font-semibold mb-2">Primary Card</h3>
    <p>This is a primary colored card in the NeoRetro style.</p>
</div>

Form Elements

<form class="space-y-4 max-w-md mb-6">
<div>
    <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Name</label>
    <input type="text" id="name" name="name" class="w-full px-3 py-2 border border-secondary rounded-md shadow-neoretro focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div>
    <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
    <input type="email" id="email" name="email" class="w-full px-3 py-2 border border-secondary rounded-md shadow-neoretro focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<div>
    <label for="country" class="block text-sm font-medium text-gray-700 mb-1">Country</label>
    <select id="country" name="country" class="w-full px-3 py-2 border border-secondary rounded-md shadow-neoretro focus:outline-none focus:ring-2 focus:ring-primary">
    <option>Select a country</option>
    <option>USA</option>
    <option>Canada</option>
    <option>UK</option>
    </select>
</div>
<div class="flex items-center">
    <input type="checkbox" id="terms" name="terms" class="h-4 w-4 text-primary focus:ring-primary border-secondary rounded">
    <label for="terms" class="ml-2 block text-sm text-gray-700">I agree to the terms and conditions</label>
</div>
<div>
    <button type="submit" class="btn">Submit</button>
</div>
</form>

Badges

<span class="badge badge-primary">primary</span>
<span class="badge badge-secondary">secondary</span>

Alerts

<div class="alert alert-success">This is a success alert!</div>
<div class="alert alert-warning">This is a warning alert!</div>
<div class="alert alert-danger">This is a danger alert!</div>

Tabs

    <div class="tabs">
      <div class="tab active" data-tab="tab1">Tab 1</div>
      <div class="tab" data-tab="tab2">Tab 2</div>
      <div class="tab" data-tab="tab3">Tab 3</div>
    </div>
    <div id="tab1" class="tab-content active">Content for Tab 1</div>
    <div id="tab2" class="tab-content">Content for Tab 2</div>
    <div id="tab3" class="tab-content">Content for Tab 3</div>

Navbar

  <nav class="navbar">
      <div class="navbar-brand">NeoRetro</div>
      <div class="navbar-menu">
          <a href="#" class="navbar-item">Home</a>
          <a href="#" class="navbar-item">About</a>
          <a href="#" class="navbar-item">Contact</a>
      </div>
  </nav>

Additional Components

As we continue to develop the NeoRetro UI, we'll add more components and utility classes. Stay tuned for updates!

If you have any questions or need further assistance, please don't hesitate to reach out.