/*! * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ $ouiButtonHeight: $ouiSizeXXL !default; $ouiButtonHeightSmall: $ouiSizeXL !default; $ouiButtonHeightXSmall: $ouiSizeL !default; $ouiButtonColorDisabled: tintOrShade($ouiTextColor, 70%, 70%) !default; // Only increase the contrast of background color to text to 2.0 for disabled $ouiButtonColorDisabledText: makeDisabledContrastColor($ouiButtonColorDisabled) !default; $ouiButtonColorGhostDisabled: lightOrDarkTheme($ouiColorDarkShade, $ouiColorLightShade) !default; // Modifier naming and colors. $ouiButtonTypes: ( primary: $ouiColorPrimary, accent: $ouiColorAccent, secondary: $ouiColorSecondary, success: $ouiColorSuccess, warning: $ouiColorWarning, danger: $ouiColorDanger, subdued: $ouiTextSubduedColor, // Should get deprecated in favor of `text` ghost: $ouiColorGhost, // Ghost is special, and does not care about theming. text: $ouiColorDarkShade, // Reserved for special use cases ) !default; /* OUI -> EUI Aliases */ $euiButtonHeight: $ouiButtonHeight; $euiButtonHeightSmall: $ouiButtonHeightSmall; $euiButtonHeightXSmall: $ouiButtonHeightXSmall; $euiButtonColorDisabled: $ouiButtonColorDisabled; $euiButtonColorDisabledText: $ouiButtonColorDisabledText; $euiButtonColorGhostDisabled: $ouiButtonColorGhostDisabled; $euiButtonTypes: $ouiButtonTypes; /* End of Aliases */