Frontend technology
CSS3 development.
At a glance
How I use CSS3 in real projects.
- Responsive layouts from mobile to wide desktop
- Design tokens for colour, spacing and typography
- Light and dark theme support
Overview
What it is and why it matters.
CSS3 is where the layout and visual language live. I use modern layout tools, custom properties and deliberate breakpoints so a page works at 320px as well as it does on a large monitor. The goal is a system that another developer can extend without fighting it.
Layouts use grid and flexbox with a small set of spacing and type tokens. Colours are defined once as custom properties so light and dark themes stay in sync. Motion is added only where it supports the content, and reduced-motion preferences are respected.
Practical examples
Seen in real builds.
A typical build defines tokens once — colour, spacing, radius, type — and every component consumes them. A pricing section, for example, is a grid that becomes one column under 640px, with no duplicated markup and no magic pixel numbers to maintain.
Dark mode shows the value of the token system: the same components render both themes because the custom properties swap, and contrast is verified per theme rather than assumed. Focus rings, reduced-motion queries and print styles are handled in the same pass.
How it works
Under the surface.
CSS applies rules to the document tree: selectors match elements, properties compute values, and the cascade resolves conflicts by origin, specificity and order. Layout engines turn the computed styles into the visual boxes users see.
Advantages
- Powerful layout primitives — grid and flexbox — replace float hacks
- Custom properties make themes and tokens maintainable
- Media and container queries adapt layouts to real conditions
- Animations and transitions run on the compositor when used carefully
Limitations
- Global scope: one careless selector can restyle the whole site
- Older browsers ignore newer syntax, so fallbacks need thought
- Complex specificity makes debugging cascade conflicts slow
- Layout is invisible in markup — the rendered result must be tested
Best practices
How it is used well.
- Define colour, spacing and type as tokens before writing component styles
- Prefer layout with grid and flexbox over magic numbers and fixed widths
- Keep specificity low and consistent so overrides stay predictable
- Test contrast and focus states in both light and dark themes
Common mistakes
Where projects drift.
- Hard-coding pixel values that break as content changes
- Adding !important instead of fixing the cascade
- Decorative animation that ignores reduced-motion preferences
- Theme colours defined twice, so light and dark drift apart
In practice
Where CSS3 fits.
Responsive layouts from mobile to wide desktop
Design tokens for colour, spacing and typography
Light and dark theme support
Accessible focus states and reduced-motion handling
Security
CSS cannot execute code, but it can hide or expose content; never rely on CSS alone to protect data, and sanitise anything that reaches style attributes.
Performance
Complex selectors and huge stylesheets cost parse and layout time; keep the critical path small and avoid layout thrash.
Related services
Where this stack is used.
Responsive Website Development
Websites that remain readable, usable and fast from small phones to wide desktop displays.
ExploreFrontend Development
Responsive, accessible front ends built with React, TypeScript and modern CSS, connected cleanly to real data.
ExploreWebsite Redesign
A structured redesign that improves clarity, usability and performance while protecting existing content and search visibility.
ExploreRelated technologies
Questions
CSS3 questions.
Do you use a CSS framework?
It depends on the project. Tailwind CSS is used where a utility-first system fits the team; otherwise I write scoped CSS with tokens. The decision is made before the build, not halfway through.
How do you handle dark mode?
Colours are defined as theme tokens, then the token values switch under a theme class or media query. Contrast is checked in both themes rather than assuming one palette works for both.
Can you make an existing site responsive?
Usually. I review the current layouts, identify the components that break, and rebuild those patterns rather than adding disconnected media queries on top.
How do you keep CSS predictable on a large site?
With tokens, low specificity and a small set of layout patterns. Overrides are added only with a reason, and both themes are verified together so light and dark never drift apart.
Can you modernise old CSS without a redesign?
Usually. Float-era layouts and one-off hacks are replaced with grid or flexbox patterns in place, verified against the existing design so nothing visual changes except resilience.
Next step
Tell me what you are building, and what is getting in the way.
A short brief is enough to start. You will get clear questions, a practical scope and an honest answer about fit.