| 1 | package ColorTheme::JSON::Color::default_ansi; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use parent 'ColorThemeBase::Static::FromStructColors'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use Term::ANSIColor qw(:constants); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 8 | 2 | our $DATE = '2021-11-24'; # DATE | |
| 9 | 2 | our $DIST = 'JSON-Color'; # DIST | |
| 10 | 2 | our $VERSION = '0.133'; # VERSION | |
| 11 | |||
| 12 | 2 | our %THEME = ( | |
| 13 | v => 2, | ||
| 14 | summary => 'The default color theme for JSON::Color, using ANSI codes', | ||
| 15 | items => { | ||
| 16 | string_quote => {ansi_fg=>BOLD . BRIGHT_GREEN}, | ||
| 17 | string => {ansi_fg=>GREEN}, | ||
| 18 | string_escape => {ansi_fg=>BOLD}, | ||
| 19 | number => {ansi_fg=>BOLD . BRIGHT_MAGENTA}, | ||
| 20 | true => {ansi_fg=>BOLD . CYAN}, | ||
| 21 | false => {ansi_fg=>CYAN}, | ||
| 22 | bool => {ansi_fg=>CYAN}, | ||
| 23 | null => {ansi_fg=>BOLD . BLUE}, | ||
| 24 | object_key => {ansi_fg=>MAGENTA}, | ||
| 25 | object_key_quote => {ansi_fg=>MAGENTA}, | ||
| 26 | object_key_escape => {ansi_fg=>BOLD}, | ||
| 27 | linum => {ansi_fg=>REVERSE . WHITE}, | ||
| 28 | }, | ||
| 29 | ); | ||
| 30 | |||
| 31 | 2 | 1; | |
| 32 | # ABSTRACT: The default color theme for JSON::Color, using ANSI codes | ||
| 33 | |||
| 34 | __END__ | ||