colorx 1.0.0 copy "colorx: ^1.0.0" to clipboard
colorx: ^1.0.0 copied to clipboard

Colors.JS implementation in dartlang.

example/colorx_example.dart

import 'package:colorx/colorx.dart';

void main() {
    print('reset'.reset);

    print('bold'.bold);
    print('dim'.dim);
    print('italic'.italic);
    print('underline'.underline);
    print('inverse'.inverse);
    print('hidden'.hidden);
    print('strikethrough'.strikethrough);

    print('black'.black);
    print('red'.red);
    print('green'.green);
    print('yellow'.yellow);
    print('blue'.blue);
    print('magenta'.magenta);
    print('cyan'.cyan);
    print('white'.white);
    print('gray'.gray);
    print('grey'.grey);

    print('brightRed'.brightRed);
    print('brightGreen'.brightGreen);
    print('brightYellow'.brightYellow);
    print('brightBlue'.brightBlue);
    print('brightMagenta'.brightMagenta);
    print('brightCyan'.brightCyan);
    print('brightWhite'.brightWhite);

    print('bgBlack'.bgBlack);
    print('bgRed'.bgRed);
    print('bgGreen'.bgGreen);
    print('bgYellow'.bgYellow);
    print('bgBlue'.bgBlue);
    print('bgMagenta'.bgMagenta);
    print('bgCyan'.bgCyan);
    print('bgWhite'.bgWhite);
    print('bgGray'.bgGray);
    print('bgGrey'.bgGrey);

    print('bgBrightRed'.bgBrightRed);
    print('bgBrightGreen'.bgBrightGreen);
    print('bgBrightYellow'.bgBrightYellow);
    print('bgBrightBlue'.bgBrightBlue);
    print('bgBrightMagenta'.bgBrightMagenta);
    print('bgBrightCyan'.bgBrightCyan);
    print('bgBrightWhite'.bgBrightWhite);

    print('This is a Rainbow !'.rainbow());
    print('Zeebra\'s are fun too !'.zebra());
    print('And here is the Indian Flag !'.indianFlag());
}
2
likes
130
pub points
68%
popularity

Publisher

unverified uploader

Colors.JS implementation in dartlang.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on colorx