Low-level utilities for building styling libraries.

The core utils all require a theme config as the second parameter and return transformed outputs with no side effects. Your theme doesn't need to have any custom properties to start, you can kick things off with the default.

import { createTheme, style, explode, pick } from '@svbstrate/core'

const theme = createTheme()
const styles = style({ color: 'red' }, theme)
// => { color: 'red' }

Last updated