Skip to content

Create a general application theme to apply to the all its components #518

Answered by bitspittle
N7ghtm4r3 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately the link you shared is using Flutter so they are basically taking control of the rendering, which is very powerful but has some disadvantages. If you open up the network tab and take a look, the site is basically 2.5MB at a minimum. Also, it's very hard to debug because so much of the site is hidden in wasm code.

If you are OK with the Flutter approach, you should probably not be using Kobweb but instead use Compose Multiplatform for Web, which is doing a similar thing (see also: https://github.com/varabyte/kobweb#what-about-compose-multiplatform-for-web).

In traditional HTML / CSS, the way you'd provide an experience of a custom, dynamic theme is by using CSS variables. Ple…

Replies: 1 comment 3 replies

Comment options

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

@bitspittle
Comment options

@N7ghtm4r3
Comment options

Answer selected by N7ghtm4r3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #516 on April 28, 2024 16:39.