Use core's List.init

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
refactor: define type color

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>