{"id":"ui--PrimeYuiThemeValidation","name":"PrimeYuiThemeValidation","owner":"yeho","package":"ui","kind":"function","signature":"external PrimeYuiThemeValidation(yuiThemeDefinition theme) returns yuiThemeDefinition","description":"A theme is validated once, at construction, so every copy handed to a control lowering inherits the answer instead of recomputing it. Without this the cache would only ever be warm on the copy that happened to ask first, which is not the one the next control receives.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"theme","type":"yuiThemeDefinition","description":"Supply theme as yuiThemeDefinition."}],"returns":"yuiThemeDefinition","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/visual-10-theme.yh","line":154,"sha256":"72423962c8aebb535983d233c57960a30415aa1a69ee623a1a08b0ba64762451"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use PrimeYuiThemeValidation","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\nyuiThemeDefinition theme = yuiThemeDefinition(\"id\", \"display Name\", \"mode\", \"example\")\nyuiThemeDefinition result = PrimeYuiThemeValidation(theme)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__primeyuithemevalidation\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"fd2b6a4afc1dce576224bbffa5485fadc0ea9dd81c2d0e2590de1ebaffc34352","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--PrimeYuiThemeValidation","json":"https://demonhunterlabs.com/reference/items/ui--PrimeYuiThemeValidation.json","markdown":"https://demonhunterlabs.com/reference/text/ui--PrimeYuiThemeValidation.md"}
