github "reddavis/DVTColorTheme"
To initialize:
let theme = try DVTColorTheme(fileURL: url)
// OR
let theme = try DVTColorTheme(data: data)
Examples:
theme.sourceEditor // => DVTColorTheme.SourceEditor
theme.console // => DVTColorTheme.Console
theme.sourceEditor.backgroundColor // => NSColor
theme.sourceEditor.textSelectionColor // => NSColor
theme.sourceEditor.classes // => DVTColorTheme.Attribute
theme.sourceEditor.numbers // => DVTColorTheme.Attribute
theme.sourceEditor.plainText.color // => NSColor
theme.sourceEditor.plainText.font // => DVTColorTheme.Font
theme.sourceEditor.plainText.font.name // => String
theme.sourceEditor.plainText.font.size // => Double
theme.sourceEditor.plainText.font.isInstalled // => Bool
theme.sourceEditor.plainText.font.font // => NSFont
To find all available properties, checkout: Console.swift and SourceEditor.swift
This library is part of a larger project I'm working on, therefore the API is likely to change a lot.