By WevmDocs Variables

Bring structure to your styles and consistency to your interfaces. Write type-safe styles in TypeScript, compiled to static CSS.

import { style } from './zyzz.config.js'

export function Example() {
  return <button {...styles.button()}>Get started</button>
}

namespace styles {
  export const button = style({
    backgroundColor: 'brand',
    borderRadius: '8px',
    color: 'white',
    paddingBlock: 'sm',
    paddingInline: 'md',
  })
}