Your code, stylish
Tags: webdev, css, braziliandevs, design
Published: 2021-09-01 21:30:06

> :brazil: Caso prefira ler em outra língua, esse artigo foi publicado também em português. Clique [AQUI](https://lucasmc64.medium.com/seu-c%C3%B3digo-estiloso-7dd2d327239f) para acessar!

## Introduction

There was a time when creating websites was more difficult and `float` ruled the world... it was a dark time and full of terrors. But, not only in terms of languages the technology has evolved, great tools have emerged to make life easier for the dev.

Bringing with them features that browsers don't natively provide or a friendlier view of existing ones, browser extensions are the friend that every developer should have.

With that in mind, I've separated 5 extensions that can help you mainly in the matter of website styling, allowing you to select colors with the mouse, measure distances between elements and much more. Besides a nice bonus at the end… what are you waiting for 😉?

## 1. ColorZilla

![CollorZilla print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z6g56ncs5ko835w5s5fd.png)

Colors are a key point in any website, as they balance style and give a unique, personal or striking touch.

[ColorZilla](https://www.colorzilla.com/) is an extension that first appeared for Mo**zilla** Firefox and became famous for making it easier to work with colors in the browser, allowing inspection of the color palette of the browser. website, providing a powerful CSS gradient generator and a few more things.

> If you don't need something as robust, Firefox has a color picker natively. It can be found in DevTools, under the *Inspector* tab.

[Chrome - ColorZilla](https://chrome.google.com/webstore/detail/bhlhnicpbhignbdhedgjhgdocnmhomnp)

[Firefox - ColorZilla](https://addons.mozilla.org/en-US/firefox/addon/colorzilla)

## 2. CSS Peeper

![CSS Peeper print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lbkjxewf5pabvpqvsrm6.png)

Think CSS inspection through DevTools impractical or intimidating? [CSS Peeper](https://csspeeper.com/) arrives to make inspecting styles easier and more elegant. It also intelligently extracts the site's color palette and makes it easy to export your assets.

This extension is not available for Firefox and unfortunately I have not found alternatives to it.

[Chrome - CSS Peeper](https://chrome.google.com/webstore/detail/css-peeper/mbnbehikldjhnfehhnaidhjhoofhpehk)

## 3. Dimensions

![Dimensions print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ev9h89gzxgkuif5ssv7.png)

Measuring distances between elements on a website has never been easier with [Dimensions](https://felixniklas.com/dimensions/). When activating the extension, your mouse becomes the starting point of two axes that are used to calculate spaces.

This extension also allows you to make measurements inside images, being of great help when you have a **mockup** in *.png* or *.jpg* for example.

> Mockup, when it comes to design, is a prototype / model / draft of a given project, being used mainly to acquire user feedback and get an overview of it.

[Chrome - Dimensions](https://chrome.google.com/webstore/detail/dimensions/baocaagndhipibgklemoalmkljaimfdj)

[Firefox - Dimensions](https://addons.mozilla.org/en-US/firefox/addon/dimensions_extension)

## 4. Web Developer

![Web Developer print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qvevaqxh2n9zno7v6n9e.png)

[Web Developer](https://chrispederick.com/work/web-developer) provides a number of extra features that may not be present in your browser. Note that not only tools involving CSS are added, but they touch on several points when it comes to website development that can be very useful.

It is also an extension that was originally made for Firefox and, due to its success, was ported to Google's browser.

[Chrome - Web Developer](https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm)

[Firefox - Web Developer](https://addons.mozilla.org/en-US/firefox/addon/web-developer/)

## 5. WhatFont

![WhatFont print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e7aq0bm554xl88me3hak.png)

In order to facilitate the inspection of typographies on the web [WhatFont](http://www.chengyinliu.com/whatfont.html) arrives, simply activate the extension and click on the text about which you want to know the information. It's simple, elegant and extremely useful.

The CSS Peeper extension (cited above) also provides some information when inspecting some text with it, the main difference of information that these extensions bring is that the former provides `letter-spacing` and the other provides `font-style ` as one of the information.

As CSS Peeper is not available in all browsers, I found it relevant to include this extension in the list.

[Chrome - WhatFont](https://chrome.google.com/webstore/detail/whatfont/jabopobgcpjmedljpbcaablpmlmfcogm)

[Firefox - WhatFont](https://addons.mozilla.org/en-US/firefox/addon/zjm-whatfont)

## Bonus: Lighthouse

![Lighthouse print screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5wnxs656ojxxvrrjgs85.png)

This is an open-source tool created by Google that analyzes a particular website and scores according to 5 items: Performance, Accessibility, Best Practices, SEO and support such as PWA.

In terms of CSS, pay more attention to the score of the first 3 items mentioned above: build a responsive site, using assets optimized for the web and take advantage of good contrasts so as not to hinder the reading of your content.

As a great way to keep track of whether your site is good and up to web standards, [Lighthouse](https://developers.google.com/web/tools/lighthouse/) **come integrated with Google Chrome**, having an official extension so that any Chromium-based can have this functionality.

The Giant of the Searches did not take this extension to its competitors' stores. But, being open-source, two alternatives for Firefox were created. **However**, none of them can rate sites running locally. A solution for this might be to install and use [Lighthouse via NPM](https://www.npmjs.com/package/lighthouse) in your projects.

[Chrome - Lighthouse](https://chrome.google.com/webstore/detail/lighthouse/blipmdconlkpinefehnmjammfjpmpbjk)

[Firefox - Google Lighthouse](https://addons.mozilla.org/en-US/firefox/addon/google-lighthouse)

[Firefox - Lighthouse Report Generator](https://addons.mozilla.org/en-US/firefox/addon/lighthouse-report-generator)

## Conclusion

Finally, I need to clarify and alert you to some important points.

- I admit that, for personal taste and workflow style, I don't currently use extensions 2 and 4 listed above, but I thought it might come in handy for someone and I've tested them all before writing this text.
- Yes, extensions can bring a lot of new functionality. However, this comes at a cost and is often the negative impact on browser performance and page loading.
- **Be careful!** There are malicious extensions that can spy on your browsing history, improperly access sensitive data, or other equally bad things. Don't go out installing just any one, see the ratings, read the comments, research it.

And, as the dev will not live only from CSS, a little bird told me that more extension tips are coming 🙃!

## Feedback!

Feel free to say what you think of this article, ask questions, point out a topic that was not very well explained or that needed to be talked about, suggest other topics and complement what has already been said. To the next!