Currently I try to use Silk without KobWeb, my pro...
# kobweb
n
Currently I try to use Silk without KobWeb, my problem is that the CSS variables (like
--silk-button-color
) seem to remain unset (see the attached image). My bootstrap is the following, what is missing?
Copy code
renderComposable("root") {
            prepareSilkFoundation({
                it.stylesheet.registerStyleBase("*") {
                    Modifier.boxSizing(BoxSizing.BorderBox)
                }

                it.config.initialColorMode = LIGHT
                initSilkWidgets(it)

                it.theme.registerComponentStyle(CustomStyle)
            }) {
                renderWithDeferred {
                    Surface {
Thanks.
image.png
Note that the variables are not really considered part of the public API for Silk
👍🏻 1
n
I call
Button()
inside
Surface {}
, that's how I could examine the CSS properties...
d
Looking at it now I'm surprised that
--silk-color
is not defined
It's possible my README is missing that -- apologies if that's the case!