π Overview
You have already completed:
-
A PDF CV design
-
An HTML Resume
-
An HTML Form
-
Responsive layouts using raw CSS
-
Media queries, transitions, and animations
In this final CSS assignment, you will refactor both projects by removing most of your custom CSS and rebuilding the styling using Tailwind CSS.
This assignment reflects modern, real-world frontend workflows, where utility-first CSS frameworks are widely used in professional teams.
π― Learning Objectives
By completing this assignment, you will demonstrate your ability to:
-
Replace traditional CSS with Tailwind CSS utilities
-
Build responsive layouts without writing media queries
-
Use Tailwindβs layout, spacing, typography, and color systems
-
Apply transitions and animations using Tailwind
-
Maintain clean Git workflows using multiple branches
π Learning Resources (Required Reading)
Before starting this assignment, you must review the following official Tailwind CSS resources.
π Tailwind CSS β Quick Setup (Play CDN)
For this assignment, you may use Tailwind CSS via Play CDN.
π Official Setup Documentation (Required Reference)
https://tailwindcss.com/docs/installation/play-cdn
β This setup method is allowed and recommended
β No Node.js or build tools required
β Ideal for learning and rapid iteration
You must include Tailwind CSS in your HTML using the official Play CDN script exactly as shown in the documentation.
β οΈ Note:
-
Play CDN is intended for development and learning
-
Do not recreate Tailwind utilities using raw CSS
π Using the Tailwind Documentation (Mandatory)
You are expected to actively use the Tailwind CSS documentation while working on this assignment.
π Tailwind CSS Documentation
https://tailwindcss.com/docs
The documentation explains how to use:
-
Layout utilities (Flexbox & Grid)
-
Spacing and sizing (
p-,m-,gap-,w-) -
Typography (
text-,font-,leading-) -
Colors and backgrounds
-
Responsive breakpoints (
md:,lg:) -
Transitions and animations
-
Hover, focus, and state variants
β οΈ Important:
-
Do not guess or invent class names
-
Use the documentation to find the correct utility classes
-
Marks may be deducted for incorrect or non-existent Tailwind classes
π Free Official Tailwind Course (Highly Recommended)
If you are new to Tailwind or want more confidence with utility-first CSS, complete the free official course below:
π Build UIs That Donβt Suck
https://tailwindcss.com/build-uis-that-dont-suck
β Created by the Tailwind CSS team
β Covers layout, spacing, typography, and responsiveness
β Practical, short lessons with real examples
β± Estimated time: 1β2 hours
π Git Workflow (Mandatory)
You must follow this Git branching workflow:
Rules:
-
All development happens on
dev -
Merge
dev β beta -
Merge
beta β main -
Final work must be visible on the
mainbranch
β οΈ Failure to follow this workflow may result in lost marks.
π§ Technical Requirements (Mandatory)
β Tailwind CSS Usage
-
Tailwind CSS must be included (CDN or build process)
-
Most styling must use Tailwind utility classes
-
Custom CSS must be minimal and justified
β Allowed custom CSS:
-
Custom keyframes not easily expressed in Tailwind
-
Minor overrides (maximum ~50 lines)
β Not allowed:
-
Rebuilding layouts using raw CSS
-
Using media queries for responsiveness
-
Recreating Tailwind utilities manually
π§βπΌ Part 1 β Resume Refactor Using Tailwind CSS
Refactor your HTML Resume so that Tailwind CSS replaces most of your previous CSS.
β Layout & Structure Requirements
Use Tailwind utilities for:
-
Flexbox or Grid layout
-
Spacing (
p-,m-,gap-) -
Typography (
text-,font-,leading-) -
Alignment (
items-,justify-) -
Colors and backgrounds
β Floating (float) and table-based layouts are not allowed.
π± Responsive Behavior (No Media Queries)
Responsiveness must be handled using Tailwind breakpoints only.
| Device | Tailwind Prefix |
|---|---|
| Mobile | default |
| Tablet | md: |
| Laptop / Desktop | lg: |
Required Layout Changes
π± Mobile
-
Single-column layout
-
Stacked sections
-
Smaller font sizes
π± Tablet
-
Two-column layout where appropriate
-
Improved spacing and readability
π» Laptop / Desktop
-
Full professional CV layout
-
Clear alignment and hierarchy
-
Visually matches the original PDF CV
β¨ Transitions (Mandatory)
Use Tailwind transition utilities.
β Requirements:
-
At least 2 different transitioning properties
-
Visible during hover or interaction
Examples:
-
transition-all duration-300 -
hover:bg-gray-200 -
hover:scale-105
π Animations (Mandatory)
Use Tailwind animations or custom keyframes.
β Requirements:
-
At least 2 different animations
-
Must be professional and meaningful
-
Applied to elements such as:
-
Header
-
Section titles
-
Profile image
-
Examples:
-
Fade-in on page load
-
Slide-in header
-
Soft scale reveal
π Part 2 β Form Refactor Using Tailwind CSS
Refactor your HTML Form to use Tailwind CSS for layout, styling, transitions, and animations.
β Form Layout & Styling Requirements
Use Tailwind utilities for:
-
Grid or Flexbox layout
-
Styled labels, inputs, and buttons
-
Consistent color theme
-
Clean spacing and alignment
β Raw CSS layout is not allowed.
β¨ Transitions (Mandatory)
Your form must include Tailwind transitions.
β Must include:
-
Input focus transition
-
Button hover transition
Examples:
-
focus:ring-2 focus:ring-blue-500 -
hover:bg-blue-600 transition-colors duration-300
π Animations (Mandatory)
β At least 2 animations, applied to:
-
Form container
-
Submit button
-
Labels or inputs
Examples:
-
Form fade-in on load
-
Button pulse
-
Input reveal animation
π± Responsive Expectations (Tailwind-based)
π± Mobile
-
Inputs stacked vertically
-
Full-width fields
-
Large touch-friendly buttons
π± Tablet
-
Inputs grouped in rows
-
Improved spacing
π» Laptop / Desktop
-
Centered form
-
Card-style layout
-
Clear visual hierarchy
π Project Structure Requirements
Each project must include:
-
index.html -
Tailwind CSS included (CDN or build)
-
Optional
style.css(minimal only) -
Clean, readable HTML class usage
π€ Submission Instructions
Submit two GitHub repository URLs on separate lines in Moodle:
β οΈ Make sure:
-
Both links point to the
mainbranch -
Tailwind CSS is clearly used
-
Git history shows
dev β beta β main
β Grading Criteria
| Criteria | Description |
|---|---|
| Tailwind Usage | Utility-first styling used correctly |
| Responsive Design | Clear differences across breakpoints |
| Layout | Proper Flexbox / Grid via Tailwind |
| Transitions | Smooth interactive transitions |
| Animations | Multiple appropriate animations |
| Resume Quality | Professional, responsive CV |
| Form Design | Clean, modern, responsive form |
| CSS Reduction | Raw CSS minimized |
| Git Workflow | dev β beta β main followed |
| Submission | Correct links, main branch only |