Config object

The config object is optional and can be passed to the theme. It is used to set specific properties that the helper functions within the library will handle.

theme.js
const config  = {
  transientPrefix: '$',
  units: 'rem'
}

export const theme = {
  config,
  ...themeObj
}

Full config properties list:

PropertyDefaultDescription
transientPrefix''By passing a prefix to the generateProps function, you can match the forwardProps prevention behavior. The commonly used prefix with styled-components is the dollar sign ($). This prefix helps to differentiate between transient props that are intended for styling and the regular component props. For more information and specific details about using prefixes with styled-components, please refer to the styled-components documentation. The documentation will provide further insights into how to effectively utilize prefixes, such as the dollar sign, to handle transient props and prevent them from being passed down to the underlying DOM element.
unitspxSet the default units for numerical values. Don't forget to use units: false in your generator if you need to ensure that the final value would be a number in that specific property.