Ryan Scott
06/28/2024, 7:47 AMRyan Scott
06/28/2024, 7:54 AMRyan Scott
06/28/2024, 8:00 AMRyan Scott
06/28/2024, 8:00 AMRyan Scott
06/28/2024, 8:00 AMRyan Scott
06/28/2024, 8:04 AMRyan Scott
06/28/2024, 8:05 AM---
title: KobWeb Site
author: Ryan
---
# KobWeb Site
This is a test
I want to style the h1 and the p independently.Ryan Scott
06/28/2024, 8:09 AMRyan Scott
06/28/2024, 8:18 AMcssRule("<selector>") { /* create modifier */ }
entries for the selectors I wanted inside of the single CssRule
I created.David Herman
07/01/2024, 10:46 PMcssRule
is indeed a powerful way to do whatever you want that Kobweb doesn't directly support. You can also style things globally using an @InitSilk
block.
cssRule
examples can be found in the kobweb create app
example project: https://github.com/varabyte/kobweb-templates/blob/0e3f5ecebfa7f9b1c07c5fb295c2a036[…]/default/site/src/site/components/layouts/MarkdownLayout.kt.ftl
Here's an @InitSilk
block example from my blog site bitspittle.dev: https://github.com/bitspittle/bitspittle.dev/blob/main/site/src/jsMain/kotlin/dev/bitspittle/site/AppStyles.kt#L39