luma
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Luma

A global illumination library from Framer.

API subject to change before version 1.0.

Chat on Discord

Usage

React

Set up a global light.

import { Light } from "luma"

export function App({ children }) {
    return (
        <Light x={-20} y={-40}>
            {children}
        </Light>
    )
}

Cast the light by generating a boxShadow property.

import { useBoxShadow } from "luma"

export function Component() {
    const depth = 10
    const boxShadow = useBoxShadow(depth)

    return <div style={{ boxShadow }} />
}

Readme

Keywords

Package Sidebar

Install

npm i luma

Weekly Downloads

15

Version

0.3.0

License

MIT

Unpacked Size

14.7 kB

Total Files

13

Last publish

Collaborators

  • hughfdjackson
  • popmotion