logo
Customization
Theme

The theme key is a way of holding all of your design system rules to iterate over with any utilities defined later. For example, one of the keys in the default theme is fontWeight:

js
import { ConfigProvider, jsx } from "benefit"
return (
<ConfigProvider
config={config => {
return {
theme: {
fontWeight: {
hairline: 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
black: 900,
},
},
}
}}
>
<div>...</div>
</ConfigProvider>
)

You would then be able to iterate over these keys to generate utility classes like font-hairline, font-thin, etc.