Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
opacity of color passed as props Styled component

I was trying to edit the opacity of color passed as props, I can do it with sass like that

background: rgba($primary, 0.2);

I try to do the same with the styled-component, but is not working.

`background-color: rgba(${(props) => props.theme.primary}, 0.8);`
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I fix it but not what I was waiting for, you need to use costume property.

 primary = "96, 113, 201";

`background-color: rgba(${(props) => props.theme.primary}, 0.8);`
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!