HyperUI is a free, open source Tailwind CSS component library.
Search through the website for components, view the preview, the source code and copy the HTML to your clipboard.
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.
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!
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.
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.