Class: Plutonium::UI::Table::DisplayTheme

Inherits:
Phlexi::Table::DisplayTheme
  • Object
show all
Defined in:
lib/plutonium/ui/table/display_theme.rb

Class Method Summary collapse

Class Method Details

.themeObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/plutonium/ui/table/display_theme.rb', line 7

def self.theme
  super.merge({
    value_wrapper: "max-h-[150px] overflow-y-auto",
    prefixed_icon: "w-4 h-4 mr-1 text-[var(--pu-text-muted)]",
    link: "text-primary-600 dark:text-primary-400 hover:text-primary-500 dark:hover:text-primary-300 transition-colors",
    color: "flex items-center",
    color_indicator: "w-8 h-8 rounded-md mr-2 shadow-sm border border-[var(--pu-border)]",
    email: "flex items-center gap-1 text-primary-600 dark:text-primary-400 hover:text-primary-500 whitespace-nowrap transition-colors",
    phone: "flex items-center gap-1 text-primary-600 dark:text-primary-400 hover:text-primary-500 whitespace-nowrap transition-colors",
    json: "whitespace-pre font-mono text-xs bg-[var(--pu-surface-alt)] border border-[var(--pu-border-muted)] rounded-[var(--pu-radius-sm)] p-2 overflow-x-auto",
    attachment_value_wrapper: "flex flex-wrap gap-1"
  })
end