ui · function ·

CreateYuiResolvedStyle

Create yui resolved style from the supplied values.

cpufunctionsource-exampleuiyeho

Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.

external CreateYuiResolvedStyle(text name, yuiColor background, yuiColor panel, yuiColor panelHover, yuiColor panelPressed, yuiColor textPrimary, yuiColor textMuted, yuiColor accentPrimary, yuiColor accentSecondary, yuiColor accentTertiary, yuiColor focus, yuiColor selection) returns yuiResolvedStyle

Status: source-declared

Parameters

text name
Supply name as text.
yuiColor background
Supply background as yuiColor.
yuiColor panel
Supply panel as yuiColor.
yuiColor panelHover
Supply panel hover as yuiColor.
yuiColor panelPressed
Supply panel pressed as yuiColor.
yuiColor textPrimary
Supply text primary as yuiColor.
yuiColor textMuted
Supply text muted as yuiColor.
yuiColor accentPrimary
Supply accent primary as yuiColor.
yuiColor accentSecondary
Supply accent secondary as yuiColor.
yuiColor accentTertiary
Supply accent tertiary as yuiColor.
yuiColor focus
Supply focus as yuiColor.
yuiColor selection
Supply selection as yuiColor.

Use CreateYuiResolvedStyle

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using ui

// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
text name = "Nova"
yuiColor background = yuiColor(1, 1, 1, 1)
yuiColor panel = yuiColor(1, 1, 1, 1)
yuiColor panelHover = yuiColor(1, 1, 1, 1)
yuiColor panelPressed = yuiColor(1, 1, 1, 1)
yuiColor textPrimary = yuiColor(1, 1, 1, 1)
yuiColor textMuted = yuiColor(1, 1, 1, 1)
yuiColor accentPrimary = yuiColor(1, 1, 1, 1)
yuiColor accentSecondary = yuiColor(1, 1, 1, 1)
yuiColor accentTertiary = yuiColor(1, 1, 1, 1)
yuiColor focus = yuiColor(1, 1, 1, 1)
yuiColor selection = yuiColor(1, 1, 1, 1)
yuiResolvedStyle result = CreateYuiResolvedStyle(name, background, panel, panelHover, panelPressed, textPrimary, textMuted, accentPrimary, accentSecondary, accentTertiary, focus, selection)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.ui__createyuiresolvedstyle"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/ui/ui.yh:550