You can customise the appearance of the web components to match your branding in two ways:
Dashboard settings - Use the Customisation page in Settings > Branding & Web Components to set colours, card styles, border radius, and more. No code required.
CSS overrides - For more control, add custom CSS to your website using CSS variables and CSS parts (described below).
Most stores only need the dashboard settings. CSS overrides are optional and recommended only if you need fine-grained control that goes beyond what the dashboard offers. If you do use CSS, ask your web developer for help.
We use TailwindCSS to style the web components, which are isolated from your global CSS so that they do not affect the rest of your website.There are two ways to customise the styling:
CSS Variables - For simple changes like colours, border radius, and font size. Override a few variables and all components update automatically. This is the quickest way to match your brand colours.
CSS Parts - For more in-depth control over individual elements within components. Use the ::part() selector to target specific buttons, icons, text, and other elements with full CSS flexibility.
Most sites only need CSS variables. Use parts when you need fine-grained control over specific elements.
CSS Variables
You can override the default colours, border radius, and font size used by all web components by setting CSS custom properties (variables) on your page. These variables are defined on the :host selector and can be overridden globally.
Used by collection grids and the related products on a product page. They’re set for you by Grid Spacing, Image Shape and Image Fit on the Collection tab.
Variable
Default
Description
--marzipan-collection-gap
1rem
Space between products
--marzipan-card-image-aspect
3 / 4
Shape of a product card’s image, as width / height
--marzipan-card-image-fit
contain
contain shows the whole image, cover crops it to fill
Font Size Variable
Variable
Default
Description
--marzipan-font-size
16px
Base font size for components
CSS Parts
We use the part attribute to style individual elements within the web components. The format is always web-component::part(element-name).
Examples
This CSS would target the button within the add to cart component, using Tailwind classes that exist with your own CSS styles.
Because of how the web components are structured and how part works, we may use the same name for the same part in different components. For example, the --marzipan-spinner part is used in multiple components. However you must target each part separately:
Available parts are listed under each component’s Styling section.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Marzipan Docs","colors":{"primary":"#000000","light":"#000000","dark":"#000000"},"logo":{"light":"https://cdn.marzipan.cloud/0/docs/logo.png","dark":"https://cdn.marzipan.cloud/0/docs/logo-white.png"},"favicon":"https://mintcdn.com/marzipan/WRvsvA73Q8TiYFFy/favicon.svg?fit=max\u0026auto=format\u0026n=WRvsvA73Q8TiYFFy\u0026q=85\u0026s=54cf837e03c64dd8f8ce6c8d427ca436","appearance":{"default":"light"},"navbar":{"links":[],"primary":{"type":"button","label":"Login","href":"https://app.marzipan.co/login"}},"footer":{"socials":{"website":"https://marzipan.co","linkedin":"https://linkedin.com/company/marzipan"}},"fonts":{"heading":{"family":"Inter","weight":600,"source":"https://marzipan-cloud.b-cdn.net/0/fonts/Inter/InterVariable.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"https://marzipan-cloud.b-cdn.net/0/fonts/Inter/InterVariable.woff2","format":"woff2"}},"icons":{"library":"lucide"},"integrations":{"fathom":{"siteId":"MVCBOLNH"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"marzipan","hasAudioNarration":false,"actualSubdomain":"marzipan","customDomains":["docs.marzipan.co"],"gitSource":{"type":"github","owner":"usemarzipan","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9e5a6599afdae0f29e49b","clientVersion":"0.0.4160","searchFilterCounts":[{"language":"default","tag":"Documentation","count":82},{"language":"default","tag":"API Reference","count":74},{"language":"default","tag":"Account","count":26},{"language":"default","tag":"Subscriptions","count":20},{"language":"default","tag":"Events","count":17},{"language":"default","tag":"Settings","count":13},{"language":"default","tag":"Web Components","count":12},{"language":"default","tag":"CMS","count":10},{"language":"default","tag":"Orders","count":9},{"language":"default","tag":"Products","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"web-components/styling","slug":"/web-components/styling","pageMetadata":{"title":"Styling","description":"Customising the appearance of the web components.","href":"/web-components/styling"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Customising the appearance of the web components.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`introduction`,children:`Introduction`}),`\n`,_jsx(_components.p,{children:`You can customise the appearance of the web components to match your branding in two ways:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dashboard settings`}),` - Use the `,_jsx(_components.a,{href:`/web-components/customisation`,children:`Customisation page`}),` in Settings > Branding \u0026 Web Components to set colours, card styles, border radius, and more. No code required.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CSS overrides`}),` - For more control, add custom CSS to your website using CSS variables and CSS parts (described below).`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Most stores only need the dashboard settings. CSS overrides are optional and recommended only if you need fine-grained control that goes beyond what the dashboard offers. If you do use CSS, ask your web developer for help.`})}),`\n`,_jsx(_components.p,{children:`We use TailwindCSS to style the web components, which are isolated from your global CSS so that they do not affect the rest of your website.`}),`\n`,_jsx(_components.p,{children:`There are two ways to customise the styling:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`CSS Variables`}),` - For simple changes like colours, border radius, and font size. Override a few variables and all components update automatically. This is the quickest way to match your brand colours.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`CSS Parts`}),` - For more in-depth control over individual elements within components. Use the `,_jsx(_components.code,{children:`::part()`}),` selector to target specific buttons, icons, text, and other elements with full CSS flexibility.`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Most sites only need CSS variables. Use parts when you need fine-grained control over specific elements.`}),`\n`,_jsx(Heading,{level:`2`,id:`css-variables`,children:`CSS Variables`}),`\n`,_jsxs(_components.p,{children:[`You can override the default colours, border radius, and font size used by all web components by setting CSS custom properties (variables) on your page. These variables are defined on the `,_jsx(_components.code,{children:`:host`}),` selector and can be overridden globally.`]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`css`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`css`,children:_jsxs(_components.code,{language:`css`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D7BA7D`},children:`:root`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` --marzipan-color-primary`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#8b5cf6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` --marzipan-color-primary-hover`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#a78bfa`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` --marzipan-radius`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#B5CEA8`},children:`rem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-primary`,children:`Colour Variables - Primary`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-primary`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#3b82f6`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Primary brand colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-primary-hover`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#60a5fa`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Primary colour on hover state`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-secondary`,children:`Colour Variables - Secondary`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-secondary`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#e5e7eb`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Secondary background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-secondary-hover`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#d1d5db`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Secondary colour on hover state`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-button-borders`,children:`Colour Variables - Button Borders`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-button-border`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`transparent`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Border colour for primary buttons`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-button-border-hover`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`transparent`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Border colour for primary buttons on hover`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-secondary-border`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`transparent`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Border colour for secondary buttons`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-secondary-border-hover`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`transparent`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Border colour for secondary buttons on hover`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-text`,children:`Colour Variables - Text`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-text`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#111827`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Primary text colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-text-muted`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#6b7280`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Muted/secondary text colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-text-inverse`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#ffffff`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Inverse text colour for dark backgrounds`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-backgrounds`,children:`Colour Variables - Backgrounds`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#ffffff`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Primary background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-bg-muted`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#f9fafb`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Muted background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-bg-overlay`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`rgba(107, 114, 128, 0.4)`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Overlay background with transparency`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-borders`,children:`Colour Variables - Borders`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-border`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#d1d5db`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Standard border colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-border-muted`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#e5e7eb`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Muted border colour`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-status`,children:`Colour Variables - Status`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-error`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#ef4444`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Error state colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-error-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#fef2f2`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Error background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-success`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#22c55e`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Success state colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-success-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#f0fdf4`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Success background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-warning`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#f59e0b`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Warning state colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-warning-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#fffbeb`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Warning background colour`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-badges`,children:`Colour Variables - Badges`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-badge-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#ffedd5`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Badge background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-badge-text`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#9a3412`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Badge text colour`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`colour-variables-inputs`,children:`Colour Variables - Inputs`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-input-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#ffffff`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Input field background colour`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-color-input-disabled-bg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`#f9fafb`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Disabled input background colour`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`border-radius-variables`,children:`Border Radius Variables`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-radius`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`0.375rem`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Standard border radius`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-radius-lg`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`0.5rem`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Larger border radius`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`product-grid-variables`,children:`Product Grid Variables`}),`\n`,_jsxs(_components.p,{children:[`Used by collection grids and the related products on a product page. They’re set for you by `,_jsx(_components.strong,{children:`Grid Spacing`}),`, `,_jsx(_components.strong,{children:`Image Shape`}),` and `,_jsx(_components.strong,{children:`Image Fit`}),` on the `,_jsx(_components.a,{href:`/web-components/customisation#collection`,children:`Collection tab`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-collection-gap`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`1rem`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Space between products`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-card-image-aspect`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`3 / 4`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Shape of a product card’s image, as width / height`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-card-image-fit`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`contain`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`contain`}),` shows the whole image, `,_jsx(_components.code,{children:`cover`}),` crops it to fill`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`font-size-variable`,children:`Font Size Variable`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Variable`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`--marzipan-font-size`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.code,{children:`16px`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Base font size for components`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`css-parts`,children:`CSS Parts`}),`\n`,_jsxs(_components.p,{children:[`We use the `,_jsx(_components.a,{href:`https://developer.mozilla.org/en-US/docs/Web/CSS/::part`,children:_jsx(_components.strong,{children:`part`})}),` attribute to style individual elements within the web components. The format is always `,_jsx(_components.code,{children:`web-component::part(element-name)`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsx(_components.p,{children:`This CSS would target the button within the add to cart component, using Tailwind classes that exist with your own CSS styles.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`css`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`css`,children:_jsxs(_components.code,{language:`css`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`marzipan-addtocart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::part(--add-to-cart-button) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`apply`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` text-white`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` py-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`3 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`px-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`4 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`uppercase`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` no-underline`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` text-sm`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` hover`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:bg-zinc-900;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`And this CSS would target the cart icon of the cart icon component using traditional CSS.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`css`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`css`,children:_jsxs(_components.code,{language:`css`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`marzipan-carticon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::part(`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`cart-icon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` color`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#bebebe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Because of how the web components are structured and how `,_jsx(_components.code,{children:`part`}),` works, we may use the same name for the same part in different components. For example, the `,_jsx(_components.code,{children:`--marzipan-spinner`}),` part is used in multiple components. However you must target each part separately:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`css`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`css`,children:_jsxs(_components.code,{language:`css`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`marzipan-cart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::part(--marzipan-spinner), `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`marzipan-checkout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::part(--marzipan-spinner) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` color`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`#399383`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`available-parts`,children:`Available parts`}),`\n`,_jsxs(_components.p,{children:[`Available parts are listed under each component’s `,_jsx(_components.strong,{children:`Styling`}),` section.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Styling","description":"Customising the appearance of the web components.","href":"/web-components/styling"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Introduction","slug":"introduction","depth":3,"children":[]},{"title":"CSS Variables","slug":"css-variables","depth":2,"children":[{"title":"Example","slug":"example","depth":3,"children":[]},{"title":"Colour Variables - Primary","slug":"colour-variables-primary","depth":3,"children":[]},{"title":"Colour Variables - Secondary","slug":"colour-variables-secondary","depth":3,"children":[]},{"title":"Colour Variables - Button Borders","slug":"colour-variables-button-borders","depth":3,"children":[]},{"title":"Colour Variables - Text","slug":"colour-variables-text","depth":3,"children":[]},{"title":"Colour Variables - Backgrounds","slug":"colour-variables-backgrounds","depth":3,"children":[]},{"title":"Colour Variables - Borders","slug":"colour-variables-borders","depth":3,"children":[]},{"title":"Colour Variables - Status","slug":"colour-variables-status","depth":3,"children":[]},{"title":"Colour Variables - Badges","slug":"colour-variables-badges","depth":3,"children":[]},{"title":"Colour Variables - Inputs","slug":"colour-variables-inputs","depth":3,"children":[]},{"title":"Border Radius Variables","slug":"border-radius-variables","depth":3,"children":[]},{"title":"Product Grid Variables","slug":"product-grid-variables","depth":3,"children":[]},{"title":"Font Size Variable","slug":"font-size-variable","depth":3,"children":[]}]},{"title":"CSS Parts","slug":"css-parts","depth":2,"children":[{"title":"Examples","slug":"examples","depth":3,"children":[]},{"title":"Available parts","slug":"available-parts","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"marzipan","siteName":"Marzipan Docs","title":"Styling - Marzipan Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T08:53:56.750Z","originalFileLocation":"web-components/styling.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Customising the appearance of the web components.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Marzipan Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Styling - Marzipan Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Customising the appearance of the web components.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Marzipan Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.marzipan.co/web-components/styling\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://marzipan.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Styling\u0026amp;description=Customising+the+appearance+of+the+web+components.\u0026amp;theme=07416d3c3a571a57bfa42947\u0026amp;signature=7118398c6162b76c5dfcfb839e0e882c8da8766f2b0edf932615d18b8c729bbf\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Styling - Marzipan Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Customising the appearance of the web components.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://marzipan.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Styling\u0026amp;description=Customising+the+appearance+of+the+web+components.\u0026amp;theme=07416d3c3a571a57bfa42947\u0026amp;signature=7118398c6162b76c5dfcfb839e0e882c8da8766f2b0edf932615d18b8c729bbf\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/marzipan/YJCGm-AHRwNG4ZIl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Marzipan Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.marzipan.co/web-components/styling\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/web-components/styling.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.marzipan.co/#organization\",\"name\":\"Marzipan Docs\",\"url\":\"https://docs.marzipan.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://cdn.marzipan.cloud/0/docs/logo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.marzipan.co#website\",\"name\":\"Marzipan Docs\",\"url\":\"https://docs.marzipan.co\",\"publisher\":{\"@id\":\"https://docs.marzipan.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.marzipan.co/web-components/styling#webpage\",\"url\":\"https://docs.marzipan.co/web-components/styling\",\"name\":\"Styling\",\"description\":\"Customising the appearance of the web components.\",\"dateModified\":\"2026-11-03T08:53:56.750Z\",\"isPartOf\":{\"@id\":\"https://docs.marzipan.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.marzipan.co/web-components/styling#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.marzipan.co/web-components/styling#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://docs.marzipan.co/web-components/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Styling\",\"item\":\"https://docs.marzipan.co/web-components/styling\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.marzipan.co/web-components/styling#article\",\"headline\":\"Styling\",\"name\":\"Styling\",\"description\":\"Customising the appearance of the web components.\",\"url\":\"https://docs.marzipan.co/web-components/styling\",\"mainEntityOfPage\":{\"@id\":\"https://docs.marzipan.co/web-components/styling#webpage\"},\"dateModified\":\"2026-11-03T08:53:56.750Z\",\"publisher\":{\"@id\":\"https://docs.marzipan.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.marzipan.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Marzipan Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Marzipan Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/web-components/styling.md","siteName":"Marzipan Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Web Components","icon":"puzzle","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/web-components/introduction"},{"title":"Customisation","description":"Configure the appearance and behaviour of your web components from the Marzipan dashboard.","href":"/web-components/customisation"},{"title":"Styling","href":"/web-components/styling"}]},{"group":"Components","pages":[{"title":"Account","description":"The Account component enables users to log in and manage their account.","href":"/web-components/account"},{"title":"Add to Cart","href":"/web-components/add-to-cart"},{"title":"Cart","href":"/web-components/cart"},{"title":"Cart Icon","href":"/web-components/cart-icon"},{"title":"Checkout","href":"/web-components/checkout"},{"title":"Form","href":"/web-components/contact-form"},{"title":"Collection","href":"/web-components/collection"},{"title":"Product","href":"/web-components/product"}]},{"group":"Plugins","pages":[{"title":"WordPress Plugin","href":"/web-components/wordpress"}]}]},{"tab":"Changelog","icon":"history","pages":[{"title":"Changelog","href":"/changelog/2026"}]},{"tab":"Blog","icon":"square-library","href":"https://marzipan.co/blog"},{"tab":"Service status","icon":"radio-tower","href":"https://status.marzipan.co"}]},"basePath":"","title":"Styling - Marzipan Docs","buildId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","deploymentId":"dpl_GRSyrvXT6FFTpZZTGz5iZPp3D2zE","dynamics":[],"chunks":[]}