PricingBlog

How to think about custom CSS styling. Can you put it somewhere?

  • mesmoiron-1282502865713106994

    mesmoiron

    1 year ago

    As an exercise, I am trying to recreate an accordion element. The idea is in code. How do you translate that to no code? The idea can be found here:
    https://codepen.io/ShadowShahriar/pen/LYgeNLB?editors=0110

    Do I just make attributes? We have formulas for custom code. Do we need something like that for custom css or do I think too difficult about it.
  • lucasg-1282503331347959808

    Lucas G

    1 year ago

    You add most of that as CSS as normal
  • lucasg-1282503653264982087

    Lucas G

    1 year ago

    Some of the CSS is for the body and text, etc which you can define on the elements themselves or just paste it all into a style div I guess
  • Tod-1282503654451970061

    Tod

    1 year ago

    Great energy @Lucas G! Your continuous contribution to the toddle Community just made you advance to Community Level 30!
  • mesmoiron-1282510268206940181

    mesmoiron

    1 year ago

    I forgot to mention that I am working on understanding components. If I want to give the user some ability to change the bg color, can that be done. Or does someone need to adjust the component itself?
  • lucasg-1282529947025670238

    Lucas G

    1 year ago

    It can be done
  • You can use style variables for example