defineTheme
defineTheme(
theme):Theme
Defined in: packages/theme/dist/theme-BFS484ei.d.mts:146
Defines a theme.
Parameters
Section titled “Parameters”The (partial) theme.
accent?
Section titled “accent?”(a) => string
background?
Section titled “background?”(a) => string
error?
Section titled “error?”{ }
foreground?
Section titled “foreground?”(a) => string
(a) => string
primary?
Section titled “primary?”{ }
prompt?
Section titled “prompt?”{ default?: string; highlight?: string; inactive?: string; input?: string; message?: string; placeholder?: string; prefix?: string; selected?: string; }
prompt.default?
Section titled “prompt.default?”prompt.highlight?
Section titled “prompt.highlight?”prompt.inactive?
Section titled “prompt.inactive?”prompt.input?
Section titled “prompt.input?”prompt.message?
Section titled “prompt.message?”prompt.placeholder?
Section titled “prompt.placeholder?”prompt.prefix?
Section titled “prompt.prefix?”prompt.selected?
Section titled “prompt.selected?”secondary?
Section titled “secondary?”{ }
styles?
Section titled “styles?”{ bold?: string; italic?: string; underline?: string; }
Optional styles.
styles.bold?
Section titled “styles.bold?”styles.italic?
Section titled “styles.italic?”styles.underline?
Section titled “styles.underline?”success?
Section titled “success?”{ }
symbols?
Section titled “symbols?”{ cursor: string; error: string; fatal: string; info?: string; success: string; warning: string; }
Set of symbols for logging.
symbols.cursor
Section titled “symbols.cursor”string
A cursor symbol, used in things like search and select.
symbols.error
Section titled “symbols.error”string
Error message symbol.
symbols.fatal
Section titled “symbols.fatal”string
Fatal error message symbol.
symbols.info?
Section titled “symbols.info?”string
Information message symbol.
symbols.success
Section titled “symbols.success”string
Success message symbol.
symbols.warning
Section titled “symbols.warning”string
Warning message symbol.
warning?
Section titled “warning?”{ }
Returns
Section titled “Returns”The theme, merged with the default theme.