Cinder.Theme.Dsl (Cinder v0.2.0)

View Source

Spark DSL for defining Cinder themes.

This module provides a DSL for creating modular, reusable theme definitions that can be used across projects. It follows the same pattern as AshAuthentication's override system.

Example

defmodule MyApp.CustomTheme do
  use Cinder.Theme

  component Cinder.Components.Table do
    set :container_class, "my-custom-table-container"
    set :row_class, "my-custom-row hover:bg-blue-50"
  end

  component Cinder.Components.Filters do
    set :container_class, "my-filter-container"
    set :text_input_class, "my-text-input"
  end
end

Summary

Functions

Defines the theme DSL structure.

Functions

dsl()

Defines the theme DSL structure.