Thanks for your query.
The dark spots you are getting is melasma
and it can be due to:
due to excess sun exposure,
-If you are on hormonal
-Some medicines also interact with sun light causing pigmentation issues
So please see if you have any of this factor affecting you.
Consult a Dermatologist
and get treated.