import Page from '../components/Page' import { COLORS } from '../lib/constants' export default () => (

What does this do?

You know all of those code screenshots you see on Twitter? Although the code's usually impressive, we saw room for improvement in the aesthetic department. Carbon is the easiest way to create beautiful images of your source code. So what are you waiting for? Go impress all of your followers with your newfound design prowess.{' '} 🎨

How do I use it?

Import

There are a few different ways to import code into Carbon:

  • Drop a file into the editor
  • Append a GitHub gist id to the url ( example )
  • Paste your code directly

Customization

Once you've got all of your code into Carbon, you can customize your image by changing the syntax theme, background color/image, window theme, or padding.

You can even drop an image file onto the editor to set the background to that image. Give it a try!

Export/Sharing

After you've customized your image you can Tweet a link to the image, or save it directly.

If you use the 'Tweet' button, Carbon will automatically make your image accessible. However, if you want to manually tweet your carbon image, please check out{' '} this page {' '} to found out how to make your Twitter images accessible.

I want to make this better.

Please do.

)