Skip to main content

CSS Variables

Studio enables you to customize your Studio storefronts appearance using CSS variables. You can use these variables in the Component Editor when you are creating your custom components.

CSS variables are defined using two dashes (--) and are subject to the cascade and inherit their value from their parent.

Several categories exist for CSS variables.

Colors

The following CSS variables can be used with colors. Colors are defined in the Color palette in the Style Guide. These are different from other areas of the Style Guide. These colors must be selected using the color picker in the Color palette.

color palette in style guide

VariableDescription
--color-dark-backgroundThis is the Dark background color.
--color-dark-textThis is the Dark text color.
--color-light-backgroundThis is the Light background color.
--color-light-textThis is the Light text color.
--color-primaryThis is the Brand primary color. Studio enables you to set a primary brand color for your Studio storefront. This color is then used in primary buttons, text, borders, and so on.
--color-successThis is the Success color. Studio enables you to set a color for success messages in your Studio storefront.
--color-warningThis is the Warning color. Studio enables you to set a color for warning messages in your Studio storefront.

Fonts

The following CSS variables are defined in Fonts section of the Style Guide. You can select up to four fonts to be used across your storefronts.

fonts in style guide

VariableDescription
--font-family-0This is a font-family name, for example, Arial or Times New Roman.
--font-family-1This is a font-family name, for example, Arial or Times New Roman.
--font-family-2This is a font-family name, for example, Arial or Times New Roman.
--font-family-3This is a font-family name, for example, Arial or Times New Roman.

Typography

The following CSS variables can be used with typography.

Text

The following CSS variables can be used with body text on your Studio storefront. These variables are defined in the Text section of the Style Guide.

body color in style guide

VariableDescription
--body-colorSets the body text color. Define a new color called Body color. In the Text section in the Style Guide, ensure that Light is selected then you can select the Body color color.
--body-font-familyThis is the body text font family defined in the Text section of the Style Guide.
--body-font-sizeThis is the body text font size defined in the Text section of the Style Guide. This is configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--body-font-weightThis is the body text font weight defined in the Text section of the Style Guide. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--body-inverted-colorSets the body text color for dark backgrounds. Define a new color called Body inverted color. In the Text section in the Style Guide, ensure that Dark is selected then you can select the Body inverted color color. body color in style guide
--body-line-heightSets the distance between lines of body text. Configured in rem.

Lists

The following CSS variables can be used with lists on your Studio storefront. These variables are defined in the Lists section of the Style Guide.

lists in style guide

VariableDescription
--checklist-colorSets the checklist text color. Define a new color called Checklist color and in the Lists section, select the Checklist color color.
--checklist-font-familySets the checklist text font family.
--checklist-font-sizeSets the checklist text font size. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--checklist-font-styleSets whether the checklist text should be normal, italic or oblique face. The styles available depend on the font-family that is currently set.
--checklist-font-weightSets the checklist text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--checklist-icon-colorSets the checklist bullet icon color. Define a new color called Checklist icon and in the Lists section, ensure that ICON is selected. You can then select the Checklist icon color color. body color in style guide
--checklist-icon-sizeSets the checklist bullet icon size. Ensure that ICON is selected. Configured in pixels (px).
--checklist-inverted-colorSets the checklist text color on storefronts with a dark background. Define a new color called Checklist inverted color. In the Lists section in the Style Guide, ensure that Dark is selected. You can then select the Checklist inverted color color. body color in style guide
--checklist-inverted-icon-colorSets the checklist bullet icon color on storefronts with a dark background. Define a new color called Checklist inverted icon color. In the Lists section in the Style Guide, ensure that both Dark and ICON are selected. You can then select the Checklist inverted icon color color. checklist inverted icon color in style guide
--checklist-line-heightSets the distance between lines of text in a checklist. Configured in rem.

Headings

The following CSS variables can be used with headings. These variables are defined in the Headings section of the Style Guide.

Heading 1

The following CSS variables can be used with heading 1. These variables are defined in the H1 section in Headings.

heading 1 in style guide

