Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eleventy-plugin-tailwind-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-tailwind-components

A plugin for Eleventy to use Tailwind CSS components built by HyperUI

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Hyper UI Plugin for 11ty

This plugin gives shortcode access to a (currently) subset of HyperUI by Mark Mead.

Usage

Describe how to install your plugin, such as:

npm install eleventy-plugin-tailwind-components

Then, include it in your .eleventy.js config file:

const tailwind = require("eleventy-plugin-tailwind-components");

module.exports = (eleventyConfig) => {
  eleventyConfig.addPlugin(tailwind);
};

Current templates

Card templates

{% tailwind card <cardtype> dataObject %}
propertyTypeDescription
titlestringA title for the card
descriptionstringa short description to show on the card
urlstringoptional url
imagestringUrl to an image to use in image-based cards
Card typeaccepted datadescription
gradienttitle, description, urlSimple card with gradient border
imagetitle, description, image, urlDark background card with image
borderImagetitle, description, image, urlSimple light background, bordered card

Alert Templates

{% tailwind "alerts" "simple" data %}
propertyTypeDescription
titlestringA title for the card
colorstringA tailwind color (default: sky)
descriptionstringan optional short description to show on the card
urlstringoptional url
Alert typeaccepted datadescription
simpletext, color, description, urltext alert banner

Announcement template

{% tailwind "announcements" "top" data %}
propertyTypeDescription
textstringText for the announcment
colorstringA tailwind color (default: sky)
urlstringoptional url
linkTextstringText for the optional link
Announcement typeaccepted datadescription
toptext, description, url, linkTextAnnouncement banner top of page
bottomtext, description, url, linkTextAnnouncement banner sticky bottom of page
floatingBottomtext, description, url, linkTextAnnouncement banner sticky bottom of page (not full width)

Credits

Components from HyperUI by Mark Mead

Keywords

FAQs

Package last updated on 16 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc