File Coverage

blib/lib/ColorTheme/Data/Dump/Color/Light.pm
Criterion Covered Total %
statement 9 11 81.8
branch 0 4 0.0
condition n/a
subroutine 3 4 75.0
pod n/a
total 12 19 63.1


line stmt bran cond sub pod time code
1             package ColorTheme::Data::Dump::Color::Light;
2              
3 1     1   372820 use strict;
  1         2  
  1         54  
4 1     1   6 use parent 'ColorThemeBase::Static::FromStructColors';
  1         3  
  1         14  
5 1     1   3734 use Term::ANSIColor;
  1         13205  
  1         292  
6              
7             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8             our $DATE = '2025-02-21'; # DATE
9             our $DIST = 'Data-Dump-Color'; # DIST
10             our $VERSION = '0.251'; # VERSION
11              
12             sub _ansi16 {
13 0     0     my ($fg, $bg) = @_;
14             return {
15 0 0         (defined $fg ? (ansi_fg=>color($fg)) : ()),
    0          
16             (defined $bg ? (ansi_bg=>color($bg)) : ()),
17             };
18             }
19              
20             our %THEME = (
21             v => 2,
22             items => {
23             Regexp => 'ddbb00',
24             undef => 'ff6666',
25             number => 'aaaaff', # floats can have different color
26             float => '00ffff',
27             string => 'ffff88',
28             object => '00ff00',
29             glob => '00dddd',
30             key => 'ff77ff',
31             comment => '00cc00',
32             keyword => '', # blue
33             symbol => '00dddd',
34             linum => '808080',
35             },
36             );
37              
38             #use Data::Dump; dd \%THEME;
39              
40             1;
41             # ABSTRACT: Light color theme for Data::Dump::Color (RGB 24bit)
42              
43             __END__