@moki.codes/mokui-elevation

0.4.2 • Public • Published

elevation

Description

elevation subsystem block provides child elements with elevation shadows

Installation

yarn add @moki.codes/mokui-elevation

Styles

@import "@moki.codes/mokui-elevation/dist/mokui-elevation.css"

Basic Usage

<div class="elevation">
        elevation variables available to all children
        <div class="elevation_depth_8">
                this div has elevation of depth 8
        </div>
</div>

Variables

elevation block provides following shadow color umbra/penumbra/ambient variables:

  • --elevation-color-umbra

  • --elevation-color-penumbra

  • --elevation-color-ambient

shadow animation transition duration:

  • --elevation-transition-duration

Modificators

name value description
depth n where n is gives elevation shadow of the specified depth
in the range: value
[0, 24]

Package Sidebar

Install

npm i @moki.codes/mokui-elevation

Weekly Downloads

3

Version

0.4.2

License

BSD-3-Clause

Unpacked Size

10.4 kB

Total Files

5

Last publish

Collaborators

  • moki