Sensiblemnd / hyperui

Free open source Tailwind CSS components 🐳

Home Page:https://hyperui.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

HyperUI

HyperUI is a free, open source Tailwind CSS component library.

How Does it Work?

Search through the website for components, view the preview, the source code and copy the HTML to your clipboard.

Contributing

Setup

git clone git@github.com:markmead/hyperui.git
yarn
yarn dev

If needed, you can run yarn watch in a new window. This will rebuild the CSS on every change.

Adding Components

All components and collections are stored in /public/components/[collection]/[id].

Adding to Existing Collection

Let's say you've created a new footer component.

Create a new file in /public/components/footers/ called 4.html.

Then add the new component to the footer collection.

Head to /data/components/footers.mdx, here you will see the markdown for /components/footers as well as the frontmatter.

---
title: Footers
emoji: ⚽️
seo:
  title: Footer Components
  description: Footer components created with Tailwind CSS
components:
  1:
    title: Large with Newsletter Form
  2:
    title: Simple Stacked
  3:
    title: Simple Row
---

Content...

You can add your new component like this:

---
components:
  1:
    title: Large with Newsletter Form
  2:
    title: Simple Stacked
  3:
    title: Simple Row
  4:
    title: [Description]
    spacing [Adjustments] // Optional
---

Adding a New Collection

If you want to add a new collection then follow the steps above but add the new collection folder to /public/components first.

Let's say you've created a new checkout component, first you'd need a checkout collection.

Create /public/components/checkouts/1.html.

You'll then want to create a /data/components/checkouts.mdx file. (Just duplicate an existing file and rename it)

Update the content to represent the new collection and add your new components.

And that's it, nice and simple!

More Hyper

Hypercolor

Website GitHub

A curated collection of beautiful Tailwind CSS gradients using the full range of Tailwind CSS colors. Easily copy and paste the class names, CSS or even save the gradients as an image.

HyperJS

Website GitHub

Alpine JS allows you to write DOM manipulation all in your HTML, Liquid, Blade etc. Here's a collection of snippets that you can copy and paste into your project.

About

Free open source Tailwind CSS components 🐳

https://hyperui.dev

License:MIT License


Languages

Language:HTML 93.3%Language:TypeScript 6.1%Language:CSS 0.5%Language:JavaScript 0.1%