Game settings (ui in liminalia.json)
On this page
Every item can be left out, and leaving it out gives the default look and controls described above. The shape is UiConfig in @liminalia/lang (checked by lim check and Studio’s check).
Lengths are in px of the game screen, and colors are CSS colors. Paths are from the image folder for images, bgimage for backgrounds, bgm for BGM and others for font files.
| Key | What it holds |
|---|---|
fonts | Fonts to load ([{ "family": …, "file": …, "weight": … }]; paths from others). Each item’s font uses them by name |
text | The text’s font (font. If you don’t set it, a Japanese Mincho font is used when the game is played in Japanese, Chinese or Korean, and in other languages a Latin serif font (such as Iowan Old Style, Palatino or Georgia) comes first, with Japanese characters shown in the Mincho font after it. Earlier versions used the Japanese Mincho font in every language, so to get the same result, set it to something like "\"Hiragino Mincho ProN\", \"Yu Mincho\", serif". To match the text on the system screens too, set --font-fallback on :root in your project’s CSS), font file (fontFile), size, color, line height, decoration (decoration: none / shadow / edge, and decorationColor), color of read pages (readColor), alignment (align: left / center / right; even when centered, lines don’t move while the text appears), and values for Japanese typesetting (the ruby size rubySize (a multiple of the base characters; 0.45 by default), the gap between ruby and the base characters rubyGap (a multiple of the base characters; 0 by default, which attaches the ruby at the top of one base character’s height; negative values bring it closer; in vertical writing, the gap to the right), characters per line lineChars (per column in vertical writing. Each character counts as 1em, so for vertical writing the font must have vertical advance widths; lim check reports font files that don’t), the strength of the line-breaking rules (kinsoku, which keep certain characters from starting or ending a line) lineBreak (strict / normal / loose / anywhere / auto. If it isn’t written, it’s strict when the language being played is Japanese or Chinese, so small ッ and ゃ and ー don’t start a line; other languages use auto, which leaves it to the browser. Earlier versions used auto regardless of the language, so write auto to break lines as before. The same value applies to the name box, choices, the backlog, the system screens and the screens of the standard commands such as the codex and chat, not just the text), hanging punctuation at line ends hangingPunctuation (Safari and iOS only), and the gap between paragraphs in NVL paragraphGap (a multiple of the text size; 0.5 by default, and 0 moves down by exactly one line)). Text shadow shadow, outline stroke, letter spacing letterSpacing, weight weight, and space above the text topGap. The outer brackets and quotation marks of dialogue quotes (keep shows them as written and is the default. strip removes the outer pair of 「…」 『…』 “…” "…" around the dialogue text, and works the same in the message window, NVL, the backlog, balloons and the chat screen. (…) stays. It can be set per language. How they’re removed is in chapter 4 of format.md). How each character appears reveal (fade fades it in and is the default, none shows characters one by one without fading, rise floats them up slightly) and the time for each character to appear revealTime (milliseconds; 120 by default). From the project’s CSS, use --lm-reveal-animation, --lm-reveal-time and --lm-reveal-easing (one character of text in plugins.md) |
message | The message window’s position and size (x y width height; writing any one of them places it by its top-left corner and size), inner padding, background color, image, border color, corner radius, scroll (instead of starting a new page, text that doesn’t fit scrolls inside the message window, following the text down; the wheel over the text is used for reading back), and vertical (vertical writing; the script can also switch it with @vertical). padding is a number or a CSS value. imageSlice (slicing so the corners don’t stretch). backdrop and backdropHeight (a CSS background laid under the window). none for borderColor removes the line. With keepText set to true, the first command after a click turns the page doesn’t clear the previous page’s name and text, which stay until the next text (the behavior before 0.4.1; for one line, keep-text=true on @bg) |
name | The name box’s position (from the top-left of the message window), size, color, background, image and border color. imageSlice, font font, weight weight, letter spacing letterSpacing, shadow shadow, padding padding, line height lineHeight, and a vertical rule on the left rule. none for borderColor removes the line |
face | The face window. Shows the speaking character’s face inside the message window and shifts the text over by that much. show (always: always. offstage: only when that character’s sprite isn’t shown. explicit: regardless of the speaker, only what @face shows, hidden with @face-off), x y (from the top-left of the message window; when written, the text isn’t shifted), side (left / right), and width height (180 by default). The face image is the character’s face (cast.json in chapter 10 of docs/design/format.md). Not shown during vertical writing, NVL or speech balloons |
chara | How sprites are shown. Speaker focus focus (tones down the sprites of characters who aren’t speaking: none (the default), dim, lower, dim-lower, blur, dim-blur) with its strengths dim (brightness 0–1; 0.6 by default) and lower (how far down in px; 12 by default), and jump, which makes a character who starts speaking hop. With keepText set to true, the previous speaker’s name and text stay while wait=true on @chara waits for a new character to appear (they’re cleared by default; whether the first command after a page turn clears them is set by message.keepText). @chara-config in the script takes priority (“Reducing flicker” in chapter 6 of format.md) |
help | The “Controls” screen (“Controls” in the menu and @open-screen help). The table of controls is built from the current bindings (the player’s bindings, keys, the defaults and gamepad swaps). pages adds tabs with [{ "title": …, "image": …, "text": … }] (such as an explanation of how to play), and with title: true, the screen is also shown on the title screen |
captions | Captions for sound effects and BGM (shown briefly at the top right of the screen to players who turn on “Sound captions” in Settings). sounds maps sound effect files → captions (caption= of @se takes priority), and with music: true, the title from the extras music list is shown when the BGM changes |
tones | Names of sprite color tones (@tone) → { color, amount, saturation, brightness, contrast }. Multiplies by color at a strength of amount (0–1); saturation, brightness and contrast stay unchanged at 1. Names that match a built-in one (sepia, mono, night, evening, dark, plain) replace it. lim check reports names written in the script that don’t exist |
backgroundTones | Background color tones. Background file names (paths from bgimage) → tone names (from tones or built-in), written like { "room_night.webp": "night" }. While that background is shown, the tone is applied to sprites without @tone, so sprites don’t stand out bright against a dark room or an evening background. When @bg changes the background, the sprites’ tone changes over the same time as the background, and changing to a background without a tone removes it. tone= on @bg comes first (tone=none applies none). For sprites given a tone with @tone, that tone comes first; @tone none goes back to the background’s tone, and @tone plain applies no background tone either. lim check reports background and tone names that don’t exist |
glyph | The click-wait icon’s character or image, color, animation (bounce / blink / none), size size (a multiple of the text; 0.7 by default), and gap from the text gap (a multiple of the icon size; 0.3 by default; above and below in vertical writing). Shape shape (diamond, triangle, dot, bar). breathe as an animation |
choice | Choice buttons’ width, text size, spacing, color, background, background on mouse over, border color, image, image on mouse over, height height, the top of the first button y, and an image laid under the text while choices are shown backdrop. imageSlice, font font, weight weight, letter spacing letterSpacing, line height lineHeight, alignment align, padding, margin, minimum height minHeight, a fixed width with wrapping fixedWidth, corner radius radius, background blur blur (px or a backdrop-filter), shadow shadow, hoverColor, hoverBorderColor and hoverShadow on mouse over, ornament ornament (brackets, underline) and ornamentColor, and hiding the message window during choices hideMessage. background and hoverBackground can be gradients too. Placement position (see below) |
chat | Colors and shapes of the chat screen (@chat-open, @chat; see “Chat screen” below). If dialogue is true, regular dialogue becomes bubbles too. Without it, @chat keeps its default look |
system | The look of the system screens (the menu, Save, Load, Settings, Log, confirmations and the title buttons). Color scheme theme (dark / light), accent color accent, font font, text color fg, screen background color screenBg, button background color controlBg, line color border, corner radius radius (px; 4 by default), and title screen background titleBg (a color or gradient; the image of title.background goes on top). Faint text, thin lines and mouse-over backgrounds are made from the chosen colors. images holds images: screen (the background of full-screen screens; from bgimage), and button, buttonHover (button backgrounds; button if there’s no mouse-over image) and frame (the background of the menu and confirmation frames), from image. Button and frame images are stretched to fit, and then the background color and lines are removed. preset is the name of the theme chosen in Studio (see “Themes” below) and doesn’t affect the look. For players who choose “High contrast” in Settings, high contrast takes priority over these colors and images. Title button background titleButtonBg and title text shadow titleShadow. In images, buttonSlice and frameSlice (slicing so the corners don’t stretch), and sliderThumb (the image of the slider knob). The lines and buttons of the dialog and text input (@dialog, @text-input), notifications (@notify) and short messages (“Saved” and so on) also follow border, controlBg, fg, screenBg and accent (dark colors if not set) |
ending | The look of the ending-name screen (shown when play ends with @title-screen ending=). Backdrop background (a color or gradient), a picture laid on it image (from bgimage), font font, name color color, size size (px; 48 by default), letter spacing letterSpacing, kind label color kindColor, color of the rule between the name and the closing mark rule (none draws no rule), closing mark color markColor, size markSize (px; 26 by default) and placement mark (below: under the name, the default; above: above the name; none: not shown, and no rule either). Anything not set uses titleBg, fg and accent of system and the text font (see the example in screens.md) |
nvl nvlStyles | The NVL (@nvl on) look, and named looks chosen with @nvl on style= (name → look). Background background, picture image (from image), padding padding, alignment align, where paragraphs pile up valign, font font, color color, size size, line height lineHeight, paragraph fade fade (milliseconds) and whether to show names names (chapter 4 of format.md) |
chapter | The look of chapter cards and chapter ends (@chapter-card, @chapter-end). Backdrop background (a color or gradient), a picture laid on it image (from bgimage; the command’s image= comes first), font font, text color color, title size size (px; 52 by default. The title of a chapter end is 8/13 of it, and the card title in a portrait game 10/13), title letter spacing letterSpacing (0.12em by default), color of the number and the rule accent, number size numberSize (px; 22 by default), subtitle color subtitleColor and size subtitleSize (px; 18 by default), color of the rule between the title and the subtitle rule (none draws no rule), and the color endColor and size endSize (px; 44 by default) of the closing mark of a chapter end. Anything not set uses titleBg, fg and accent of system and the text font (see the example in screens.md) |
title | The title screen’s background, BGM, title image (logo), whether to show the title text (showName), and whether “Continue” resumes from the newest save (among saves, quick saves and autosaves) without opening the Load screen (resume; false by default). With variants, such as [{ "if": "(system.cleared)", "background": …, "bgm": …, "logo": … }], the first entry whose condition on variables shared across all saves is true replaces only the items it lists (a title that changes after the game is cleared). menu sets the button layout (align, direction, gap, width) |
menuBar | The buttons in the quick menu and their order (items; these can also include prev-choice, next-choice, replay-voice for replaying the voice, items for the inventory, fullscreen to switch between fullscreen and a window, and screen:<name> to open a project screen (registered with the plugin’s system.defineScreen; the text is its label)), position (position: bottom-right / bottom-left / bottom-center / top-right / top-left / hidden), the left and top edges (x y, in px; an axis you write takes precedence over position, and hidden still hides it), and the menu button on touch devices (touchButton). images and activeImages (images per action, and while active), labels (replacement text), color, shadow |
indicator | Position of the auto and skip indicator (top-left, top-right, bottom-left, bottom-right, hidden. top-left by default; hidden when the project replaces the quick menu) |
cursor | The mouse cursor’s image and hotspot. With animated, the image is drawn on the game screen and moved with the mouse (GIF and APNG animate) |
tap | The tap effect’s image (image), size (size), time until it disappears (time) and sound effect to play (se; from sound) |
screen | Set fullscreen to false to prevent fullscreen (“Display” in Settings, Alt+Enter, F11 and @fullscreen stop working). textScale is the range “Text size” in Settings applies to (all: text, choices, name box, backlog and system screens; the default. message: text and choices only). pauseScenario is whether to stop the script’s next command while standard screens (Settings, Save, Load, Log, confirmations and so on) are open (the rest of a @wait and effects that advance with time don’t move on behind the screen; it stops by default. Set it to false to not stop, as in earlier versions). Only the next command stops; the remaining time of choices with a time limit (@choice timeout=) doesn’t go down while a screen (including project screens) is open, regardless of this setting (the remaining-time bar stops too, and continues from where it was when the screen closes). Set pauseInBackground to false to keep sound, video, auto and the choice time limit going when the tab is in the background (paused by default) |
input | Mouse and advance bindings. rightClick (menu or hide), wheelUp (backlog or rollback), swipeSide (rollback or none; for sideways swipes), middleClick (pressing the wheel; hide or none), numberKeys (false to not choose options with the number keys). Set skipEffects to false so that advancing while waiting for an effect doesn’t skip it to the end (skipped by default; per command, skip=false) |
saveSlots | Number of save slots (rounded up to a multiple of 8, 8–200; 48 by default) |
autosave | Autosave (see “Autosave” above). slots is the number of slots (0–10; 3 by default. With 0, there are none and @autosave does nothing), leave is whether to also save when quitting and going to the background (true by default; false when the project replaces the Load screen), and on sets other times to save (choice: when choices are shown, true by default; chapter: at the start of a chapter, false by default; pages: every this many pages read, 0 by default, which doesn’t) |
chapterNames | Chapter names shown in save slots ("file#label" or "file" → name). See “Save, Load” above |
quickSave | Quick save. slots is the number of slots (1–10; 3 by default). Quick save saves to an empty slot or the oldest slot, and quick load loads the newest slot. With 1, it keeps overwriting a single slot, as in earlier versions |
backlog | Number of pages kept in the backlog (10–2000; 300 by default) |
sound | movie is the volume from Settings applied to the sound of videos (@movie, @bg-movie, @blend-movie, movies in Extras) (bgm: the music volume, the default; se; voice; none: the master volume only). The video volume is “the command’s volume × that volume × the master volume,” and mute applies too. Where the volume of videos can’t be changed, as on iOS, it’s applied through Web Audio. Set streamBgm to false to decode long BGM too before playing it (see streaming in “Sound” above). ui is the system sound effects (see “Sound” above) |
backlogChoices | Whether to keep chosen options in the backlog (true by default) |
defaults | Settings values for players playing for the first time (text speed, auto delay, master volume master, BGM, sound effect and voice volumes, whether skip also skips unread text, whether auto and skip keep going after choices autoAfterChoice and skipAfterChoice, text box opacity windowOpacity, text size textScale, and whether to lower the BGM while a voice plays duckBgm) |
css | The list of project CSS files (paths from the project folder, such as ["ui/screens.css"]). See “Project CSS” below |
keys | Key bindings (advance, menu, backlog, hide, auto, skip, quickSave, quickLoad, save, load, config, rollback, rollforward, prevChoice, nextChoice, nextUnread, screenshot, mute, replayVoice, copyText → arrays of KeyboardEvent.key names). Only the actions you write replace their defaults, and the keys you write are removed from the defaults of other actions. An empty array turns off that action’s keys |
The placement of choices, ui.choice.position, is avoid-faces (the default; centered vertically, but moved to the nearest height that doesn’t overlap only when it would overlap a sprite’s face. If it fits neither above nor below, the height with the least overlap),
center (vertically centered, even over a face), top or bottom (just above the message window; at the bottom if the window isn’t shown), or inline (written into the text flow; see below).
The face area is face of the sprite set in cast.json (the area cut out for the face window); without it, it’s estimated from the skin and outline in the sprite image (from the forehead to the chin).
When y is written, y is used instead of top and bottom, and avoid-faces moves from the y position (with only y and no position, the choices stay at y). Choices with x= y= on their buttons and choices shown on the chat screen don’t move. Portrait games work the same way.
With inline, no button layer is overlaid; the options are written as text lines continuing the current text (sound-novel style). A ▶ marker at the start of a line points to the line being chosen, and once chosen the options stay as part of the text with a mark left on the chosen line. While @nvl on they’re stacked like paragraphs, so they are redrawn after saving and loading (in a message window they disappear together with the next page). x= y= placement, ornament, backdrop and hideMessage have no effect. Choices from the game’s own screen (screens.choice, separate from ui.templates.choice) and choices on the chat screen (ui.chat.dialogue) keep their usual layer and band.
"ui": { "choice": { "position": "center" } }
The player applies the look (text, message window, name box, click-wait icon, choices, cursor) to the game screen (DomHost.setUi), so it works with replaced system screens too.
Save slots, the backlog, initial settings, keys, the title screen and the quick menu are read by the default system screens (replaced system screens can read them from SystemEnv.project.ui).
On the dev server, changes to ui are reflected in open players right away (without restarting).
Project CSS
The CSS files listed in ui.css are loaded after the theme and plugin CSS (CSS a plugin imports and <style> added in setup), in the listed order.
The engine’s CSS sits in the cascade layer liminalia, so project CSS wins without fighting over selector specificity, and at equal specificity a later file wins.
The selectors and variables of the parts are in the tables in screens.md. You can restyle the standard screens by selector without writing a plugin.
"ui": { "css": ["ui/screens.css"] }
- Export: included in browser, desktop and mobile exports. Files that
url()and@importinside point to are included too (small images inside the CSS, others inengine/) - Dev server: saving swaps the CSS in open players and in Studio’s preview without reloading. Adding a file to
ui.cssor removing one works the same way - Nothing outside the project is read: the paths in
ui.cssand theurl()and@importinside are relative paths that point inside the project folder (url()is relative to the CSS file. Going up like../assets/image/frame.pngis fine, but not above the project folder).data:is allowed too. Absolute URLs such ashttp:and paths starting with/aren’t exported and can’t be read under the exported game’s rules (Content-Security-Policy), solim checkreports them as errors (ui-css-outside) - Check: missing files (
ui-css-missing), unclosed comments or brackets (ui-css-syntax) and filesurl()points to that don’t exist (ui-css-asset) are reported bylim check, Studio and VS Code too - Clicking a part in Studio’s “Game screens” lets you write lines for that part’s selector from fields (studio.md). They go to the first file in
ui.css(if there is none,ui/screens.cssis created and added toui.css)
Themes
Open “Change theme” at the very top of “Game settings” in Studio to choose a theme for the look of the whole game (Default, Washi, Night, Pastel, Terminal, Mansion, Near Future, School, and Chat for portrait games). Settings and assets don’t change until you choose a card and click “Apply.”
A theme changes the text, message window, name box, click-wait icon, choices, system screens, ending-name screen and quick menu together. What each screen can change with values is in the table in screens.md. From an AI assistant, apply one with set_theme in MCP.
| When you choose one | What |
|---|---|
| Replaced | The look of text (font, size, color, decoration and so on), message, name, glyph, choice, chat (except me and title), system, ending, chapter, the look of menuBar (images, activeImages, labels, color, shadow), title.menu |
| Kept | Items for controls and environment (keys, defaults, saveSlots and so on), text layout (rubySize, lineChars, lineBreak and so on), message.scroll, message.vertical, chat.me, chat.title, the quick menu’s items, position, x, y and touchButton, the title’s picture and sound (background, bgm, logo). Fonts and system.images that the theme doesn’t set |
| Copied | The theme’s assets (SVG), to assets/image/themes/<id>/ |
The game reads the values and draws from them, so after choosing a theme, you can edit each field one by one. Choosing another theme after editing asks for confirmation.
When you apply a theme in Studio, assets that the previous preset copied and that are still unchanged and unused anywhere else go to the trash. Assets changed in the project, assets that are referenced and assets of original themes are kept. They can be restored from the trash.
The built-in themes are in packages/lang/src/themes/ (Studio loads them too, so they’re in lang rather than on the rendering side).
Orientation: Writing orientation: "portrait" in a theme (for a project theme, in theme.json) makes it for portrait games only. It isn’t listed for landscape games, and for portrait games it’s grouped at the top of the list under the heading “Portrait only.” set_theme in MCP and POST /ui/theme in Studio refuse to apply it to a landscape game and give the reason (themeFitsScreen in @liminalia/lang).
Themes in the project: Writing { "name": …, "nameEn": …, "orientation": …, "engines": { "liminalia": ">=2" }, "ui": { … } } in themes/<id>/theme.json adds the theme to the list (nameEn, orientation and engines can be left out). Assets put in themes/<id>/assets/ are copied to assets/image/themes/<id>/.
engines.liminalia is the range of engine interface versions the theme works with, written the same way as for plugins (“Declaring compatible engines” in plugins.md). If it doesn’t match this engine, lim check and Studio’s check warn (theme-engine-version).
Screens and effects that can’t be written as values can be registered with the same <id> in a plugin’s themes (plugins.md); they’re active only while that theme is chosen.
Making the current look a theme: In the theme section of “Game settings,” “Save the current look as a theme” saves themes/<id>/theme.json under the name you enter and adds it to the list (<id> is made from the name. A project theme with the same name is overwritten after confirmation. The names of built-in themes can’t be used).
The saved theme.json gets engines.liminalia from the current engine interface version (such as ">=2"). Only the “Replaced” items in the table above are saved (uiThemeValues in @liminalia/lang, the same definition as applyUiTheme); the “Kept” items and ui.system.preset aren’t included. A theme saved in a portrait game gets orientation: "portrait" (because window positions and widths are set in coordinates for the game screen’s orientation; this applies to themes without chat settings too). Saving doesn’t change the name of the theme currently chosen (preset), because plugin themes are applied by name. To use the saved theme, choose it from the list.
References to images and fonts keep pointing at the project’s assets (assets/), so use the theme within the project where you made it (to take it to another project, copy the assets along with it).
A project theme can be moved to the trash (.liminalia/trash/) with the button at the top right of its card, and restored with “Undo” in the notice (values written in ui stay as they are). Built-in themes can’t be deleted.
Chat screen
The look of the screen for @chat-open and @chat (commands.md) is set with ui.chat. Every item can be left out; without them, the colors and shapes stay as they were.
The chat theme (packages/lang/src/themes/chat.ts; portrait only) fills these in and sets dialogue to true.
| Key | What it holds |
|---|---|
dialogue | Shows regular dialogue, narration and choices on a chat screen that fills the game screen (below) |
me, title | Your own speaker name (this speaker’s bubbles appear on the right) and the name in the header (no header without it). me= and the title of @chat-open take priority. Kept when the theme changes |
size, font, color | Text size (px. 16 by default for the @chat screen and 26 for dialogue; with dialogue, the “Text size” setting applies too), font and color |
background, image | The screen’s background (CSS background) and an image tiled over it (from image) |
headBackground, headColor | The header’s background color and text color |
otherBackground, otherColor, meBackground, meColor | Background and text colors of the other person’s bubbles and your own |
radius, tailRadius | The bubbles’ corner radius (16 by default) and the corner on the speaker’s side (4 by default) |
nameColor, noteColor | The color of names, and of the one-line narration |
showName | How the other person’s name is shown. always (every time; the default), first (only when the speaker changes), none |
showFace, faceSize | Shows the face in a circle next to the other person’s bubbles (56 in diameter by default). The image is the character’s face, the same as in the face window (the variant’s face, or the crop from the sprite set’s face); without one, the first character of the name |
choiceBackground | Background of the choice area in dialogue (the buttons use ui.choice) |
typing | How long ”…” is shown before the other person’s bubble (milliseconds; 0 by default, which doesn’t show it. 420 in the chat theme). Clicking skips it. Not shown while skipping, on read pages, on pages returned to by rollback, or in Studio’s preview |
Putting regular dialogue in bubbles (dialogue): Without changing how the script is written, dialogue (Name「…」, Name "…") becomes a bubble (the outer Japanese quotation brackets 「」 and 『』 are removed, while quotation marks are removed only when ui.text.quotes is strip; (…) stays), and narration becomes a small line in the center, stacked up with the bubbles. The message window isn’t shown.
- Text is shown with the same parts as the message window, so ruby, styling, inline commands,
{click}, the text speed settings,@text-sound, auto, skip, read detection, the glossary and voice all work as they are. The backlog keeps the usual text (with the brackets) - Read pages are stacked in
std.chatofstage.extra(at the same point as paragraphs in NVL. This is in save data, so the thread is restored on load, rollback and in Studio’s preview). The newest 60 are kept (CHAT_KEEP) - Choices are lined up in the area at the bottom of the screen (image buttons and clickable areas stay in their own positions), and the chosen text is stacked as your own bubble (image buttons and clickable areas of
@choicearen’t stacked) - During
@nvl on,@vertical onand@balloon on, it goes back to the usual message window and hides the chat screen (the thread stays).@window hideand “Hide” hide it (a screen opened with@chat-openisn’t hidden by@window hide).@clearclears the thread.@chat-closecloses the screen, and the next text starts a new thread.@maskcovers the whole screen - Bubbles don’t get the read color (
ui.text.readColorapplies only to text in the message window, because the other person’s bubbles and yours have different background colors). Lines of read pages get the classis-read - If you remove
ui.chat.dialogue, threads started from regular dialogue aren’t shown even if they’re in a save. A screen opened with@chat-openappears in the earlier terminal-like form
For image frames, writing imageSlice (a number, or four numbers for the top, right, bottom and left) keeps the corners from stretching (CSS border-image). If an SVG is stretched into a frame with a different aspect ratio without slicing, the default preserveAspectRatio draws it small in the middle, so use slicing for SVGs.