Releases: varabyte/kobweb
Releases · varabyte/kobweb
v0.7.4
kobweb
commands will no longer fail silently if they can't findgradlew
kobweb
commands will search their ancestor path forgradlew
if not in the current directory- This will allow users to organize their kobweb project in a submodule of some parent gradle project
- Updated how
ComponentStyle
works under the hood so you can chain pseudo elements- e.g.
(Breakpoint.MD + hover + firstLetter) { Modifier.color(Red) }
- e.g.
- You can now use your build.gradle's
kobweb
block to extend the generated index.html's head block.- This is useful if you want to add extra stylesheets or scripts for example
- Now only add the Font Awesome script if the user is using the "kobweb-silk-icons-fa" artifact
v0.7.3
A very minor release, tagged a bit early mostly to update the kobweb binary.
- Code cleanup around how Kotlin and HTML files are generated
- For Kobweb commands that supported it, the
--headless
option has been removed and replaced with--mode dumb
- The default value for mode is
--mode interactive
- The reason behind the change is
headless
implies the same software but without access to a GUI (for example, it could still handle input). However, this option is strictly more about whether we expect a user to be sitting there interacting with the kobweb commands or if they're running in a "fire and forget" environment. It's a terminal UI both ways.
- The default value for mode is
v0.7.2
- Fixed a bug with
Modifier.padding
not working - Added APIs to improve working with
ComponentStyle
listOf(Style1, Style2, Style3).toModifier()
- New
cssRule
function for defining custom rules not currently covered by our API
- Added
--headless
mode for appropriate kobweb CLI commands- Added
kobweb stop
which can stop a running server (especially useful if you usedkobweb run --headless
)
- Added
- No longer overtagging elements with unecessary classnames (e.g. "silk-text silk-text-dark silk-text-light")
- Instead, we only tag an element with classes that actually affect the final style. This often results in more than half of the tags being removed.
- Compiles against Compose 1.0.0
v0.7.1
A quick patch this time since we've changed the API around component styling in a fairly invasive way, so best to get it done quickly.
- Component styling now uses a DSL-like syntax instead of an assignment syntax. See 732b5b2 for more details.
- Cleaned up web modifier behavior around
margin
andpadding
- Previously, in an attempt to emulate Jetpack Compose, we swapped these two concepts around (because, unfortunately, what Jetpack Compose introduces as
padding
ismargin
in CSS). However, due to confusion betweenModifier.padding(10.px)
andstyleModifier { padding(10.px) }
doing different things, we decided to make the function always act more consistently with the web.
- Previously, in an attempt to emulate Jetpack Compose, we swapped these two concepts around (because, unfortunately, what Jetpack Compose introduces as
v0.7.0
MVP Release 🎉
- Web Breakpoints are now supported (specify sm, md, lg, xl, and xxl boundary sizes)
- Add initial support for OpenGL canvases
- Improve Gradle plugin behavior to automatically delect
ComponentStyle
s andComponentVariant
s@InitSilk
annotations no longer required
- New
SimpleGrid
widget for specifying a container with a responsive number of columns - Extracted silk widgets to a standalone artifact (
com.varabyte.kobweb:kobweb-silk-widgets
) that can be used without Kobweb
v0.6.4
- Tweaks to
@InitSilk
functionalitySilkConfig
is now only exposed through this API- You can now register style variants directly, useful for adding variants to base styles
- Update
Color
API to be explicit about creating RGB colors- Add the full list of CSS colors to the
Colors
object.
- Add the full list of CSS colors to the
- Move text and link styling to
Surface
, allowing intermediate divs to override those colors for local behavior - Add a new
Link
class to Kobweb core. Unlike Silk'sLink
, this one in a thin wrapper aroundA
that handles
links within the same domain without needing to leave the page. - Fixed a crash when exporting sites that don't have API routes.
v0.6.3
- Update
Router
so it's no longer anobject
but now an instance accessible throughrememberPageContext
- Completely revamp the way components are styled (
ComponentModifier-> ComponentStyle)- See this document for more details
SilkTheme
now must be initialized at startup time, and can be done via@InitSilk
annotated methods
v0.6.2
- New Canvas component
- Updated default Link component style
- Updated the Surface component to use the Silk styles
v0.6.1
- Windows is no longer fundamentally broken
v0.6.0
The initial release of Kobweb! 🎉
This first version includes a base set of functionality that demonstrate the general capabilities of the framework.
- A binary for executing several commands: version, list, create, export, and run
- A gradle plugin for generating boilerplate code for your Kobweb project (routing, index.html)
- A gradle plugin for extending server code around easily defined API routes
- A live reloading experience built from the ground up for both client and server code
- A gradle plugin for converting Markdown files to Kotlin code
- Extensions built on top of Web Compose (a Modifier class and Column/Row layouts)
- The beginnings of a UI library (called Silk) with powerful styling support inspired by Chakra UI