Service
Implementation
We turn the approved design into a working website and keep Figma, the code and the CMS aligned.
About this service
Design implementation
The designer shares approved Figma frames for narrow and wide layouts, component states, assets and web fonts. The developer builds one representative page with real content. We review what wraps, how a form shows errors and which parts editors can change in the CMS before applying those decisions across the site.
Figma design handoff
A design token gives a design decision a name. A primitive names a value, such as a shade of teal or a spacing step. A semantic token names its purpose, such as the color for a main action. Agree on those names before building more components.
Colors and themes
In Figma, save palette swatches in Primitives. In Semantic, create aliases such as primary, primary-foreground, secondary, muted and muted-foreground that point to those swatches. Apply the semantic variables to components. Use the same names in CSS so primary becomes bg-primary or text-primary in Tailwind. A section with a different theme can use a Figma Variable Mode and a CSS override that assign new values to the same roles.
:root {
--teal-800: #115e59;
--white: #ffffff;
--primary: var(--teal-800);
--primary-foreground: var(--white);
}
@theme inline {
--color-primary: var(--primary);
--color-primary-foreground:
var(--primary-foreground);
}Spacing
Start with spacing primitives in Figma. Before laying out components, add Number variables to the Primitives collection using Tailwind’s default spacing scale. For example, save space/1 as 4 px, space/2 as 8 px, space/4 as 16 px and space/6 as 24 px. As you design, select those saved variables for padding and gap. For margin, note the variable name in the design. The number carries through to Tailwind.
Picture a card with a border, a heading and a paragraph. Where you want the space tells you which setting to use.
- Padding is the space inside the card, from its border to the content. Use
space/4for 16 px on every side. Set the Auto layout padding in Figma and usep-4on the card in Tailwind. - Margin is extra space outside the card. If this card needs 24 px above it, write
space/6in a note on the Figma frame and usemt-6on the card in Tailwind. - Gap is the space between items in the same row, column or grid. Use
space/2for 8 px between the heading and paragraph. Set the gap on their parent Auto layout frame in Figma and usegap-2on their parent flex or grid container in Tailwind.
A primitive gives you a distance you can reuse for any of the three. For equal space between several cards, apply the gap once on the parent grid.
Breakpoints
A breakpoint is the browser width where a layout rule starts. Tailwind’s default viewport breakpoints are listed below. Use these pixel widths in Figma as a starting point. They assume a browser default font size of 16 px.
smstarts at 640 px (40 rem).mdstarts at 768 px (48 rem).lgstarts at 1024 px (64 rem).xlstarts at 1280 px (80 rem).2xlstarts at 1536 px (96 rem).
Mobile first means you start with the narrow-screen layout, then change individual rules as the screen gets wider. Tailwind classes without a prefix set the base layout. A class with a prefix applies from that breakpoint upward. It stays in effect at wider widths until another class changes the same property.
In this card grid, grid-cols-1 starts with one column. At 768 px, md:grid-cols-2 switches to two. At 1024 px, lg:grid-cols-3 switches to three, so the grid still has three columns at xl and 2xl. The gap-4 spacing stays the same throughout. In Figma, show each arrangement and label it with the width where it starts.
<ul class="grid grid-cols-1 gap-4
md:grid-cols-2 lg:grid-cols-3">
<!-- Card items -->
</ul>Typography
A font is the typeface, such as Mulish. A text style saves how you use it, so a section heading looks consistent wherever it appears. In Figma, group your Text styles into Headings for page titles, section headings and subheadings, and Text for body copy, captions and labels. Apply the saved styles to real text so the developer can see them in context.
- Section heading uses Mulish Bold (700), 24 px text, a 32 px line height and −2.5% letter spacing. Line height sets the distance between lines when the heading wraps. Letter spacing sets the distance between letters.
- Body uses Mulish Regular (400), 16 px text, a 24 px line height and normal letter spacing. Both styles use upright text, keep the capitalization as typed and have no underline.
Choose the text color separately with a semantic token such as foreground for ordinary text or muted-foreground for a caption. Share the web font source and weights, and record any special settings such as italics, uppercase or underlining.
In this template, heading-section and body supply the shared sizes and line heights in theme.css. The section variant adds font-bold and tracking-tight. Tailwind’s tracking-tight is -0.025em, or −2.5% letter spacing in Figma. The example sizes assume a 16 px browser default.
@theme {
--text-heading-section: 1.5rem;
--text-heading-section--line-height: 2rem;
--text-body: 1rem;
--text-body--line-height: 1.5;
}How this page uses the components
The title at the top of this page uses variant="service", and the summary beneath it uses variant="lead". “About this service” uses the default section variant. The Blade excerpt shows the three roles.
<x-heading level="1" variant="service">
{{ $page->title }}
</x-heading>
<x-text variant="lead">
{{ $page->summary }}
</x-text>
<x-heading>
{{ __('About this service') }}
</x-heading>variant picks the visual style. level sets the heading’s place in the HTML structure and defaults to h2. Record any responsive change in Figma, including the size, line height and breakpoint. The headings and paragraphs in this guide come from the Service description in Bard and use the site’s shared rich-text styles.
Document CMS behavior in Figma
Add a note next to each component that editors will manage. Name the fields, say which are required and show what happens when an optional field is empty. The developer uses these notes to set up the CMS and check that the website handles the same cases.
- Body text. Say what editors can do. For example, “Body text supports bold, italic and text links.” Show a short example with those three formats. If a field only takes plain text, label it as such.
- Text length. Mark any maximum in characters, including spaces, and say whether it is advice or a limit the CMS enforces. Show what should happen when a heading wraps. Test the longest expected copy in every language.
- Number of cards. Specify the minimum and maximum. For example, this template’s Cards block accepts two to four cards. Show the layout with both two and four cards at narrow and wide widths. If the whole block is optional, document what the page looks like without it.
- Images across languages. Say whether every language uses the same uploaded image or whether editors can select a different image for each language. If an editor leaves a translated image empty, say whether to reuse the original image, hide it or require a replacement. For informative images, specify alternative text in each language even when the image is shared.
Review the working site
We build the components, templates, CMS fields and agreed integrations, then make the site available for review. We compare it with Figma at the same widths, test keyboard focus and contrast, and try long headings and missing images. When a shared decision changes, the designer updates the Figma variable or style and the developer updates the corresponding value in code. Keep the approved frame and the code change linked in the same task.