This paper provides a procedure to design robust controllers based on observed states applied to three-phase inverters with LCL filters connected to a grid with uncertain and possibly time-varying impedances, which can arise in renewable energy systems and microgrid applications. Linear matrix inequalities are used to rapidly compute, off-line, based only on the choice of two scalar parameters for pole location, sets of gains for the controller and the observer, and also to provide a theoretical certificate of the closed-loop stability, including a limit for the rate of variations of the grid impedances. The proposed design procedure allows the easy implementation of robust state feedback controllers with a reduced number of sensors, ensuring good performance for different sets of grid impedances. Additionally, larger regions of guaranteed stability are provided by the proposed procedure, when compared with a similar condition from the literature. The control law using the observed states can ensure grid currents with low harmonic content, complying with the IEEE 1547 Standard requirements, with negligible loss of performance concerning the feedback of the measured state variables. Three optimal state feedback controllers from the literature are reproduced here and successfully implemented using the observed state variables based on the proposed procedure. In all cases, the viability of the proposal was confirmed by simulations and experimental results.