# plakat-ui

> A Compose Multiplatform UI kit in the look of the Soviet avant-garde poster: upper-case type, red and black on paper, one diagonal axis, generated pictures, on Android, iOS, desktop and wasm.

Page: https://kotlin.website/plakat-ui

## Why it exists

A poster of 1919–1932 has rules a component library can actually hold: radius zero, one diagonal per
component at −17°, red that is never the only carrier of meaning, no springs and no overshoot. Motion
runs on rails to a hard stop, and curves are closed forms of elapsed time.

## The pictures are generated

The feed's illustrations are not image files. A seed goes into a generator and comes out as a
composition on the kit's grid, ported from the design's JavaScript and checked against it in numbers
in Node, on the same seeds. The strip under the masthead and the roller-ink disc are the same kind of
thing, and so is the print texture they stand on.

## What the design does not draw says so

What the design draws is held to it, in numbers against its generators and in pixels against references
rendered from it in Chrome. What it does not draw — the radio button, hover, the wide poster — is
designed here from the same rules, and the backlog item lists every number that had to be invented.

Danger is a hatch plus a word rather than a colour, and every touch target stays at least 48 dp even
where a corner is cut.

## Install

```kotlin
repositories {
    maven("https://reposilite.kotlin.website/snapshots") {
        mavenContent { includeGroupAndSubgroups("io.github.youndie") }
    }
}

dependencies {
    implementation("io.github.youndie:plakat-core:0.1.0.<build>")
}
```

Every build of `main` publishes a version, and the latest is the last one in
[maven-metadata.xml](https://reposilite.kotlin.website/snapshots/io/github/youndie/plakat-core/maven-metadata.xml).
There is no release yet.

```kotlin
PlakatTheme {
    PlakatButton("Subscribe", onClick = {})
}
```

Targets: desktop (JVM), Android, iOS and wasm. MIT; the bundled fonts, Rubik Mono One and Golos Text,
keep their OFL.
