diff --git a/README.md b/README.md index 97b3fcb..d8a336f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ Based on the Nord color pa - [Manual](#manual) - [Install Script](#install-script) - [Activation](#activation) + - [Asset Catalog](#asset-catalog) + - [Color Set](#color-set) - [Development](#development) - [Contribution](#contribution) @@ -44,7 +46,21 @@ Syntax: `install.sh [OPTIONS]` 2. Switch to the *Fonts & Colors* tab 3. Select `Nord` from the list -


+


+ +## Asset Catalog + +### Color Set + +Nord XCode provides a [asset catalog][asset-catalog] color set which can be used as named colors in the [Interface Builder][interface-builder] and programmatically via `UIColor(named:)`. + +Install it by [adding the][add-folder-to-project] [nord.xcassets][nord-xcassets] [folder to the project][add-folder-to-project]. + +

Usage with the Interface Builder

+ +For more information please read the official documentation section on how to [create a color set to use in Interface Builder][asset-catalog-creation]. + +

Asset Catalog - Color Set


## Development [![](https://img.shields.io/badge/Changelog-0.1.0-81A1C1.svg?style=flat-square)](https://github.com/arcticicestudio/nord-xcode/blob/v0.1.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg?style=flat-square)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg?style=flat-square)](https://github.com/arcticicestudio/arcver) @@ -57,3 +73,9 @@ Please report issues/bugs, feature requests and suggestions for improvements to

Copyright © 2017-present Arctic Ice Studio

+ +[asset-catalog]: https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_ref-Asset_Catalog_Format +[asset-catalog-creation]: http://help.apple.com/xcode/mac/current/#/dev10510b1f7 +[interface-builder]: https://developer.apple.com/xcode/interface-builder +[add-folder-to-project]: http://help.apple.com/xcode/mac/current/#/dev81ce1d383 +[nord-xcassets]: https://github.com/arcticicestudio/nord-xcode/tree/develop/src/nord.xcassets diff --git a/src/assets/nord-xcode-banner.ai b/assets/nord-xcode-banner.ai similarity index 100% rename from src/assets/nord-xcode-banner.ai rename to assets/nord-xcode-banner.ai diff --git a/src/assets/nord-xcode-banner.svg b/assets/nord-xcode-banner.svg similarity index 100% rename from src/assets/nord-xcode-banner.svg rename to assets/nord-xcode-banner.svg diff --git a/assets/scrcast-assets-catalog-color-set.gif b/assets/scrcast-assets-catalog-color-set.gif new file mode 100644 index 0000000..7785465 Binary files /dev/null and b/assets/scrcast-assets-catalog-color-set.gif differ diff --git a/assets/scrot-asset-catalog-color-set-interface-builder.png b/assets/scrot-asset-catalog-color-set-interface-builder.png new file mode 100755 index 0000000..fe0556f Binary files /dev/null and b/assets/scrot-asset-catalog-color-set-interface-builder.png differ diff --git a/assets/scrot-asset-catalog-color-set-selected.png b/assets/scrot-asset-catalog-color-set-selected.png new file mode 100644 index 0000000..7b255ca Binary files /dev/null and b/assets/scrot-asset-catalog-color-set-selected.png differ diff --git a/assets/scrot-asset-catalog-color-set.png b/assets/scrot-asset-catalog-color-set.png new file mode 100644 index 0000000..5c7ac0e Binary files /dev/null and b/assets/scrot-asset-catalog-color-set.png differ diff --git a/src/assets/scrot-docs-preferences-console.png b/assets/scrot-docs-preferences-console.png similarity index 100% rename from src/assets/scrot-docs-preferences-console.png rename to assets/scrot-docs-preferences-console.png diff --git a/src/assets/scrot-docs-preferences-editor.png b/assets/scrot-docs-preferences-editor.png similarity index 100% rename from src/assets/scrot-docs-preferences-editor.png rename to assets/scrot-docs-preferences-editor.png diff --git a/src/assets/scrot-preview.png b/assets/scrot-preview.png similarity index 100% rename from src/assets/scrot-preview.png rename to assets/scrot-preview.png diff --git a/src/nord.xcassets/Contents.json b/src/nord.xcassets/Contents.json new file mode 100644 index 0000000..7138ddd --- /dev/null +++ b/src/nord.xcassets/Contents.json @@ -0,0 +1,9 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "compression-type" : "lossless" + } +} \ No newline at end of file diff --git a/src/nord.xcassets/nord0.colorset/Contents.json b/src/nord.xcassets/nord0.colorset/Contents.json new file mode 100644 index 0000000..00d8630 --- /dev/null +++ b/src/nord.xcassets/nord0.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.180", + "alpha" : "1.000", + "blue" : "0.253", + "green" : "0.203" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord1.colorset/Contents.json b/src/nord.xcassets/nord1.colorset/Contents.json new file mode 100644 index 0000000..0cff547 --- /dev/null +++ b/src/nord.xcassets/nord1.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.230", + "alpha" : "1.000", + "blue" : "0.324", + "green" : "0.258" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord10.colorset/Contents.json b/src/nord.xcassets/nord10.colorset/Contents.json new file mode 100644 index 0000000..616a805 --- /dev/null +++ b/src/nord.xcassets/nord10.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.363", + "alpha" : "1.000", + "blue" : "0.681", + "green" : "0.503" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord11.colorset/Contents.json b/src/nord.xcassets/nord11.colorset/Contents.json new file mode 100644 index 0000000..c7b207c --- /dev/null +++ b/src/nord.xcassets/nord11.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.756", + "alpha" : "1.000", + "blue" : "0.411", + "green" : "0.377" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord12.colorset/Contents.json b/src/nord.xcassets/nord12.colorset/Contents.json new file mode 100644 index 0000000..1dbcf1e --- /dev/null +++ b/src/nord.xcassets/nord12.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.822", + "alpha" : "1.000", + "blue" : "0.429", + "green" : "0.529" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord13.colorset/Contents.json b/src/nord.xcassets/nord13.colorset/Contents.json new file mode 100644 index 0000000..6622e56 --- /dev/null +++ b/src/nord.xcassets/nord13.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.925", + "alpha" : "1.000", + "blue" : "0.529", + "green" : "0.799" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord14.colorset/Contents.json b/src/nord.xcassets/nord14.colorset/Contents.json new file mode 100644 index 0000000..8c07e1b --- /dev/null +++ b/src/nord.xcassets/nord14.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.637", + "alpha" : "1.000", + "blue" : "0.541", + "green" : "0.749" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord15.colorset/Contents.json b/src/nord.xcassets/nord15.colorset/Contents.json new file mode 100644 index 0000000..1528483 --- /dev/null +++ b/src/nord.xcassets/nord15.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.709", + "alpha" : "1.000", + "blue" : "0.681", + "green" : "0.554" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord2.colorset/Contents.json b/src/nord.xcassets/nord2.colorset/Contents.json new file mode 100644 index 0000000..16837c6 --- /dev/null +++ b/src/nord.xcassets/nord2.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.261", + "alpha" : "1.000", + "blue" : "0.371", + "green" : "0.297" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord3.colorset/Contents.json b/src/nord.xcassets/nord3.colorset/Contents.json new file mode 100644 index 0000000..bf5092f --- /dev/null +++ b/src/nord.xcassets/nord3.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.297", + "alpha" : "1.000", + "blue" : "0.419", + "green" : "0.336" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord4.colorset/Contents.json b/src/nord.xcassets/nord4.colorset/Contents.json new file mode 100644 index 0000000..ffab886 --- /dev/null +++ b/src/nord.xcassets/nord4.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.846", + "alpha" : "1.000", + "blue" : "0.916", + "green" : "0.870" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord5.colorset/Contents.json b/src/nord.xcassets/nord5.colorset/Contents.json new file mode 100644 index 0000000..d950bdd --- /dev/null +++ b/src/nord.xcassets/nord5.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.897", + "alpha" : "1.000", + "blue" : "0.942", + "green" : "0.913" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord6.colorset/Contents.json b/src/nord.xcassets/nord6.colorset/Contents.json new file mode 100644 index 0000000..f45c8ed --- /dev/null +++ b/src/nord.xcassets/nord6.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.925", + "alpha" : "1.000", + "blue" : "0.958", + "green" : "0.937" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord7.colorset/Contents.json b/src/nord.xcassets/nord7.colorset/Contents.json new file mode 100644 index 0000000..a41f1c6 --- /dev/null +++ b/src/nord.xcassets/nord7.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.555", + "alpha" : "1.000", + "blue" : "0.735", + "green" : "0.738" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord8.colorset/Contents.json b/src/nord.xcassets/nord8.colorset/Contents.json new file mode 100644 index 0000000..c6c16bb --- /dev/null +++ b/src/nord.xcassets/nord8.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.525", + "alpha" : "1.000", + "blue" : "0.820", + "green" : "0.752" + } + } + } + ] +} \ No newline at end of file diff --git a/src/nord.xcassets/nord9.colorset/Contents.json b/src/nord.xcassets/nord9.colorset/Contents.json new file mode 100644 index 0000000..c3f88ac --- /dev/null +++ b/src/nord.xcassets/nord9.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.501", + "alpha" : "1.000", + "blue" : "0.762", + "green" : "0.629" + } + } + } + ] +} \ No newline at end of file