42.1 Arbitrary Values
Arbitrary Values is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind Arbitrary Values.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply Arbitrary Values to a course website and explain the decision you made.
- Apply Arbitrary Values to a online store and explain the decision you made.
- Apply Arbitrary Values to a banking app and explain the decision you made.
- Apply Arbitrary Values to a school portal and explain the decision you made.
- Apply Arbitrary Values to a clinic booking system and explain the decision you made.
- Apply Arbitrary Values to a dashboard and explain the decision you made.
- Apply Arbitrary Values to a restaurant site and explain the decision you made.
- Apply Arbitrary Values to a mobile app and explain the decision you made.
- Apply Arbitrary Values to a creator site and explain the decision you made.
- Apply Arbitrary Values to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">Arbitrary Values</span>
</div>Expected output
A working responsive example demonstrating Arbitrary Values, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for Arbitrary Values using a different product, screen, component, or content set. Explain what changed and why.
42.2 Arbitrary Properties
Arbitrary Properties is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind Arbitrary Properties.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply Arbitrary Properties to a course website and explain the decision you made.
- Apply Arbitrary Properties to a online store and explain the decision you made.
- Apply Arbitrary Properties to a banking app and explain the decision you made.
- Apply Arbitrary Properties to a school portal and explain the decision you made.
- Apply Arbitrary Properties to a clinic booking system and explain the decision you made.
- Apply Arbitrary Properties to a dashboard and explain the decision you made.
- Apply Arbitrary Properties to a restaurant site and explain the decision you made.
- Apply Arbitrary Properties to a mobile app and explain the decision you made.
- Apply Arbitrary Properties to a creator site and explain the decision you made.
- Apply Arbitrary Properties to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">Arbitrary Properties</span>
</div>Expected output
A working responsive example demonstrating Arbitrary Properties, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for Arbitrary Properties using a different product, screen, component, or content set. Explain what changed and why.
42.3 CSS Variables
CSS Variables is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind CSS Variables.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply CSS Variables to a course website and explain the decision you made.
- Apply CSS Variables to a online store and explain the decision you made.
- Apply CSS Variables to a banking app and explain the decision you made.
- Apply CSS Variables to a school portal and explain the decision you made.
- Apply CSS Variables to a clinic booking system and explain the decision you made.
- Apply CSS Variables to a dashboard and explain the decision you made.
- Apply CSS Variables to a restaurant site and explain the decision you made.
- Apply CSS Variables to a mobile app and explain the decision you made.
- Apply CSS Variables to a creator site and explain the decision you made.
- Apply CSS Variables to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">CSS Variables</span>
</div>Expected output
A working responsive example demonstrating CSS Variables, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for CSS Variables using a different product, screen, component, or content set. Explain what changed and why.
42.4 calc Expressions
calc Expressions is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind calc Expressions.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply calc Expressions to a course website and explain the decision you made.
- Apply calc Expressions to a online store and explain the decision you made.
- Apply calc Expressions to a banking app and explain the decision you made.
- Apply calc Expressions to a school portal and explain the decision you made.
- Apply calc Expressions to a clinic booking system and explain the decision you made.
- Apply calc Expressions to a dashboard and explain the decision you made.
- Apply calc Expressions to a restaurant site and explain the decision you made.
- Apply calc Expressions to a mobile app and explain the decision you made.
- Apply calc Expressions to a creator site and explain the decision you made.
- Apply calc Expressions to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">calc Expressions</span>
</div>Expected output
A working responsive example demonstrating calc Expressions, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for calc Expressions using a different product, screen, component, or content set. Explain what changed and why.
42.5 Dynamic Values
Dynamic Values is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind Dynamic Values.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply Dynamic Values to a course website and explain the decision you made.
- Apply Dynamic Values to a online store and explain the decision you made.
- Apply Dynamic Values to a banking app and explain the decision you made.
- Apply Dynamic Values to a school portal and explain the decision you made.
- Apply Dynamic Values to a clinic booking system and explain the decision you made.
- Apply Dynamic Values to a dashboard and explain the decision you made.
- Apply Dynamic Values to a restaurant site and explain the decision you made.
- Apply Dynamic Values to a mobile app and explain the decision you made.
- Apply Dynamic Values to a creator site and explain the decision you made.
- Apply Dynamic Values to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">Dynamic Values</span>
</div>Expected output
A working responsive example demonstrating Dynamic Values, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for Dynamic Values using a different product, screen, component, or content set. Explain what changed and why.
Chapter 42 review — 10 questions and answers
1. What is the main purpose of Arbitrary Values?
Answer: Arbitrary Values is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
2. What is a common mistake with Arbitrary Values?
Answer: Using Arbitrary Values as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
3. What is the main purpose of Arbitrary Properties?
Answer: Arbitrary Properties is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
4. What is a common mistake with Arbitrary Properties?
Answer: Using Arbitrary Properties as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
5. What is the main purpose of CSS Variables?
Answer: CSS Variables is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
6. What is a common mistake with CSS Variables?
Answer: Using CSS Variables as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
7. What is the main purpose of calc Expressions?
Answer: calc Expressions is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
8. What is a common mistake with calc Expressions?
Answer: Using calc Expressions as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
9. What is the main purpose of Dynamic Values?
Answer: Dynamic Values is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
10. What is a common mistake with Dynamic Values?
Answer: Using Dynamic Values as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.