a system and method is described for distributing light within a light guide which is used for illuminating the user interface of an electronic device . the light guide is formed as a thin film and impressed with a pattern of input and output diffraction gratings to control the transmission of light into and out of the light guide to efficiently illuminate the user interface .