🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.
Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.
api
Themes
themes
The top-level themes
configuration, which includes presets
and defaults
for managing themes globally and individually.
object
(default: {}
) Defines individual themes and their fallback hierarchies. Each preset can be a simple array or a detailed object.
object
(default: {namespace: [/^@_/], rootNodes: ["*"], file: "en", app: "en"}
) Global defaults applied to all themes, simplifying preset configurations. Includes file
, app
, namespaces
, and rootNodes
.
themes.defaults
Defines global defaults for themes to simplify configuration.
string
(default: "en"
) Default fallback theme for unmatched files.
string
(default: "en"
) Default app-wide theme.
array
(default: [/^@_/]
) Folders ignored as themes. Supports regex patterns.
array
(default: ["*"]
) Default root nodes applied to all presets.
themePreset
Represents an individual theme preset. Can be configured as a simple array or a detailed object for fine-grained control.
array
(default: []
) Ordered list of theme preferences. Compound themes can be defined as nested arrays.
array
(default: []
) Specifies the root nodes for this preset.