# UI design fundamentals: color, typography, spacing and weight

Learn the building blocks of an interface with step-by-step guides, working specimens, and reusable CSS examples.

Start with color and type, then use spacing and visual weight to give each element a clear role.

## Browse collections

- [For founders](https://designproject.io/resources/founders/)

- [For designers](https://designproject.io/resources/designers/)

- [Step-by-step guides](https://designproject.io/resources/guides/)

- [Design systems](https://designproject.io/resources/design-systems/)

- [AI workflows](https://designproject.io/resources/ai-workflows/)

- [Colors](https://designproject.io/resources/colors/)

- [Fonts & typography](https://designproject.io/resources/fonts/)

- [Figma & code](https://designproject.io/resources/figma/)

- [Design fundamentals](https://designproject.io/resources/fundamentals/)

- [Agent skills & resources](https://designproject.io/resources/skills/)

- [2026 resources](https://designproject.io/resources/blog-2026/)

## Resources

### [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)

Guide · Colors

Build a UI color palette with semantic roles, copyable CSS tokens, contrast checks, and a practical review checklist.

### [How to choose font pairings for a product interface](https://designproject.io/resources/guides/choose-font-pairings/)

Guide · Fonts & typography

Choose a font pairing using real UI specimens, role assignments, fallback checks, and a practical typography specification.

### [Serif vs. sans serif: how to choose for your interface](https://designproject.io/resources/guides/serif-vs-sans-serif/)

Guide · Fonts & typography

Compare serif and sans serif fonts using product tasks, realistic specimens, and a decision checklist instead of style stereotypes.

### [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)

Guide · Colors

Map primitive colors to semantic UI tokens, document states and themes, and validate meaning with a small implementation example.

### [GitHub for designers: your first pull request, step by step](https://designproject.io/resources/guides/github-for-designers/)

Guide · GitHub & collaboration

Learn repos, branches, commits, and pull requests with a designer-friendly walkthrough, GitHub Desktop options, naming examples, and a copyable PR template.

### [How to check color contrast in a UI](https://designproject.io/resources/guides/check-color-contrast/)

Guide · Colors

Check text and interface contrast with a live calculator, WCAG reference thresholds, state-by-state examples, and a review checklist.

### [How to create a UI type scale with CSS examples](https://designproject.io/resources/guides/create-ui-type-scale/)

Guide · Fonts & typography

Create a practical UI type scale, assign semantic text roles, and test size, weight, line height, and responsive behavior.

### [How to create a UI spacing system](https://designproject.io/resources/guides/create-spacing-system/)

Guide · Design fundamentals

Build a spacing scale with semantic roles, CSS tokens, component examples, and a responsive layout checklist.

### [Font weight, border width, and icon strokes: a UI guide](https://designproject.io/resources/guides/font-weight-borders-strokes/)

Guide · Design fundamentals

Choose font weights, border widths, and icon strokes with a live specimen, CSS examples, and practical hierarchy checks.

### [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)

Reference · Design fundamentals

Plain-language definitions, practical examples, and links to guides for colors, typography, layouts, design systems, and AI workflows.

### [Red color codes: #FF0000](https://designproject.io/resources/colors/red/)

Color · Colors

Red HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Orange color codes: #FFA500](https://designproject.io/resources/colors/orange/)

Color · Colors

Orange HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Yellow color codes: #FFFF00](https://designproject.io/resources/colors/yellow/)

Color · Colors

Yellow HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Green color codes: #008000](https://designproject.io/resources/colors/green/)

Color · Colors

Green HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Lime color codes: #00FF00](https://designproject.io/resources/colors/lime/)

Color · Colors

Lime HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Blue color codes: #0000FF](https://designproject.io/resources/colors/blue/)

Color · Colors

Blue HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Navy color codes: #000080](https://designproject.io/resources/colors/navy/)

Color · Colors

Navy HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Cyan color codes: #00FFFF](https://designproject.io/resources/colors/cyan/)

Color · Colors

Cyan HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Teal color codes: #008080](https://designproject.io/resources/colors/teal/)

Color · Colors

Teal HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Purple color codes: #800080](https://designproject.io/resources/colors/purple/)

Color · Colors

Purple HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Pink color codes: #FFC0CB](https://designproject.io/resources/colors/pink/)

Color · Colors

Pink HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Magenta color codes: #FF00FF](https://designproject.io/resources/colors/magenta/)

Color · Colors

Magenta HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Coral color codes: #FF7F50](https://designproject.io/resources/colors/coral/)

Color · Colors

Coral HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Lavender color codes: #E6E6FA](https://designproject.io/resources/colors/lavender/)

Color · Colors

Lavender HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Beige color codes: #F5F5DC](https://designproject.io/resources/colors/beige/)

Color · Colors

Beige HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Brown color codes: #A52A2A](https://designproject.io/resources/colors/brown/)

Color · Colors

Brown HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Gray color codes: #808080](https://designproject.io/resources/colors/gray/)

Color · Colors

Gray HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Black color codes: #000000](https://designproject.io/resources/colors/black/)

Color · Colors

Black HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [White color codes: #FFFFFF](https://designproject.io/resources/colors/white/)

Color · Colors

White HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

### [Gold color codes: #FFD700](https://designproject.io/resources/colors/gold/)

Color · Colors

Gold HEX, RGB, and HSL values, tints and shades, text contrast, and practical UI examples.

Canonical: https://designproject.io/resources/fundamentals/

## Explore more topics

- [Colors](https://designproject.io/resources/colors/)
- [Fonts & typography](https://designproject.io/resources/fonts/)
- [Step-by-step guides](https://designproject.io/resources/guides/)
