view assets/BUILD @ 258:60a876c4587a

[ui] Add semantic primitive ownership Build a layered Zenbu token and sizing system, make authored controls use native-underneath primitives, migrate mrjunejune without imposing visual surfaces, and document/enforce HTML ownership in the catalog and wiki. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Wed, 05 Aug 2026 05:25:40 -0700
parents 9c2eec61a152
children
line wrap: on
line source

load("//gui_ze:gui_ze.bzl", "webp_image")

_ICON_ASSETS = [
    "binder",
    "bold",
    "book",
    "cabinet",
    "clipy",
    "h1",
    "h2",
    "h3",
    "link",
    "open-book",
]

[
    webp_image(
        name = "webp_{}".format(asset.replace("-", "_")),
        src = "png/{}.png".format(asset),
        out = "generated_icons/{}.webp".format(asset),
        lossless = True,
    )
    for asset in _ICON_ASSETS
]

filegroup(
    name = "icons",
    srcs = [
        ":webp_{}".format(asset.replace("-", "_"))
        for asset in _ICON_ASSETS
    ],
    visibility = ["//visibility:public"],
)