Okay, you have a @sveltejs component and you want to allow user to customise the style of this component.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🤔" title="Denkendes Gesicht" aria-label="Emoji: Denkendes Gesicht"> what should you do?
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🧵" title="Thread" aria-label="Emoji: Thread"> Here are some ideas in the thread
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
The CSS Custom Properties can be reactive too!
https://abs.twimg.com/emoji/v2/... draggable="false" alt="📹" title="Videokamera" aria-label="Emoji: Videokamera"> I& #39;ve made a video to illustrate how this works https://youtu.be/jMcONG-IWNg ">https://youtu.be/jMcONG-IW...
Since @sveltejs v3.38.0, there& #39;s a sugar syntax to allow you to write slightly less to achieve the above
https://abs.twimg.com/emoji/v2/... draggable="false" alt="📝" title="Memo" aria-label="Emoji: Memo"> the extra `display: contents` added to prevent the additional `<div>` breaks the existing layout
https://twitter.com/SvelteSociety/status/1388276706209796096?s=20">https://twitter.com/SvelteSoc...
https://twitter.com/SvelteSociety/status/1388276706209796096?s=20">https://twitter.com/SvelteSoc...
Each of these ideas are definitely not mutual exclusive
https://abs.twimg.com/emoji/v2/... draggable="false" alt="💡" title="Elektrische Glühbirne" aria-label="Emoji: Elektrische Glühbirne"> Here& #39;s a combination of theme + css custom properties
[END] Follow me @lihautan for more content like this
https://abs.twimg.com/emoji/v2/... draggable="false" alt="❤️" title="Rotes Herz" aria-label="Emoji: Rotes Herz">
https://abs.twimg.com/emoji/v2/... draggable="false" alt="❤️" title="Rotes Herz" aria-label="Emoji: Rotes Herz">