VariableDescription
--h1-colorSets the text color for the heading 1 style. Define a new color called h1 color. In the H1 section in Headings, you can then select the h1 color color. checklist inverted icon color in style guide
--h1-font-familySets the font-family for the heading 1 style.
--h1-font-sizeSets the font size for the heading 1 style. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--h1-font-weightSets the heading 1 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--h1-inverted-colorSets the heading 1 style text color on storefronts with a dark background. Define a new color called h1 inverted color. In the H1 section in Headings, ensure that Dark is selected. You can then select the h1 inverted color color. body color in style guide
--h1-line-heightSets the heading 1 style text line height. Configured in rem.

Heading 2

The following CSS variables can be used with heading 2 on your Studio storefront. These variables are defined in the H2 section in Headings.

heading 2 in style guide

VariableDescription
--h2-colorSets the text color for the heading 2 style. Define a new color called h2 color. In the H2 section in Headings, you can then select the h2 color color. checklist inverted icon color in style guide
--h2-font-familySets the font-family for heading 2 style. This can be one or more font-family names in a comma separated list, for example, Arial, sans-serif.
--h2-font-sizeSets the font size for heading 2 style. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--h2-font-weightSets the heading 2 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--h2-inverted-colorSets the heading 2 style text color on storefronts with a dark background. Define a new color called h2 inverted color. In the H2 section in Headings, ensure that Dark is selected. You can then select the h2 inverted color color. body color in style guide
--h2-line-heightSets the heading 2 style text line height. Configured in rem.

Heading 3

The following CSS variables can be used with heading 3 on your Studio storefront. These variables are defined in the H3 section in Headings.

heading 3 in style guide

VariableDescription
--h3-colorSets the text color for heading 3 style. Define a new color called h3 color. In the H3 section in in Headings, you can then select the h3 color color. body color in style guide
--h3-font-familySets the font-family for the heading 3 style.
--h3-font-sizeSets the font size for the heading 3 style. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--h3-font-weightSets the heading 3 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--h3-inverted-colorSets the heading 3 style text color on storefronts with a dark background. Define a new color called h3 inverted color. In the H3 section in Headings, ensure that Dark is selected. You can then select the h3 inverted color color. body color in style guide
--h3-line-heightSets the heading 3 style text line height. Configured in rem.

Large quote

The following CSS variables can be used with quotes on your Studio storefront. These variables are defined in the Large quote section in Style Guide.

large quotes in style guide

VariableDescription
--quote-big-colorSets the quote style text color. Define a new color called quote big color. In the Large quote section in the Style Guide, you can then select the quote big color color. body color in style guide
--quote-big-font-familySets the quote big style text font family.
--quote-big-font-sizeSets the quote big style text font size. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--quote-big-font-styleSets whether the quote big style text should be normal, italic or oblique face. The styles available depend on the font-family that is currently set.
--quote-big-font-weightSets the quote big style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--quote-big-icon-colorSets the color of the quotation marks for the quote big style. Define a new color called quote big icon color. In the Large quote section in the Style Guide, ensure that Dark is selected. You can then select the quote big icon color color. body color in style guide
--quote-big-inverted-colorSets the quote big style text color on storefronts with dark backgrounds. Define a new color called quote big inverted color. In the Large quote section in the Style Guide, ensure that Dark is selected. You can then select the quote big inverted color color. body color in style guide
--quote-big-inverted-icon-colorSets the color of the quotation marks for the quote big style on storefronts with dark backgrounds. Define a new color called quote big inverted icon color. In the Large quote section in the Style Guide, ensure that Dark is selected. You can then select the quote big inverted icon color color. body color in style guide
--quote-big-line-heightSets the quote big style text line height. Configured in rem.
--quote-big-mark-sizeSets the size of the quotation marks for the quote big style. Configure in pixels (px).

Highlight

The following CSS variables can be used with quotes on your Studio storefront. These variables are defined in the Highlight section in Style Guide.

highlight in style guide

VariableDescription
--highlight-colorSets the color of highlighted text. Define a new color called highlight color. In the Highlight section in the Style Guide, select the highlight color color. body color in style guide
--inverted-highlight-colorSets the color of highlighted text on stores with dark backgrounds. Define a new color called inverted highlight color. In the Highlight section in the Style Guide, ensure that Dark is selected. You can then select the inverted highlight color color. body color in style guide
--link-colorSets the color of link text. Define a new color called link color. In the Highlight section in the Style Guide, ensure that Dark is selected. You can then select the link color color.

