Length of the flat edge
Distance to the point
Any CSS colour
Used in the generated rule
Which way the tip faces
Written into the CSS values
Preview
Built with the classic transparent-border trick — the element keeps a 0×0 box, so the borders draw the shape. Point the coloured edge opposite the direction you want the tip to face.
Triangle rendering can shift by a sub-pixel at fractional sizes; if edges look blurry, round the base to an even number so the half-edge lands on whole pixels.