When we speak of music theory, we tend to mean "common practice era" theory — the theory of Mozart, Beethoven, and their peers up until the twentieth century. However, jazz and popular music, while they do often adhere to the same theoretical ideas, they also tend to depart from it, and this would seem one of those times. Jazz and popular styles frequently privilege root movement with less concern to the preservation of key within individual chord progressions.
With that in mind, here are two theoretical models to describe it, rather than the theory. Note that both models fundamentally rely on the idea of repetition as establishing a basis for the aural understanding of music, as opposed to a key-based understanding.
Theory 1
The vi-iii-iv-I is fairly straightforward in establishing the key of A. But it also establishes a motion between F# and C#. With that (root) movement established, the shift to major chords rather than minor ones comes across as a color shift, as opposed to a key shift.
Theory 2
The chord progression oscillates between two tonics: C# and A. In more standard theory, this kind of modulation by thirds is commonplace.
F#m - C#m = Plagal cadence in C# (minor)
D - A = Plagal cadence in A (major)
F# - C# = Plagal cadence in C# (major)
D - A = Plagal cadence in A (major)