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

ENG-555: home hero particles #559

Merged
merged 4 commits into from
Nov 24, 2022
Merged

Conversation

stormcloud266
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Nov 23, 2022

@vercel
Copy link

vercel bot commented Nov 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ik-landing ✅ Ready (Inspect) Visit Preview Nov 24, 2022 at 6:44AM (UTC)

},
},
particles: {
color: { value: "#3FCCBB" },
Copy link
Collaborator

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",
Copy link
Collaborator

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.

Comment on lines 5 to 6
const fullConfig = resolveConfig(tailwindConfig) as any;
const { white, black, turquoise } = fullConfig.theme?.colors;
Copy link
Contributor Author

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

@stormcloud266
Copy link
Contributor Author

The tailwind docs mentioned using babel-plugin-preval when using the config in js, is that something I should add here?

@illepic
Copy link
Collaborator

illepic commented Nov 24, 2022

@illepic illepic merged commit aab1e1e into main Nov 24, 2022
@illepic illepic deleted the tawnee/eng-555-home-hero-particles branch November 24, 2022 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants