Skip to content
/ Shibuya Public

An Xcode theme to solve some problems with default theme on SwiftUI

Notifications You must be signed in to change notification settings

cseanc/Shibuya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shibuya

An Xcode Theme for SwiftUI

shibuya_000

Overview

shibuya_001

Design concepts

The Shibuya XCode theme was created to solve several shortfalls of the default XCode theme when highlighting SwiftUI source code.

What are the issues with the default XCode theme?

Issue 1: Over-emphasising Keywords

swiftui_001

The default XCode them use bolded font for Keyword.

In SwiftUI, we often deal with a nested jungle of HStack, VStack, and List.

Since Keyword are often repetitive, Shibuya grants first-class citizens syntax highlighting for Class, Type, and Method, while giving Keyword a muted colour tone.

Issue 2: Monotone

swiftui_002

Compared to the chunk of monotone codes on the left, Shibuya brings clarity, hierarchy and structure.

As a programmer, the codes on the right give me a context what they are about.

Issue 3: In-differentiable Project Declarations

swiftui_003

There is a need to differentiate what codes are written by the team (Project Declarations) from what codes are provided by iOS frameworks (Other Declarations).

Shibuya renders these Declarations as Dark Red (Project Declaration) and Pale Pink (Other Declarations).

These adjacent colours give the impression that these codes are related yet different.

Installation

  1. Clone or download the project as zip.
  2. Copy Shibuya.xccolortheme into ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
  3. Restart XCode if theme does not appear in Preference.
  4. Done! 🥂

About

An Xcode theme to solve some problems with default theme on SwiftUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published