-
Notifications
You must be signed in to change notification settings - Fork 16
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
DEFAULT
theme keys being lowercased
#266
Comments
Hi, @davidkelley |
Thanks very much @nado1001. Really useful library, great work! |
Sorry to resurrect a closed issue, but I don't see this working on the latest version when outputting individual theme files. Seems like the original keys are used (not transformed keys). For example if I do a transform like this: StyleDictionary.registerTransform({
type: 'name',
name: 'upperDefault',
matcher: token => token.name.includes('default'),
transformer: prop => {
let u = prop.path
.map(part => {
if (part.includes('default')) {
return part.toUpperCase();
}
return part;
})
.join('.');
return u;
}, The output still used the path and not the new name transform which has "DEFAULT" in the new name. |
@3CordGuy |
I ended up rolling with another solution. Thanks for responding, though. I appreciate you putting this library out there. |
Hi,
Thanks for a great library. I'm in the middle of implementing this for our theme, but have noticed that the
DEFAULT
keyword is being lowercased inside the output. Tailwind needs this to be uppercased, so that we can make use of class names such asbg-orange
for example. Are you able to help?tailwindlabs/tailwindcss.com#1114
https://v2.tailwindcss.com/docs/upgrading-to-v2#update-default-theme-keys-to-default
The text was updated successfully, but these errors were encountered: