This example shows how to genrate a Coastal Vignette from a simple topojson using the jsts library and D3js.
I took the idea from this tweet by John Nelson. The mapping style is taken from this other tutorial by William Knowles.
By playing with the number of lines and their color, distance, thickness, opacity and dashing, the possibilities to style the map are really nice.
Using the jsts library was the easiest way I found, altough the integration with d3js is not easy. Maybe using WKT instead of GeoJSON as an input would be nicer. Also, if your geometries cross the -180 meridian, the buffer lines go crazy. This should be fixed too.
Modified http://d3js.org/topojson.v1.min.js to a secure url
https://d3js.org/d3.v4.min.js
https://d3js.org/topojson.v1.min.js