
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
neo-retro-ui
Advanced tools
This guide will help you integrate the NeoRetro UI components into your Tailwind CSS project.
First, make sure you have Tailwind CSS installed in your project. If not, follow the official Tailwind CSS installation guide.
Install the NeoRetro UI libaray
npm install neo-retro-ui
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],
}
<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>
<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 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>
<span class="badge badge-primary">primary</span>
<span class="badge badge-secondary">secondary</span>
<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>
<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>
<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>
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.
FAQs
A Neo-Retro UI component library
We found that neo-retro-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.