Sha256: 6434262ef407e4b2b4604c35ed82c3ddcd497f0d4e0fdf3c8e48df54796bdd1a

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

module Plutonium
  module UI
    module Display
      class Theme < Phlexi::Display::Theme
        def self.theme
          super.merge({
            base: "",
            value_wrapper: "max-h-[300px] overflow-y-auto",
            fields_wrapper: "p-6 grid grid-cols-1 md:grid-cols-2 2xl:grid-cols-4 gap-6 gap-y-10 grid-flow-row-dense",
            label: "text-base font-bold text-gray-500 dark:text-gray-400 mb-1",
            description: "text-sm text-gray-400 dark:text-gray-500",
            placeholder: "text-md text-gray-500 dark:text-gray-300 mb-1 italic",
            string: "text-md text-gray-900 dark:text-white mb-1 whitespace-pre-line",
            text: "text-md text-gray-900 dark:text-white mb-1 whitespace-pre-line",
            link: "text-primary-600 dark:text-primary-500 whitespace-pre-line",
            color: "flex items-center text-md text-gray-900 dark:text-white mb-1 whitespace-pre-line",
            color_indicator: "w-10 h-10 rounded-full mr-2", # max-h-fit
            email: "flex items-center text-md text-primary-600 dark:text-primary-500 mb-1 whitespace-pre-line",
            phone: "flex items-center text-md text-primary-600 dark:text-primary-500 mb-1 whitespace-pre-line",
            json: "text-sm text-gray-900 dark:text-white mb-1 whitespace-pre font-mono shadow-inner p-4",
            prefixed_icon: "w-8 h-8 mr-2",
            markdown: "format dark:format-invert format-primary"
          })
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plutonium-0.16.3 lib/plutonium/ui/display/theme.rb
plutonium-0.16.1 lib/plutonium/ui/display/theme.rb