tw-elevation
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

TailwindCSS elevation utilities plugin

  • Support Just-In-Time (JIT) mode
  • Install: yarn add -D tw-elevation
  • Config: In tailwind.config.js,
export default {
	mode: 'jit',
	plugins: [
		require('tw-elevation')
	],
}
  • Class names: .elevation-0, .elevation-1, up to .elevation-24.
  • JIT class names: .elevation-[0], .elevation-[1], ... Arbitrary values are supported.
  • To change baseline color, use class: .elevation-[#888].
  • All themed colors are support: .elevation-red-500.
  • For color with opacity, for example: .elevation-red-500/50, the opacity will be ignored.
  • Screenshot:

tw-elevation screenshot

Readme

Keywords

none

Package Sidebar

Install

npm i tw-elevation

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

27 kB

Total Files

8

Last publish

Collaborators

  • tranvansang