drop-caps

0.1.2 • Public • Published

drop-caps 📰

Drop caps for <p>

Implamentation of Drop caps & design systems

Installation

$ yarn add drop-caps

Usage

Import

  import cap from 'drop-caps'

Capitalize all paragraphs:

cap()

Capitalize whatever you like:

cap('p.whatyouwant')
cap($('#boo'))
cap(['.bah', $('p')])

Costumize size:

cap(
  '.biz', // selector
  {
    fontSize: '5em', // font-size
    top: '-0.1px', // margin-top
    btm: '-0.2cap', // margin-bottom
  }
)

Readme

Keywords

none

Package Sidebar

Install

npm i drop-caps

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

3.43 kB

Total Files

4

Last publish

Collaborators

  • gaoryrt