Theory of spintronic materials