-
Notifications
You must be signed in to change notification settings - Fork 1
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
ENG-555: home hero particles #559
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}, | ||
}, | ||
particles: { | ||
color: { value: "#3FCCBB" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tailwind vars here.
particles: { | ||
color: { value: "#3FCCBB" }, | ||
line_linked: { | ||
color: "#ffffff", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tailwind var all the colors.
lib/animations/hero-stars.ts
Outdated
const fullConfig = resolveConfig(tailwindConfig) as any; | ||
const { white, black, turquoise } = fullConfig.theme?.colors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing "as any" gives me this error for every color, and every other property I tried.
Property 'black' does not exist on type 'ResolvableTo<RecursiveKeyValuePair<string, string>> | undefined'.
Ended up going this route, I couldn't find any better option
The tailwind docs mentioned using babel-plugin-preval when using the config in js, is that something I should add here? |
No description provided.