Knowledge / Design (Fashion / Product / Communication / UI-UX) / UI design

UI design

Design (Fashion / Product / Communication / UI-UX) (B.Des) · Communication and digital · free study notes for exams, placements and interviews

In short

UI (user interface) design is the craft of giving a digital product its visible, touchable surface — layout, grid, type, colour, icons, components and their states — so that a user can see what is possible, act on it and understand the result. It sits between UX research (what to build and why) and front-end code (how it ships), and is judged on hierarchy, consistency, accessibility and fidelity to platform conventions rather than on decoration. In Indian B.Des and B.Tech design syllabi it is examined through layout and grid problems, colour-contrast and type-scale calculations, component/state documentation and critique of real screens; portfolio and placement rounds at Zoho, Freshworks, Zomato, Swiggy, Paytm, PhonePe, Razorpay, Infosys/TCS design studios, Tata Digital and design consultancies (Lollypop, Obvious, Fractal Ink) test exactly these. Government and regulated work adds hard compliance: GIGW 3.0, IS 17802, the RPwD Act 2016, the DPDP Act 2023 and the CCPA dark-pattern guidelines of 2023.

Explained

What UI design covers, and how it is structured

Grid, layout and spacing

Typography and colour for screens

Components, states and interaction patterns

Platform conventions, responsive and adaptive design

Design systems, tokens and handoff

Accessibility, Indian standards, law and ethics

Key points

Formulas and examples

Column width: c = (W − (n−1)·g − 2·m) / n
W = container width (px), n = number of columns, g = gutter (px), m = outer margin (px), c = column width (px)
Span width (k columns): Sₖ = k·c + (k−1)·g
Density conversion (Android): px = dp × (dpi / 160); scale factor s = dpi/160
mdpi 160 dpi → 1×, hdpi 240 → 1.5×, xhdpi 320 → 2×, xxhdpi 480 → 3×, xxxhdpi 640 → 4×
CSS rem: size(px) = value(rem) × root-font-size(px)
Type scale: Sᵏ = S₀ × rᵏ
S₀ = base size (px), r = scale ratio, k = step number (negative for smaller)
Line-height (leading): LH(px) = font-size(px) × multiplier (1.4–1.6 for body, 1.1–1.25 for display)
Measure (approx.): characters per line ≈ line width(px) / (0.5 × font-size(px))
(0.5 em average character width for a typical UI sans-serif)
Relative luminance (WCAG, sRGB): L = 0.2126·R + 0.7152·G + 0.0722·B
where for each channel, with c = channel value/255: C = c/12.92 if c ≤ 0.03928, else C = ((c + 0.055)/1.055)2.4
Contrast ratio: CR = (L₁ + 0.05) / (L₂ + 0.05), L₁ = lighter, L₂ = darker; range 1:1 to 21:1
Fitts's law: MT = a + b·log₂(2D/W)
MT = movement time (s), D = distance to target, W = target width along the line of motion, a and b = empirical constants (s and s/bit)
Hick's law: RT = a + b·log₂(n + 1)
n = number of equally likely choices, RT = reaction time (s)
Aspect ratio: h = w × (ratio height / ratio width), e.g. 16:9 → h = w × 9/16

Example 1 — Laying out a 12-column desktop grid. A web page has container W = 1140 px, n = 12, gutter g = 24 px, outer margin m = 0 (margins handled outside the container).

Example 2 — Density conversion and asset export. A 48 dp primary button with a 24 dp icon must ship for Android.

Example 3 — Type scale and measure. Base S₀ = 16 px, ratio r = 1.25 (major third), line-height multiplier 1.5 for body.

Step kSize (px)RoleLine-height (px)
−116/1.25 = 12.8 ≈ 13caption13 × 1.4 ≈ 18
016body16 × 1.5 = 24
120subtitle20 × 1.4 = 28
225H325 × 1.3 ≈ 32
331.25 ≈ 31H231 × 1.25 ≈ 39
439H139 × 1.2 ≈ 47

Example 4 — Contrast ratio decisions. (a) Grey text #767676 on white #FFFFFF.

(b) Saffron #FF9933 as a button fill.

Example 5 — Target size and menu structure. (a) Fitts's law with a = 0.05 s, b = 0.10 s/bit, pointer 200 px away.

(b) Hick's law with a = 0.20 s, b = 0.15 s/bit for a settings menu.

ResponsiveAdaptive
Layout countOne fluid layoutSeveral fixed layouts
MechanismFluid grid + media queriesBreakpoint-selected templates
Control over each sizeLowerHigher
Build and maintenance costLowerHigher
Best forMarketing sites, content, commerceDashboards, complex tools, legacy apps

Where it is used

Interview questions

Common mistakes

Related topics

UX research and usability · Figma and prototyping · Branding and communication design · Design software: Adobe tools · Information architecture and interaction design · Front-end implementation and design handoff

Open in the Knowledge reader →Find jobs →