Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

tailwind-types

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-types

Tailwind types

latest
Source
npmnpm
Version
3.4.5
Version published
Maintainers
1
Created
Source

tailwind-types

Latest Version

Type declarations of Tailwind

Install

npm install --save-dev tailwind-types

Examples

  • JavaScript
// tailwind.config.js

/** @typedef {import("tailwind-types")} */

const colors = require("tailwindcss/colors")
const plugin = require("tailwindcss/plugin")

/** @type {Tailwind.ConfigJS} */
module.exports = {
	theme: {
		extend: {
			colors,
		},
	},
	plugins: [
		plugin(function ({ addUtilities }) {
			//
		}),
	],
}
  • TypeScript
// typings/demo.d.ts

/// <reference types="tailwind-types" />
// demo.ts
import colors from "tailwindcss/colors"

export default {
	theme: {
		extend: {
			colors,
		}
	}
} as Tailwind.ConfigJS

Keywords

typescript

FAQs

Package last updated on 01 Oct 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