-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable token camelCase in HTML output #188
Comments
Any examples of customizing Theo's formatOptions out there? |
Still no luck here. Anybody?!? |
@withinsight I have the same issue, haven't digged too much into the code, but as far as I can tell it is not possible to pass options to the convert function. What happen with the setup file is that it gives you the I think the only options here would be to either use the full API and write a simple script to call But maybe some maintainer may have some more insights here. |
@withinsight Hey, this should works, take a try ~ |
The default for token names in the html output is camelCase. I should be able to override this by setting up a setup.js file, and defining a custom formatOption.
I currently see this error:
Error: No options? at transform.chain.fold.e (/Users/{un}/{project}/node_modules/theo/lib/index.js:122:32)
Here's my setup.js:
As you can see I'm simply returning the token name, so it should remain unchanged.
I'm using the CLI:
theo src/lib/tokens/tokens.yml --format html --dest src/lib/tokens --setup src/lib/tokens/setup.js
How can I disable the camelCase formatting for our tokens when displayed in HTML output?
The text was updated successfully, but these errors were encountered: