fastn icon indicating copy to clipboard operation
fastn copied to clipboard

How to incorporate background patterns in FASTN?

Open Sarvom opened this issue 2 years ago • 5 comments

I need to add background patterns, gradient etc in a project, I need to change the color of background patterns with colors from fastn library

Sarvom avatar Nov 08 '23 13:11 Sarvom

This is an example of CSS Pattern Library: https://www.magicpattern.design/tools/css-backgrounds

Sarvom avatar Nov 08 '23 13:11 Sarvom

Try if this can be of any help or you add CSS.

Arpita-Jaiswal avatar Nov 08 '23 13:11 Arpita-Jaiswal

Is there any way to control colors of external CSS package using fastn, I need to use colors from a ftd file

Sarvom avatar Nov 08 '23 13:11 Sarvom

As of now, it's not possible. fastn variables can be send to external js functions but not CSS.

Arpita-Jaiswal avatar Nov 08 '23 14:11 Arpita-Jaiswal

@Arpita-Jaiswal That's an interesting question tho. Maybe we can create css variables and use them in our CSS files somehow?

amitu avatar Nov 08 '23 15:11 amitu