Blog Typography

The following CSS variables can be used with blog typography. These variables are defined in the Blog Text section in Style Guide.

blog text in style guide

VariableDescription
--blog-body-colorSets the blog body text color. Define a new color called blog body color. In the Blog Text section in the Style Guide, select the blog body color color. body color in style guide
--blog-body-font-familySets the blog body text font family.
--blog-body-font-sizeSets the blog body text font size. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--blog-body-font-weightSets the blog body text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--blog-body-line-heightSets the distance between lines of blog body text. Configured in rem.

Blog Headings

The following CSS variables can be used with blog headings.

Blog Header 1

These variables are defined in the Blog header 1 section in Style Guide.

blog header 1 in style guide

VariableDescription
--blog-h1-colorSets the text color for blog heading 1 style. Define a new color called blog h1 color. In the Blog H1 section in the Style Guide, select the blog h1 color color. body color in style guide
--blog-h1-font-familySets the font-family for blog heading 1 style.
--blog-h1-font-sizeSets the font size for blog heading 1 style. Configure this in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--blog-h1-font-weightSets the blog heading 1 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--blog-h1-line-heightSets the blog heading 1 style text line height. Configured in rem.

Blog Header 2

These variables are defined in the Blog header 2 section in Style Guide.

blog header 2 in style guide

VariableDescription
--blog-h2-colorSets the text color for blog heading 2 style. Define a new color called blog h2 color. In the Blog H2 section in the Style Guide, select the blog h2 color color. body color in style guide
--blog-h2-font-familySets the font-family for blog heading 2 style.
--blog-h2-font-sizeSets the font size for blog heading 2 style. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--blog-h2-font-weightSets the blog heading 2 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--blog-h2-line-heightSets the blog heading 2 style text line height. Configured in rem.

Blog Header 3

These variables are defined in the Blog header 3 section in Style Guide.

blog header 3 in style guide

VariableDescription
--blog-h3-colorSets the text color for blog heading 3 style. Define a new color called blog h3 color. In the Blog H3 section in the Style Guide, select the blog h3 color color. body color in style guide
--blog-h3-font-familySets the font-family for blog heading 3 style.
--blog-h3-font-sizeSets the font size for blog heading 3 style. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--blog-h3-font-weightSets the blog heading 3 style text font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--blog-h3-line-heightSets the blog heading 3 style text line height. Configured in rem.

Buttons

The following CSS variables can be used with buttons. These variables are defined in the Buttons section in Style Guide.

These variables are defined in the Action Link section in Style Guide.

action links in style guide

VariableDescription
--button-action-link-arrow-colorSets the button action link arrow color. Define a new color called button action link arrow color. In the Action Link section, select the button action link arrow color color.
--button-action-link-arrow-sizeSets the button action link arrow size. Configured in pixels (px).
--button-action-link-font-familySets the button action link font family.
--button-action-link-font-sizeSets the button action link font size. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--button-action-link-font-weightSets the button action link font weight. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--button-action-link-hover-colorSets the color when a shopper hovers over a button action link. Define a new color called button action link hover color. In the Action Link section, select the button action link hover color color.
--button-action-link-hover-opacitySets the opacity level of a button action link, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-action-link-inverted-arrow-colorSets the button action link color if the storefront has a dark background. Define a new color called button action link inverted arrow color. In the Action Link section, ensure that Dark is selected. You can then select the button action link inverted arrow color color.
--button-action-link-inverted-hover-colorSets the button action link hover color if the storefront has a dark background. Define a new color called button action link inverted hover color. In the Action Link section, ensure that Dark is selected. You can then select the button action link inverted hover color color.
--button-action-link-inverted-hover-opacitySets the button action link hover opacity level if the storefront has a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-action-link-inverted-text-colorSets the button action link text color if the storefront has a dark background. Define a new color called button action link inverted text color. In the Action Lin section, ensure that Dark is selected. You can then select the button action link inverted text color color.
--button-action-link-text-colorSets the button action link text color. Define a new color called button action link text color. In the Action Link section, select the button action link text color color.

Primary Buttons

These variables are defined in the Primary button section in Style Guide.

buttons in style guide

