🌁 Exporting Carbon code snippets

Xcode Playgrounds are a great place where prototyping and trying new concepts. Oftentimes we want to share some Swift snippets; for this, Carbon is a cool tool and nef lovely integrated it. You can take your Xcode Playground, write several pieces of code and keep it verified. Later you can export all your code snippets, with the next command:

 ➜ nef carbon --project <path-to-input> --output <path-to-output>



You can customize the output with the next commands

Command Description Format Options Default
--background Background color applied to image hexadecimal #AABBCC, #AABBCCDD or predefined colors nef bow white green blue yellow orange nef
--theme Carbon's theme to be applied String cobalt blackboard dracula duotone hopscotch lucario material monokai nord oceanicNext oneDark panda paraiso seti purple solarized tomorrow twilight verminal vscode zenburn dracula
--size Export file dimensions Number [1, 5] 2
--font Font type String firaCode hack inconsolata iosevka monoid anonymous sourceCodePro darkMono droidMono fantasqueMono ibmPlexMono spaceMono ubuntuMono firaCode
--lines shows/hides number of lines in code snippet Bool true false true
--watermark shows/hides watermark in code snippet Bool true false true