Ditto is a Chrome extension with a companion Sketch plugin that allows designers to copy CSS font styles from live websites and paste them directly into Sketch as Sketch styles.
Ditto and its updates are currently being processed by the Chrome Store, and until they are published, you will have to install it manually. To begin, download this repository.
- Open Chrome.
- Go to chrome://extensions
- Toggle “Developer Mode” in the upper-right
- Click “Load Unpacked”
- Navigate to Downloads/ditto-master/chrome/assets
- Click Open.
Voila, Ditto should be installed in Chrome. You should see a double-t icon in the extension menu.
This one is pretty straightforward.
- Go to Downloads/ditto-master/sketch/
- Run ditto.sketchplugin__
Voila, Ditto should be installed in Sketch. You should see Ditto in the Plugins dropdown menu.
- Go to a page that you want to copy styles from.
- Click the gray raccoon head in the corner to activate the plugin. When activated, the double-t icon should be bright teal and an empty Clipboard History modal should appear with instructions on what to do.
- Select the text you would like to copy and press your desired shortcut. The default shortcut is Cmd + Right. I suggest you remap it to something better.
- You can select multiple styles in the page, which will appear in the clipboard history. The pink highlight indicates what is currently copied to the clipboard.
- The Clipboard History exists as a way to put previously copied styles back into the clipboard.
- You can drag the Clipboard History in case it’s covering up some text!
- To copy a previously copied style, simply click on an item in the history that you want to copy. It should now be in your clipboard.
- The clipboard history is per-domain, which means that rei.com and rei.com/subpage/ will share the same clipboard.
- While the CSS is copied to your clipboard, go to Sketch.
- Have a text layer ready with some text that you want to re-style.
- Select the text-layer.
- Press Ctrl+Opt+V to style the text-layer with the styles in your clipboard. Again I suggest you remap this shortcut to something better.
- You may use the Plugins/Paste CSS Styles menu instead of the hotkey.
Ditto is capable of copying the following styles from CSS into Sketch:
font-size
color
line-height
font-weight
text-decoration
font-family
font-style
letter-spacing
text-transform
font-variant
text-shadow
- Maintainer: Yana Gevorgyan at [email protected]
- Initial Creator: Blake Quigley at [email protected]