Search documentation of phoenix_kit

# PhoenixKit.Install.CssIntegration (phoenix_kit v1.7.87)

Copy Markdown View Source

Handles automatic Tailwind CSS + DaisyUI integration for PhoenixKit installation.

This module provides functionality to:

- Automatically detect app.css file in Phoenix applications
- Add PhoenixKit-specific @source and @plugin directives
- Ensure idempotent operations (safe to run multiple times)
- Provide fallback instructions if automatic integration fails

## Summary

### Functions

add_automatic_css_integration(igniter)

Automatically integrates PhoenixKit with the parent app's CSS configuration.

add_missing_integration_parts(source, existing)
add_smart_integration(source)
check_existing_integration(content)

Checks what PhoenixKit integration already exists in CSS content. Returns a map with detected integrations.

## Functions

# add_automatic_css_integration(igniter)

Automatically integrates PhoenixKit with the parent app's CSS configuration.

## Parameters

- `igniter` - The igniter context

## Returns

Updated igniter with CSS integration applied automatically.

# add_missing_integration_parts(source, existing)

# add_smart_integration(source)

# check_existing_integration(content)

Checks what PhoenixKit integration already exists in CSS content. Returns a map with detected integrations.