Skip to content

Constants

morphui.constants

THEME = _Theme_() module-attribute

Container for theme-related constants.

PATH = _Path_() module-attribute

Container for path constants.

ICON = _Icon_() module-attribute

Container for icon constants.

FONTS = _Fonts_() module-attribute

Container for font-related constants and configurations.

This instance provides access to pre-configured font families used throughout MorphUI. Each property returns a dictionary with font details structured for Kivy font registration, including paths to all weight and style variants.

Font families included: - DM Sans (Regular, Thin, Heavy variants) - Inter (UI-optimized font) - Material Design Icons (vector icon font)

Examples:

# Register DM Sans Regular with Kivy
from kivy.core.text import LabelBase
LabelBase.register(**FONTS.DMSANS_REGULAR)

# Use in Label
label = Label(font_name='DMSans', text='Hello World')

REGEX = _RegexPattern_() module-attribute

Container for precompiled regular expressions.