Closed lukejacksonn closed 3 years ago
Provide a themed export that primes the process function with the default theme deep merged with any provided custom theme. For example:
themed
import { themed } from 'https://unpkg.com/oceanwind'; const ow = themed({ colors: { red: { 500: 'hotpink', }, }, }); ow`bg-red-500`; // will result in a hotpink background-color
Also makes the process function pure(er) by detaching it from the call to otion. This makes testing a bit easier.
process
otion
Provide a
themed
export that primes the process function with the default theme deep merged with any provided custom theme. For example:Also makes the
process
function pure(er) by detaching it from the call tootion
. This makes testing a bit easier.