Skip to content

Instantly share code, notes, and snippets.

@subdigital
Created February 21, 2011 20:24
Show Gist options
  • Save subdigital/837656 to your computer and use it in GitHub Desktop.
Save subdigital/837656 to your computer and use it in GitHub Desktop.
Obsidian Code Theme for Xcode

The Obsidian Code Xcode Theme is provided for Xcode 3 and Xcode 4.

For Xcode 3, download the ObsidianCode.xccolortheme and place it in ~/Library/Application Support/Xcode/Color Themes

For Xcode 4, download the ObsidianCode.dvtcolortheme and place it in ~/Library/Developer/Xcode/UserData/FontAndColorThemes

Enjoy!

Credit goes to the original Obsidian Code theme for Visual Studio: http://www.codefornuts.com/2010/04/my-visual-studio-2010-theme-son-of.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerOutputTextFont</key>
<string>Menlo-Regular - 11.0</string>
<key>DVTConsoleDebuggerPromptTextColor</key>
<string>0.317071 0.437736 1 1</string>
<key>DVTConsoleDebuggerPromptTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleExectuableInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleExectuableInputTextFont</key>
<string>Menlo-Regular - 11.0</string>
<key>DVTConsoleExectuableOutputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleExectuableOutputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleTextBackgroundColor</key>
<string>0.999899 1 0.999842 1</string>
<key>DVTConsoleTextInsertionPointColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleTextSelectionColor</key>
<string>0.576266 0.81005 1 1</string>
<key>DVTDebuggerInstructionPointerColor</key>
<string>0.705792 0.8 0.544 1</string>
<key>DVTSourceTextBackground</key>
<string>0.082 0.106 0.114</string>
<key>DVTSourceTextBlockDimBackgroundColor</key>
<string>0.5 0.5 0.5 1</string>
<key>DVTSourceTextInsertionPointColor</key>
<string>0.896 0.896 0.896</string>
<key>DVTSourceTextInvisiblesColor</key>
<string>0.5 0.5 0.5 1</string>
<key>DVTSourceTextSelectionColor</key>
<string>0.206 0.262 0.302</string>
<key>DVTSourceTextSyntaxColors</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>0.851 0.730 0.398</string>
<key>xcode.syntax.character</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.comment</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.comment.doc</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.entity</key>
<string>0.665 0.052 0.569</string>
<key>xcode.syntax.entity.start</key>
<string>0.665 0.052 0.569</string>
<key>xcode.syntax.identifier</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.identifier.class</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.class.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.constant</key>
<string>0.440 0.560 0.738</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.function</key>
<string>0.784 0.792 0.816</string>
<key>xcode.syntax.identifier.function.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.macro</key>
<string>0.549 0.549 0.714</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>0.502 0.814 0.795</string>
<key>xcode.syntax.identifier.plain</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.identifier.type</key>
<string>0.873 0.752 0.446</string>
<key>xcode.syntax.identifier.type.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.variable</key>
<string>0.873 0.752 0.446</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.keyword</key>
<string>0.569 0.757 0.333</string>
<key>xcode.syntax.number</key>
<string>0.812 0.671 0.000</string>
<key>xcode.syntax.plain</key>
<string>0.851 0.851 0.851</string>
<key>xcode.syntax.preprocessor</key>
<string>0.549 0.549 0.714</string>
<key>xcode.syntax.string</key>
<string>0.910 0.459 0.000</string>
<key>xcode.syntax.url</key>
<string>0.640 0.904 1.000</string>
<key>xcode.syntax.url.mail</key>
<string>0.100 0.100 1.000</string>
</dict>
<key>DVTSourceTextSyntaxFonts</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.character</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment.doc</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.keyword</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.number</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.plain</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.preprocessor</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.string</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.url</key>
<string>Menlo-Regular - 18.0</string>
</dict>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Colors</key>
<dict>
<key>Background</key>
<string>0.082 0.106 0.114</string>
<key>InsertionPoint</key>
<string>0.896 0.896 0.896</string>
<key>Selection</key>
<string>0.206 0.262 0.302</string>
<key>xcode.syntax.attribute</key>
<string>0.851 0.730 0.398</string>
<key>xcode.syntax.character</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.comment</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.comment.doc</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>0.471 0.506 0.427</string>
<key>xcode.syntax.entity</key>
<string>0.665 0.052 0.569</string>
<key>xcode.syntax.entity.start</key>
<string>0.665 0.052 0.569</string>
<key>xcode.syntax.identifier</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.identifier.class</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.class.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.constant</key>
<string>0.440 0.560 0.738</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.function</key>
<string>0.784 0.792 0.816</string>
<key>xcode.syntax.identifier.function.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.macro</key>
<string>0.549 0.549 0.714</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>0.502 0.814 0.795</string>
<key>xcode.syntax.identifier.plain</key>
<string>0.000 0.000 0.000</string>
<key>xcode.syntax.identifier.type</key>
<string>0.873 0.752 0.446</string>
<key>xcode.syntax.identifier.type.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.identifier.variable</key>
<string>0.873 0.752 0.446</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>0.365 0.486 0.616</string>
<key>xcode.syntax.keyword</key>
<string>0.569 0.757 0.333</string>
<key>xcode.syntax.number</key>
<string>0.812 0.671 0.000</string>
<key>xcode.syntax.plain</key>
<string>0.851 0.851 0.851</string>
<key>xcode.syntax.preprocessor</key>
<string>0.549 0.549 0.714</string>
<key>xcode.syntax.string</key>
<string>0.910 0.459 0.000</string>
<key>xcode.syntax.url</key>
<string>0.640 0.904 1.000</string>
<key>xcode.syntax.url.mail</key>
<string>0.100 0.100 1.000</string>
</dict>
<key>Fonts</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.character</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment.doc</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.keyword</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.number</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.plain</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.preprocessor</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.string</key>
<string>Menlo-Regular - 18.0</string>
<key>xcode.syntax.url</key>
<string>Menlo-Regular - 18.0</string>
</dict>
</dict>
</plist>
@Akagi201
Copy link