VariableDescription
--button-primary-background-colorSets the background color for primary buttons. Define a new color called button primary background color. In the Primary button section, select the button primary background color color.
--button-primary-border-colorSets the border color for primary buttons. Define a new color called button primary border color. In the Primary button section, select the button primary border color color.
--button-primary-border-radiusRounds the corners of a primary button's border. Configured in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-primary-border-widthSets the width of a primary button's border in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-primary-box-shadowEnables you to cast a drop shadow for a primary button. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-primary-font-familySets the font family for primary buttons.
--button-primary-font-sizeSets the font size for primary buttons. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--button-primary-font-weightSets the font weight for primary buttons. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--button-primary-hover-background-colorSets the color when a shopper hovers over a primary button. Define a new color called button primary hover background color. In the Primary button section, select the button primary hover background color color.
--button-primary-hover-border-colorSets the color when a shopper hovers over a primary button border. Define a new color called button primary hover border color. In the Primary button section, select the button primary hover border color color.
--button-primary-hover-opacitySets the opacity level of a primary button, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-primary-hover-shadowAdds a shadow effect on hover to a primary button. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-primary-inverted-background-colorSets the background color for primary buttons on storefronts with a dark background. Define a new color called button primary inverted background color. In the Primary button section, ensure that Dark is selected. You can then select the button primary inverted background color color.
--button-primary-inverted-border-colorSets the border color for a primary button if the storefront has a dark background. Define a new color called button primary inverted border color. In the Primary button section, ensure that Dark is selected. You can then select the button primary inverted border color color.
--button-primary-inverted-border-widthSets the border width of a primary button if the storefront has a dark background in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-primary-inverted-box-shadowAdds a shadow to a primary button if the storefront has a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-primary-inverted-hover-background-colorSets the background color when hovering over a primary button on a storefront with a dark background. Define a new color called button primary inverted hover background color. In the Primary button section, ensure that Dark is selected. You can then select the button primary inverted hover background color color.
--button-primary-inverted-hover-border-colorSets the border color when hovering over a primary button on a storefront with a dark background. Define a new color called button primary inverted border color. In the Primary button section, ensure that Dark is selected. You can then select the button primary inverted hover border color color.
--button-primary-inverted-hover-opacitySets the hover opacity on a primary button on a storefront with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-primary-inverted-hover-shadowAdds a shadow effect on hover to a primary button on a storefront with a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-primary-inverted-text-colorSets the text color for primary buttons on a storefront with a dark background. Define a new color called button primary inverted text color. In the Primary button section, ensure that Dark is selected. You can then select the button primary inverted text color color.
--button-primary-inverted-text-shadowAdds shadow to primary button text on a storefront with a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-primary-line-heightSets the distance between lines of text in a primary button. Configured in rem.
--button-primary-text-colorSets the color of the text in a primary button. Define a new color called button primary text color. In the Primary button section, select the button primary text color color.
--button-primary-text-shadowAdds shadow to text in a primary button. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.

Secondary Buttons

These variables are defined in the Secondary button section in Style Guide.

secondary buttons in style guide

