If you are a citizen of a country outside the EU and wish to work in Sweden, in most cases you need a work permit and a residence permit.
It is the Swedish Migration Agency that handles all applications for work and residence permits. All applications are done online through their website.
How to apply for a work visa - click here
Application guide - click here
Work permit requirements - click here