Persist CSS Changes Done in Chrome’s Dev-Tools

February 24, 2021

0

Illustration by my buddy Loor Nicolas


THE PROBLEM

Using your dev tools to tinker with CSS is great because you get immediate feedback on the changes. However, if the page is refreshed, all those changes get lost in oblivion…

A SOLUTION

Here’s a quick tip to persist those changes without affecting your original source files.

  1. Open Chrome’s dev tools.

1

  1. Press ctrl/cmd + shift + p to show Chrome’s dev tools command menu.

2

  1. Type “show overrides”.

3

  1. Tap on “+ Select folder for overrides” on the left side and select a folder on your machine. That’s where your overrides will live.

4

  1. Allow Chrome to access this folder by tapping “Allow” on the bar that appears below the search bar.

5

  1. Now the folder has appeared on the “Overrides” section.

6

  1. Let’s try it! Change some styles in the “Elements” panel. You’ll see a purplish dot next to the stylesheet file name, which means it has been saved locally in our overrides folder. Refreshing the page will keep that change!

7

  1. Now back in the “Overrides” tab, we can see those local overrides, sorted by URL folders.

8

  1. (BONUS!) To see the diff between your source code and the local overrides, you can type “Show changes” on the command menu.

9 10



Jon Portella

Written by Jon Portella.