VariableDescription
--button-secondary-background-colorSets the background color for secondary buttons. Define a new color called button secondary background color. In the Secondary button section, select the button secondary background color color.
--button-secondary-border-colorSets the border color for secondary buttons. Define a new color called button secondary border color. In the Secondary button section, select the button secondary border color color.
--button-secondary-border-radiusRounds the corners of a secondary button's border. Configure in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-secondary-border-widthSets the width of a secondary button's border in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-secondary-box-shadowEnables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-secondary-font-familySets the font family for secondary buttons.
--button-secondary-font-sizeSets the font size for secondary buttons. Configured in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--button-secondary-font-weightSets the font weight for secondary buttons. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--button-secondary-hover-background-colorSets the color when a shopper hovers over a secondary button. Define a new color called button secondary hover background color. In the Secondary button section, select the button secondary hover background color color.
--button-secondary-hover-border-colorSets the color when a shopper hovers over a secondary button border. Define a new color called button secondary hover border color. In the Secondary button section, select the button secondary hover border color color.
--button-secondary-hover-opacitySets the hover opacity on a secondary button, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-secondary-hover-shadowAdds a shadow effect on hover to a secondary button. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-secondary-inverted-background-colorSets the background color for secondary buttons on storefronts with a dark background. Define a new color called button secondary inverted background color. In the Secondary button section, ensure that Dark is selected. You can then select the button secondary inverted background color color.
--button-secondary-inverted-border-colorSets the border color on a secondary button on a storefront with a dark background. Define a new color called button secondary inverted border color. In the Secondary button section in the Style Guide, ensure that Dark is selected. You can then select the button secondary inverted border color color.
--button-secondary-inverted-border-widthSets the border width on a secondary button on a storefront with a dark background in pixels (px). May be specified using one, two, three, or four values. If one value is specified, it applies to the same width on all four sides. When two values are specified, the first width applies to the top and bottom, the second to the left and right. When three values are specified, the first width applies to the top, the second to the left and right, the third to the bottom. When four values are specified, the widths apply to the top, right, bottom, and left in that order.
--button-secondary-inverted-box-shadowEnables you to cast a drop shadow for a secondary button on a storefront with a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-secondary-inverted-hover-background-colorSets the background color when hovering over a secondary button on a storefront with a dark background. Define a new color called button secondary inverted hover background color. In the Secondary button section, ensure that Dark is selected. You can then select the button secondary inverted hover background color color.
--button-secondary-inverted-hover-border-colorSets the border color when hovering over a secondary button on a storefront with a dark background. Define a new color called button secondary inverted hover border color. In the Secondary button section, ensure that Dark is selected. You can then select the button secondary inverted hover border color color.
--button-secondary-inverted-hover-opacitySets the hover opacity on a secondary button on a storefront with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--button-secondary-inverted-hover-shadowAdds a shadow effect on hover to a secondary button on a storefront with a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-secondary-inverted-text-colorSets the text color for secondary buttons on a storefront with a dark background. Define a new color called button secondary inverted text color. In the Secondary button section, ensure that Dark is selected. You can then select the button secondary inverted text color color.
--button-secondary-inverted-text-shadowAdds shadow to a secondary button text on a storefront with a dark background. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.
--button-secondary-line-heightSets the distance between lines of text in a secondary button. Configured in rem.
--button-secondary-text-colorSets the color of the text in a secondary button. Define a new color called button secondary text color. In the Secondary button section, ensure that Dark is selected. You can then select the button secondary text color color.
--button-secondary-text-shadowAdds shadow to text in a secondary button. Enables you to cast a drop shadow for a secondary button. Must be specified using three values plus a color. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.. For example, 5 5 5 brand primary.

Footer

These variables are defined in the Footer section in Style Guide.

footer in style guide

VariableDescription
--footer-background-colorSets the background color of footers. Define a new color called footer background color. In the Footer section in the Style Guide, select the footer background color color. body color in style guide
--footer-brightness-themeSets a brightness filter to the entire footer, including content, border, background image, and so on. This can be a number or a percentage.
--footer-nav-link-category-colorSets the link color of navigation link categories in footers. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-category-font-familySets the font family of navigation link categories in footers. This can be one or more font-family names in a comma separated list, for example, Arial, sans-serif.
--footer-nav-link-category-font-sizeSets the font size for navigation link categories in footers. Configure this in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--footer-nav-link-category-font-weightSets the font weight for navigational link categories in footers. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--footer-nav-link-colorSets the color of navigational links in footers. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-font-familySets the font family for navigation links in footers. This can be one or more font-family names in a comma separated list, for example, Arial, sans-serif.
--footer-nav-link-font-sizeSets the font size for navigation links in footers. Configure this in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--footer-nav-link-font-weightSets the font weight for navigation links in footers. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--footer-nav-link-hover-link-colorSets the color when a shopper hovers over a navigation link in a footer. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-hover-link-opacitySets the opacity level of a navigation link on a footer, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--footer-nav-link-inverted-category-colorSets the color of a navigation category link on a footer for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-inverted-colorSets the color of a navigation link on a footer for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-inverted-hover-link-colorSets the hover color of a navigation link on a footer for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--footer-nav-link-inverted-hover-link-opacitySets the opacity level of a navigation link on a footer for storefronts with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--footer-nav-link-inverted-opacitySets the opacity level of a navigation link on a footer for storefronts with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--footer-nav-link-opacitySets the opacity level of a navigation link on a footer, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.

Header

These variables are defined in the Header section in Style Guide.

