aarondb/gleamcms/ai/designer

Types

pub type SectionDescriptor {
  SectionDescriptor(
    title: String,
    content: String,
    section_type: String,
  )
}

Constructors

  • SectionDescriptor(
      title: String,
      content: String,
      section_type: String,
    )
pub type ThemeConfig {
  ThemeConfig(
    name: String,
    bg_color: String,
    text_color: String,
    accent_color: String,
    border_color: String,
    card_bg: String,
    font_family: String,
    layout_style: String,
    shadow_depth: String,
    border_radius: String,
    spacing_scale: String,
    custom_flourish: String,
    sections: List(SectionDescriptor),
  )
}

Constructors

  • ThemeConfig(
      name: String,
      bg_color: String,
      text_color: String,
      accent_color: String,
      border_color: String,
      card_bg: String,
      font_family: String,
      layout_style: String,
      shadow_depth: String,
      border_radius: String,
      spacing_scale: String,
      custom_flourish: String,
      sections: List(SectionDescriptor),
    )

Values

pub fn design_theme(
  prompt: String,
  project_id: String,
  bearer_token: String,
) -> Result(ThemeConfig, String)
pub fn get_env(name: String) -> Result(String, Nil)
pub fn shell_exec(command: String) -> Result(String, String)
Search Document