Terminal Theming

Theming documentation for Terminal component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-terminalClass name of the root element
p-terminal-welcome-messageClass name of the welcome element
p-terminal-command-listClass name of the command list element
p-terminal-commandClass name of the command element
p-terminal-command-valueClass name of the command value element
p-terminal-command-responseClass name of the command response element
p-terminal-promptClass name of the prompt element
p-terminal-prompt-labelClass name of the prompt label element
p-terminal-prompt-valueClass name of the prompt value element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
terminal.background
--p-terminal-background
Background of root
terminal.border.color
--p-terminal-border-color
Border color of root
terminal.color
--p-terminal-color
Color of root
terminal.height
--p-terminal-height
Height of root
terminal.padding
--p-terminal-padding
Padding of root
terminal.border.radius
--p-terminal-border-radius
Border radius of root
terminal.prompt.gap
--p-terminal-prompt-gap
Gap of prompt
terminal.command.response.margin
--p-terminal-command-response-margin
Margin of command response

Unstyled#

Theming is implemented with the pass through properties in unstyled mode.