Plumeria

css.create

The Plumeria css class method create

create a method that takes the key as a className. styles.active is type-completed.

Write create and compile

A hashed prefix of the object is added to the class name, so styles do not conflicts between different components.

TypeScript
import { css } from '@plumeria/core'
 
const styles = css.create({
  container: {
    display: 'flex',
    justifyContent: 'space-between'
  },
  link: {
    fontSize: '14px',
    textDecoration: 'none'
  },
})

On this page