Skip to content
Discussion options

You must be logged in to vote

I think it's partly because drop-shadow uses lower alpha values. Here I removed them altogether and a large shadow becomes visible:

def icon() -> ui.icon:
    return ui.icon('person').classes('text-[100px] text-red')

with ui.row():
    icon().style('filter: drop-shadow(0 1px 1px rgb(0 0 0))')
    icon().style('filter: drop-shadow(0 1px 2px rgb(0 0 0)) drop-shadow(0 1px 1px rgb(0 0 0))')
    icon().style('filter: drop-shadow(0 4px 3px rgb(0 0 0)) drop-shadow(0 2px 2px rgb(0 0 0))')
    icon().style('filter: drop-shadow(0 10px 8px rgb(0 0 0)) drop-shadow(0 4px 3px rgb(0 0 0))')
    icon().style('filter: drop-shadow(0 20px 13px rgb(0 0 0)) drop-shadow(0 8px 5px rgb(0 0 0))')
    icon().style(

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Anindya088
Comment options

@falkoschindler
Comment options

Answer selected by Anindya088
@Anindya088
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants