kotlinx.html Bulma components.
Warning
This project is being actively developed but is in an early experimental state. Use the library cautiously and report back any issues. mooncloak is not responsible for any issues faced when using the library.
Checkout the releases page to get the latest version.
repositories {
maven("https://repo.repsy.io/mvn/mooncloak/public")
}
// kotlinx.html required
// https://github.com/Kotlin/kotlinx.html
implementation("org.jetbrains.kotlinx:kotlinx-html:VERSION")
// kotlinx html Bulma wrapper
implementation("com.mooncloak.kodetools.bulmak:bulmak-core:VERSION")
import com.mooncloak.kodetools.bulmak.layout.hero
import kotlinx.html.body
import kotlinx.html.html
import kotlinx.html.p
import kotlinx.html.stream.appendHTML
private fun main() {
// Example using Bulma's "Hero" component in the body of an HTML document.
// https://bulma.io/documentation/layout/hero/
System.out.appendHTML().html {
body {
hero {
body {
p("title") { +"Hero Title" }
p("subtitle") { +"Hero Subtitle" }
}
}
}
}
}
More detailed documentation is available in the docs folder. The entry point to the documentation can be found here.
For security vulnerabilities, concerns, or issues, please refer to the security policy for more information on appropriate approaches for disclosure.
Outside contributions are welcome for this project. Please follow the code of conduct and coding conventions when contributing. If contributing code, please add thorough documents and tests. Thank you!
Copyright 2025 mooncloak
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.