very good

@giannigdev
Copy link

Thank you

@yuhua-chen
Copy link

Thanks~ its my favor

@djcirello
Copy link

Can the Obsidian Code Xcode Theme be used with Xcode 5?

@BryanJBryce
Copy link

Worked for me after I updated from Xcode 4 to Xcode 5.

@ethanparker
Copy link

Just installed Xcode 7 on a new machine and I'm not seeing this directory at all

~/Library/Developer/Xcode/UserData/FontAndColorThemes

Any ideas?


figured it out, you have to create the directory

mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes
cd ~/Library/Developer/Xcode/UserData/FontAndColorThemes

And then restart Xcode

@ethanparker
Copy link

Xcode 8 doesn't seem to recognize /Developer/Xcode/UserData/FontAndColorThemes
as a valid location for a theme anymore. Any luck installing on Xcode 8?

@ethanparker
Copy link

ethanparker commented Sep 22, 2016

They added alpha in all the colors so they're 4 values instead. Copy and paste this into your old file and it'll work fine, I copied the values over to the new format -

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>DVTConsoleDebuggerInputTextColor</key>
    <string>1 1 1 1</string>
    <key>DVTConsoleDebuggerInputTextFont</key>
    <string>SFMono-Bold - 11.0</string>
    <key>DVTConsoleDebuggerOutputTextColor</key>
    <string>1 1 1 1</string>
    <key>DVTConsoleDebuggerOutputTextFont</key>
    <string>Menlo-Regular - 12.0</string>
    <key>DVTConsoleDebuggerPromptTextColor</key>
    <string>0.255 0.714 0.27 1</string>
    <key>DVTConsoleDebuggerPromptTextFont</key>
    <string>SFMono-Bold - 11.0</string>
    <key>DVTConsoleExectuableInputTextColor</key>
    <string>1 1 1 1</string>
    <key>DVTConsoleExectuableInputTextFont</key>
    <string>Menlo-Regular - 12.0</string>
    <key>DVTConsoleExectuableOutputTextColor</key>
    <string>1 1 1 1</string>
    <key>DVTConsoleExectuableOutputTextFont</key>
    <string>SFMono-Bold - 11.0</string>
    <key>DVTConsoleTextBackgroundColor</key>
    <string>0.118 0.125 0.157 1</string>
    <key>DVTConsoleTextInsertionPointColor</key>
    <string>1 1 1 1</string>
    <key>DVTConsoleTextSelectionColor</key>
    <string>0.397 0.397 0.302 1</string>
    <key>DVTDebuggerInstructionPointerColor</key>
    <string>0.12 0.31 0.34 1</string>
    <key>DVTMarkupTextBackgroundColor</key>
    <string>0.18856 0.195 0.22444 1</string>
    <key>DVTMarkupTextBorderColor</key>
    <string>0.253475 0.2594 0.286485 1</string>
    <key>DVTMarkupTextCodeFont</key>
    <string>SFMono-Regular - 10.0</string>
    <key>DVTMarkupTextEmphasisColor</key>
    <string>1 1 1 1</string>
    <key>DVTMarkupTextEmphasisFont</key>
    <string>.AppleSystemUIFontItalic - 10.0</string>
    <key>DVTMarkupTextInlineCodeColor</key>
    <string>1 1 1 0.7</string>
    <key>DVTMarkupTextLinkColor</key>
    <string>0.33 0.247124 0.894195 1</string>
    <key>DVTMarkupTextLinkFont</key>
    <string>.AppleSystemUIFont - 10.0</string>
    <key>DVTMarkupTextNormalColor</key>
    <string>1 1 1 1</string>
    <key>DVTMarkupTextNormalFont</key>
    <string>.AppleSystemUIFont - 10.0</string>
    <key>DVTMarkupTextOtherHeadingColor</key>
    <string>1 1 1 0.5</string>
    <key>DVTMarkupTextOtherHeadingFont</key>
    <string>.AppleSystemUIFont - 14.0</string>
    <key>DVTMarkupTextPrimaryHeadingColor</key>
    <string>1 1 1 1</string>
    <key>DVTMarkupTextPrimaryHeadingFont</key>
    <string>.AppleSystemUIFont - 24.0</string>
    <key>DVTMarkupTextSecondaryHeadingColor</key>
    <string>1 1 1 1</string>
    <key>DVTMarkupTextSecondaryHeadingFont</key>
    <string>.AppleSystemUIFont - 12.0</string>
    <key>DVTMarkupTextStrongColor</key>
    <string>1 1 1 1</string>
    <key>DVTMarkupTextStrongFont</key>
    <string>.AppleSystemUIFontBold - 10.0</string>
    <key>DVTSourceTextBackground</key>
    <string>0.118 0.125 0.157 1</string>
    <key>DVTSourceTextBlockDimBackgroundColor</key>
    <string>0.5 0.5 0.5 1</string>
    <key>DVTSourceTextCurrentLineHighlightColor</key>
    <string>0.298039 0.298039 0.298039 1</string>
    <key>DVTSourceTextInsertionPointColor</key>
    <string>1 1 1 1</string>
    <key>DVTSourceTextInvisiblesColor</key>
    <string>0.5 0.5 0.5 1</string>
    <key>DVTSourceTextSelectionColor</key>
    <string>0.498039 0.498039 0.498039 1</string>
    <key>DVTSourceTextSyntaxColors</key>
    <dict>
        <key>xcode.syntax.attribute</key>
        <string>0.851 0.730 0.398 1</string>
        <key>xcode.syntax.character</key>
        <string>0.000 0.000 0.000 1</string>
        <key>xcode.syntax.comment</key>
        <string>0.471 0.506 0.427 1</string>
        <key>xcode.syntax.comment.doc</key>
        <string>0.471 0.506 0.427 1</string>
        <key>xcode.syntax.comment.doc.keyword</key>
        <string>0.471 0.506 0.427 1</string>
        <key>xcode.syntax.identifier.class</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.identifier.class.system</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.identifier.constant</key>
        <string>0.440 0.560 0.738 1</string>
        <key>xcode.syntax.identifier.constant.system</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.identifier.function</key>
        <string>0.784 0.792 0.816 1</string>
        <key>xcode.syntax.identifier.function.system</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.identifier.macro</key>
        <string>0.549 0.549 0.714 1</string>
        <key>xcode.syntax.identifier.macro.system</key>
        <string>0.502 0.814 0.795 1</string>
        <key>xcode.syntax.identifier.type</key>
        <string>0.873 0.752 0.446 1</string>
        <key>xcode.syntax.identifier.type.system</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.identifier.variable</key>
        <string>0.873 0.752 0.446 1</string>
        <key>xcode.syntax.identifier.variable.system</key>
        <string>0.365 0.486 0.616 1</string>
        <key>xcode.syntax.keyword</key>
        <string>0.569 0.757 0.333 1</string>
        <key>xcode.syntax.number</key>
        <string>0.812 0.671 0.000 1</string>
        <key>xcode.syntax.plain</key>
        <string>0.851 0.851 0.851 1</string>
        <key>xcode.syntax.preprocessor</key>
        <string>0.549 0.549 0.714 1</string>
        <key>xcode.syntax.string</key>
        <string>0.910 0.459 0.000 1</string>
        <key>xcode.syntax.url</key>
        <string>0.100 0.100 1</string>
    </dict>
    <key>DVTSourceTextSyntaxFonts</key>
    <dict>
        <key>xcode.syntax.attribute</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.character</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.comment</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.comment.doc</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.comment.doc.keyword</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.class</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.class.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.constant</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.constant.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.function</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.function.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.macro</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.macro.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.type</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.type.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.variable</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.identifier.variable.system</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.keyword</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.number</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.plain</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.preprocessor</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.string</key>
        <string>Menlo-Regular - 12.0</string>
        <key>xcode.syntax.url</key>
        <string>Menlo-Regular - 12.0</string>
    </dict>
</dict>
</plist>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment