// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function colorSwatchElementMemphisStyle() {
    return css `
:host {
  --color-swatch-background-color: var(--memphis-scheme-background);
  --color-swatch-border-color: var(--memphis-scheme-contrast);
  --color-swatch-border-radius: var(--memphis-layout-radius);
  --color-swatch-border-style: solid;
  --color-swatch-border-width: var(--memphis-layout-thickness);
  --color-swatch-font-family: var(--memphis-font-family);
  --color-swatch-font-letter-spacing: unset;
  --color-swatch-font-line-height: unset;
  --color-swatch-font-size: var(--memphis-typography-body1-font-size);
  --color-swatch-font-text-decoration: unset;
  --color-swatch-font-text-transform: unset;
  --color-swatch-font-weight: var(--memphis-typography-font-weight);
  --color-swatch-foreground-color: var(--memphis-scheme-foreground);
  --color-swatch-gap: unset;
  --color-swatch-padding-bottom: unset;
  --color-swatch-padding-left: unset;
  --color-swatch-padding-right: unset;
  --color-swatch-padding-top: unset;
  --color-swatch-shadow: unset unset unset unset unset;
  --color-swatch-shadow-blur: unset;
  --color-swatch-shadow-color: unset;
  --color-swatch-shadow-offset-x: unset;
  --color-swatch-shadow-offset-y: unset;
  --color-swatch-shadow-spread: unset;
  --color-swatch-size: 24px;
  --color-swatch-transition-duration: .2s;
  --color-swatch-transition-mode: ease;
  --color-swatch-transition-property: all;
  --color-swatch-translate: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  width: var(--color-swatch-size);
  height: var(--color-swatch-size);
  border-color: var(--color-swatch-border-color);
  border-radius: var(--color-swatch-border-radius);
  border-style: var(--color-swatch-border-style);
  border-width: var(--color-swatch-border-width);
  display: flex;
}

:host [part="root"] {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="root"] [part="back"] {
  width: calc(var(--color-swatch-size) - var(--color-swatch-border-width) * 2);
  height: calc(var(--color-swatch-size) - var(--color-swatch-border-width) * 2);
  background-repeat: repeat;
  background-color: var(--color-swatch-background-color);
  border-radius: calc(var(--color-swatch-border-radius) - var(--color-swatch-border-width));
  background-position: 0 0, 45px 45px;
  background-size: 10px 10px;
  flex: 1;
  position: absolute;
}

:host [part="root"] [part="front"] {
  z-index: 1;
  border-radius: calc(var(--color-swatch-border-radius) - var(--color-swatch-border-width));
  flex: 1;
}

:host [part="root"] [part="checkmark-container"] {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition-duration: var(--color-swatch-transition-duration);
  transition-timing-function: var(--color-swatch-transition-mode);
  place-items: center;
  transition-property: opacity;
  display: grid;
  position: absolute;
  inset: 0;
}

:host [part="root"] [part="checkmark"] {
  pointer-events: none;
}

:host([is-checked]) [part="root"] [part="checkmark-container"] {
  opacity: 1;
}

:host([size="tiny"]) {
  --color-swatch-size: 8px;
}

:host([size="small"]) {
  --color-swatch-size: 16px;
}

:host([size="medium"]) {
  --color-swatch-size: 24px;
}

:host([size="large"]) {
  --color-swatch-size: 32px;
}

:host([size="giant"]) {
  --color-swatch-size: 48px;
}

    `;
}
//# sourceMappingURL=ColorSwatchElement.Memphis.js.map