header in style guide

VariableDescription
--header-background-colorSets the background color of headers. Define a new color in the the Color Palette defined in the Style Guide.
--header-brightness-themeSets a brightness filter to the entire header, including content, border, background image, and so on. Configured in px.
--header-paddingSets the space to be used around the contents of a header, configured in pixels (px). Maybe two, three or four values. If there are two values, the first value refers to the top and bottom padding, the second value refers to the right and left paddings. If there are three values, the first value refers to the top padding, the second value refers to right and left and the fourth value refers to the bottom. If there are four values, the first value is top, the second value is right, the third value is bottom, the fourth value is left.
--logo-footer-heightSets the height of a logo in footers in pixels (px). If height is auto the logo automatically adjusts its height to display correctly.
--logo-footer-positionSets the position of a logo in footers. There are five different values; static - the logo is not affected by the top, bottom, left, and right properties, relative - the logo is position relative to its normal position. Setting the top, right, bottom, and left properties of a relatively-positioned element causes it to be adjusted away from its normal position, fixed - the logo always stays in the same place even if a page is scrolled, absolute - the logo is positioned relative to the footer and moves along with page scrolling and sticky - the logo is positioned based on a user's scroll position.
--logo-header-heightSets the height of a logo in headers in pixels (px). If height is auto the logo automatically adjusts its height to display correctly.
--logo-header-positionSets the position of a logo in headers. There are five different values; static - the logo is not affected by the top, bottom, left, and right properties, relative - the logo is position relative to its normal position. Setting the top, right, bottom, and left properties of a relatively-positioned element causes it to be adjusted away from its normal position, fixed - the logo always stays in the same place even if a page is scrolled, absolute - the logo is positioned relative to the footer and moves along with page scrolling and sticky - the logo is positioned based on a user's scroll position.
--logo-heightSets the height of a logo in pixels (px). If height is auto the logo automatically adjusts its height to display correctly.
--logo-positionSets the position of a logo. There are five different values; static - the logo is not affected by the top, bottom, left, and right properties, relative - the logo is position relative to its normal position. Setting the top, right, bottom, and left properties of a relatively-positioned element causes it to be adjusted away from its normal position, fixed - the logo always stays in the same place even if a page is scrolled, absolute - the logo is positioned relative to the footer and moves along with page scrolling and sticky - the logo is positioned based on a user's scroll position.
--nav-link-action-colorSets the color of navigation link actions in headers. This color is selected from the Color Palette defined in the Style Guide, or can be specified as a custom hex color for this value.
--nav-link-action-font-familySets the font family for navigation link actions. This can be one or more font-family names in a comma separated list, for example, Arial, sans-serif.
--nav-link-action-font-sizeSets the font size for navigation link actions. Configure this in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--nav-link-action-font-weightSets the font weight for navigational link actions. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--nav-link-action-style
--nav-link-colorSets the color of navigation links in headers. Define a new color in the the Color Palette defined in the Style Guide.
--nav-link-font-familySets the font family for navigation links in headers. This can be one or more font-family names in a comma separated list, for example, Arial, sans-serif.
--nav-link-font-sizeSets the font size for navigation links in headers. Configure this in rem. 1rem means 1 times the root font-size, which is 10pt in Studio.
--nav-link-font-weightSets the font weight for navigation links in headers. The weights available depend on the font-family that is currently set. For example, normal, bold, light, and so on.
--nav-link-hover-colorSets the color when a shopper hovers over a navigation link in a header. Define a new color in the the Color Palette defined in the Style Guide.
--nav-link-hover-opacitySets the opacity level of a navigation link on a header, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--nav-link-inverted-action-colorSets the color of a navigation link action on a header for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--nav-link-inverted-colorSets the color of a navigation link on a header for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--nav-link-inverted-hover-colorSets the hover color of a navigation link on a header for storefronts with a dark background. Define a new color in the the Color Palette defined in the Style Guide.
--nav-link-inverted-hover-opacitySets the hover opacity level of a navigation link on a header for storefronts with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--nav-link-inverted-opacitySets the opacity level of a navigation link on a header for storefronts with a dark background, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.
--nav-link-opacitySets the opacity level of a navigation link on a header, where 1 is opaque, 0.5 is 50% transparent, and 0 is invisible.