Updating tokens
Importing the updaters
import { updaters } from '@specifyapp/sdk'Update the colors
import { updaters } from '@specifyapp/sdk'
sdtfClient.update(updaters.color({ toFormat: 'hex' }, { where: { token: '^color-' }}))Update the token's name casing
import { updaters } from '@specifyapp/sdk'
sdtfClient.update(updaters.changeCase({ toFormat: 'kebabCase' }, { where: { token: '.*' }}))Update the dimensions
Executing multiple updates
Avoid query repetition
Creating your custom updater
Last updated
Was this helpful?