protected function loadDefaultStyles(): void
    {
        $this
            ->addByArray(self::NORMAL, ['fg' => 'normal'])
            // 不明显的 浅灰色的
            ->addByArray(self::FAINTLY, ['fg' => 'normal', 'options' => ['italic']])
            ->addByArray(self::BOLD, ['options' => ['bold']])
            ->addByArray(self::INFO, ['fg' => 'green',])//'options' => ['bold']
            ->addByArray(self::NOTE, ['fg' => 'cyan', 'options' => ['bold']])//'options' => ['bold']
            ->addByArray(self::PRIMARY, ['fg' => 'yellow', 'options' => ['bold']])//
            ->addByArray(self::SUCCESS, ['fg' => 'green', 'options' => ['bold']])
            ->addByArray(self::NOTICE, ['options' => ['bold', 'underscore'],])
            ->addByArray(self::WARNING, ['fg' => 'black', 'bg' => 'yellow',])//'options' => ['bold']
            ->addByArray(self::COMMENT, ['fg' => 'yellow',])//'options' => ['bold']
            ->addByArray(self::QUESTION, ['fg' => 'black', 'bg' => 'cyan'])
            ->addByArray(self::DANGER, ['fg' => 'red',])// 'bg' => 'magenta', 'options' => ['bold']
            ->add(self::ERROR, 'white', 'red', [], true)
            ->add('underline', 'normal', '', ['underscore'])
            ->add('blue', 'blue')
            ->add('cyan', 'cyan')
            ->add('magenta', 'magenta')
            ->add('mga', 'magenta')
            ->add('red', 'red')
            ->addByArray('yellow', ['fg' => 'yellow'])
            ->addByArray('darkGray', ['fg' => 'black', 'extra' => true]);
    }
protected function loadDefaultStyles(): void
    {
        $this
            ->addByArray(self::NORMAL, ['fg' => 'normal'])
            // 不明显的 浅灰色的
            ->addByArray(self::FAINTLY, ['fg' => 'normal', 'options' => ['italic']])
            ->addByArray(self::BOLD, ['options' => ['bold']])
            ->addByArray(self::INFO, ['fg' => 'green',])//'options' => ['bold']
            ->addByArray(self::NOTE, ['fg' => 'cyan', 'options' => ['bold']])//'options' => ['bold']
            ->addByArray(self::PRIMARY, ['fg' => 'yellow', 'options' => ['bold']])//
            ->addByArray(self::SUCCESS, ['fg' => 'green', 'options' => ['bold']])
            ->addByArray(self::NOTICE, ['options' => ['bold', 'underscore'],])
            ->addByArray(self::WARNING, ['fg' => 'black', 'bg' => 'yellow',])//'options' => ['bold']
            ->addByArray(self::COMMENT, ['fg' => 'yellow',])//'options' => ['bold']
            ->addByArray(self::QUESTION, ['fg' => 'black', 'bg' => 'cyan'])
            ->addByArray(self::DANGER, ['fg' => 'red',])// 'bg' => 'magenta', 'options' => ['bold']
            ->add(self::ERROR, 'white', 'red', [], true)
            ->add('underline', 'normal', '', ['underscore'])
            ->add('blue', 'blue')
            ->add('cyan', 'cyan')
            ->add('magenta', 'magenta')
            ->add('mga', 'magenta')
            ->add('red', 'red')
            ->addByArray('yellow', ['fg' => 'yellow'])
            ->addByArray('darkGray', ['fg' => 'black', 'extra' => true]);
    }
protected function loadDefaultStyles ( ) : void { $ this -> addByArray ( self :: NORMAL , [ 'fg' => 'normal' ] ) // 不明显的 浅灰色的 -> addByArray ( self :: FAINTLY , [ 'fg' => 'normal' , 'options' => [ 'italic' ] ] ) -> addByArray ( self :: BOLD , [ 'options' => [ 'bold' ] ] ) -> addByArray ( self :: INFO , [ 'fg' => 'green' , ] ) //'options' => ['bold'] -> addByArray ( self :: NOTE , [ 'fg' => 'cyan' , 'options' => [ 'bold' ] ] ) //'options' => ['bold'] -> addByArray ( self :: PRIMARY , [ 'fg' => 'yellow' , 'options' => [ 'bold' ] ] ) // -> addByArray ( self :: SUCCESS , [ 'fg' => 'green' , 'options' => [ 'bold' ] ] ) -> addByArray ( self :: NOTICE , [ 'options' => [ 'bold' , 'underscore' ] , ] ) -> addByArray ( self :: WARNING , [ 'fg' => 'black' , 'bg' => 'yellow' , ] ) //'options' => ['bold'] -> addByArray ( self :: COMMENT , [ 'fg' => 'yellow' , ] ) //'options' => ['bold'] -> addByArray ( self :: QUESTION , [ 'fg' => 'black' , 'bg' => 'cyan' ] ) -> addByArray ( self :: DANGER , [ 'fg' => 'red' , ] ) // 'bg' => 'magenta', 'options' => ['bold'] -> add ( self :: ERROR , 'white' , 'red' , [ ] , true ) -> add ( 'underline' , 'normal' , '' , [ 'underscore' ] ) -> add ( 'blue' , 'blue' ) -> add ( 'cyan' , 'cyan' ) -> add ( 'magenta' , 'magenta' ) -> add ( 'mga' , 'magenta' ) -> add ( 'red' , 'red' ) -> addByArray ( 'yellow' , [ 'fg' => 'yellow' ] ) -> addByArray ( 'darkGray' , [ 'fg' => 'black' , 'extra' => true ] ) ; }
Adds predefined color styles to the Color styles
default primary success info warning danger
Adds predefined color styles to the Color styles default primary success info warning danger