Global Styles embed
Explanation of each CSS snippet in the Global Styles embed of the Client-First cloneable.
CSS snippets
Text clarity
Modifies default browser rendering method for better text clarity.
Text looks better on the page with this snippet.
Focus state for keyboard navigation
Creates one focus style for all focusable elements in the build at once.
It targets links, buttons, file inputs, and any element with a tabindex attribute. Elements set to tabindex="-1" are excluded because they cannot be reached with a keyboard.
Outline width, color, and offset come from the Variables panel. Update the focus variables in Theme and Sizes to change the focus style across the entire project.

Webflow allows us to style the focus-visible state (called "Focused (keyboard)" in the states dropdown) for any element separately. Use it if you want to override the default style we created with the snippet.
Text selection
Styles the highlight color of selected text.
Background and text color come from the Variables panel. Update the selection variables in Theme to match the brand. The text shadow is removed so selected text stays readable on every background.
The ::-moz-selection rule repeats the same style for Firefox. Both rules are needed because Firefox does not read the standard ::selection rule.
Pointer cursor for interactive elements
Sets the pointer cursor on buttons, links, form controls, and select fields.
This snippet is turned off by default. Remove the comment tags to turn it on.
Keep the note inside the snippet. It tells the next person working on the project that the option exists and how to enable it.
Form element reset
Removes default browser styling from inputs, textareas, and select fields.
Apple devices add their own rounded corners, backgrounds, and shadows to form elements. This snippet removes them so form fields start from a clean base and follow the styles we set in Webflow.
This snippet is turned off by default. Remove the comment tags to turn it on.
Inherit typography styles
Makes links, inputs, and Webflow's built-in elements inherit color and text decoration from their parent.
Webflow applies hardcoded styles to these elements. Links get their own color and underline, and form inputs never follow the body font styles. With this snippet, these elements inherit from their parent instead of being overridden one by one.
We consider this an advanced option because it can lead to unexpected behavior. For example, we will not be able to select "All links" and change their color. The "All links" style update will not change anything because we are no longer working with the hardcoded values set to these elements. We override this option by using inherit.
This snippet is turned off by default. Remove the comment tags to turn it on.
Highlight empty links
Adds a red outline to links that point to an empty href.
Use it to find links that were never connected to a page or URL. Lightbox links and pagination links are excluded because they use an empty href by design.
The snippet is scoped to wf-design-mode, so the outline appears in the Designer only. It never shows on the published site.

This snippet is turned off by default. Remove the comment tags to turn it on.
Rich Text top margin removal
Removes the top margin from the first element in Rich Text.
For example, we want our H2 to have margin-top: 4rem. This is the top margin we want throughout the entire Rich Text element. However, we do not want this margin-top for the first element of the Rich Text. The 4rem of margin creates an unwanted space between the top of the Rich Text element and the first H2 text.
The "not" declaration is a special failsafe for our Table of Contents Attribute solution.
Rich Text bottom margin removal
Removes bottom margin for the last element in Rich Text.
For example, we want our Paragraph to have margin-bottom: 0.5rem. This is the bottom margin we want throughout the entire Rich Text element. However, we do not want this margin-bottom for the last element of the Rich Text. The 0.5rem of margin creates an unwanted space between the bottom of the Rich Text element and the final Paragraph text.