Devices

Device mockups are a great way to showcase your designs in a realistic way!

Phone

You can use the daisy_device component to display a phone mockup.

Preview
Beautiful Landscapes
Code
= daisy_device(css: "mockup-phone", display_css: "overflow-auto") do
  .flex.flex-col.gap-4.p-4.pt-12.pb-8.bg-base-100
    .text-center.text-2xl.font-bold
      Beautiful Landscapes
    = image_tag("landscapes/beach.jpg", class: "rounded-lg")
    = image_tag("landscapes/desert.jpg", class: "rounded-lg")
    = image_tag("landscapes/forest.jpg", class: "rounded-lg")
    = image_tag("landscapes/mountain-river.jpg", class: "rounded-lg")

Tablet

You can also hide the camera by passing show_camera: false to the component and add any colors you want to the device.

Preview
Beautiful Landscapes
Code
= daisy_device(css: "mockup-phone border-red-600", display_css: "overflow-auto w-[736px] h-[414px]", show_camera: false) do
  .flex.flex-col.gap-4.p-4.bg-base-100
    .text-center.text-2xl.font-bold
      Beautiful Landscapes
    = image_tag("landscapes/beach.jpg", class: "rounded-xl")
    = image_tag("landscapes/desert.jpg", class: "rounded-xl")
    = image_tag("landscapes/forest.jpg", class: "rounded-xl")
    = image_tag("landscapes/mountain-river.jpg", class: "rounded-xl")
Made with by Profoundry .
Copyright © 2023-2025 Profoundry LLC.
All rights reserved.