// ------------------------------------------------------------------------------
// <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 colorSwatchElementJoyStyle() {
    return css `
:host {
  --color-swatch-background-color: var(--joy-scheme-background);
  --color-swatch-border-color: var(--joy-scheme-highlight);
  --color-swatch-border-radius: var(--joy-layout-radius);
  --color-swatch-border-style: solid;
  --color-swatch-border-width: var(--joy-layout-thickness);
  --color-swatch-font-family: var(--joy-font-family);
  --color-swatch-font-letter-spacing: unset;
  --color-swatch-font-line-height: unset;
  --color-swatch-font-size: var(--joy-typography-body1-font-size);
  --color-swatch-font-text-decoration: unset;
  --color-swatch-font-text-transform: unset;
  --color-swatch-font-weight: var(--joy-typography-font-weight);
  --color-swatch-foreground-color: var(--joy-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-size: 24px;
  --color-swatch-transition-duration: var(--joy-duration-short);
  --color-swatch-transition-mode: ease;
  --color-swatch-transition-property: all;
  --color-swatch-translate: unset;
}

@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([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;
}

:host [part="root"] [part="back"] {
  background-image: linear-gradient(45deg, var(--joy-scheme-highlight) 25%, var(--joy-scheme-transparent) 25%, var(--joy-scheme-transparent) 75%, var(--joy-scheme-highlight) 75%, var(--joy-scheme-highlight)), linear-gradient(45deg, var(--joy-scheme-highlight) 25%, var(--joy-scheme-transparent) 25%, var(--joy-scheme-transparent) 75%, var(--joy-scheme-highlight) 75%, var(--joy-scheme-highlight));
}

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