Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

lightyen/tailwind-types

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published