These are the code samples for The Book of OpenLayer3. Feel free to download the source code and contribute to this repository:
See basic styling of features using setting fill and stroke properties.