drop-caps

Drop caps for <p>

Usage no npm install needed!

<script type="module">
  import dropCaps from 'https://cdn.skypack.dev/drop-caps';
</script>

README

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
  }
)