Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 18m 45s
Claim 50% off
Staff replied SP Page Builder

Box Shadow - Library color with transparency

Asked by Gregory Belaus 1 year ago Last activity 1 year ago

Hi, I'm trying to use the Box Shadow feature with the Color Library in Page Builder. I can pick a library color fine, but the transparency won't change from 100%. If I set it to 50% for instance, it doesn't take effect and shows 100% when I reopen the dialog. Setting the color manually with transparency works fine, but that defeats the purpose of the Color Library. Also, if I set up an RBGA color in the library I can't select that either.

Can this be worked around with custom CSS for the add-on?

Test URL: https://new.defrankcenter.org

8 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us and sorry for your issue. Yes, you can solve it via custom CSS. Are you talking about this portion?

-Regards.

Gregory Belaus Asked this

Your screenshot in Loom is not opening. It just spins.

Mehtaz Afsana Borsha Staff

Hi

Use this CSS in your custom.css file and modify the shadow to your desired setting.

#sppb-dynamic-content-df838226-36ea-4a12-8828-f309e38e9a75 > .sppb-dynamic-content-collection__item{
      box-shadow: 5px 5px 10px 0px rgb(89 151 179 / 50%) !important;
}
Gregory Belaus Asked this

I think you are missing my point. The Shadow Box is just one example of where you can't use the color library with a transparent color. The Image Overlay button color settings are another. What is the right way to reference the color library variable (for a color with transparency) in CSS such that the color is not hard coded?

Mehtaz Afsana Borsha Staff

You can set it from settings, if it does not work then you can solve it via custom CSS.

Gregory Belaus Asked this

Transparency does not work from settings if using a solid library color. And you can't select a library color that has transparency from the picker. Can you provide an example of how to reference a color library variable in CSS? I don't need you to write my CSS, but not sure how to reference library variables in CSS. Thx

Gregory Belaus Asked this

The ability to use Library Colors with many of the transparency settings in multiple add-ins should be a feature request, or at least as it stand now is a bug. Putting in special CSS defeats the purpose of the Color Library.

Mehtaz Afsana Borsha Staff

I will add it to our feature request list, so that our DEV team can take care of it.

Gregory Belaus Asked this

Just be clear, you can have a library color with transparency. The problem is that in many places, e.g. Box Shadow, you cannot use it.

Mehtaz Afsana Borsha Staff

Ok noted.

Log in to reply.