Sha256: f66c91d35feaf047851fdda2caa4b170a336195bb802ef172d846cac559db2bc

Contents?: true

Size: 1.37 KB

Versions: 5

Compression:

Stored size: 1.37 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",
            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

5 entries across 5 versions & 1 rubygems

Version Path
plutonium-0.16.0 lib/plutonium/ui/display/theme.rb
plutonium-0.15.24 lib/plutonium/ui/display/theme.rb
plutonium-0.15.23 lib/plutonium/ui/display/theme.rb
plutonium-0.15.22 lib/plutonium/ui/display/theme.rb
plutonium-0.15.21 lib/plutonium/ui/display/theme.rb