Cinder.Theme.Behaviour behaviour (Cinder v0.2.0)

View Source

Behaviour for Cinder theme modules.

This behaviour defines the interface that all theme modules must implement, whether they use the DSL or are simple theme modules.

Summary

Callbacks

Resolves the theme configuration into a map of CSS classes.

Callbacks

resolve_theme()

@callback resolve_theme() :: %{required(atom()) => String.t()}

Resolves the theme configuration into a map of CSS classes.

Returns a map where keys are theme property atoms and values are CSS class strings.