Skip to content
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

Issue with reading linear-gradient from file #2412

Closed
judepayne opened this issue Mar 6, 2025 · 2 comments
Closed

Issue with reading linear-gradient from file #2412

judepayne opened this issue Mar 6, 2025 · 2 comments

Comments

@judepayne
Copy link

Hi,

In the d2 playground, this works

LEI0009841z9842: FIFinance-E {
  style.fill: 'linear-gradient(#e01067, #e6b450)'
  shape: oval
}

but if I put exactly the same text in a .d2 file and then run d2 -w myfile.d2, I get this error in the browser:

failed to compile: /.../myfile.d2:2:15: expected "fill" to be a valid named color ("orange") or a hex code ("#f0ff3a")
@cyborg-ts cyborg-ts added this to D2 Mar 6, 2025
@alixander
Copy link
Collaborator

@judepayne What version does d2 version print?

@judepayne
Copy link
Author

0.6.5

when I upgraded to 0.6.9 it was fixed.

My bad. closing

@github-project-automation github-project-automation bot moved this to Done in D2 Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants