explaingit

tombenner/nui

Analysis updated 2026-07-03

3,737Objective-CAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

NUI lets you style your entire iOS app from one stylesheet file using CSS-like rules, so you can change fonts, colors, and layouts without touching code.

Mindmap

mindmap
  root((NUI))
    What it does
      CSS-like iOS styling
      Single stylesheet
      Live style reload
    Tech Stack
      Objective-C
      CocoaPods
      Swift bridging
    Use Cases
      Brand theming
      Rapid UI iteration
      Variable reuse
    Audience
      iOS developers
      Designers with code
    Setup
      CocoaPods install
      One startup line
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Apply a consistent color scheme and font across all screens of an iOS app by editing a single stylesheet

USE CASE 2

Rapidly iterate on UI design by tweaking stylesheet rules and seeing changes without rewriting code

USE CASE 3

Define a primary brand color once and reference it throughout all button, label, and navigation bar styles

USE CASE 4

Exclude specific third-party components from global styles while keeping all standard iOS elements themed

What is it built with?

Objective-CiOSCocoaPodsSwift

How does it compare?

tombenner/nuiealeksandrov/eaintroviewalibaba/luaviewsdk
Stars3,7373,7383,724
LanguageObjective-CObjective-CObjective-C
Setup difficultyeasymoderatehard
Complexity2/52/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires CocoaPods and adding one line to the app delegate at startup, no external API keys needed.

Use freely for any purpose, including commercial projects, as long as you keep the copyright notice.

In plain English

NUI is an Objective-C library for iOS apps that lets you control the visual appearance of your entire app through a single stylesheet file, working in a similar way to how CSS stylesheets work on websites. On the web, CSS lets designers write rules like "all buttons should have a blue background and white text" in one place, and those rules apply everywhere automatically. NUI brings that same idea to native iOS development. Without NUI, changing visual styles in an iOS app typically means hunting through code files and Apple's documentation, figuring out which specific property on which specific class controls the appearance you want to change, then repeating that process for every screen. With NUI, you write rules in a stylesheet file using a CSS-like syntax, and they apply to all matching UI elements across the app without any additional code changes. The stylesheet supports variables, so you can define a primary color or font once at the top of the file and reference it throughout all your rules. This mirrors the approach of CSS preprocessors like Sass. You can also create custom style classes for elements that need a distinct look, and have those classes inherit rules from other classes. Styles can even be changed while the app is running, which makes it much faster to iterate on visual design. Installing NUI is a matter of adding a CocoaPods entry and adding one line to the app's startup code. After that, you edit the stylesheet file directly, and changes are picked up the next time the app runs. The library also supports Swift projects through a bridging header or native import. NUI applies styles globally to all standard iOS components: buttons, navigation bars, labels, table views, text fields, sliders, switches, and more. If a specific third-party component should not be affected, you can exclude it by name in the stylesheet.

Copy-paste prompts

Prompt 1
I'm using the NUI library for iOS. Write a NUI stylesheet that sets a dark navy background, white labels, and rounded blue buttons for all standard iOS components.
Prompt 2
Using NUI's CSS-like syntax, show me how to define a variable for my brand color and apply it to navigation bars, buttons, and tab bars in a stylesheet.
Prompt 3
How do I create a custom NUI style class called 'PrimaryButton' that inherits from the default Button style but adds a drop shadow and larger font?
Prompt 4
I have a third-party UIButton subclass I don't want NUI to style. Show me the NUI config to exclude it by class name.
Prompt 5
Set up NUI in a Swift iOS project using CocoaPods and a bridging header, and load a custom stylesheet called 'AppStyle.NUI' at launch.

Frequently asked questions

What is nui?

NUI lets you style your entire iOS app from one stylesheet file using CSS-like rules, so you can change fonts, colors, and layouts without touching code.

What language is nui written in?

Mainly Objective-C. The stack also includes Objective-C, iOS, CocoaPods.

What license does nui use?

Use freely for any purpose, including commercial projects, as long as you keep the copyright notice.

How hard is nui to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is nui for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub tombenner on gitmyhub

Verify against the repo before relying on details.