[READ-ONLY] Mirror of https://github.com/hacknug/tailwindcss-background-extended. All of the missing background utilities for Tailwind CSS. www.npmjs.com/package/tailwindcss-background-extended
tailwind tailwind-css tailwindcss tailwindcss-plugin
0

Configure Feed

Select the types of activity you want to include in your feed.

29 2 0

Clone this repository

https://tangled.org/nestor.rip/tailwindcss-background-extended https://tangled.org/did:plc:m4ncpoehzzbyccc6ibbx6hjh
git@tangled.org:nestor.rip/tailwindcss-background-extended git@tangled.org:did:plc:m4ncpoehzzbyccc6ibbx6hjh

For self-hosted knots, clone URLs may differ based on your setup.



readme.md

Tailwind CSS Background Extended Plugin#

This plugin adds all of the missing background utilities to Tailwind CSS.

Installation#

Add this plugin to your project:

# Install using pnpm
pnpm install --save-dev tailwindcss-background-extended

# Install using npm
npm install --save-dev tailwindcss-background-extended

# Install using yarn
yarn add -D tailwindcss-background-extended

Usage#

// tailwind.config.js
{
  theme: {
    backgroundImage: { // defaults to {}
      tailwindcss: "url('https://avatars0.githubusercontent.com/u/30317862')",
    },
  },

  variants: { // all the following default to ['responsive']
    backgroundImage: ['responsive'],
    backgroundClip: ['responsive'],
    backgroundOrigin: ['responsive'],
  },

  plugins: [
    require('tailwindcss-background-extended'), // no options to configure
  ],
}
.bg-image-tailwindcss { background-image: url('https://avatars0.githubusercontent.com/u/30317862'); }

.bg-clip-border { background-clip: border-box; }
.bg-clip-padding { background-clip: padding-box; }
.bg-clip-content { background-clip: content-box; }
.bg-clip-text { background-clip: text; }

.bg-origin-border { background-origin: border-box; }
.bg-origin-padding { background-origin: padding-box; }
.bg-origin-content { background-origin: content-box; }