Q:

blender 2.8 flat color for 2d animation

I want to make some thing like 2d motion graphic with blender, i have done it with blender 2.79b without ligting but with nodes, input RGB, connected directly to output.
since next july blender 2.8 expected to release, so give it a try.
In 2.8 i realize that i cant connect directly form input RGB to material output.
The question
how do i replicate the condition on 2.79b to 2.8? 

A:

You can directly use color in surface socket
The color will show up directly in render mode (both Render and DevLook)
And for alpha channel, the original alpha in RGB mode can't be the value in surface(might be a bug?) .An alternative way is use transparent shader with mix shader instead as shown below:

the factor of mix shader can be the alpha value.
Blend mode in Material setting should set to one of the alpha options
Show backface will cause some problem, toggle it to see which one suit the scene

There might be a better way on this task

