Something that is important FOR you will benefit you in some way. It's important for you to get good grades if you want to go to a good university. It's important for you to eat a healthy breakfast so you have energy throughout the day.
Something that is important TO you has personal meaning. It's important to you if it will make you happy, fulfilled, proud, etc.