Today the Spanish Government has announced that the current travel restrictions will be extended until 19 January 2021. (Consult BoE https://www.boe.es/boe/dias/2021/01/01/pdfs/BOE-A-2021-1.pdf) for further details.
If you are resident in Spain, you should carry your residence document (the green paper EU residence certificate or the new TIE), as well as your valid passport when you travel.
The Spanish Ministry of Foreign Affairs has confirmed that whilst these restrictions are in place only those residents who can prove their status as residents through the green paper EU residence certificate or the TIE card may enter Spain.
This applies to passengers arriving in Spain from the UK by air and sea only (not overland travel). The restrictions also include flights from the UK to the Balearic Islands and Canary Islands. If you were due to travel to Spain please contact your travel operator before departure.