postcss-scrollable

1.0.0 • Public • Published

PostCSS Scrollbar

Postcss plugin for pure css scrollbar.

Usage

Installation

$ npm i --save postcss-scrollable

Configure

module.exports = {
	plugins: {
		require('postcss-scrollable')
	}
}

With options

module.exports = {
	plugins: {
		require('postcss-scrollable')({
      color: '#20692b',
      width: '4px',
      height: '4px',
      radius: '4px'
    })
	}
}

See Postcss docs for examples for your environment.

Options

Options Description Value
color Color of scrollbar HEX, RGB, RGBA, HSL. Default #006387
width Width of scrollbar px, em, rem. Default 6px
height Height of scrollbar px, em, rem. Default 6px
radius Radius of scrollbar px, em, rem. Default 6px

License

MIT © Dang Van Thanh

/postcss-scrollable/

    Package Sidebar

    Install

    npm i postcss-scrollable

    Weekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.49 kB

    Total Files

    3

    Last publish

    Collaborators

    • dangvanthanh