JSPM

tailwindcss-text-stroke

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 182
  • Score
    100M100P100Q83832F
  • License MIT

Adds text-stroke-[100..900] components to TailwindCSS

Package Exports

  • tailwindcss-text-stroke
  • tailwindcss-text-stroke/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tailwindcss-text-stroke) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

text-stroke TailwindCSS Plugin

This plugin adds text-stroke- components. It implements it using the -webkit-text-stroke- CSS property, which is implemented everywhere with this prefix.

Installation

  1. Install the package using npm:
npm install --save-dev tailwindcss-text-stroke
  1. Register the plugin:
import textStroke from 'tailwindcss-text-stroke'

export default {
  plugins: [
    textStroke
  ],
  // ... other options
}

Available text-stroke variants

The following variants are available:

  • text-stroke-inherited - reset to inherited value
  • text-stroke-none - set to 0
  • text-stroke-100 - text-stroke-900 - sets the -webkit-text-stroke to 0.0002 * value, so 100 is 0.02ex, 200 is 0.04ex, 300 is 0.06ex and so on.

Have fun!