Q1. What is utility-first CSS and what are its benefits?
Utility-first means composing small, single-purpose classes directly in markup instead of writing semantic class names and separate stylesheets. In Tailwind, a class list...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (14 available).
Utility-first means composing small, single-purpose classes directly in markup instead of writing semantic class names and separate stylesheets. In Tailwind, a class list...
Tailwind encodes variants as prefixes. Responsive breakpoints are mobile-first: sm, md, lg, xl and 2xl apply at that minimum width and above. ```html ... ``` That element...
Tailwind is configured in tailwind.config.js. The content array tells the engine where to scan for class names, and theme customises the design tokens. extend adds to the...
A plugin is a function passed to plugins in the config. It receives helpers including addUtilities, addComponents, addBase, addVariant, matchUtilities and theme. ```js co...
@apply inlines utility classes into a CSS rule, letting you write component classes while reusing Tailwind's design tokens. ```css .btn { @apply inline-flex items-center ...
Tailwind's JIT scans the files listed in content and generates only classes it finds as literal strings. Class names built dynamically are invisible to the scanner. ```js...
When a design needs a one-off value that is not in the scale, arbitrary value syntax accepts raw CSS inside square brackets: w-[327px], top-[117px], bg-[#1da1f2], grid-co...
Tailwind's performance story is about generation and delivery. The JIT engine produces only the utilities present in scanned files, so production CSS is typically a few k...
By installing Tailwind CSS and configuring it in the next.config.js file. ```bash npm install tailwindcss postcss autoprefixer npx tailwindcss init -p ``` Then, add the f...
TailwindCSS is a utility-first CSS framework that provides pre-defined CSS classes that can be used to rapidly build custom user interfaces.
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.