const StyleDictionary = require('style-dictionary'); // 1. Register a custom file header StyleDictionary.registerFileHeader({ name: 'myCustomHeader', fileHeader: (defaultMessage) => { return [ 'Do not edit directly', 'Built by My Design System' ]; } }); // 2. Use it in your config module.exports = { source: ['tokens/**/*.json'], platforms: { css: { files: [{ destination: 'variables.css', format: 'css/variables', options: { fileHeader: 'myCustomHeader' // Use the static header } }] } } };