two questions: 1. how do I set background color of...
# compose-web
m
two questions: 1. how do I set background color of entire page? 2. how do I set font for the app/website?
o
it's possible to do by applying a Stylesheet with the properties you need. Here is an example: https://github.com/JetBrains/compose-jb/blob/master/examples/web_landing/src/jsMain/kotlin/com/sample/style/Stylesheet.kt#L53 you can add the properties you need for a particular tag:
Copy code
"body" style {
    backgroundColor("red")
}
m
thanks. I actually know close to nothing about front-end web development so this is all new to me 🙂
I can’t find a way to make
Div
match window size
a
@Marko Novakovic read about flexbox , it will help you with layouting in web
@Marko Novakovic also there are width/height css properties and they can have relative values as 100% or vw/vh
m
thank you very much. am reading this now