@ui5/builder/processors/ThemeBuilder

Classes

ThemeBuilder

Methods

(static) default(parameters) → {Promise.<Array.<@ui5/fs/Resource>>}

Description:
  • Builds a library theme.
Source:
Parameters:
Name Type Description
parameters object Parameters
Properties
Name Type Attributes Description
resources Array.<@ui5/fs/Resource> List of library.source.less resources to be processed
fs fs | module:@ui5/fs/fsInterface Node fs or custom fs interface
options module:@ui5/builder/processors/ThemeBuilder~ThemeBuilderOptions <optional>
Options
Returns:
Promise resolving with theme resources
Type
Promise.<Array.<@ui5/fs/Resource>>

Type Definitions

ThemeBuilderOptions

Source:
Properties:
Name Type Attributes Default Description
compress boolean <optional>
false Compress build output (CSS / JSON)
cssVariables boolean <optional>
false Generates the CSS variables (css-variables.css, css-variables.source.less) and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css])
Type:
  • object