FlowbitePhoenix.Config (FlowbitePhoenix v0.1.2)

View Source

Configuration management for FlowbitePhoenix.

This module provides centralized configuration management for themes, colors, and other customizable aspects of FlowbitePhoenix components.

Summary

Functions

Gets alert configuration.

Returns available color options for components.

Returns available size options for components.

Gets badge configuration.

Gets button configuration.

Gets component-specific configuration.

Checks if dark mode is enabled in configuration.

Gets a specific configuration value by path.

Gets the complete configuration for FlowbitePhoenix.

Gets the Gettext backend if configured.

Gets input configuration.

Gets the primary color from theme configuration.

Validates the configuration and returns any errors.

Functions

alert_config()

Gets alert configuration.

available_colors()

Returns available color options for components.

available_sizes()

Returns available size options for components.

badge_config()

Gets badge configuration.

button_config()

Gets button configuration.

component_config(component)

Gets component-specific configuration.

dark_mode_enabled?()

Checks if dark mode is enabled in configuration.

get(path)

Gets a specific configuration value by path.

Examples

FlowbitePhoenix.Config.get([:theme, :primary_color])
# => "blue"

FlowbitePhoenix.Config.get([:button, :base_classes])
# => "focus:ring-4 focus:outline-none..."

get_config()

Gets the complete configuration for FlowbitePhoenix.

Merges application configuration with defaults.

gettext_backend()

Gets the Gettext backend if configured.

input_config()

Gets input configuration.

primary_color()

Gets the primary color from theme configuration.

validate_config()

Validates the configuration and returns any errors.