From fa5cf06b7ee2f2984af5984b6a28184e4689625c Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Wed, 4 Nov 2026 09:38:45 +1300 Subject: [PATCH 1/7] Spike: preview the new slate design system theme The slate light/dark theme isn't published to npm yet, so copy the generated stylesheets from an unpublished build of @octopusdeploy/design-system-tokens (OctopusDeploy commit ba3902e78c7) and import those instead of the package's light/dark themes. The slate selectors are rewritten to light/dark so the existing theme switching works unchanged. The copied files are excluded from spellcheck because they're generated. Co-Authored-By: Claude Opus 5.5 --- cspell.json | 1 + src/styles/design-system-tokens/globals.css | 202 +++++++ .../design-system-tokens/slateDarkTheme.css | 565 ++++++++++++++++++ .../design-system-tokens/slateLightTheme.css | 565 ++++++++++++++++++ src/styles/design-system-tokens/textTheme.css | 36 ++ src/themes/octopus/components/HtmlHead.astro | 14 +- 6 files changed, 1379 insertions(+), 4 deletions(-) create mode 100644 src/styles/design-system-tokens/globals.css create mode 100644 src/styles/design-system-tokens/slateDarkTheme.css create mode 100644 src/styles/design-system-tokens/slateLightTheme.css create mode 100644 src/styles/design-system-tokens/textTheme.css diff --git a/cspell.json b/cspell.json index 1bd08eee1b..9f9baeef90 100644 --- a/cspell.json +++ b/cspell.json @@ -64,6 +64,7 @@ ".github/**", "src/pages/docs/api/**", "src/pages/report/**", + "src/styles/design-system-tokens/**", "src/fallback/**", "src/scripts/**", "tests/**", diff --git a/src/styles/design-system-tokens/globals.css b/src/styles/design-system-tokens/globals.css new file mode 100644 index 0000000000..adc652a374 --- /dev/null +++ b/src/styles/design-system-tokens/globals.css @@ -0,0 +1,202 @@ +/** + * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. + * Generated from the design system's source tokens - do not edit. + * + * Include globals.css, textTheme.css and the stylesheet for each theme. The theme + * stylesheets are selected by the data-theme attribute, set on whichever element you want + * themed - usually , but any element works. globals.css and textTheme.css are + * theme-independent and always apply. + */ + +:root { + --colorScalesNavy100: #F4F6F8; + --colorScalesNavy200: #DAE2E9; + --colorScalesNavy300: #A9BBCB; + --colorScalesNavy400: #7C98B4; + --colorScalesNavy500: #557999; + --colorScalesNavy600: #3E607D; + --colorScalesNavy700: #2E475D; + --colorScalesNavy800: #1F303F; + --colorScalesNavy900: #111A23; + --colorScalesBlue100: #F2F8FD; + --colorScalesBlue200: #CDE4F7; + --colorScalesBlue300: #87BFEC; + --colorScalesBlue400: #449BE1; + --colorScalesBlue500: #1A77CA; + --colorScalesBlue600: #155EA0; + --colorScalesBlue700: #0F4778; + --colorScalesBlue800: #093051; + --colorScalesBlue900: #041A2D; + --colorScalesGreen100: #EEFAF5; + --colorScalesGreen200: #B8E7D3; + --colorScalesGreen300: #5ECD9E; + --colorScalesGreen400: #00AB62; + --colorScalesGreen500: #00874D; + --colorScalesGreen600: #006A3D; + --colorScalesGreen700: #00502E; + --colorScalesGreen800: #00361F; + --colorScalesGreen900: #001E11; + --colorScalesYellow100: #FFF7D9; + --colorScalesYellow200: #FFDF62; + --colorScalesYellow300: #E5B203; + --colorScalesYellow400: #B98F02; + --colorScalesYellow500: #927002; + --colorScalesYellow600: #745801; + --colorScalesYellow700: #584201; + --colorScalesYellow800: #3B2C00; + --colorScalesYellow900: #201800; + --colorScalesOrange100: #FFF5ED; + --colorScalesOrange200: #FFDABF; + --colorScalesOrange300: #FFA461; + --colorScalesOrange400: #EA7325; + --colorScalesOrange500: #C45317; + --colorScalesOrange600: #A13C14; + --colorScalesOrange700: #7E2812; + --colorScalesOrange800: #59170D; + --colorScalesOrange900: #340B07; + --colorScalesRed100: #FFF3F3; + --colorScalesRed200: #FFD8D8; + --colorScalesRed300: #FF9F9F; + --colorScalesRed400: #FF5D5D; + --colorScalesRed500: #D63D3D; + --colorScalesRed600: #AA3030; + --colorScalesRed700: #802424; + --colorScalesRed800: #571818; + --colorScalesRed900: #310E0E; + --colorScalesPurple100: #F8F5FD; + --colorScalesPurple200: #E7DEF8; + --colorScalesPurple300: #C5AEEE; + --colorScalesPurple400: #A683E5; + --colorScalesPurple500: #895ED3; + --colorScalesPurple600: #7043B7; + --colorScalesPurple700: #572B97; + --colorScalesPurple800: #3B1D66; + --colorScalesPurple900: #21103A; + --colorScalesSlate100: #F5F6F8; + --colorScalesSlate200: #DEE1E6; + --colorScalesSlate300: #B2B9C5; + --colorScalesSlate400: #8A96A7; + --colorScalesSlate500: #68778D; + --colorScalesSlate600: #515D70; + --colorScalesSlate700: #3D4653; + --colorScalesSlate800: #282F38; + --colorScalesSlate900: #16191F; + --colorScalesGrey100: #F7F7F7; + --colorScalesGrey200: #E1E1E1; + --colorScalesGrey300: #B9B9B9; + --colorScalesGrey400: #959595; + --colorScalesGrey500: #757575; + --colorScalesGrey600: #5C5C5C; + --colorScalesGrey700: #454545; + --colorScalesGrey800: #2E2E2E; + --colorScalesGrey900: #191919; + --colorScalesBlack: #000000; + --colorScalesWhite: #FFFFFF; + --brandCyan: #0D80D8; + --brandGreen: #00B065; + --brandGrey: #113049; + --fontFamilyPrimary: Roboto; + --fontFamilySecondary: Roboto Mono; + --fontWeight400: 400; + --fontWeight500: 500; + --fontWeight600: 600; + --fontWeight700: 700; + --fontWeightBold: Bold; + --fontWeightRegular: Regular; + --fontWeightSemi-bold: SemiBold; + --fontSizeBase: 1rem; + --fontSizeXSmall: 0.75rem; + --fontSizeSmall: 0.8125rem; + --fontSizeMedium: 0.875rem; + --fontSizeLarge: 1.25rem; + --fontSizeXLarge: 1.5rem; + --fontSize3xLarge: 3rem; + --fontSize2xLarge: 2rem; + --letterSpacingNone: 0; + --letterSpacingWide: 0.006rem; + --letterSpacingWider: 0.013rem; + --letterSpacingTight: -0.006rem; + --lineHeightXSmall: 1.25rem; + --lineHeightSmall: 1.5rem; + --lineHeightMedium: 1.75rem; + --lineHeightLarge: 2rem; + --lineHeightXLarge: 2.5rem; + --lineHeight2xLarge: 2.75rem; + --lineHeight3xLarge: 3.5rem; + --space0: 0; + --space1: 0.063rem; + --space2: 0.125rem; + --space4: 0.25rem; + --space6: 0.375rem; + --space8: 0.5rem; + --space12: 0.75rem; + --space16: 1rem; + --space24: 1.5rem; + --space32: 2rem; + --space40: 2.5rem; + --space48: 3rem; + --space56: 3.5rem; + --space64: 4rem; + --space72: 4.5rem; + --space80: 5rem; + --borderRadiusNone: 0px; + --borderRadiusCircle: 9999px; + --borderRadiusExtraSmall: 2px; + --borderRadiusSmall: 4px; + --borderRadiusLarge: 8px; + --borderRadiusExtraLarge: 16px; + --borderRadiusMedium: 6px; + --opacity0: 0px; + --opacity8: 8px; + --opacity12: 12px; + --opacity16: 16px; + --opacity24: 24px; + --opacity32: 32px; + --opacity40: 40px; + --opacity100: 100px; + --effect0: 0px; + --effect1: 1px; + --effect2: 2px; + --effect4: 4px; + --effect6: 6px; + --effect8: 8px; + --effect12: 12px; + --effect16: 16px; + --effect24: 24px; + --effect32: 32px; + --effect40: 40px; + --effect48: 48px; + --effect56: 56px; + --effect64: 64px; + --effect72: 72px; + --effect80: 80px; + --effect92: 92px; + --effect100: 100px; + --effect-2: -2px; + --effect-4: -4px; + --effect-6: -6px; + --effect-8: -8px; + --effect-12: -12px; + --borderWidth1: 1px; + --borderWidth2: 2px; + --borderWidth3: 3px; + --borderWidth4: 4px; + --borderWidthNone: 0px; + --fontFamilySystem-ui: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + --fontFamilySystem-ui-monospace: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace; + --paragraphSpacing0: 0px; + --textCaseNone: none; + --textCaseUppercase: uppercase; + --textCaseLowercase: lowercase; + --textDecorationNone: none; + --textDecorationUnderline: underline; + --paragraphIndent0: 0px; + --dialogSidePanelSlideDuration: 300ms; + --dialogSidePanelFadeDuration: 100ms; + --dialogSidePanelWidth: 400px; + --dialogMainPanelWidthSmall: 480px; + --dialogMainPanelWidthMedium: 600px; + --dialogMainPanelWidthLarge: 800px; + --dialogMainPanelWidthExtraLarge: 1000px; + --dialogMaxHeight: 800px; +} diff --git a/src/styles/design-system-tokens/slateDarkTheme.css b/src/styles/design-system-tokens/slateDarkTheme.css new file mode 100644 index 0000000000..1da023d89d --- /dev/null +++ b/src/styles/design-system-tokens/slateDarkTheme.css @@ -0,0 +1,565 @@ +/** + * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. + * Generated from the design system's source tokens - do not edit. + * + * Include globals.css, textTheme.css and the stylesheet for each theme. The theme + * stylesheets are selected by the data-theme attribute, set on whichever element you want + * themed - usually , but any element works. globals.css and textTheme.css are + * theme-independent and always apply. + */ + +[data-theme="dark"] { + --colorTextLinkDefault: #DEE1E6; + --colorTextLinkHover: #8A96A7; + --colorTextPrimary: #F5F6F8; + --colorTextSecondary: #B2B9C5; + --colorTextTertiary: #8A96A7; + --colorTextDisabled: #515D70; + --colorTextInversePrimary: #16191F; + --colorTextInverseSecondary: #282F38; + --colorTextSelected: #8A96A7; + --colorTextInfo: #DEE1E6; + --colorTextSuccess: #5ECD9E; + --colorTextWarning: #FFDF62; + --colorTextDanger: #FF9F9F; + --colorTextFeature: #C5AEEE; + --colorDeprecatedTextWarning: #FFA461; + --colorDeprecatedIconWarning: #EA7325; + --colorDeprecatedBorderWarning: #EA7325; + --colorDeprecatedBackgroundWarning: #7E2812; + --colorIconLinkDefault: #B2B9C5; + --colorIconLinkHover: #8A96A7; + --colorIconPrimary: #F5F6F8; + --colorIconSecondary: #B2B9C5; + --colorIconTertiary: #8A96A7; + --colorIconDisabled: #515D70; + --colorIconInversePrimary: #16191F; + --colorIconInverseSecondary: #282F38; + --colorIconSelected: #DEE1E6; + --colorIconInfo: #B2B9C5; + --colorIconSuccess: #00AB62; + --colorIconWarning: #E5B203; + --colorIconDanger: #FF5D5D; + --colorIconFeature: #A683E5; + --colorBorderPrimary: #3D4653; + --colorBorderSecondary: #282F38; + --colorBorderTertiary: #515D70; + --colorBorderBold: #8A96A7; + --colorBorderLinkDefault: #B2B9C5; + --colorBorderLinkHover: #F5F6F8; + --colorBorderDisabled: #515D70; + --colorBorderInversePrimary: #DEE1E6; + --colorBorderInverseSecondary: #F5F6F8; + --colorBorderSelected: #8A96A7; + --colorBorderInfo: #449BE1; + --colorBorderSuccess: #00AB62; + --colorBorderWarning: #E5B203; + --colorBorderDanger: #FF5D5D; + --colorBorderFeature: #A683E5; + --colorBorderDefault: #68778D; + --colorBackgroundPrimaryDefault: #16191F; + --colorBackgroundPrimaryHover: #282F38; + --colorBackgroundPrimaryPressed: #3D4653; + --colorBackgroundPrimaryTransparent: rgb(from #16191F r g b / 0.3); + --colorBackgroundTertiary: #3D4653; + --colorBackgroundDisabled: #3D4653; + --colorBackgroundSelected: #DEE1E6; + --colorBackgroundSecondaryDefault: #282F38; + --colorBackgroundSecondaryHover: #3D4653; + --colorBackgroundSecondaryPressed: #16191F; + --colorBackgroundSecondaryTransparent: rgb(from #16191F r g b / 0.3); + --colorBackgroundBold: #000000; + --colorBackgroundInfo: #0F4778; + --colorBackgroundSuccess: #00502E; + --colorBackgroundWarning: #745801; + --colorBackgroundDanger: #802424; + --colorBackgroundFeature: #572B97; + --colorBackgroundQuartaryDefault: #282F38; + --colorBackgroundQuartaryHover: #3D4653; + --colorBackgroundQuartaryPressed: #16191F; + --colorBackgroundInversePrimary: #FFFFFF; + --colorBackgroundInverseSecondary: #B2B9C5; + --colorBackgroundInverseSuccess: #00AB62; + --colorBackgroundInverseNeutral: #8A96A7; + --colorBackgroundInverseNeutralQuiet: #DEE1E6; + --colorBackgroundInverseInfo: #155EA0; + --colorBackgroundInverseWarning: #745801; + --colorBackgroundInverseDanger: #AA3030; + --colorBackgroundInverseFeature: #572B97; + --colorBackgroundDefault: rgb(from #16191F r g b / 0); + --colorBackgroundHover: #282F38; + --colorBackgroundNeutral: #282F38; + --colorBadgeBoldTextPrimary: #FFFFFF; + --colorBadgeBoldTextSecondary: #000000; + --colorBadgeBoldTextFeature: #3B1D66; + --colorBadgeBoldTextUpsell: #3B1D66; + --colorBadgeBoldIconPrimary: #FFFFFF; + --colorBadgeBoldIconSecondary: #000000; + --colorBadgeBoldIconFeature: #3B1D66; + --colorBadgeBoldIconUpsell: #3B1D66; + --colorBadgeBoldBackgroundNeutral: #8A96A7; + --colorBadgeBoldBackgroundInverseNeutral: #3D4653; + --colorBadgeBoldBackgroundInfo: #155EA0; + --colorBadgeBoldBackgroundSuccess: #006A3D; + --colorBadgeBoldBackgroundWarning: #927002; + --colorBadgeBoldBackgroundDanger: #AA3030; + --colorBadgeBoldBackgroundFeature: #C5AEEE; + --colorBadgeBoldBackgroundUpsell: #C5AEEE; + --colorBadgeSubtleTextNeutral: #B2B9C5; + --colorBadgeSubtleTextInfo: #CDE4F7; + --colorBadgeSubtleTextSuccess: #B8E7D3; + --colorBadgeSubtleTextWarning: #FFF7D9; + --colorBadgeSubtleTextDanger: #FFD8D8; + --colorBadgeSubtleTextFeature: #E7DEF8; + --colorBadgeSubtleTextUpsell: #E7DEF8; + --colorBadgeSubtleBorderNeutral: #3D4653; + --colorBadgeSubtleBorderInfo: #0F4778; + --colorBadgeSubtleBorderSuccess: #00502E; + --colorBadgeSubtleBorderWarning: #584201; + --colorBadgeSubtleBorderDanger: #802424; + --colorBadgeSubtleBorderFeature: #572B97; + --colorBadgeSubtleBorderUpsell: #572B97; + --colorBadgeSubtleIconNeutral: #B2B9C5; + --colorBadgeSubtleIconInfo: #87BFEC; + --colorBadgeSubtleIconSuccess: #5ECD9E; + --colorBadgeSubtleIconWarning: #E5B203; + --colorBadgeSubtleIconDanger: #FF9F9F; + --colorBadgeSubtleIconFeature: #C5AEEE; + --colorBadgeSubtleIconUpsell: #C5AEEE; + --colorBadgeSubtleBackgroundNeutral: #282F38; + --colorBadgeSubtleBackgroundInfo: #093051; + --colorBadgeSubtleBackgroundSuccess: #00361F; + --colorBadgeSubtleBackgroundWarning: #3B2C00; + --colorBadgeSubtleBackgroundDanger: #571818; + --colorBadgeSubtleBackgroundFeature: #3B1D66; + --colorBadgeSubtleBackgroundUpsell: #3B1D66; + --colorButtonTextPrimary: #16191F; + --colorButtonTextSecondary: #F5F6F8; + --colorButtonTextTertiaryDefault: #B2B9C5; + --colorButtonTextTertiaryHover: #F5F6F8; + --colorButtonTextTertiaryPressed: #F5F6F8; + --colorButtonTextDestructive: #FFFFFF; + --colorButtonTextQuietDefault: #8A96A7; + --colorButtonTextQuietHover: #B2B9C5; + --colorButtonTextQuietPressed: #B2B9C5; + --colorButtonTextNeutral: #B2B9C5; + --colorButtonTextDisabled: #515D70; + --colorButtonTextLoud: #16191F; + --colorButtonTextGhost: #F5F6F8; + --colorButtonIconPrimary: #16191F; + --colorButtonIconSecondary: #F5F6F8; + --colorButtonIconTertiaryDefault: #B2B9C5; + --colorButtonIconTertiaryHover: #F5F6F8; + --colorButtonIconTertiaryPressed: #F5F6F8; + --colorButtonIconQuietDefault: #8A96A7; + --colorButtonIconQuietHover: #B2B9C5; + --colorButtonIconQuietPressed: #B2B9C5; + --colorButtonIconNeutral: #B2B9C5; + --colorButtonIconDisabled: #515D70; + --colorButtonIconLoud: #16191F; + --colorButtonIconDestructive: #FFFFFF; + --colorButtonIconGhost: #F5F6F8; + --colorButtonBorderSecondary: #8A96A7; + --colorButtonBorderDisabled: #3D4653; + --colorButtonBackgroundDisabled: rgb(from #282F38 r g b / 0.56); + --colorButtonBackgroundPrimaryDefault: #F5F6F8; + --colorButtonBackgroundPrimaryHover: #B2B9C5; + --colorButtonBackgroundPrimaryPressed: #8A96A7; + --colorButtonBackgroundSecondaryDefault: rgb(from #8A96A7 r g b / 0); + --colorButtonBackgroundSecondaryHover: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundSecondaryPressed: rgb(from #8A96A7 r g b / 0.2); + --colorButtonBackgroundTertiaryDefault: rgb(from #8A96A7 r g b / 0.2); + --colorButtonBackgroundTertiaryHover: rgb(from #8A96A7 r g b / 0.28); + --colorButtonBackgroundTertiaryPressed: rgb(from #8A96A7 r g b / 0.36); + --colorButtonBackgroundNeutralDefault: rgb(from #8A96A7 r g b / 0.2); + --colorButtonBackgroundNeutralHover: rgb(from #8A96A7 r g b / 0.28); + --colorButtonBackgroundNeutralPressed: rgb(from #8A96A7 r g b / 0.36); + --colorButtonBackgroundQuietDefault: rgb(from #8A96A7 r g b / 0); + --colorButtonBackgroundQuietHover: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundQuietPressed: rgb(from #000000 r g b / 0.4); + --colorButtonBackgroundLoudDefault: #DEE1E6; + --colorButtonBackgroundLoudHover: #B2B9C5; + --colorButtonBackgroundLoudPressed: #8A96A7; + --colorButtonBackgroundDestructiveDefault: #D63D3D; + --colorButtonBackgroundDestructiveHover: #AA3030; + --colorButtonBackgroundDestructivePressed: #802424; + --colorButtonBackgroundGhostDefault: rgb(from #8A96A7 r g b / 0); + --colorButtonBackgroundGhostHover: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundGhostPressed: rgb(from #8A96A7 r g b / 0.2); + --colorButtonFocus: #B2B9C5; + --colorCalloutTextInfo: #F5F6F8; + --colorCalloutTextSuccess: #B8E7D3; + --colorCalloutTextWarning: #FFF7D9; + --colorCalloutTextDanger: #FFD8D8; + --colorCalloutTextFeature: #E7DEF8; + --colorCalloutTextBody: #DEE1E6; + --colorCalloutBorderInfo: #8A96A7; + --colorCalloutBorderSuccess: #00AB62; + --colorCalloutBorderWarning: #B98F02; + --colorCalloutBorderDanger: #FF5D5D; + --colorCalloutBorderFeature: #A683E5; + --colorCalloutBorderDefault: #557999; + --colorCalloutBorderUpsell: linear-gradient(180deg, #1A77CA 0%, #895ED3 100%); + --colorCalloutIconInfo: #B2B9C5; + --colorCalloutIconSuccess: #5ECD9E; + --colorCalloutIconWarning: #FFDF62; + --colorCalloutIconDanger: #FF9F9F; + --colorCalloutIconFeature: #C5AEEE; + --colorCalloutBackgroundInfoDefault: rgb(from #8A96A7 r g b / 0.16); + --colorCalloutBackgroundInfoHover: rgb(from #8A96A7 r g b / 0.24); + --colorCalloutBackgroundInfoPressed: rgb(from #8A96A7 r g b / 0.32); + --colorCalloutBackgroundSuccessDefault: rgb(from #00361F r g b / 0.75); + --colorCalloutBackgroundSuccessHover: rgb(from #006A3D r g b / 0.48); + --colorCalloutBackgroundSuccessPressed: rgb(from #006A3D r g b / 0.32); + --colorCalloutBackgroundWarningDefault: rgb(from #584201 r g b / 0.9); + --colorCalloutBackgroundWarningHover: rgb(from #745801 r g b / 0.56); + --colorCalloutBackgroundWarningPressed: rgb(from #745801 r g b / 0.4); + --colorCalloutBackgroundDangerDefault: rgb(from #571818 r g b / 0.8); + --colorCalloutBackgroundDangerHover: rgb(from #AA3030 r g b / 0.48); + --colorCalloutBackgroundDangerPressed: rgb(from #AA3030 r g b / 0.32); + --colorCalloutBackgroundFeatureDefault: rgb(from #3B1D66 r g b / 0.75); + --colorCalloutBackgroundFeatureHover: rgb(from #7043B7 r g b / 0.48); + --colorCalloutBackgroundFeaturePressed: rgb(from #7043B7 r g b / 0.32); + --colorCalloutBackgroundUpsell: linear-gradient(95deg, rgb(from #0F4778 r g b / 0.5) 0%, rgb(from #572B97 r g b / 0.5) 100%); + --colorCalloutCodeBackground: #B2B9C5; + --colorCardBackgroundPrimaryDefault: #282F38; + --colorCardBackgroundSecondaryDefault: rgb(from #16191F r g b / 0); + --colorCardBackgroundSecondaryHover: rgb(from #282F38 r g b / 0.64); + --colorCardChartBackgroundDefault: rgb(from #282F38 r g b / 0.3); + --colorCardChartBackgroundHover: rgb(from #282F38 r g b / 0.5); + --colorCarouselTextPrimary: #FFFFFF; + --colorCarouselIconDefault: rgb(from #B2B9C5 r g b / 0.32); + --colorCarouselIconHover: rgb(from #B2B9C5 r g b / 0.72); + --colorCarouselIconSelected: #449BE1; + --colorCarouselBackgroundPrimary: #16191F; + --colorChipOutlinedBorderPrimary: #7C98B4; + --colorChipOutlinedBorderSecondary: #A683E5; + --colorChipOutlinedBorderInfo: #449BE1; + --colorChipOutlinedBorderSuccess: #00AB62; + --colorChipOutlinedBorderWarning: #B98F02; + --colorChipOutlinedBorderDanger: #FF5D5D; + --colorChipOutlinedTextPrimary: #8A96A7; + --colorChipOutlinedTextSecondary: #A683E5; + --colorChipOutlinedTextInfo: #449BE1; + --colorChipOutlinedTextSuccess: #00AB62; + --colorChipOutlinedTextWarning: #B98F02; + --colorChipOutlinedTextDanger: #FF5D5D; + --colorChipOutlinedIconPrimary: #8A96A7; + --colorChipOutlinedIconSecondary: #A683E5; + --colorChipOutlinedIconInfo: #449BE1; + --colorChipOutlinedIconSuccess: #00AB62; + --colorChipOutlinedIconWarning: #B98F02; + --colorChipOutlinedIconDanger: #FF5D5D; + --colorChipFilledTextPrimary: #DEE1E6; + --colorChipFilledTextSecondary: #E7DEF8; + --colorChipFilledTextInfo: #CDE4F7; + --colorChipFilledTextSuccess: #B8E7D3; + --colorChipFilledTextWarning: #FFDF62; + --colorChipFilledTextDanger: #FFD8D8; + --colorChipFilledIconPrimary: #DEE1E6; + --colorChipFilledIconSecondary: #E7DEF8; + --colorChipFilledIconInfo: #CDE4F7; + --colorChipFilledIconSuccess: #B8E7D3; + --colorChipFilledIconWarning: #FFDF62; + --colorChipFilledIconDanger: #FFD8D8; + --colorChipFilledBackgroundPrimary: #3D4653; + --colorChipFilledBackgroundSecondary: #572B97; + --colorChipFilledBackgroundInfo: #0F4778; + --colorChipFilledBackgroundSuccess: #00502E; + --colorChipFilledBackgroundWarning: #584201; + --colorChipFilledBackgroundDanger: #802424; + --colorChipTextPrimary: #FFFFFF; + --colorChipTextInverse: #282F38; + --colorChipIconPrimary: #FFFFFF; + --colorChipIconWarning: #C45317; + --colorChipIconInverse: #FFFFFF; + --colorChipBackgroundPrimary: #3D4653; + --colorChipBackgroundSecondary: #155EA0; + --colorChipBackgroundSuccessful: #00874D; + --colorChipBackgroundDanger: #D63D3D; + --colorChipBorderPrimary: #515D70; + --colorCodeReviewBackgroundPrimaryDefault: #16191F; + --colorCodeReviewBackgroundPrimaryMuted: #282F38; + --colorCodeReviewBackgroundSuccessDefault: #00361F; + --colorCodeReviewBackgroundSuccessMuted: #00502E; + --colorCodeReviewBackgroundDangerDefault: #571818; + --colorCodeReviewBackgroundDangerMuted: #802424; + --colorCodeReviewTextPrimary: #F4F6F8; + --colorCodeReviewTextSuccess: #5ECD9E; + --colorCodeReviewTextDanger: #FF9F9F; + --colorDialogBackgroundPrimary: #282F38; + --colorDialogBackgroundSecondaryDefault: #3D4653; + --colorDialogBackgroundSecondaryUpsell: linear-gradient(95deg, rgb(from #1A77CA r g b / 0.6) 0%, rgb(from #895ED3 r g b / 0.6) 100%); + --colorDialogHelpPanelText: #FFFFFF; + --colorFreezeStatusIcon: #CDE4F7; + --colorFreezeStatusBorder: #155EA0; + --colorLifecycleTextPrimary: #F5F6F8; + --colorLifecycleBorderDefault: #B2B9C5; + --colorLifecycleIconPrimary: #FFFFFF; + --colorLifecycleBackgroundPrimary: #68778D; + --colorMenuListTextPrimary: #F5F6F8; + --colorMenuListTextSecondary: #DEE1E6; + --colorMenuListTextHighlight: #449BE1; + --colorMenuListIconPrimary: #8A96A7; + --colorMenuListBorderPrimary: #515D70; + --colorMenuListBackgroundDefault: #282F38; + --colorMenuListBackgroundHover: #3D4653; + --colorMenuListBackgroundActive: #515D70; + --colorNavButtonBackgroundDefault: rgb(from #F5F6F8 r g b / 0.01); + --colorNavButtonBackgroundHover: #282F38; + --colorNavButtonBackgroundPressed: #3D4653; + --colorNavButtonBackgroundActive: #282F38; + --colorNavButtonIconDefault: #F5F6F8; + --colorNavButtonIconHover: #F5F6F8; + --colorNavButtonIconPressed: #F5F6F8; + --colorNavButtonIconActive: #F5F6F8; + --colorNavListTextDefault: #F4F6F8; + --colorNavListTextHover: #FFFFFF; + --colorNavListTextActive: #8A96A7; + --colorNavListIconDefault: #515D70; + --colorNavListIconActive: #8A96A7; + --colorNavListBackgroundDefault: rgb(from #68778D r g b / 0); + --colorNavListBackgroundHover: #515D70; + --colorNavListBackgroundActive: rgb(from #282F38 r g b / 0.7); + --colorOverlayPrimary: rgb(from #282F38 r g b / 0.56); + --colorOverlaySecondary: rgb(from #000000 r g b / 0.31); + --colorNavTabBackgroundHover: #3D4653; + --colorNavTabBackgroundActive: rgb(from #FFFFFF r g b / 0); + --colorNavTabTextDefault: #FFFFFF; + --colorNavTabTextActive: #B2B9C5; + --colorNavTabTextHover: #FFFFFF; + --colorNavTabIconDefault: #FFFFFF; + --colorNavTabIconActive: #B2B9C5; + --colorNavTabIconHover: #FFFFFF; + --colorNavTabBorderPrimary: #8A96A7; + --colorPopoverInfoCircleBackgroundDefault: #B2B9C5; + --colorPopoverInfoCircleBackgroundHover: #68778D; + --colorPopoverInfoCircleTextDefault: #3D4653; + --colorPopoverInfoCircleTextHover: #F5F6F8; + --colorPopoverBackgroundPrimary: #16191F; + --colorPopoverBackgroundSecondary: #282F38; + --colorProgressBackgroundLinear: #B2B9C5; + --colorProgressBackgroundPrimary: #B2B9C5; + --colorProgressBackgroundSecondary: #515D70; + --colorProgressForegroundCircular: #68778D; + --colorProgressForegroundLinear: #515D70; + --colorProgressTextInfo: #8A96A7; + --colorSpaceSwitcherBackgroundDefault: rgb(from #3D4653 r g b / 0.64); + --colorSpaceSwitcherBackgroundHover: #68778D; + --colorSpaceSwitcherBackgroundPressed: #68778D; + --colorSpaceSwitcherTextDefault: #B2B9C5; + --colorSpaceSwitcherTextHover: #FFFFFF; + --colorSpaceSwitcherTextPressed: #FFFFFF; + --colorSpaceSwitcherIconDefault: #B2B9C5; + --colorSpaceSwitcherBorderPrimary: rgb(from #16191F r g b / 0.16); + --colorTextFieldTextPrimary: #F5F6F8; + --colorTextFieldTextSecondary: #B2B9C5; + --colorTextFieldTextSelected: #F5F6F8; + --colorTextFieldTextDanger: #FF5D5D; + --colorTextFieldTextDisabled: #515D70; + --colorTextFieldBorderDefault: #3D4653; + --colorTextFieldBorderHover: #68778D; + --colorTextFieldBorderActive: #F5F6F8; + --colorTextFieldBorderDanger: #FF5D5D; + --colorTextFieldBorderDisabled: #3D4653; + --colorTextFieldIconPrimary: #DEE1E6; + --colorTextFieldIconDisabled: #515D70; + --colorSwitchIconActive: #F5F6F8; + --colorSwitchBackgroundOnDefault: #CDE4F7; + --colorSwitchBackgroundOnDisabled: #155EA0; + --colorSwitchBackgroundOffDefault: #68778D; + --colorSwitchBackgroundOffDisabled: #3D4653; + --colorSwitchForegroundOffDefault: #B2B9C5; + --colorSwitchForegroundOffDisabled: #515D70; + --colorSwitchForegroundOnDefault: #449BE1; + --colorSwitchForegroundOnDisabled: #0F4778; + --colorSwitchOverlayOn: rgb(from #F5F6F8 r g b / 0.16); + --colorSwitchOverlayOff: rgb(from #68778D r g b / 0.16); + --colorCategorySelectListIconDefault: #B2B9C5; + --colorCategorySelectListIconActive: #449BE1; + --colorCategorySelectListIconHover: #FFFFFF; + --colorCategorySelectListTextActive: #449BE1; + --colorCategorySelectListTextHover: #FFFFFF; + --colorCategorySelectListBackgroundDefault: #282F38; + --colorCategorySelectListBackgroundHover: #1A77CA; + --colorCategorySelectListBackgroundActive: rgb(from #1A77CA r g b / 0.24); + --colorScrollbarBackground: rgb(from #111A23 r g b / 0); + --colorScrollbarHandle: #68778D; + --colorTagBackground: #282F38; + --colorTagText: #DEE1E6; + --colorStatusBadgeTextPrimary: #F5F6F8; + --colorStatusBadgeTextInverse: #F5F6F8; + --colorStatusBadgeIconDefault: #FFFFFF; + --colorStatusBadgeIconInverse: #F5F6F8; + --colorStatusBadgeBackgroundHealthy: #006A3D; + --colorStatusBadgeBackgroundWarning: #745801; + --colorStatusBadgeBackgroundUnhealthy: #AA3030; + --colorStatusBadgeBackgroundNeutral: #515D70; + --colorHealthStatusIconDefault: #FFFFFF; + --colorHealthStatusIconInverse: #F5F6F8; + --colorHealthStatusBackgroundSuccess: #006A3D; + --colorHealthStatusBackgroundExecuting: #155EA0; + --colorHealthStatusBackgroundWarning: #745801; + --colorHealthStatusBackgroundFailure: #AA3030; + --colorHealthStatusBackgroundNeutral: #515D70; + --colorAvatarText: #FFFFFF; + --colorAvatarIconPrimary: #FFFFFF; + --colorAvatarIconSecondary: #282F38; + --colorAvatarIconPage: #CDE4F7; + --colorAvatarIconAction: #B8E7D3; + --colorAvatarBackgroundUserDefault: #515D70; + --colorAvatarBackgroundUserHover: #3D4653; + --colorAvatarBackgroundSpaceDefault: #515D70; + --colorAvatarBackgroundSpaceHover: #3D4653; + --colorAvatarBackgroundProjectDefault: #515D70; + --colorAvatarBackgroundProjectHover: #3D4653; + --colorAvatarBackgroundTenantDefault: #FFFFFF; + --colorAvatarBackgroundTenantHover: #F5F6F8; + --colorAvatarBackgroundImageDefault: #B2B9C5; + --colorAvatarBackgroundImageHover: #8A96A7; + --colorAvatarBackgroundTemplateDefault: #DEE1E6; + --colorAvatarBackgroundTemplateHover: #B2B9C5; + --colorAvatarBackgroundPageDefault: #0F4778; + --colorAvatarBackgroundPageHover: #093051; + --colorAvatarBackgroundActionDefault: #00502E; + --colorAvatarBackgroundActionHover: #00361F; + --colorAvatarStackBackgroundHover: #282F38; + --colorAvatarStackBorder: #16191F; + --colorParallelChipBackground: #68778D; + --colorParallelChipIcon: #FFFFFF; + --colorProcessWrapperBackgroundPrimary: #16191F; + --colorProcessWrapperBackgroundSecondary: #282F38; + --colorProcessContainerBackgroundSelected: #3D4653; + --colorProcessContainerBorderSelected: #515D70; + --colorProcessStepBackgroundPrimaryDefault: #16191F; + --colorProcessStepBackgroundPrimarySelected: #515D70; + --colorProcessStepBackgroundHoverPrimary: #282F38; + --colorProcessStepBackgroundHoverSecondary: #3D4653; + --colorProcessStepBackgroundHoverTertiary: #282F38; + --colorProcessStepBackgroundHoverError: #802424; + --colorProcessStepBackgroundHoverWarning: #C45317; + --colorProcessStepBackgroundErrorPrimary: #571818; + --colorProcessStepBackgroundErrorSelected: #802424; + --colorProcessStepBackgroundErrorSecondary: #AA3030; + --colorProcessStepBackgroundWarningDefault: #A13C14; + --colorProcessStepBackgroundWarningSelected: #C45317; + --colorProcessStepBackgroundWarningSecondary: #EA7325; + --colorProcessStepBackgroundSecondaryDefault: #282F38; + --colorProcessStepBorderErrorDefault: #802424; + --colorProcessStepBorderErrorHover: #AA3030; + --colorProcessStepBorderErrorSelected: #D63D3D; + --colorProcessStepBorderWarningDefault: #C45317; + --colorProcessStepBorderWarningHover: #EA7325; + --colorProcessStepBorderWarningSelected: #FFA461; + --colorProcessStepBorderDefault: #3D4653; + --colorProcessStepBorderDisabled: #3D4653; + --colorProcessStepBorderHover: #515D70; + --colorProcessStepBorderSelected: #68778D; + --colorProcessStepTextDisabled: #8A96A7; + --colorProcessStepIconDefault: #DEE1E6; + --colorProcessStepIconErrorPrimary: #FF5D5D; + --colorProcessStepIconErrorSecondary: #FF9F9F; + --colorProcessStepIconWarningPrimary: #FFA461; + --colorProcessStepIconWarningSecondary: #FFDABF; + --colorCodeEditorBackground: #16191F; + --colorCodeEditorForeground: #DEE1E6; + --colorCodeEditorSelection: #0F4778; + --colorCodeEditorSelectionMatch: #0F4778; + --colorCodeEditorTextDefault: #DEE1E6; + --colorCodeEditorTextHighlight: #FFDABF; + --colorCodeEditorTextHintHighlight: #B8E7D3; + --colorCodeEditorTextGutter: #7C98B4; + --colorCodeEditorToolbarBackground: #282F38; + --colorCodeEditorToolbarButtonHover: #16191F; + --colorCodeEditorCodeIndentationMarkerColor: #282F38; + --colorCodeEditorCodeIndentationMarkerActiveColor: #515D70; + --colorCodeEditorCodeSelectedBackground: #282F38; + --colorCodeEditorCodeLinenumberColor: #8A96A7; + --colorCodeEditorCodeCursorBorderLeft: #B2B9C5; + --colorCodeEditorCodeCursorBorderRight: #B2B9C5; + --colorCodeEditorCodeActivelineBackground: rgb(from #7C98B4 r g b / 0.15); + --colorCodeEditorCodeFatCursorBackground: #B2B9C5; + --colorCodeEditorCodeAtomNumberKeywordVariableAttributeQuoteColor: #449BE1; + --colorCodeEditorCodeVariableColor: #C5AEEE; + --colorCodeEditorCodePropertyColor: #FFA461; + --colorCodeEditorCodePunctuationUnitNegativeColor: #FFD8D8; + --colorCodeEditorCodeStringOperatorColor: #5ECD9E; + --colorCodeEditorCodePositiveColor: #00AB62; + --colorCodeEditorCodeVariable2Variable3String2UrlColor: #87BFEC; + --colorCodeEditorCodeDefTagBuiltinQualifierHeaderEmColor: #FF9F9F; + --colorCodeEditorCodeBracketCommentColor: #959595; + --colorCodeEditorCodeErrorInvalidcharColor: #FF5D5D; + --colorCodeEditorCodeMatchingbracketColor: #8A96A7; + --colorCodeEditorCodeHintsBackground: #282F38; + --colorCodeEditorCodeHint: #F5F6F8; + --colorCodeEditorCodeHintActiveBackground: #282F38; + --colorCodeEditorCodeSyntaxTagName: #5ECD9E; + --colorCodeEditorCodeSyntaxComment: #8A96A7; + --colorCodeEditorCodeSyntaxBracket: #8A96A7; + --colorCodeEditorCodeSyntaxClassName: #C5AEEE; + --colorCodeEditorCodeSyntaxPropertyName: #C5AEEE; + --colorCodeEditorCodeSyntaxVariableName: #87BFEC; + --colorCodeEditorCodeSyntaxAttributeName: #87BFEC; + --colorCodeEditorCodeSyntaxNumber: #87BFEC; + --colorCodeEditorCodeSyntaxOperator: #87BFEC; + --colorCodeEditorCodeSyntaxKeyword: #FF9F9F; + --colorCodeEditorCodeSyntaxTypeName: #FF9F9F; + --colorCodeEditorCodeSyntaxTypeOperator: #FF9F9F; + --colorCodeEditorCodeSyntaxString: #CDE4F7; + --colorCodeEditorCodeSyntaxMeta: #CDE4F7; + --colorCodeEditorCodeSyntaxRegexp: #CDE4F7; + --colorCodeEditorCodeSyntaxName: #5ECD9E; + --colorCodeEditorCodeSyntaxQuote: #5ECD9E; + --colorCodeEditorCodeSyntaxHeading: #C5AEEE; + --colorCodeEditorCodeSyntaxStrong: #C5AEEE; + --colorCodeEditorCodeSyntaxEmphasis: #C5AEEE; + --colorCodeEditorCodeSyntaxDeleted: #FFD8D8; + --colorCodeEditorCodeSyntaxDeletedBackground: #FFF3F3; + --colorCodeEditorCodeSyntaxAtom: #FFA461; + --colorCodeEditorCodeSyntaxBool: #FFA461; + --colorCodeEditorCodeSyntaxSpecialVariableName: #FFA461; + --colorCodeEditorCodeSyntaxUrl: #CDE4F7; + --colorCodeEditorCodeSyntaxEscape: #CDE4F7; + --colorCodeEditorCodeSyntaxLink: #CDE4F7; + --colorCodeEditorCodeSyntaxInvalid: #FF5D5D; + --colorPaginationBackgroundActive: #449BE1; + --colorPaginationBackgroundDefault: #16191F; + --colorPaginationBackgroundDisabled: #16191F; + --colorPaginationBackgroundHover: #557999; + --colorPaginationIconActive: #16191F; + --colorPaginationIconDefault: #F5F6F8; + --colorPaginationIconDisabled: #515D70; + --colorPaginationIconHover: #FFFFFF; + --colorPaginationTextActive: #16191F; + --colorPaginationTextDefault: #F5F6F8; + --colorPaginationTextHover: #FFFFFF; + --colorPaginationTextDisabled: #515D70; + --colorFormLegendBackgroundRest: #282F38; + --colorFormLegendBackgroundHover: #3D4653; + --colorTableHeaderBackground: rgb(from #282F38 r g b / 0.3); + --colorTableBackgroundSuccessDefault: #00502E; + --colorTableBackgroundSuccessHover: rgb(from #00502E r g b / 0.75); + --colorTableBackgroundDangerDefault: #802424; + --colorTableBackgroundDangerHover: rgb(from #802424 r g b / 0.75); + --colorTableTextDanger: #FFD8D8; + --colorCanvasBackground: #282F38; + --colorCanvasPattern: #16191F; + --colorSearchBackgroundResultHover: #3D4653; + --colorSearchBackgroundResultPressed: #515D70; + --colorSearchBackgroundNotice: #3D4653; + --colorPortalLinkTextHover: #FFFFFF; + --colorPortalChipBackground: #2E475D; + --colorPortalPopoverBackground: #2E475D; + --colorPortalCardBackground: #2E475D; + --colorPortalCardContentDisabled: #A9BBCB; + --colorPortalCardContentText: #DAE2E9; + --colorPortalLogoBackground: #F2F8FD; + --shadowExtraSmall: 0 1px 8px 0 rgba(0,0,0,0.12), 0 1px 2px 0 rgba(0,0,0,0.06); + --shadowSmall: 0 1px 1px 0 rgba(0,0,0,0.16), 0 1px 8px 0 rgba(0,0,0,0.16); + --shadowMedium: 0 0 4px 0 rgba(0,0,0,0.24), 0 6px 12px 0 rgba(0,0,0,0.3); + --shadowLarge: 0 2px 6px 0 rgba(0,0,0,0.26), 0 24px 32px -4px rgba(0,0,0,0.42); + --shadowDrawer: -4px 0 16px 0 rgba(0,0,0,0.16), -12px 4px 24px -4px rgba(0,0,0,0.32); + --shadowLayoutPrimary: -2px -2px 16px 0 rgba(0,0,0,0.06); + --shadowFocused: 0 0 0 1px rgb(68,155,225), 0 0 0 5px rgba(68,155,225,0.4); + --shadowFocusedInset: inset 0 0 0 4px rgba(68,155,225,0.4); +} diff --git a/src/styles/design-system-tokens/slateLightTheme.css b/src/styles/design-system-tokens/slateLightTheme.css new file mode 100644 index 0000000000..1dcf97964c --- /dev/null +++ b/src/styles/design-system-tokens/slateLightTheme.css @@ -0,0 +1,565 @@ +/** + * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. + * Generated from the design system's source tokens - do not edit. + * + * Include globals.css, textTheme.css and the stylesheet for each theme. The theme + * stylesheets are selected by the data-theme attribute, set on whichever element you want + * themed - usually , but any element works. globals.css and textTheme.css are + * theme-independent and always apply. + */ + +[data-theme="light"] { + --colorTextLinkDefault: #16191F; + --colorTextLinkHover: #3D4653; + --colorTextPrimary: #282F38; + --colorTextSecondary: #515D70; + --colorTextTertiary: #68778D; + --colorTextDisabled: #B2B9C5; + --colorTextInversePrimary: #FFFFFF; + --colorTextInverseSecondary: #DEE1E6; + --colorTextSelected: #282F38; + --colorTextInfo: #16191F; + --colorTextSuccess: #00874D; + --colorTextWarning: #B98F02; + --colorTextDanger: #D63D3D; + --colorTextFeature: #895ED3; + --colorDeprecatedTextWarning: #C45317; + --colorDeprecatedIconWarning: #EA7325; + --colorDeprecatedBorderWarning: #C45317; + --colorDeprecatedBackgroundWarning: #FFF5ED; + --colorIconLinkDefault: #3D4653; + --colorIconLinkHover: #68778D; + --colorIconPrimary: #282F38; + --colorIconSecondary: #515D70; + --colorIconTertiary: #8A96A7; + --colorIconDisabled: #B2B9C5; + --colorIconInversePrimary: #FFFFFF; + --colorIconInverseSecondary: #DEE1E6; + --colorIconSelected: #282F38; + --colorIconInfo: #515D70; + --colorIconSuccess: #00874D; + --colorIconWarning: #B98F02; + --colorIconDanger: #D63D3D; + --colorIconFeature: #A683E5; + --colorBorderPrimary: #DEE1E6; + --colorBorderSecondary: #F5F6F8; + --colorBorderTertiary: #B2B9C5; + --colorBorderBold: #68778D; + --colorBorderLinkDefault: #3D4653; + --colorBorderLinkHover: #16191F; + --colorBorderDisabled: #B2B9C5; + --colorBorderInversePrimary: #3D4653; + --colorBorderInverseSecondary: #3D4653; + --colorBorderSelected: #3D4653; + --colorBorderInfo: #1A77CA; + --colorBorderSuccess: #00874D; + --colorBorderWarning: #B98F02; + --colorBorderDanger: #D63D3D; + --colorBorderFeature: #895ED3; + --colorBorderDefault: #515D70; + --colorBackgroundPrimaryDefault: #FFFFFF; + --colorBackgroundPrimaryHover: #F5F6F8; + --colorBackgroundPrimaryPressed: #DEE1E6; + --colorBackgroundPrimaryTransparent: rgb(from #FFFFFF r g b / 0.72); + --colorBackgroundTertiary: #DEE1E6; + --colorBackgroundDisabled: #DEE1E6; + --colorBackgroundSelected: #16191F; + --colorBackgroundSecondaryDefault: #F5F6F8; + --colorBackgroundSecondaryHover: #FFFFFF; + --colorBackgroundSecondaryPressed: #B2B9C5; + --colorBackgroundSecondaryTransparent: rgb(from #F5F6F8 r g b / 0.72); + --colorBackgroundBold: #FFFFFF; + --colorBackgroundInfo: #F2F8FD; + --colorBackgroundSuccess: #EEFAF5; + --colorBackgroundWarning: #FFF7D9; + --colorBackgroundDanger: #FFF3F3; + --colorBackgroundFeature: #F8F5FD; + --colorBackgroundQuartaryDefault: #FFFFFF; + --colorBackgroundQuartaryHover: #F5F6F8; + --colorBackgroundQuartaryPressed: #DEE1E6; + --colorBackgroundInversePrimary: #16191F; + --colorBackgroundInverseSecondary: #3D4653; + --colorBackgroundInverseSuccess: #00874D; + --colorBackgroundInverseNeutral: #515D70; + --colorBackgroundInverseNeutralQuiet: #DEE1E6; + --colorBackgroundInverseInfo: #1A77CA; + --colorBackgroundInverseWarning: #927002; + --colorBackgroundInverseDanger: #D63D3D; + --colorBackgroundInverseFeature: #7043B7; + --colorBackgroundDefault: rgb(from #FFFFFF r g b / 0); + --colorBackgroundHover: #DEE1E6; + --colorBackgroundNeutral: #F5F6F8; + --colorBadgeBoldTextPrimary: #FFFFFF; + --colorBadgeBoldTextSecondary: #000000; + --colorBadgeBoldTextFeature: #572B97; + --colorBadgeBoldTextUpsell: #572B97; + --colorBadgeBoldIconPrimary: #FFFFFF; + --colorBadgeBoldIconSecondary: #000000; + --colorBadgeBoldIconFeature: #572B97; + --colorBadgeBoldIconUpsell: #572B97; + --colorBadgeBoldBackgroundNeutral: #DEE1E6; + --colorBadgeBoldBackgroundInverseNeutral: #515D70; + --colorBadgeBoldBackgroundInfo: #1A77CA; + --colorBadgeBoldBackgroundSuccess: #00874D; + --colorBadgeBoldBackgroundWarning: #927002; + --colorBadgeBoldBackgroundDanger: #D63D3D; + --colorBadgeBoldBackgroundFeature: #E7DEF8; + --colorBadgeBoldBackgroundUpsell: #E7DEF8; + --colorBadgeSubtleTextNeutral: #515D70; + --colorBadgeSubtleTextInfo: #155EA0; + --colorBadgeSubtleTextSuccess: #006A3D; + --colorBadgeSubtleTextWarning: #745801; + --colorBadgeSubtleTextDanger: #AA3030; + --colorBadgeSubtleTextFeature: #7043B7; + --colorBadgeSubtleTextUpsell: #7043B7; + --colorBadgeSubtleBorderNeutral: #DEE1E6; + --colorBadgeSubtleBorderInfo: #CDE4F7; + --colorBadgeSubtleBorderSuccess: #B8E7D3; + --colorBadgeSubtleBorderWarning: #FFDF62; + --colorBadgeSubtleBorderDanger: #FFD8D8; + --colorBadgeSubtleBorderFeature: #E7DEF8; + --colorBadgeSubtleBorderUpsell: #E7DEF8; + --colorBadgeSubtleIconNeutral: #515D70; + --colorBadgeSubtleIconInfo: #1A77CA; + --colorBadgeSubtleIconSuccess: #00874D; + --colorBadgeSubtleIconWarning: #927002; + --colorBadgeSubtleIconDanger: #D63D3D; + --colorBadgeSubtleIconFeature: #895ED3; + --colorBadgeSubtleIconUpsell: #895ED3; + --colorBadgeSubtleBackgroundNeutral: #F5F6F8; + --colorBadgeSubtleBackgroundInfo: #F2F8FD; + --colorBadgeSubtleBackgroundSuccess: #EEFAF5; + --colorBadgeSubtleBackgroundWarning: #FFF7D9; + --colorBadgeSubtleBackgroundDanger: #FFF3F3; + --colorBadgeSubtleBackgroundFeature: #F8F5FD; + --colorBadgeSubtleBackgroundUpsell: #F8F5FD; + --colorButtonTextPrimary: #FFFFFF; + --colorButtonTextSecondary: #282F38; + --colorButtonTextTertiaryDefault: #515D70; + --colorButtonTextTertiaryHover: #282F38; + --colorButtonTextTertiaryPressed: #282F38; + --colorButtonTextDestructive: #FFFFFF; + --colorButtonTextQuietDefault: #68778D; + --colorButtonTextQuietHover: #515D70; + --colorButtonTextQuietPressed: #515D70; + --colorButtonTextNeutral: #515D70; + --colorButtonTextDisabled: #8A96A7; + --colorButtonTextLoud: #FFFFFF; + --colorButtonTextGhost: #282F38; + --colorButtonIconPrimary: #FFFFFF; + --colorButtonIconSecondary: #282F38; + --colorButtonIconTertiaryDefault: #515D70; + --colorButtonIconTertiaryHover: #282F38; + --colorButtonIconTertiaryPressed: #282F38; + --colorButtonIconQuietDefault: rgb(from #282F38 r g b / 0.55); + --colorButtonIconQuietHover: #515D70; + --colorButtonIconQuietPressed: #515D70; + --colorButtonIconNeutral: #515D70; + --colorButtonIconDisabled: #B2B9C5; + --colorButtonIconLoud: #FFFFFF; + --colorButtonIconDestructive: #FFFFFF; + --colorButtonIconGhost: #282F38; + --colorButtonBorderSecondary: #515D70; + --colorButtonBorderDisabled: #DEE1E6; + --colorButtonBackgroundDisabled: rgb(from #DEE1E6 r g b / 0.56); + --colorButtonBackgroundPrimaryDefault: #16191F; + --colorButtonBackgroundPrimaryHover: #3D4653; + --colorButtonBackgroundPrimaryPressed: #282F38; + --colorButtonBackgroundSecondaryDefault: rgb(from #515D70 r g b / 0); + --colorButtonBackgroundSecondaryHover: rgb(from #515D70 r g b / 0.08); + --colorButtonBackgroundSecondaryPressed: rgb(from #515D70 r g b / 0.16); + --colorButtonBackgroundTertiaryDefault: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundTertiaryHover: rgb(from #8A96A7 r g b / 0.2); + --colorButtonBackgroundTertiaryPressed: rgb(from #8A96A7 r g b / 0.32); + --colorButtonBackgroundNeutralDefault: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundNeutralHover: rgb(from #8A96A7 r g b / 0.2); + --colorButtonBackgroundNeutralPressed: rgb(from #8A96A7 r g b / 0.32); + --colorButtonBackgroundQuietDefault: rgb(from #8A96A7 r g b / 0); + --colorButtonBackgroundQuietHover: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundQuietPressed: rgb(from #8A96A7 r g b / 0.24); + --colorButtonBackgroundLoudDefault: #16191F; + --colorButtonBackgroundLoudHover: #3D4653; + --colorButtonBackgroundLoudPressed: #282F38; + --colorButtonBackgroundDestructiveDefault: #D63D3D; + --colorButtonBackgroundDestructiveHover: #AA3030; + --colorButtonBackgroundDestructivePressed: #802424; + --colorButtonBackgroundGhostDefault: rgb(from #8A96A7 r g b / 0); + --colorButtonBackgroundGhostHover: rgb(from #8A96A7 r g b / 0.12); + --colorButtonBackgroundGhostPressed: rgb(from #8A96A7 r g b / 0.24); + --colorButtonFocus: #515D70; + --colorCalloutTextInfo: #282F38; + --colorCalloutTextSuccess: #00361F; + --colorCalloutTextWarning: #3B2C00; + --colorCalloutTextDanger: #571818; + --colorCalloutTextFeature: #3B1D66; + --colorCalloutTextBody: #3D4653; + --colorCalloutBorderInfo: #68778D; + --colorCalloutBorderSuccess: #00874D; + --colorCalloutBorderWarning: #B98F02; + --colorCalloutBorderDanger: #D63D3D; + --colorCalloutBorderFeature: #895ED3; + --colorCalloutBorderDefault: #68778D; + --colorCalloutBorderUpsell: linear-gradient(180deg, #87BFEC 0%, #C5AEEE 100%); + --colorCalloutIconInfo: #515D70; + --colorCalloutIconSuccess: #006A3D; + --colorCalloutIconWarning: #745801; + --colorCalloutIconDanger: #AA3030; + --colorCalloutIconFeature: #7043B7; + --colorCalloutBackgroundInfoDefault: rgb(from #8A96A7 r g b / 0.16); + --colorCalloutBackgroundInfoHover: rgb(from #8A96A7 r g b / 0.24); + --colorCalloutBackgroundInfoPressed: rgb(from #8A96A7 r g b / 0.32); + --colorCalloutBackgroundSuccessDefault: rgb(from #B8E7D3 r g b / 0.45); + --colorCalloutBackgroundSuccessHover: rgb(from #5ECD9E r g b / 0.4); + --colorCalloutBackgroundSuccessPressed: rgb(from #5ECD9E r g b / 0.64); + --colorCalloutBackgroundWarningDefault: rgb(from #FFDF62 r g b / 0.32); + --colorCalloutBackgroundWarningHover: rgb(from #FFDF62 r g b / 0.4); + --colorCalloutBackgroundWarningPressed: rgb(from #FFDF62 r g b / 0.64); + --colorCalloutBackgroundDangerDefault: rgb(from #FFD8D8 r g b / 0.5); + --colorCalloutBackgroundDangerHover: rgb(from #FF9F9F r g b / 0.4); + --colorCalloutBackgroundDangerPressed: rgb(from #FF9F9F r g b / 0.64); + --colorCalloutBackgroundFeatureDefault: rgb(from #E7DEF8 r g b / 0.5); + --colorCalloutBackgroundFeatureHover: rgb(from #C5AEEE r g b / 0.4); + --colorCalloutBackgroundFeaturePressed: rgb(from #C5AEEE r g b / 0.64); + --colorCalloutBackgroundUpsell: linear-gradient(95deg, rgb(from #CDE4F7 r g b / 0.5) 0%, rgb(from #E7DEF8 r g b / 0.5) 100%); + --colorCalloutCodeBackground: #68778D; + --colorCardBackgroundPrimaryDefault: #FFFFFF; + --colorCardBackgroundSecondaryDefault: rgb(from #FFFFFF r g b / 0); + --colorCardBackgroundSecondaryHover: rgb(from #F5F6F8 r g b / 0.64); + --colorCardChartBackgroundDefault: rgb(from #F5F6F8 r g b / 0.3); + --colorCardChartBackgroundHover: rgb(from #F5F6F8 r g b / 0.5); + --colorCarouselTextPrimary: #FFFFFF; + --colorCarouselIconDefault: rgb(from #B2B9C5 r g b / 0.32); + --colorCarouselIconHover: rgb(from #B2B9C5 r g b / 0.72); + --colorCarouselIconSelected: #449BE1; + --colorCarouselBackgroundPrimary: #16191F; + --colorChipOutlinedBorderPrimary: #515D70; + --colorChipOutlinedBorderSecondary: #895ED3; + --colorChipOutlinedBorderInfo: #1A77CA; + --colorChipOutlinedBorderSuccess: #00874D; + --colorChipOutlinedBorderWarning: #927002; + --colorChipOutlinedBorderDanger: #D63D3D; + --colorChipOutlinedTextPrimary: #68778D; + --colorChipOutlinedTextSecondary: #895ED3; + --colorChipOutlinedTextInfo: #1A77CA; + --colorChipOutlinedTextSuccess: #00874D; + --colorChipOutlinedTextWarning: #927002; + --colorChipOutlinedTextDanger: #D63D3D; + --colorChipOutlinedIconPrimary: #68778D; + --colorChipOutlinedIconSecondary: #895ED3; + --colorChipOutlinedIconInfo: #1A77CA; + --colorChipOutlinedIconSuccess: #00874D; + --colorChipOutlinedIconWarning: #927002; + --colorChipOutlinedIconDanger: #D63D3D; + --colorChipFilledTextPrimary: #515D70; + --colorChipFilledTextSecondary: #7043B7; + --colorChipFilledTextInfo: #155EA0; + --colorChipFilledTextSuccess: #006A3D; + --colorChipFilledTextWarning: #745801; + --colorChipFilledTextDanger: #AA3030; + --colorChipFilledIconPrimary: #515D70; + --colorChipFilledIconSecondary: #7043B7; + --colorChipFilledIconInfo: #155EA0; + --colorChipFilledIconSuccess: #006A3D; + --colorChipFilledIconWarning: #745801; + --colorChipFilledIconDanger: #AA3030; + --colorChipFilledBackgroundPrimary: #DAE2E9; + --colorChipFilledBackgroundSecondary: #E7DEF8; + --colorChipFilledBackgroundInfo: #CDE4F7; + --colorChipFilledBackgroundSuccess: #B8E7D3; + --colorChipFilledBackgroundWarning: #FFDF62; + --colorChipFilledBackgroundDanger: #FFD8D8; + --colorChipTextPrimary: #282F38; + --colorChipTextInverse: #FFFFFF; + --colorChipIconPrimary: #282F38; + --colorChipIconWarning: #C45317; + --colorChipIconInverse: #FFFFFF; + --colorChipBackgroundPrimary: #DEE1E6; + --colorChipBackgroundSecondary: #B2B9C5; + --colorChipBackgroundSuccessful: #00874D; + --colorChipBackgroundDanger: #D63D3D; + --colorChipBorderPrimary: #B2B9C5; + --colorCodeReviewBackgroundPrimaryDefault: #F5F6F8; + --colorCodeReviewBackgroundPrimaryMuted: #FFFFFF; + --colorCodeReviewBackgroundSuccessDefault: #B8E7D3; + --colorCodeReviewBackgroundSuccessMuted: #5ECD9E; + --colorCodeReviewBackgroundDangerDefault: #FFD8D8; + --colorCodeReviewBackgroundDangerMuted: #FF9F9F; + --colorCodeReviewTextPrimary: #282F38; + --colorCodeReviewTextSuccess: #00502E; + --colorCodeReviewTextDanger: #802424; + --colorDialogBackgroundPrimary: #FFFFFF; + --colorDialogBackgroundSecondaryDefault: #F5F6F8; + --colorDialogBackgroundSecondaryUpsell: linear-gradient(95deg, rgb(from #1A77CA r g b / 0.6) 0%, rgb(from #895ED3 r g b / 0.6) 100%); + --colorDialogHelpPanelText: #FFFFFF; + --colorFreezeStatusIcon: #0F4778; + --colorFreezeStatusBorder: #87BFEC; + --colorLifecycleTextPrimary: #282F38; + --colorLifecycleBorderDefault: #515D70; + --colorLifecycleIconPrimary: #FFFFFF; + --colorLifecycleBackgroundPrimary: #8A96A7; + --colorMenuListTextPrimary: #282F38; + --colorMenuListTextSecondary: #515D70; + --colorMenuListTextHighlight: #16191F; + --colorMenuListIconPrimary: #515D70; + --colorMenuListBorderPrimary: #DEE1E6; + --colorMenuListBackgroundDefault: #FFFFFF; + --colorMenuListBackgroundHover: #F5F6F8; + --colorMenuListBackgroundActive: #DEE1E6; + --colorNavButtonBackgroundDefault: rgb(from #16191F r g b / 0); + --colorNavButtonBackgroundHover: #DEE1E6; + --colorNavButtonBackgroundPressed: #B2B9C5; + --colorNavButtonBackgroundActive: #DEE1E6; + --colorNavButtonIconDefault: #282F38; + --colorNavButtonIconHover: #DEE1E6; + --colorNavButtonIconPressed: #DEE1E6; + --colorNavButtonIconActive: #DEE1E6; + --colorNavListTextDefault: #282F38; + --colorNavListTextHover: #FFFFFF; + --colorNavListTextActive: #282F38; + --colorNavListIconDefault: #282F38; + --colorNavListIconActive: #515D70; + --colorNavListBackgroundDefault: rgb(from #F5F6F8 r g b / 0); + --colorNavListBackgroundHover: #3D4653; + --colorNavListBackgroundActive: #F5F6F8; + --colorOverlayPrimary: rgb(from #282F38 r g b / 0.56); + --colorOverlaySecondary: rgb(from #000000 r g b / 0.31); + --colorNavTabBackgroundHover: #F5F6F8; + --colorNavTabBackgroundActive: rgb(from #FFFFFF r g b / 0); + --colorNavTabTextDefault: #282F38; + --colorNavTabTextActive: #3D4653; + --colorNavTabTextHover: #68778D; + --colorNavTabIconDefault: #282F38; + --colorNavTabIconActive: #515D70; + --colorNavTabIconHover: #515D70; + --colorNavTabBorderPrimary: #282F38; + --colorPopoverInfoCircleBackgroundDefault: #DEE1E6; + --colorPopoverInfoCircleBackgroundHover: #68778D; + --colorPopoverInfoCircleTextDefault: #515D70; + --colorPopoverInfoCircleTextHover: #F5F6F8; + --colorPopoverBackgroundPrimary: #FFFFFF; + --colorPopoverBackgroundSecondary: #F5F6F8; + --colorProgressBackgroundLinear: #DEE1E6; + --colorProgressBackgroundPrimary: #68778D; + --colorProgressBackgroundSecondary: #DEE1E6; + --colorProgressForegroundCircular: #68778D; + --colorProgressForegroundLinear: #68778D; + --colorProgressTextInfo: #68778D; + --colorSpaceSwitcherBackgroundDefault: rgb(from #DEE1E6 r g b / 0.32); + --colorSpaceSwitcherBackgroundHover: #68778D; + --colorSpaceSwitcherBackgroundPressed: #68778D; + --colorSpaceSwitcherTextDefault: #515D70; + --colorSpaceSwitcherTextHover: #FFFFFF; + --colorSpaceSwitcherTextPressed: #FFFFFF; + --colorSpaceSwitcherIconDefault: #515D70; + --colorSpaceSwitcherBorderPrimary: rgb(from #16191F r g b / 0.16); + --colorTextFieldTextPrimary: #282F38; + --colorTextFieldTextSecondary: #68778D; + --colorTextFieldTextSelected: #16191F; + --colorTextFieldTextDanger: #D63D3D; + --colorTextFieldTextDisabled: #B2B9C5; + --colorTextFieldBorderDefault: #B2B9C5; + --colorTextFieldBorderHover: #68778D; + --colorTextFieldBorderActive: #16191F; + --colorTextFieldBorderDanger: #D63D3D; + --colorTextFieldBorderDisabled: #B2B9C5; + --colorTextFieldIconPrimary: #3D4653; + --colorTextFieldIconDisabled: #B2B9C5; + --colorSwitchIconActive: #16191F; + --colorSwitchBackgroundOnDefault: #87BFEC; + --colorSwitchBackgroundOnDisabled: #CDE4F7; + --colorSwitchBackgroundOffDefault: #B2B9C5; + --colorSwitchBackgroundOffDisabled: #DEE1E6; + --colorSwitchForegroundOffDefault: #F5F6F8; + --colorSwitchForegroundOffDisabled: #B2B9C5; + --colorSwitchForegroundOnDefault: #1A77CA; + --colorSwitchForegroundOnDisabled: #87BFEC; + --colorSwitchOverlayOn: rgb(from #87BFEC r g b / 0.16); + --colorSwitchOverlayOff: rgb(from #B2B9C5 r g b / 0.16); + --colorCategorySelectListIconDefault: #515D70; + --colorCategorySelectListIconActive: #1A77CA; + --colorCategorySelectListIconHover: #FFFFFF; + --colorCategorySelectListTextActive: #1A77CA; + --colorCategorySelectListTextHover: #FFFFFF; + --colorCategorySelectListBackgroundDefault: #F5F6F8; + --colorCategorySelectListBackgroundHover: #1A77CA; + --colorCategorySelectListBackgroundActive: rgb(from #1A77CA r g b / 0.06); + --colorScrollbarBackground: rgb(from #FFFFFF r g b / 0); + --colorScrollbarHandle: #8A96A7; + --colorTagBackground: #F5F6F8; + --colorTagText: #3D4653; + --colorStatusBadgeTextPrimary: #FFFFFF; + --colorStatusBadgeTextInverse: #3D4653; + --colorStatusBadgeIconDefault: #FFFFFF; + --colorStatusBadgeIconInverse: #3D4653; + --colorStatusBadgeBackgroundHealthy: #00874D; + --colorStatusBadgeBackgroundWarning: #927002; + --colorStatusBadgeBackgroundUnhealthy: #D63D3D; + --colorStatusBadgeBackgroundNeutral: #DEE1E6; + --colorHealthStatusIconDefault: #FFFFFF; + --colorHealthStatusIconInverse: #3D4653; + --colorHealthStatusBackgroundSuccess: #00874D; + --colorHealthStatusBackgroundExecuting: #1A77CA; + --colorHealthStatusBackgroundWarning: #927002; + --colorHealthStatusBackgroundFailure: #D63D3D; + --colorHealthStatusBackgroundNeutral: #DEE1E6; + --colorAvatarText: #FFFFFF; + --colorAvatarIconPrimary: #FFFFFF; + --colorAvatarIconSecondary: #282F38; + --colorAvatarIconPage: #0F4778; + --colorAvatarIconAction: #00502E; + --colorAvatarBackgroundUserDefault: #68778D; + --colorAvatarBackgroundUserHover: #515D70; + --colorAvatarBackgroundSpaceDefault: #68778D; + --colorAvatarBackgroundSpaceHover: #515D70; + --colorAvatarBackgroundProjectDefault: #68778D; + --colorAvatarBackgroundProjectHover: #515D70; + --colorAvatarBackgroundTenantDefault: #FFFFFF; + --colorAvatarBackgroundTenantHover: #F5F6F8; + --colorAvatarBackgroundImageDefault: #F5F6F8; + --colorAvatarBackgroundImageHover: #B2B9C5; + --colorAvatarBackgroundTemplateDefault: #F5F6F8; + --colorAvatarBackgroundTemplateHover: #DEE1E6; + --colorAvatarBackgroundPageDefault: #CDE4F7; + --colorAvatarBackgroundPageHover: #87BFEC; + --colorAvatarBackgroundActionDefault: #B8E7D3; + --colorAvatarBackgroundActionHover: #5ECD9E; + --colorAvatarStackBackgroundHover: #DEE1E6; + --colorAvatarStackBorder: #FFFFFF; + --colorParallelChipBackground: #68778D; + --colorParallelChipIcon: #FFFFFF; + --colorProcessWrapperBackgroundPrimary: #F5F6F8; + --colorProcessWrapperBackgroundSecondary: #DEE1E6; + --colorProcessContainerBackgroundSelected: #F5F6F8; + --colorProcessContainerBorderSelected: #8A96A7; + --colorProcessStepBackgroundPrimaryDefault: #FFFFFF; + --colorProcessStepBackgroundPrimarySelected: #F2F8FD; + --colorProcessStepBackgroundHoverPrimary: #F5F6F8; + --colorProcessStepBackgroundHoverSecondary: #DEE1E6; + --colorProcessStepBackgroundHoverTertiary: #F5F6F8; + --colorProcessStepBackgroundHoverError: #FFD8D8; + --colorProcessStepBackgroundHoverWarning: #FFDABF; + --colorProcessStepBackgroundErrorPrimary: #FFF3F3; + --colorProcessStepBackgroundErrorSelected: #FFD8D8; + --colorProcessStepBackgroundErrorSecondary: #FF9F9F; + --colorProcessStepBackgroundWarningDefault: #FFF5ED; + --colorProcessStepBackgroundWarningSelected: #FFDABF; + --colorProcessStepBackgroundWarningSecondary: #FFA461; + --colorProcessStepBackgroundSecondaryDefault: #F5F6F8; + --colorProcessStepBorderErrorDefault: #FF9F9F; + --colorProcessStepBorderErrorHover: #FF5D5D; + --colorProcessStepBorderErrorSelected: #D63D3D; + --colorProcessStepBorderWarningDefault: #FFA461; + --colorProcessStepBorderWarningHover: #EA7325; + --colorProcessStepBorderWarningSelected: #C45317; + --colorProcessStepBorderDefault: #DEE1E6; + --colorProcessStepBorderDisabled: #DEE1E6; + --colorProcessStepBorderHover: #B2B9C5; + --colorProcessStepBorderSelected: #8A96A7; + --colorProcessStepTextDisabled: #8A96A7; + --colorProcessStepIconDefault: #282F38; + --colorProcessStepIconErrorPrimary: #D63D3D; + --colorProcessStepIconErrorSecondary: #AA3030; + --colorProcessStepIconWarningPrimary: #EA7325; + --colorProcessStepIconWarningSecondary: #C45317; + --colorCodeEditorBackground: #F5F6F8; + --colorCodeEditorForeground: #282F38; + --colorCodeEditorSelection: #DEE1E6; + --colorCodeEditorSelectionMatch: #DEE1E6; + --colorCodeEditorTextDefault: #282F38; + --colorCodeEditorTextHighlight: #59170D; + --colorCodeEditorTextHintHighlight: #00874D; + --colorCodeEditorTextGutter: #8A96A7; + --colorCodeEditorToolbarBackground: #DEE1E6; + --colorCodeEditorToolbarButtonHover: #B2B9C5; + --colorCodeEditorCodeIndentationMarkerColor: #DEE1E6; + --colorCodeEditorCodeIndentationMarkerActiveColor: #B2B9C5; + --colorCodeEditorCodeSelectedBackground: #DEE1E6; + --colorCodeEditorCodeLinenumberColor: #8A96A7; + --colorCodeEditorCodeCursorBorderLeft: #282F38; + --colorCodeEditorCodeCursorBorderRight: #B2B9C5; + --colorCodeEditorCodeActivelineBackground: rgb(from #68778D r g b / 0.15); + --colorCodeEditorCodeFatCursorBackground: #B2B9C5; + --colorCodeEditorCodeAtomNumberKeywordVariableAttributeQuoteColor: #093051; + --colorCodeEditorCodeVariableColor: #7043B7; + --colorCodeEditorCodePropertyColor: #59170D; + --colorCodeEditorCodePunctuationUnitNegativeColor: #AA3030; + --colorCodeEditorCodeStringOperatorColor: #00502E; + --colorCodeEditorCodePositiveColor: #00361F; + --colorCodeEditorCodeVariable2Variable3String2UrlColor: #155EA0; + --colorCodeEditorCodeDefTagBuiltinQualifierHeaderEmColor: #AA3030; + --colorCodeEditorCodeBracketCommentColor: #8A96A7; + --colorCodeEditorCodeErrorInvalidcharColor: #802424; + --colorCodeEditorCodeMatchingbracketColor: #16191F; + --colorCodeEditorCodeHintsBackground: #DEE1E6; + --colorCodeEditorCodeHint: #282F38; + --colorCodeEditorCodeHintActiveBackground: #DEE1E6; + --colorCodeEditorCodeSyntaxTagName: #006A3D; + --colorCodeEditorCodeSyntaxComment: #515D70; + --colorCodeEditorCodeSyntaxBracket: #515D70; + --colorCodeEditorCodeSyntaxClassName: #7043B7; + --colorCodeEditorCodeSyntaxPropertyName: #7043B7; + --colorCodeEditorCodeSyntaxVariableName: #155EA0; + --colorCodeEditorCodeSyntaxAttributeName: #155EA0; + --colorCodeEditorCodeSyntaxNumber: #155EA0; + --colorCodeEditorCodeSyntaxOperator: #155EA0; + --colorCodeEditorCodeSyntaxKeyword: #AA3030; + --colorCodeEditorCodeSyntaxTypeName: #AA3030; + --colorCodeEditorCodeSyntaxTypeOperator: #AA3030; + --colorCodeEditorCodeSyntaxString: #093051; + --colorCodeEditorCodeSyntaxMeta: #093051; + --colorCodeEditorCodeSyntaxRegexp: #093051; + --colorCodeEditorCodeSyntaxName: #006A3D; + --colorCodeEditorCodeSyntaxQuote: #006A3D; + --colorCodeEditorCodeSyntaxHeading: #2E2E2E; + --colorCodeEditorCodeSyntaxStrong: #2E2E2E; + --colorCodeEditorCodeSyntaxEmphasis: #2E2E2E; + --colorCodeEditorCodeSyntaxDeleted: #AA3030; + --colorCodeEditorCodeSyntaxDeletedBackground: #FFF3F3; + --colorCodeEditorCodeSyntaxAtom: #A13C14; + --colorCodeEditorCodeSyntaxBool: #A13C14; + --colorCodeEditorCodeSyntaxSpecialVariableName: #A13C14; + --colorCodeEditorCodeSyntaxUrl: #093051; + --colorCodeEditorCodeSyntaxEscape: #093051; + --colorCodeEditorCodeSyntaxLink: #093051; + --colorCodeEditorCodeSyntaxInvalid: #AA3030; + --colorPaginationBackgroundActive: #282F38; + --colorPaginationBackgroundDefault: #FFFFFF; + --colorPaginationBackgroundDisabled: #FFFFFF; + --colorPaginationBackgroundHover: #8A96A7; + --colorPaginationIconActive: #FFFFFF; + --colorPaginationIconDefault: #282F38; + --colorPaginationIconDisabled: #8A96A7; + --colorPaginationIconHover: #FFFFFF; + --colorPaginationTextActive: #FFFFFF; + --colorPaginationTextDefault: #282F38; + --colorPaginationTextHover: #FFFFFF; + --colorPaginationTextDisabled: #8A96A7; + --colorFormLegendBackgroundRest: #F5F6F8; + --colorFormLegendBackgroundHover: #DEE1E6; + --colorTableHeaderBackground: rgb(from #F5F6F8 r g b / 0.3); + --colorTableBackgroundSuccessDefault: #B8E7D3; + --colorTableBackgroundSuccessHover: rgb(from #5ECD9E r g b / 0.75); + --colorTableBackgroundDangerDefault: #FFD8D8; + --colorTableBackgroundDangerHover: rgb(from #FF9F9F r g b / 0.75); + --colorTableTextDanger: #802424; + --colorCanvasBackground: #F5F6F8; + --colorCanvasPattern: #DEE1E6; + --colorSearchBackgroundResultHover: #F5F6F8; + --colorSearchBackgroundResultPressed: #DEE1E6; + --colorSearchBackgroundNotice: #F5F6F8; + --colorPortalLinkTextHover: #155EA0; + --colorPortalChipBackground: #E1E1E1; + --colorPortalPopoverBackground: #FFFFFF; + --colorPortalCardBackground: #FFFFFF; + --colorPortalCardContentDisabled: #757575; + --colorPortalCardContentText: #5C5C5C; + --colorPortalLogoBackground: transparent; + --shadowExtraSmall: 0 1px 8px 0 rgba(0,0,0,0.02), 0 1px 2px 0 rgba(0,0,0,0.06); + --shadowSmall: 0 1px 1px 0 rgba(0,0,0,0.12), 0 1px 8px 0 rgba(0,0,0,0.06); + --shadowMedium: 0 1px 4px 0 rgba(0,0,0,0.04), 0 6px 12px 0 rgba(0,0,0,0.1); + --shadowLarge: 0 2px 6px 0 rgba(0,0,0,0.1), 0 14px 32px -4px rgba(0,0,0,0.12); + --shadowDrawer: -4px 0 16px 0 rgba(0,0,0,0.08), -12px 4px 24px -4px rgba(0,0,0,0.1); + --shadowLayoutPrimary: -2px -2px 6px 0 rgba(0,0,0,0.06); + --shadowFocused: 0 0 0 1px rgb(26,119,202), 0 0 0 5px rgba(26,119,202,0.32); + --shadowFocusedInset: inset 0 0 0 4px rgba(26,119,202,0.32); +} diff --git a/src/styles/design-system-tokens/textTheme.css b/src/styles/design-system-tokens/textTheme.css new file mode 100644 index 0000000000..41862a7c9d --- /dev/null +++ b/src/styles/design-system-tokens/textTheme.css @@ -0,0 +1,36 @@ +/** + * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. + * Generated from the design system's source tokens - do not edit. + * + * Include globals.css, textTheme.css and the stylesheet for each theme. The theme + * stylesheets are selected by the data-theme attribute, set on whichever element you want + * themed - usually , but any element works. globals.css and textTheme.css are + * theme-independent and always apply. + */ + +:root { + --fontFamilyCode: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace; + --fontFamilyDefault: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + --textHeading2xLarge: 600 3rem/3.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textHeadingXLarge: 600 2rem/2.75rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textHeadingLarge: 600 1.5rem/2rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textHeadingMedium: 600 1.25rem/1.75rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textHeadingSmall: 600 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textHeadingXSmall: 600 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyRegularLarge: 400 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyRegularMedium: 400 0.875rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyRegularSmall: 400 0.8125rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyRegularXSmall: 400 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyBoldLarge: 600 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyBoldMedium: 600 0.875rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyBoldSmall: 600 0.8125rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textBodyBoldXSmall: 600 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); + --textCodeRegularLarge: 400 1rem/1.5rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeRegularMedium: 400 0.875rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeRegularSmall: 400 0.8125rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeRegularXSmall: 400 0.75rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeBoldLarge: 600 1rem/1.5rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeBoldMedium: 600 0.875rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeBoldSmall: 600 0.8125rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); + --textCodeBoldXSmall: 600 0.75rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); +} diff --git a/src/themes/octopus/components/HtmlHead.astro b/src/themes/octopus/components/HtmlHead.astro index 6360231e25..e5d5fcb589 100644 --- a/src/themes/octopus/components/HtmlHead.astro +++ b/src/themes/octopus/components/HtmlHead.astro @@ -12,10 +12,16 @@ import SignedInScript from '@components/SignedInScript.astro'; // lightTheme and darkTheme are selected by the data-theme attribute on - // rendered as a default by layouts/Default.astro, then resolved before first // paint by . See src/lib/theme.ts. -import '@octopusdeploy/design-system-tokens/css/globals.css'; -import '@octopusdeploy/design-system-tokens/css/textTheme.css'; -import '@octopusdeploy/design-system-tokens/css/lightTheme.css'; -import '@octopusdeploy/design-system-tokens/css/darkTheme.css'; +// +// SPIKE: the slate theme isn't published to npm yet, so these are copied from an +// unpublished build (OctopusDeploy repo, frontend/packages/design-system-tokens/src/generated, +// commit ba3902e78c7). The slate files' selectors were rewritten from slateLight/slateDark to +// light/dark so the existing theme switching works unchanged. Once a package version with +// slate is published, delete src/styles/design-system-tokens and import from the package again. +import '../../../styles/design-system-tokens/globals.css'; +import '../../../styles/design-system-tokens/textTheme.css'; +import '../../../styles/design-system-tokens/slateLightTheme.css'; +import '../../../styles/design-system-tokens/slateDarkTheme.css'; // Site styles, imported so that Vite will bundle/minify/content-hash them. // Note: @font-face rules in vars.css point at public/docs/css/fa/webfonts, which stay in From 39641526e7b3abbd07854e1c67012f7f0951eb4d Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Wed, 4 Nov 2026 14:11:31 +1300 Subject: [PATCH 2/7] Spike: use the slate search result hover token The rest of this change landed in main via #3552. The search result hover was left as a blue tint there because colorSearchBackgroundResultHover isn't in the published tokens package yet, but the slate stylesheets copied on this branch do define it. Co-Authored-By: Claude Opus 5.5 --- src/styles/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/main.css b/src/styles/main.css index 465e582b57..83ba51ec21 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -1857,7 +1857,7 @@ html:has(.site-search__wrapper.is-active) { } .site-search-results__item:hover { - --hover-color: rgba(13, 128, 216, 0.07); + --hover-color: var(--colorSearchBackgroundResultHover); background-color: var(--hover-color); border-color: var(--hover-color); } From d65a298fc3c1ce167670f54bc36e8ad5263a0c9f Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Tue, 1 Dec 2026 11:29:56 +1300 Subject: [PATCH 3/7] Use the published slate theme from the design system tokens package Octopus packages now come from Octopus's public Artifactory feed, which has @octopusdeploy/design-system-tokens 2027.1.1253 with the slate themes. Import them from the package and delete the copied token files. The package scopes the slate themes to data-theme="slateLight"/"slateDark", so data-theme now carries those values. The stored preference, the change event and the Theme type still use light/dark, so readers' saved choices carry over. Co-Authored-By: Claude Opus 5.5 --- .npmrc | 4 +- astro.config.mjs | 2 +- cspell.json | 1 - package.json | 2 +- pnpm-lock.yaml | 10 +- src/layouts/Api.astro | 2 +- src/layouts/Cli.astro | 2 +- src/layouts/Default.astro | 2 +- src/lib/theme.ts | 25 +- src/scripts/theme-switcher.ts | 6 +- src/styles/design-system-tokens/globals.css | 202 ------- .../design-system-tokens/slateDarkTheme.css | 565 ------------------ .../design-system-tokens/slateLightTheme.css | 565 ------------------ src/styles/design-system-tokens/textTheme.css | 36 -- src/styles/main.css | 8 +- src/styles/vars.css | 2 +- src/themes/octopus/components/HtmlHead.astro | 20 +- .../octopus/components/ThemeScript.astro | 4 +- tests/theme.spec.ts | 12 +- 19 files changed, 61 insertions(+), 1409 deletions(-) delete mode 100644 src/styles/design-system-tokens/globals.css delete mode 100644 src/styles/design-system-tokens/slateDarkTheme.css delete mode 100644 src/styles/design-system-tokens/slateLightTheme.css delete mode 100644 src/styles/design-system-tokens/textTheme.css diff --git a/.npmrc b/.npmrc index 6c9c2832d1..4edea00b15 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,5 @@ # Expose Astro dependencies for `pnpm` users shamefully-hoist=true -package-manager-strict=false \ No newline at end of file +package-manager-strict=false +# Octopus packages are published to Octopus's public Artifactory, not npmjs.org +@octopusdeploy:registry=https://packages.octopushq.com/artifactory/api/npm/octopusdeploy-npm-ga-public/ diff --git a/astro.config.mjs b/astro.config.mjs index 3baf67563c..fe1478b162 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -33,7 +33,7 @@ export default defineConfig({ markdown: { shikiConfig: { // Every token carries both sets. main.css picks the dark one up - // under html[data-theme='dark'] + // under html[data-theme='slateDark'] themes: { light: 'light-plus', dark: 'dark-plus' diff --git a/cspell.json b/cspell.json index 9f9baeef90..1bd08eee1b 100644 --- a/cspell.json +++ b/cspell.json @@ -64,7 +64,6 @@ ".github/**", "src/pages/docs/api/**", "src/pages/report/**", - "src/styles/design-system-tokens/**", "src/fallback/**", "src/scripts/**", "tests/**", diff --git a/package.json b/package.json index 75b682802b..4102cb05c5 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "@astrojs/markdown-satteri": "^0.4.6", "@astrojs/mdx": "^8.1.2", - "@octopusdeploy/design-system-tokens": "^2026.3.9109", + "@octopusdeploy/design-system-tokens": "^2027.1.1253", "astro": "^7.4.5", "astro-accelerator-utils": "^0.3.116", "glob": "^14.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fb0a0b3ba..bc2e6f68ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,8 +25,8 @@ importers: specifier: ^8.1.2 version: 8.1.2(@astrojs/markdown-satteri@0.4.6)(astro@7.4.5(@types/node@24.10.1)(esbuild@0.28.2)(yaml@2.9.1)) '@octopusdeploy/design-system-tokens': - specifier: ^2026.3.9109 - version: 2026.3.9109 + specifier: ^2027.1.1253 + version: 2027.1.1253 astro: specifier: ^7.4.5 version: 7.4.5(@types/node@24.10.1)(esbuild@0.28.2)(yaml@2.9.1) @@ -834,8 +834,8 @@ packages: '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 - '@octopusdeploy/design-system-tokens@2026.3.9109': - resolution: {integrity: sha512-d5iwzww6Y/FV1188Db9Yz/9VDFKx4+evKbGNhv153iPIFU25PFz44bBIlZrR0yjZc9zXVmiZPcXnGYvcZiqMyw==} + '@octopusdeploy/design-system-tokens@2027.1.1253': + resolution: {integrity: sha512-Z/v7zYEr1Zu1Lp6t4Nx6t6EjX7BZ/BoPLYetpQVDO6a+UooOnY7elmB4GomPqMXfHHrp3S4DVADrL3tOGM1fpA==, tarball: https://packages.octopushq.com/artifactory/api/npm/octopusdeploy-npm-ga-public/@octopusdeploy/design-system-tokens/-/@octopusdeploy/design-system-tokens-2027.1.1253.tgz} '@oslojs/encoding@1.1.0': resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==} @@ -3474,7 +3474,7 @@ snapshots: '@tybys/wasm-util': 0.10.3 optional: true - '@octopusdeploy/design-system-tokens@2026.3.9109': {} + '@octopusdeploy/design-system-tokens@2027.1.1253': {} '@oslojs/encoding@1.1.0': {} diff --git a/src/layouts/Api.astro b/src/layouts/Api.astro index 54552b1bbf..fc2aab5050 100644 --- a/src/layouts/Api.astro +++ b/src/layouts/Api.astro @@ -74,7 +74,7 @@ const searchIndex = searchIndexAttributes(Astro.url.pathname, frontmatter); dir={textDirection} lang={lang} class="initial" - data-theme="light" + data-theme="slateLight" data-signed-in="false" > is always exactly 'light' or 'dark' - never absent, - * never 'system'. The design token stylesheets key off [data-theme='light'] and - * [data-theme='dark'] and define nothing at :root, so the attribute has to be - * there unconditionally: layouts/Default.astro renders 'light' as the server - * default, and ThemeScript.astro resolves the real value before first paint. + * `data-theme` on is always exactly 'slateLight' or 'slateDark' - never + * absent, never 'system'. Those are the selectors the slate design token + * stylesheets key off, and they define nothing at :root, so the attribute has + * to be there unconditionally: layouts/Default.astro renders 'slateLight' as + * the server default, and ThemeScript.astro resolves the real value before first paint. * With scripting disabled the default stands and the tokens still resolve. * * This holds for anything rendered through layouts/Default.astro; the * src/pages/report/*.astro pages build their own and sit outside it. * + * Everything else - the stored preference, `data-theme-preference`, the + * change event and the Theme type - uses the plain 'light' / 'dark' names. + * Only the attribute carries the token theme's name; see THEME_ATTRIBUTE_VALUES. + * * `data-theme-preference` records what the user actually chose, including * 'system'. Nothing styles off it today; it exists so a future three-state * control can render the right position. @@ -59,3 +63,14 @@ export type ThemePreference = Theme | 'system'; export function isTheme(value: unknown): value is Theme { return value === 'light' || value === 'dark'; } + +/** The `data-theme` value for each theme: the design token theme's selector. */ +export const THEME_ATTRIBUTE_VALUES = { + light: 'slateLight', + dark: 'slateDark', +} as const satisfies Record; + +/** Reads a `data-theme` value back to a Theme. Anything unrecognised is light. */ +export function themeFromAttribute(value: string | null): Theme { + return value === THEME_ATTRIBUTE_VALUES.dark ? 'dark' : 'light'; +} diff --git a/src/scripts/theme-switcher.ts b/src/scripts/theme-switcher.ts index 0de5a74521..e560f9c951 100644 --- a/src/scripts/theme-switcher.ts +++ b/src/scripts/theme-switcher.ts @@ -2,6 +2,8 @@ import { COLOR_SCHEME_QUERY, isTheme, THEME_ATTRIBUTE, + THEME_ATTRIBUTE_VALUES, + themeFromAttribute, THEME_CHANGE_EVENT, THEME_PREFERENCE_ATTRIBUTE, THEME_STORAGE_KEY, @@ -53,7 +55,7 @@ function resolve(preference: ThemePreference): Theme { } function currentTheme(): Theme { - return root.getAttribute(THEME_ATTRIBUTE) === 'dark' ? 'dark' : 'light'; + return themeFromAttribute(root.getAttribute(THEME_ATTRIBUTE)); } let transitionTimer: ReturnType | undefined; @@ -83,7 +85,7 @@ function syncImageVariants(preference: ThemePreference) { function apply(preference: ThemePreference) { const theme = resolve(preference); if (theme !== currentTheme()) markTransition(); - root.setAttribute(THEME_ATTRIBUTE, theme); + root.setAttribute(THEME_ATTRIBUTE, THEME_ATTRIBUTE_VALUES[theme]); root.setAttribute(THEME_PREFERENCE_ATTRIBUTE, preference); syncImageVariants(preference); root.dispatchEvent( diff --git a/src/styles/design-system-tokens/globals.css b/src/styles/design-system-tokens/globals.css deleted file mode 100644 index adc652a374..0000000000 --- a/src/styles/design-system-tokens/globals.css +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. - * Generated from the design system's source tokens - do not edit. - * - * Include globals.css, textTheme.css and the stylesheet for each theme. The theme - * stylesheets are selected by the data-theme attribute, set on whichever element you want - * themed - usually , but any element works. globals.css and textTheme.css are - * theme-independent and always apply. - */ - -:root { - --colorScalesNavy100: #F4F6F8; - --colorScalesNavy200: #DAE2E9; - --colorScalesNavy300: #A9BBCB; - --colorScalesNavy400: #7C98B4; - --colorScalesNavy500: #557999; - --colorScalesNavy600: #3E607D; - --colorScalesNavy700: #2E475D; - --colorScalesNavy800: #1F303F; - --colorScalesNavy900: #111A23; - --colorScalesBlue100: #F2F8FD; - --colorScalesBlue200: #CDE4F7; - --colorScalesBlue300: #87BFEC; - --colorScalesBlue400: #449BE1; - --colorScalesBlue500: #1A77CA; - --colorScalesBlue600: #155EA0; - --colorScalesBlue700: #0F4778; - --colorScalesBlue800: #093051; - --colorScalesBlue900: #041A2D; - --colorScalesGreen100: #EEFAF5; - --colorScalesGreen200: #B8E7D3; - --colorScalesGreen300: #5ECD9E; - --colorScalesGreen400: #00AB62; - --colorScalesGreen500: #00874D; - --colorScalesGreen600: #006A3D; - --colorScalesGreen700: #00502E; - --colorScalesGreen800: #00361F; - --colorScalesGreen900: #001E11; - --colorScalesYellow100: #FFF7D9; - --colorScalesYellow200: #FFDF62; - --colorScalesYellow300: #E5B203; - --colorScalesYellow400: #B98F02; - --colorScalesYellow500: #927002; - --colorScalesYellow600: #745801; - --colorScalesYellow700: #584201; - --colorScalesYellow800: #3B2C00; - --colorScalesYellow900: #201800; - --colorScalesOrange100: #FFF5ED; - --colorScalesOrange200: #FFDABF; - --colorScalesOrange300: #FFA461; - --colorScalesOrange400: #EA7325; - --colorScalesOrange500: #C45317; - --colorScalesOrange600: #A13C14; - --colorScalesOrange700: #7E2812; - --colorScalesOrange800: #59170D; - --colorScalesOrange900: #340B07; - --colorScalesRed100: #FFF3F3; - --colorScalesRed200: #FFD8D8; - --colorScalesRed300: #FF9F9F; - --colorScalesRed400: #FF5D5D; - --colorScalesRed500: #D63D3D; - --colorScalesRed600: #AA3030; - --colorScalesRed700: #802424; - --colorScalesRed800: #571818; - --colorScalesRed900: #310E0E; - --colorScalesPurple100: #F8F5FD; - --colorScalesPurple200: #E7DEF8; - --colorScalesPurple300: #C5AEEE; - --colorScalesPurple400: #A683E5; - --colorScalesPurple500: #895ED3; - --colorScalesPurple600: #7043B7; - --colorScalesPurple700: #572B97; - --colorScalesPurple800: #3B1D66; - --colorScalesPurple900: #21103A; - --colorScalesSlate100: #F5F6F8; - --colorScalesSlate200: #DEE1E6; - --colorScalesSlate300: #B2B9C5; - --colorScalesSlate400: #8A96A7; - --colorScalesSlate500: #68778D; - --colorScalesSlate600: #515D70; - --colorScalesSlate700: #3D4653; - --colorScalesSlate800: #282F38; - --colorScalesSlate900: #16191F; - --colorScalesGrey100: #F7F7F7; - --colorScalesGrey200: #E1E1E1; - --colorScalesGrey300: #B9B9B9; - --colorScalesGrey400: #959595; - --colorScalesGrey500: #757575; - --colorScalesGrey600: #5C5C5C; - --colorScalesGrey700: #454545; - --colorScalesGrey800: #2E2E2E; - --colorScalesGrey900: #191919; - --colorScalesBlack: #000000; - --colorScalesWhite: #FFFFFF; - --brandCyan: #0D80D8; - --brandGreen: #00B065; - --brandGrey: #113049; - --fontFamilyPrimary: Roboto; - --fontFamilySecondary: Roboto Mono; - --fontWeight400: 400; - --fontWeight500: 500; - --fontWeight600: 600; - --fontWeight700: 700; - --fontWeightBold: Bold; - --fontWeightRegular: Regular; - --fontWeightSemi-bold: SemiBold; - --fontSizeBase: 1rem; - --fontSizeXSmall: 0.75rem; - --fontSizeSmall: 0.8125rem; - --fontSizeMedium: 0.875rem; - --fontSizeLarge: 1.25rem; - --fontSizeXLarge: 1.5rem; - --fontSize3xLarge: 3rem; - --fontSize2xLarge: 2rem; - --letterSpacingNone: 0; - --letterSpacingWide: 0.006rem; - --letterSpacingWider: 0.013rem; - --letterSpacingTight: -0.006rem; - --lineHeightXSmall: 1.25rem; - --lineHeightSmall: 1.5rem; - --lineHeightMedium: 1.75rem; - --lineHeightLarge: 2rem; - --lineHeightXLarge: 2.5rem; - --lineHeight2xLarge: 2.75rem; - --lineHeight3xLarge: 3.5rem; - --space0: 0; - --space1: 0.063rem; - --space2: 0.125rem; - --space4: 0.25rem; - --space6: 0.375rem; - --space8: 0.5rem; - --space12: 0.75rem; - --space16: 1rem; - --space24: 1.5rem; - --space32: 2rem; - --space40: 2.5rem; - --space48: 3rem; - --space56: 3.5rem; - --space64: 4rem; - --space72: 4.5rem; - --space80: 5rem; - --borderRadiusNone: 0px; - --borderRadiusCircle: 9999px; - --borderRadiusExtraSmall: 2px; - --borderRadiusSmall: 4px; - --borderRadiusLarge: 8px; - --borderRadiusExtraLarge: 16px; - --borderRadiusMedium: 6px; - --opacity0: 0px; - --opacity8: 8px; - --opacity12: 12px; - --opacity16: 16px; - --opacity24: 24px; - --opacity32: 32px; - --opacity40: 40px; - --opacity100: 100px; - --effect0: 0px; - --effect1: 1px; - --effect2: 2px; - --effect4: 4px; - --effect6: 6px; - --effect8: 8px; - --effect12: 12px; - --effect16: 16px; - --effect24: 24px; - --effect32: 32px; - --effect40: 40px; - --effect48: 48px; - --effect56: 56px; - --effect64: 64px; - --effect72: 72px; - --effect80: 80px; - --effect92: 92px; - --effect100: 100px; - --effect-2: -2px; - --effect-4: -4px; - --effect-6: -6px; - --effect-8: -8px; - --effect-12: -12px; - --borderWidth1: 1px; - --borderWidth2: 2px; - --borderWidth3: 3px; - --borderWidth4: 4px; - --borderWidthNone: 0px; - --fontFamilySystem-ui: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; - --fontFamilySystem-ui-monospace: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace; - --paragraphSpacing0: 0px; - --textCaseNone: none; - --textCaseUppercase: uppercase; - --textCaseLowercase: lowercase; - --textDecorationNone: none; - --textDecorationUnderline: underline; - --paragraphIndent0: 0px; - --dialogSidePanelSlideDuration: 300ms; - --dialogSidePanelFadeDuration: 100ms; - --dialogSidePanelWidth: 400px; - --dialogMainPanelWidthSmall: 480px; - --dialogMainPanelWidthMedium: 600px; - --dialogMainPanelWidthLarge: 800px; - --dialogMainPanelWidthExtraLarge: 1000px; - --dialogMaxHeight: 800px; -} diff --git a/src/styles/design-system-tokens/slateDarkTheme.css b/src/styles/design-system-tokens/slateDarkTheme.css deleted file mode 100644 index 1da023d89d..0000000000 --- a/src/styles/design-system-tokens/slateDarkTheme.css +++ /dev/null @@ -1,565 +0,0 @@ -/** - * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. - * Generated from the design system's source tokens - do not edit. - * - * Include globals.css, textTheme.css and the stylesheet for each theme. The theme - * stylesheets are selected by the data-theme attribute, set on whichever element you want - * themed - usually , but any element works. globals.css and textTheme.css are - * theme-independent and always apply. - */ - -[data-theme="dark"] { - --colorTextLinkDefault: #DEE1E6; - --colorTextLinkHover: #8A96A7; - --colorTextPrimary: #F5F6F8; - --colorTextSecondary: #B2B9C5; - --colorTextTertiary: #8A96A7; - --colorTextDisabled: #515D70; - --colorTextInversePrimary: #16191F; - --colorTextInverseSecondary: #282F38; - --colorTextSelected: #8A96A7; - --colorTextInfo: #DEE1E6; - --colorTextSuccess: #5ECD9E; - --colorTextWarning: #FFDF62; - --colorTextDanger: #FF9F9F; - --colorTextFeature: #C5AEEE; - --colorDeprecatedTextWarning: #FFA461; - --colorDeprecatedIconWarning: #EA7325; - --colorDeprecatedBorderWarning: #EA7325; - --colorDeprecatedBackgroundWarning: #7E2812; - --colorIconLinkDefault: #B2B9C5; - --colorIconLinkHover: #8A96A7; - --colorIconPrimary: #F5F6F8; - --colorIconSecondary: #B2B9C5; - --colorIconTertiary: #8A96A7; - --colorIconDisabled: #515D70; - --colorIconInversePrimary: #16191F; - --colorIconInverseSecondary: #282F38; - --colorIconSelected: #DEE1E6; - --colorIconInfo: #B2B9C5; - --colorIconSuccess: #00AB62; - --colorIconWarning: #E5B203; - --colorIconDanger: #FF5D5D; - --colorIconFeature: #A683E5; - --colorBorderPrimary: #3D4653; - --colorBorderSecondary: #282F38; - --colorBorderTertiary: #515D70; - --colorBorderBold: #8A96A7; - --colorBorderLinkDefault: #B2B9C5; - --colorBorderLinkHover: #F5F6F8; - --colorBorderDisabled: #515D70; - --colorBorderInversePrimary: #DEE1E6; - --colorBorderInverseSecondary: #F5F6F8; - --colorBorderSelected: #8A96A7; - --colorBorderInfo: #449BE1; - --colorBorderSuccess: #00AB62; - --colorBorderWarning: #E5B203; - --colorBorderDanger: #FF5D5D; - --colorBorderFeature: #A683E5; - --colorBorderDefault: #68778D; - --colorBackgroundPrimaryDefault: #16191F; - --colorBackgroundPrimaryHover: #282F38; - --colorBackgroundPrimaryPressed: #3D4653; - --colorBackgroundPrimaryTransparent: rgb(from #16191F r g b / 0.3); - --colorBackgroundTertiary: #3D4653; - --colorBackgroundDisabled: #3D4653; - --colorBackgroundSelected: #DEE1E6; - --colorBackgroundSecondaryDefault: #282F38; - --colorBackgroundSecondaryHover: #3D4653; - --colorBackgroundSecondaryPressed: #16191F; - --colorBackgroundSecondaryTransparent: rgb(from #16191F r g b / 0.3); - --colorBackgroundBold: #000000; - --colorBackgroundInfo: #0F4778; - --colorBackgroundSuccess: #00502E; - --colorBackgroundWarning: #745801; - --colorBackgroundDanger: #802424; - --colorBackgroundFeature: #572B97; - --colorBackgroundQuartaryDefault: #282F38; - --colorBackgroundQuartaryHover: #3D4653; - --colorBackgroundQuartaryPressed: #16191F; - --colorBackgroundInversePrimary: #FFFFFF; - --colorBackgroundInverseSecondary: #B2B9C5; - --colorBackgroundInverseSuccess: #00AB62; - --colorBackgroundInverseNeutral: #8A96A7; - --colorBackgroundInverseNeutralQuiet: #DEE1E6; - --colorBackgroundInverseInfo: #155EA0; - --colorBackgroundInverseWarning: #745801; - --colorBackgroundInverseDanger: #AA3030; - --colorBackgroundInverseFeature: #572B97; - --colorBackgroundDefault: rgb(from #16191F r g b / 0); - --colorBackgroundHover: #282F38; - --colorBackgroundNeutral: #282F38; - --colorBadgeBoldTextPrimary: #FFFFFF; - --colorBadgeBoldTextSecondary: #000000; - --colorBadgeBoldTextFeature: #3B1D66; - --colorBadgeBoldTextUpsell: #3B1D66; - --colorBadgeBoldIconPrimary: #FFFFFF; - --colorBadgeBoldIconSecondary: #000000; - --colorBadgeBoldIconFeature: #3B1D66; - --colorBadgeBoldIconUpsell: #3B1D66; - --colorBadgeBoldBackgroundNeutral: #8A96A7; - --colorBadgeBoldBackgroundInverseNeutral: #3D4653; - --colorBadgeBoldBackgroundInfo: #155EA0; - --colorBadgeBoldBackgroundSuccess: #006A3D; - --colorBadgeBoldBackgroundWarning: #927002; - --colorBadgeBoldBackgroundDanger: #AA3030; - --colorBadgeBoldBackgroundFeature: #C5AEEE; - --colorBadgeBoldBackgroundUpsell: #C5AEEE; - --colorBadgeSubtleTextNeutral: #B2B9C5; - --colorBadgeSubtleTextInfo: #CDE4F7; - --colorBadgeSubtleTextSuccess: #B8E7D3; - --colorBadgeSubtleTextWarning: #FFF7D9; - --colorBadgeSubtleTextDanger: #FFD8D8; - --colorBadgeSubtleTextFeature: #E7DEF8; - --colorBadgeSubtleTextUpsell: #E7DEF8; - --colorBadgeSubtleBorderNeutral: #3D4653; - --colorBadgeSubtleBorderInfo: #0F4778; - --colorBadgeSubtleBorderSuccess: #00502E; - --colorBadgeSubtleBorderWarning: #584201; - --colorBadgeSubtleBorderDanger: #802424; - --colorBadgeSubtleBorderFeature: #572B97; - --colorBadgeSubtleBorderUpsell: #572B97; - --colorBadgeSubtleIconNeutral: #B2B9C5; - --colorBadgeSubtleIconInfo: #87BFEC; - --colorBadgeSubtleIconSuccess: #5ECD9E; - --colorBadgeSubtleIconWarning: #E5B203; - --colorBadgeSubtleIconDanger: #FF9F9F; - --colorBadgeSubtleIconFeature: #C5AEEE; - --colorBadgeSubtleIconUpsell: #C5AEEE; - --colorBadgeSubtleBackgroundNeutral: #282F38; - --colorBadgeSubtleBackgroundInfo: #093051; - --colorBadgeSubtleBackgroundSuccess: #00361F; - --colorBadgeSubtleBackgroundWarning: #3B2C00; - --colorBadgeSubtleBackgroundDanger: #571818; - --colorBadgeSubtleBackgroundFeature: #3B1D66; - --colorBadgeSubtleBackgroundUpsell: #3B1D66; - --colorButtonTextPrimary: #16191F; - --colorButtonTextSecondary: #F5F6F8; - --colorButtonTextTertiaryDefault: #B2B9C5; - --colorButtonTextTertiaryHover: #F5F6F8; - --colorButtonTextTertiaryPressed: #F5F6F8; - --colorButtonTextDestructive: #FFFFFF; - --colorButtonTextQuietDefault: #8A96A7; - --colorButtonTextQuietHover: #B2B9C5; - --colorButtonTextQuietPressed: #B2B9C5; - --colorButtonTextNeutral: #B2B9C5; - --colorButtonTextDisabled: #515D70; - --colorButtonTextLoud: #16191F; - --colorButtonTextGhost: #F5F6F8; - --colorButtonIconPrimary: #16191F; - --colorButtonIconSecondary: #F5F6F8; - --colorButtonIconTertiaryDefault: #B2B9C5; - --colorButtonIconTertiaryHover: #F5F6F8; - --colorButtonIconTertiaryPressed: #F5F6F8; - --colorButtonIconQuietDefault: #8A96A7; - --colorButtonIconQuietHover: #B2B9C5; - --colorButtonIconQuietPressed: #B2B9C5; - --colorButtonIconNeutral: #B2B9C5; - --colorButtonIconDisabled: #515D70; - --colorButtonIconLoud: #16191F; - --colorButtonIconDestructive: #FFFFFF; - --colorButtonIconGhost: #F5F6F8; - --colorButtonBorderSecondary: #8A96A7; - --colorButtonBorderDisabled: #3D4653; - --colorButtonBackgroundDisabled: rgb(from #282F38 r g b / 0.56); - --colorButtonBackgroundPrimaryDefault: #F5F6F8; - --colorButtonBackgroundPrimaryHover: #B2B9C5; - --colorButtonBackgroundPrimaryPressed: #8A96A7; - --colorButtonBackgroundSecondaryDefault: rgb(from #8A96A7 r g b / 0); - --colorButtonBackgroundSecondaryHover: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundSecondaryPressed: rgb(from #8A96A7 r g b / 0.2); - --colorButtonBackgroundTertiaryDefault: rgb(from #8A96A7 r g b / 0.2); - --colorButtonBackgroundTertiaryHover: rgb(from #8A96A7 r g b / 0.28); - --colorButtonBackgroundTertiaryPressed: rgb(from #8A96A7 r g b / 0.36); - --colorButtonBackgroundNeutralDefault: rgb(from #8A96A7 r g b / 0.2); - --colorButtonBackgroundNeutralHover: rgb(from #8A96A7 r g b / 0.28); - --colorButtonBackgroundNeutralPressed: rgb(from #8A96A7 r g b / 0.36); - --colorButtonBackgroundQuietDefault: rgb(from #8A96A7 r g b / 0); - --colorButtonBackgroundQuietHover: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundQuietPressed: rgb(from #000000 r g b / 0.4); - --colorButtonBackgroundLoudDefault: #DEE1E6; - --colorButtonBackgroundLoudHover: #B2B9C5; - --colorButtonBackgroundLoudPressed: #8A96A7; - --colorButtonBackgroundDestructiveDefault: #D63D3D; - --colorButtonBackgroundDestructiveHover: #AA3030; - --colorButtonBackgroundDestructivePressed: #802424; - --colorButtonBackgroundGhostDefault: rgb(from #8A96A7 r g b / 0); - --colorButtonBackgroundGhostHover: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundGhostPressed: rgb(from #8A96A7 r g b / 0.2); - --colorButtonFocus: #B2B9C5; - --colorCalloutTextInfo: #F5F6F8; - --colorCalloutTextSuccess: #B8E7D3; - --colorCalloutTextWarning: #FFF7D9; - --colorCalloutTextDanger: #FFD8D8; - --colorCalloutTextFeature: #E7DEF8; - --colorCalloutTextBody: #DEE1E6; - --colorCalloutBorderInfo: #8A96A7; - --colorCalloutBorderSuccess: #00AB62; - --colorCalloutBorderWarning: #B98F02; - --colorCalloutBorderDanger: #FF5D5D; - --colorCalloutBorderFeature: #A683E5; - --colorCalloutBorderDefault: #557999; - --colorCalloutBorderUpsell: linear-gradient(180deg, #1A77CA 0%, #895ED3 100%); - --colorCalloutIconInfo: #B2B9C5; - --colorCalloutIconSuccess: #5ECD9E; - --colorCalloutIconWarning: #FFDF62; - --colorCalloutIconDanger: #FF9F9F; - --colorCalloutIconFeature: #C5AEEE; - --colorCalloutBackgroundInfoDefault: rgb(from #8A96A7 r g b / 0.16); - --colorCalloutBackgroundInfoHover: rgb(from #8A96A7 r g b / 0.24); - --colorCalloutBackgroundInfoPressed: rgb(from #8A96A7 r g b / 0.32); - --colorCalloutBackgroundSuccessDefault: rgb(from #00361F r g b / 0.75); - --colorCalloutBackgroundSuccessHover: rgb(from #006A3D r g b / 0.48); - --colorCalloutBackgroundSuccessPressed: rgb(from #006A3D r g b / 0.32); - --colorCalloutBackgroundWarningDefault: rgb(from #584201 r g b / 0.9); - --colorCalloutBackgroundWarningHover: rgb(from #745801 r g b / 0.56); - --colorCalloutBackgroundWarningPressed: rgb(from #745801 r g b / 0.4); - --colorCalloutBackgroundDangerDefault: rgb(from #571818 r g b / 0.8); - --colorCalloutBackgroundDangerHover: rgb(from #AA3030 r g b / 0.48); - --colorCalloutBackgroundDangerPressed: rgb(from #AA3030 r g b / 0.32); - --colorCalloutBackgroundFeatureDefault: rgb(from #3B1D66 r g b / 0.75); - --colorCalloutBackgroundFeatureHover: rgb(from #7043B7 r g b / 0.48); - --colorCalloutBackgroundFeaturePressed: rgb(from #7043B7 r g b / 0.32); - --colorCalloutBackgroundUpsell: linear-gradient(95deg, rgb(from #0F4778 r g b / 0.5) 0%, rgb(from #572B97 r g b / 0.5) 100%); - --colorCalloutCodeBackground: #B2B9C5; - --colorCardBackgroundPrimaryDefault: #282F38; - --colorCardBackgroundSecondaryDefault: rgb(from #16191F r g b / 0); - --colorCardBackgroundSecondaryHover: rgb(from #282F38 r g b / 0.64); - --colorCardChartBackgroundDefault: rgb(from #282F38 r g b / 0.3); - --colorCardChartBackgroundHover: rgb(from #282F38 r g b / 0.5); - --colorCarouselTextPrimary: #FFFFFF; - --colorCarouselIconDefault: rgb(from #B2B9C5 r g b / 0.32); - --colorCarouselIconHover: rgb(from #B2B9C5 r g b / 0.72); - --colorCarouselIconSelected: #449BE1; - --colorCarouselBackgroundPrimary: #16191F; - --colorChipOutlinedBorderPrimary: #7C98B4; - --colorChipOutlinedBorderSecondary: #A683E5; - --colorChipOutlinedBorderInfo: #449BE1; - --colorChipOutlinedBorderSuccess: #00AB62; - --colorChipOutlinedBorderWarning: #B98F02; - --colorChipOutlinedBorderDanger: #FF5D5D; - --colorChipOutlinedTextPrimary: #8A96A7; - --colorChipOutlinedTextSecondary: #A683E5; - --colorChipOutlinedTextInfo: #449BE1; - --colorChipOutlinedTextSuccess: #00AB62; - --colorChipOutlinedTextWarning: #B98F02; - --colorChipOutlinedTextDanger: #FF5D5D; - --colorChipOutlinedIconPrimary: #8A96A7; - --colorChipOutlinedIconSecondary: #A683E5; - --colorChipOutlinedIconInfo: #449BE1; - --colorChipOutlinedIconSuccess: #00AB62; - --colorChipOutlinedIconWarning: #B98F02; - --colorChipOutlinedIconDanger: #FF5D5D; - --colorChipFilledTextPrimary: #DEE1E6; - --colorChipFilledTextSecondary: #E7DEF8; - --colorChipFilledTextInfo: #CDE4F7; - --colorChipFilledTextSuccess: #B8E7D3; - --colorChipFilledTextWarning: #FFDF62; - --colorChipFilledTextDanger: #FFD8D8; - --colorChipFilledIconPrimary: #DEE1E6; - --colorChipFilledIconSecondary: #E7DEF8; - --colorChipFilledIconInfo: #CDE4F7; - --colorChipFilledIconSuccess: #B8E7D3; - --colorChipFilledIconWarning: #FFDF62; - --colorChipFilledIconDanger: #FFD8D8; - --colorChipFilledBackgroundPrimary: #3D4653; - --colorChipFilledBackgroundSecondary: #572B97; - --colorChipFilledBackgroundInfo: #0F4778; - --colorChipFilledBackgroundSuccess: #00502E; - --colorChipFilledBackgroundWarning: #584201; - --colorChipFilledBackgroundDanger: #802424; - --colorChipTextPrimary: #FFFFFF; - --colorChipTextInverse: #282F38; - --colorChipIconPrimary: #FFFFFF; - --colorChipIconWarning: #C45317; - --colorChipIconInverse: #FFFFFF; - --colorChipBackgroundPrimary: #3D4653; - --colorChipBackgroundSecondary: #155EA0; - --colorChipBackgroundSuccessful: #00874D; - --colorChipBackgroundDanger: #D63D3D; - --colorChipBorderPrimary: #515D70; - --colorCodeReviewBackgroundPrimaryDefault: #16191F; - --colorCodeReviewBackgroundPrimaryMuted: #282F38; - --colorCodeReviewBackgroundSuccessDefault: #00361F; - --colorCodeReviewBackgroundSuccessMuted: #00502E; - --colorCodeReviewBackgroundDangerDefault: #571818; - --colorCodeReviewBackgroundDangerMuted: #802424; - --colorCodeReviewTextPrimary: #F4F6F8; - --colorCodeReviewTextSuccess: #5ECD9E; - --colorCodeReviewTextDanger: #FF9F9F; - --colorDialogBackgroundPrimary: #282F38; - --colorDialogBackgroundSecondaryDefault: #3D4653; - --colorDialogBackgroundSecondaryUpsell: linear-gradient(95deg, rgb(from #1A77CA r g b / 0.6) 0%, rgb(from #895ED3 r g b / 0.6) 100%); - --colorDialogHelpPanelText: #FFFFFF; - --colorFreezeStatusIcon: #CDE4F7; - --colorFreezeStatusBorder: #155EA0; - --colorLifecycleTextPrimary: #F5F6F8; - --colorLifecycleBorderDefault: #B2B9C5; - --colorLifecycleIconPrimary: #FFFFFF; - --colorLifecycleBackgroundPrimary: #68778D; - --colorMenuListTextPrimary: #F5F6F8; - --colorMenuListTextSecondary: #DEE1E6; - --colorMenuListTextHighlight: #449BE1; - --colorMenuListIconPrimary: #8A96A7; - --colorMenuListBorderPrimary: #515D70; - --colorMenuListBackgroundDefault: #282F38; - --colorMenuListBackgroundHover: #3D4653; - --colorMenuListBackgroundActive: #515D70; - --colorNavButtonBackgroundDefault: rgb(from #F5F6F8 r g b / 0.01); - --colorNavButtonBackgroundHover: #282F38; - --colorNavButtonBackgroundPressed: #3D4653; - --colorNavButtonBackgroundActive: #282F38; - --colorNavButtonIconDefault: #F5F6F8; - --colorNavButtonIconHover: #F5F6F8; - --colorNavButtonIconPressed: #F5F6F8; - --colorNavButtonIconActive: #F5F6F8; - --colorNavListTextDefault: #F4F6F8; - --colorNavListTextHover: #FFFFFF; - --colorNavListTextActive: #8A96A7; - --colorNavListIconDefault: #515D70; - --colorNavListIconActive: #8A96A7; - --colorNavListBackgroundDefault: rgb(from #68778D r g b / 0); - --colorNavListBackgroundHover: #515D70; - --colorNavListBackgroundActive: rgb(from #282F38 r g b / 0.7); - --colorOverlayPrimary: rgb(from #282F38 r g b / 0.56); - --colorOverlaySecondary: rgb(from #000000 r g b / 0.31); - --colorNavTabBackgroundHover: #3D4653; - --colorNavTabBackgroundActive: rgb(from #FFFFFF r g b / 0); - --colorNavTabTextDefault: #FFFFFF; - --colorNavTabTextActive: #B2B9C5; - --colorNavTabTextHover: #FFFFFF; - --colorNavTabIconDefault: #FFFFFF; - --colorNavTabIconActive: #B2B9C5; - --colorNavTabIconHover: #FFFFFF; - --colorNavTabBorderPrimary: #8A96A7; - --colorPopoverInfoCircleBackgroundDefault: #B2B9C5; - --colorPopoverInfoCircleBackgroundHover: #68778D; - --colorPopoverInfoCircleTextDefault: #3D4653; - --colorPopoverInfoCircleTextHover: #F5F6F8; - --colorPopoverBackgroundPrimary: #16191F; - --colorPopoverBackgroundSecondary: #282F38; - --colorProgressBackgroundLinear: #B2B9C5; - --colorProgressBackgroundPrimary: #B2B9C5; - --colorProgressBackgroundSecondary: #515D70; - --colorProgressForegroundCircular: #68778D; - --colorProgressForegroundLinear: #515D70; - --colorProgressTextInfo: #8A96A7; - --colorSpaceSwitcherBackgroundDefault: rgb(from #3D4653 r g b / 0.64); - --colorSpaceSwitcherBackgroundHover: #68778D; - --colorSpaceSwitcherBackgroundPressed: #68778D; - --colorSpaceSwitcherTextDefault: #B2B9C5; - --colorSpaceSwitcherTextHover: #FFFFFF; - --colorSpaceSwitcherTextPressed: #FFFFFF; - --colorSpaceSwitcherIconDefault: #B2B9C5; - --colorSpaceSwitcherBorderPrimary: rgb(from #16191F r g b / 0.16); - --colorTextFieldTextPrimary: #F5F6F8; - --colorTextFieldTextSecondary: #B2B9C5; - --colorTextFieldTextSelected: #F5F6F8; - --colorTextFieldTextDanger: #FF5D5D; - --colorTextFieldTextDisabled: #515D70; - --colorTextFieldBorderDefault: #3D4653; - --colorTextFieldBorderHover: #68778D; - --colorTextFieldBorderActive: #F5F6F8; - --colorTextFieldBorderDanger: #FF5D5D; - --colorTextFieldBorderDisabled: #3D4653; - --colorTextFieldIconPrimary: #DEE1E6; - --colorTextFieldIconDisabled: #515D70; - --colorSwitchIconActive: #F5F6F8; - --colorSwitchBackgroundOnDefault: #CDE4F7; - --colorSwitchBackgroundOnDisabled: #155EA0; - --colorSwitchBackgroundOffDefault: #68778D; - --colorSwitchBackgroundOffDisabled: #3D4653; - --colorSwitchForegroundOffDefault: #B2B9C5; - --colorSwitchForegroundOffDisabled: #515D70; - --colorSwitchForegroundOnDefault: #449BE1; - --colorSwitchForegroundOnDisabled: #0F4778; - --colorSwitchOverlayOn: rgb(from #F5F6F8 r g b / 0.16); - --colorSwitchOverlayOff: rgb(from #68778D r g b / 0.16); - --colorCategorySelectListIconDefault: #B2B9C5; - --colorCategorySelectListIconActive: #449BE1; - --colorCategorySelectListIconHover: #FFFFFF; - --colorCategorySelectListTextActive: #449BE1; - --colorCategorySelectListTextHover: #FFFFFF; - --colorCategorySelectListBackgroundDefault: #282F38; - --colorCategorySelectListBackgroundHover: #1A77CA; - --colorCategorySelectListBackgroundActive: rgb(from #1A77CA r g b / 0.24); - --colorScrollbarBackground: rgb(from #111A23 r g b / 0); - --colorScrollbarHandle: #68778D; - --colorTagBackground: #282F38; - --colorTagText: #DEE1E6; - --colorStatusBadgeTextPrimary: #F5F6F8; - --colorStatusBadgeTextInverse: #F5F6F8; - --colorStatusBadgeIconDefault: #FFFFFF; - --colorStatusBadgeIconInverse: #F5F6F8; - --colorStatusBadgeBackgroundHealthy: #006A3D; - --colorStatusBadgeBackgroundWarning: #745801; - --colorStatusBadgeBackgroundUnhealthy: #AA3030; - --colorStatusBadgeBackgroundNeutral: #515D70; - --colorHealthStatusIconDefault: #FFFFFF; - --colorHealthStatusIconInverse: #F5F6F8; - --colorHealthStatusBackgroundSuccess: #006A3D; - --colorHealthStatusBackgroundExecuting: #155EA0; - --colorHealthStatusBackgroundWarning: #745801; - --colorHealthStatusBackgroundFailure: #AA3030; - --colorHealthStatusBackgroundNeutral: #515D70; - --colorAvatarText: #FFFFFF; - --colorAvatarIconPrimary: #FFFFFF; - --colorAvatarIconSecondary: #282F38; - --colorAvatarIconPage: #CDE4F7; - --colorAvatarIconAction: #B8E7D3; - --colorAvatarBackgroundUserDefault: #515D70; - --colorAvatarBackgroundUserHover: #3D4653; - --colorAvatarBackgroundSpaceDefault: #515D70; - --colorAvatarBackgroundSpaceHover: #3D4653; - --colorAvatarBackgroundProjectDefault: #515D70; - --colorAvatarBackgroundProjectHover: #3D4653; - --colorAvatarBackgroundTenantDefault: #FFFFFF; - --colorAvatarBackgroundTenantHover: #F5F6F8; - --colorAvatarBackgroundImageDefault: #B2B9C5; - --colorAvatarBackgroundImageHover: #8A96A7; - --colorAvatarBackgroundTemplateDefault: #DEE1E6; - --colorAvatarBackgroundTemplateHover: #B2B9C5; - --colorAvatarBackgroundPageDefault: #0F4778; - --colorAvatarBackgroundPageHover: #093051; - --colorAvatarBackgroundActionDefault: #00502E; - --colorAvatarBackgroundActionHover: #00361F; - --colorAvatarStackBackgroundHover: #282F38; - --colorAvatarStackBorder: #16191F; - --colorParallelChipBackground: #68778D; - --colorParallelChipIcon: #FFFFFF; - --colorProcessWrapperBackgroundPrimary: #16191F; - --colorProcessWrapperBackgroundSecondary: #282F38; - --colorProcessContainerBackgroundSelected: #3D4653; - --colorProcessContainerBorderSelected: #515D70; - --colorProcessStepBackgroundPrimaryDefault: #16191F; - --colorProcessStepBackgroundPrimarySelected: #515D70; - --colorProcessStepBackgroundHoverPrimary: #282F38; - --colorProcessStepBackgroundHoverSecondary: #3D4653; - --colorProcessStepBackgroundHoverTertiary: #282F38; - --colorProcessStepBackgroundHoverError: #802424; - --colorProcessStepBackgroundHoverWarning: #C45317; - --colorProcessStepBackgroundErrorPrimary: #571818; - --colorProcessStepBackgroundErrorSelected: #802424; - --colorProcessStepBackgroundErrorSecondary: #AA3030; - --colorProcessStepBackgroundWarningDefault: #A13C14; - --colorProcessStepBackgroundWarningSelected: #C45317; - --colorProcessStepBackgroundWarningSecondary: #EA7325; - --colorProcessStepBackgroundSecondaryDefault: #282F38; - --colorProcessStepBorderErrorDefault: #802424; - --colorProcessStepBorderErrorHover: #AA3030; - --colorProcessStepBorderErrorSelected: #D63D3D; - --colorProcessStepBorderWarningDefault: #C45317; - --colorProcessStepBorderWarningHover: #EA7325; - --colorProcessStepBorderWarningSelected: #FFA461; - --colorProcessStepBorderDefault: #3D4653; - --colorProcessStepBorderDisabled: #3D4653; - --colorProcessStepBorderHover: #515D70; - --colorProcessStepBorderSelected: #68778D; - --colorProcessStepTextDisabled: #8A96A7; - --colorProcessStepIconDefault: #DEE1E6; - --colorProcessStepIconErrorPrimary: #FF5D5D; - --colorProcessStepIconErrorSecondary: #FF9F9F; - --colorProcessStepIconWarningPrimary: #FFA461; - --colorProcessStepIconWarningSecondary: #FFDABF; - --colorCodeEditorBackground: #16191F; - --colorCodeEditorForeground: #DEE1E6; - --colorCodeEditorSelection: #0F4778; - --colorCodeEditorSelectionMatch: #0F4778; - --colorCodeEditorTextDefault: #DEE1E6; - --colorCodeEditorTextHighlight: #FFDABF; - --colorCodeEditorTextHintHighlight: #B8E7D3; - --colorCodeEditorTextGutter: #7C98B4; - --colorCodeEditorToolbarBackground: #282F38; - --colorCodeEditorToolbarButtonHover: #16191F; - --colorCodeEditorCodeIndentationMarkerColor: #282F38; - --colorCodeEditorCodeIndentationMarkerActiveColor: #515D70; - --colorCodeEditorCodeSelectedBackground: #282F38; - --colorCodeEditorCodeLinenumberColor: #8A96A7; - --colorCodeEditorCodeCursorBorderLeft: #B2B9C5; - --colorCodeEditorCodeCursorBorderRight: #B2B9C5; - --colorCodeEditorCodeActivelineBackground: rgb(from #7C98B4 r g b / 0.15); - --colorCodeEditorCodeFatCursorBackground: #B2B9C5; - --colorCodeEditorCodeAtomNumberKeywordVariableAttributeQuoteColor: #449BE1; - --colorCodeEditorCodeVariableColor: #C5AEEE; - --colorCodeEditorCodePropertyColor: #FFA461; - --colorCodeEditorCodePunctuationUnitNegativeColor: #FFD8D8; - --colorCodeEditorCodeStringOperatorColor: #5ECD9E; - --colorCodeEditorCodePositiveColor: #00AB62; - --colorCodeEditorCodeVariable2Variable3String2UrlColor: #87BFEC; - --colorCodeEditorCodeDefTagBuiltinQualifierHeaderEmColor: #FF9F9F; - --colorCodeEditorCodeBracketCommentColor: #959595; - --colorCodeEditorCodeErrorInvalidcharColor: #FF5D5D; - --colorCodeEditorCodeMatchingbracketColor: #8A96A7; - --colorCodeEditorCodeHintsBackground: #282F38; - --colorCodeEditorCodeHint: #F5F6F8; - --colorCodeEditorCodeHintActiveBackground: #282F38; - --colorCodeEditorCodeSyntaxTagName: #5ECD9E; - --colorCodeEditorCodeSyntaxComment: #8A96A7; - --colorCodeEditorCodeSyntaxBracket: #8A96A7; - --colorCodeEditorCodeSyntaxClassName: #C5AEEE; - --colorCodeEditorCodeSyntaxPropertyName: #C5AEEE; - --colorCodeEditorCodeSyntaxVariableName: #87BFEC; - --colorCodeEditorCodeSyntaxAttributeName: #87BFEC; - --colorCodeEditorCodeSyntaxNumber: #87BFEC; - --colorCodeEditorCodeSyntaxOperator: #87BFEC; - --colorCodeEditorCodeSyntaxKeyword: #FF9F9F; - --colorCodeEditorCodeSyntaxTypeName: #FF9F9F; - --colorCodeEditorCodeSyntaxTypeOperator: #FF9F9F; - --colorCodeEditorCodeSyntaxString: #CDE4F7; - --colorCodeEditorCodeSyntaxMeta: #CDE4F7; - --colorCodeEditorCodeSyntaxRegexp: #CDE4F7; - --colorCodeEditorCodeSyntaxName: #5ECD9E; - --colorCodeEditorCodeSyntaxQuote: #5ECD9E; - --colorCodeEditorCodeSyntaxHeading: #C5AEEE; - --colorCodeEditorCodeSyntaxStrong: #C5AEEE; - --colorCodeEditorCodeSyntaxEmphasis: #C5AEEE; - --colorCodeEditorCodeSyntaxDeleted: #FFD8D8; - --colorCodeEditorCodeSyntaxDeletedBackground: #FFF3F3; - --colorCodeEditorCodeSyntaxAtom: #FFA461; - --colorCodeEditorCodeSyntaxBool: #FFA461; - --colorCodeEditorCodeSyntaxSpecialVariableName: #FFA461; - --colorCodeEditorCodeSyntaxUrl: #CDE4F7; - --colorCodeEditorCodeSyntaxEscape: #CDE4F7; - --colorCodeEditorCodeSyntaxLink: #CDE4F7; - --colorCodeEditorCodeSyntaxInvalid: #FF5D5D; - --colorPaginationBackgroundActive: #449BE1; - --colorPaginationBackgroundDefault: #16191F; - --colorPaginationBackgroundDisabled: #16191F; - --colorPaginationBackgroundHover: #557999; - --colorPaginationIconActive: #16191F; - --colorPaginationIconDefault: #F5F6F8; - --colorPaginationIconDisabled: #515D70; - --colorPaginationIconHover: #FFFFFF; - --colorPaginationTextActive: #16191F; - --colorPaginationTextDefault: #F5F6F8; - --colorPaginationTextHover: #FFFFFF; - --colorPaginationTextDisabled: #515D70; - --colorFormLegendBackgroundRest: #282F38; - --colorFormLegendBackgroundHover: #3D4653; - --colorTableHeaderBackground: rgb(from #282F38 r g b / 0.3); - --colorTableBackgroundSuccessDefault: #00502E; - --colorTableBackgroundSuccessHover: rgb(from #00502E r g b / 0.75); - --colorTableBackgroundDangerDefault: #802424; - --colorTableBackgroundDangerHover: rgb(from #802424 r g b / 0.75); - --colorTableTextDanger: #FFD8D8; - --colorCanvasBackground: #282F38; - --colorCanvasPattern: #16191F; - --colorSearchBackgroundResultHover: #3D4653; - --colorSearchBackgroundResultPressed: #515D70; - --colorSearchBackgroundNotice: #3D4653; - --colorPortalLinkTextHover: #FFFFFF; - --colorPortalChipBackground: #2E475D; - --colorPortalPopoverBackground: #2E475D; - --colorPortalCardBackground: #2E475D; - --colorPortalCardContentDisabled: #A9BBCB; - --colorPortalCardContentText: #DAE2E9; - --colorPortalLogoBackground: #F2F8FD; - --shadowExtraSmall: 0 1px 8px 0 rgba(0,0,0,0.12), 0 1px 2px 0 rgba(0,0,0,0.06); - --shadowSmall: 0 1px 1px 0 rgba(0,0,0,0.16), 0 1px 8px 0 rgba(0,0,0,0.16); - --shadowMedium: 0 0 4px 0 rgba(0,0,0,0.24), 0 6px 12px 0 rgba(0,0,0,0.3); - --shadowLarge: 0 2px 6px 0 rgba(0,0,0,0.26), 0 24px 32px -4px rgba(0,0,0,0.42); - --shadowDrawer: -4px 0 16px 0 rgba(0,0,0,0.16), -12px 4px 24px -4px rgba(0,0,0,0.32); - --shadowLayoutPrimary: -2px -2px 16px 0 rgba(0,0,0,0.06); - --shadowFocused: 0 0 0 1px rgb(68,155,225), 0 0 0 5px rgba(68,155,225,0.4); - --shadowFocusedInset: inset 0 0 0 4px rgba(68,155,225,0.4); -} diff --git a/src/styles/design-system-tokens/slateLightTheme.css b/src/styles/design-system-tokens/slateLightTheme.css deleted file mode 100644 index 1dcf97964c..0000000000 --- a/src/styles/design-system-tokens/slateLightTheme.css +++ /dev/null @@ -1,565 +0,0 @@ -/** - * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. - * Generated from the design system's source tokens - do not edit. - * - * Include globals.css, textTheme.css and the stylesheet for each theme. The theme - * stylesheets are selected by the data-theme attribute, set on whichever element you want - * themed - usually , but any element works. globals.css and textTheme.css are - * theme-independent and always apply. - */ - -[data-theme="light"] { - --colorTextLinkDefault: #16191F; - --colorTextLinkHover: #3D4653; - --colorTextPrimary: #282F38; - --colorTextSecondary: #515D70; - --colorTextTertiary: #68778D; - --colorTextDisabled: #B2B9C5; - --colorTextInversePrimary: #FFFFFF; - --colorTextInverseSecondary: #DEE1E6; - --colorTextSelected: #282F38; - --colorTextInfo: #16191F; - --colorTextSuccess: #00874D; - --colorTextWarning: #B98F02; - --colorTextDanger: #D63D3D; - --colorTextFeature: #895ED3; - --colorDeprecatedTextWarning: #C45317; - --colorDeprecatedIconWarning: #EA7325; - --colorDeprecatedBorderWarning: #C45317; - --colorDeprecatedBackgroundWarning: #FFF5ED; - --colorIconLinkDefault: #3D4653; - --colorIconLinkHover: #68778D; - --colorIconPrimary: #282F38; - --colorIconSecondary: #515D70; - --colorIconTertiary: #8A96A7; - --colorIconDisabled: #B2B9C5; - --colorIconInversePrimary: #FFFFFF; - --colorIconInverseSecondary: #DEE1E6; - --colorIconSelected: #282F38; - --colorIconInfo: #515D70; - --colorIconSuccess: #00874D; - --colorIconWarning: #B98F02; - --colorIconDanger: #D63D3D; - --colorIconFeature: #A683E5; - --colorBorderPrimary: #DEE1E6; - --colorBorderSecondary: #F5F6F8; - --colorBorderTertiary: #B2B9C5; - --colorBorderBold: #68778D; - --colorBorderLinkDefault: #3D4653; - --colorBorderLinkHover: #16191F; - --colorBorderDisabled: #B2B9C5; - --colorBorderInversePrimary: #3D4653; - --colorBorderInverseSecondary: #3D4653; - --colorBorderSelected: #3D4653; - --colorBorderInfo: #1A77CA; - --colorBorderSuccess: #00874D; - --colorBorderWarning: #B98F02; - --colorBorderDanger: #D63D3D; - --colorBorderFeature: #895ED3; - --colorBorderDefault: #515D70; - --colorBackgroundPrimaryDefault: #FFFFFF; - --colorBackgroundPrimaryHover: #F5F6F8; - --colorBackgroundPrimaryPressed: #DEE1E6; - --colorBackgroundPrimaryTransparent: rgb(from #FFFFFF r g b / 0.72); - --colorBackgroundTertiary: #DEE1E6; - --colorBackgroundDisabled: #DEE1E6; - --colorBackgroundSelected: #16191F; - --colorBackgroundSecondaryDefault: #F5F6F8; - --colorBackgroundSecondaryHover: #FFFFFF; - --colorBackgroundSecondaryPressed: #B2B9C5; - --colorBackgroundSecondaryTransparent: rgb(from #F5F6F8 r g b / 0.72); - --colorBackgroundBold: #FFFFFF; - --colorBackgroundInfo: #F2F8FD; - --colorBackgroundSuccess: #EEFAF5; - --colorBackgroundWarning: #FFF7D9; - --colorBackgroundDanger: #FFF3F3; - --colorBackgroundFeature: #F8F5FD; - --colorBackgroundQuartaryDefault: #FFFFFF; - --colorBackgroundQuartaryHover: #F5F6F8; - --colorBackgroundQuartaryPressed: #DEE1E6; - --colorBackgroundInversePrimary: #16191F; - --colorBackgroundInverseSecondary: #3D4653; - --colorBackgroundInverseSuccess: #00874D; - --colorBackgroundInverseNeutral: #515D70; - --colorBackgroundInverseNeutralQuiet: #DEE1E6; - --colorBackgroundInverseInfo: #1A77CA; - --colorBackgroundInverseWarning: #927002; - --colorBackgroundInverseDanger: #D63D3D; - --colorBackgroundInverseFeature: #7043B7; - --colorBackgroundDefault: rgb(from #FFFFFF r g b / 0); - --colorBackgroundHover: #DEE1E6; - --colorBackgroundNeutral: #F5F6F8; - --colorBadgeBoldTextPrimary: #FFFFFF; - --colorBadgeBoldTextSecondary: #000000; - --colorBadgeBoldTextFeature: #572B97; - --colorBadgeBoldTextUpsell: #572B97; - --colorBadgeBoldIconPrimary: #FFFFFF; - --colorBadgeBoldIconSecondary: #000000; - --colorBadgeBoldIconFeature: #572B97; - --colorBadgeBoldIconUpsell: #572B97; - --colorBadgeBoldBackgroundNeutral: #DEE1E6; - --colorBadgeBoldBackgroundInverseNeutral: #515D70; - --colorBadgeBoldBackgroundInfo: #1A77CA; - --colorBadgeBoldBackgroundSuccess: #00874D; - --colorBadgeBoldBackgroundWarning: #927002; - --colorBadgeBoldBackgroundDanger: #D63D3D; - --colorBadgeBoldBackgroundFeature: #E7DEF8; - --colorBadgeBoldBackgroundUpsell: #E7DEF8; - --colorBadgeSubtleTextNeutral: #515D70; - --colorBadgeSubtleTextInfo: #155EA0; - --colorBadgeSubtleTextSuccess: #006A3D; - --colorBadgeSubtleTextWarning: #745801; - --colorBadgeSubtleTextDanger: #AA3030; - --colorBadgeSubtleTextFeature: #7043B7; - --colorBadgeSubtleTextUpsell: #7043B7; - --colorBadgeSubtleBorderNeutral: #DEE1E6; - --colorBadgeSubtleBorderInfo: #CDE4F7; - --colorBadgeSubtleBorderSuccess: #B8E7D3; - --colorBadgeSubtleBorderWarning: #FFDF62; - --colorBadgeSubtleBorderDanger: #FFD8D8; - --colorBadgeSubtleBorderFeature: #E7DEF8; - --colorBadgeSubtleBorderUpsell: #E7DEF8; - --colorBadgeSubtleIconNeutral: #515D70; - --colorBadgeSubtleIconInfo: #1A77CA; - --colorBadgeSubtleIconSuccess: #00874D; - --colorBadgeSubtleIconWarning: #927002; - --colorBadgeSubtleIconDanger: #D63D3D; - --colorBadgeSubtleIconFeature: #895ED3; - --colorBadgeSubtleIconUpsell: #895ED3; - --colorBadgeSubtleBackgroundNeutral: #F5F6F8; - --colorBadgeSubtleBackgroundInfo: #F2F8FD; - --colorBadgeSubtleBackgroundSuccess: #EEFAF5; - --colorBadgeSubtleBackgroundWarning: #FFF7D9; - --colorBadgeSubtleBackgroundDanger: #FFF3F3; - --colorBadgeSubtleBackgroundFeature: #F8F5FD; - --colorBadgeSubtleBackgroundUpsell: #F8F5FD; - --colorButtonTextPrimary: #FFFFFF; - --colorButtonTextSecondary: #282F38; - --colorButtonTextTertiaryDefault: #515D70; - --colorButtonTextTertiaryHover: #282F38; - --colorButtonTextTertiaryPressed: #282F38; - --colorButtonTextDestructive: #FFFFFF; - --colorButtonTextQuietDefault: #68778D; - --colorButtonTextQuietHover: #515D70; - --colorButtonTextQuietPressed: #515D70; - --colorButtonTextNeutral: #515D70; - --colorButtonTextDisabled: #8A96A7; - --colorButtonTextLoud: #FFFFFF; - --colorButtonTextGhost: #282F38; - --colorButtonIconPrimary: #FFFFFF; - --colorButtonIconSecondary: #282F38; - --colorButtonIconTertiaryDefault: #515D70; - --colorButtonIconTertiaryHover: #282F38; - --colorButtonIconTertiaryPressed: #282F38; - --colorButtonIconQuietDefault: rgb(from #282F38 r g b / 0.55); - --colorButtonIconQuietHover: #515D70; - --colorButtonIconQuietPressed: #515D70; - --colorButtonIconNeutral: #515D70; - --colorButtonIconDisabled: #B2B9C5; - --colorButtonIconLoud: #FFFFFF; - --colorButtonIconDestructive: #FFFFFF; - --colorButtonIconGhost: #282F38; - --colorButtonBorderSecondary: #515D70; - --colorButtonBorderDisabled: #DEE1E6; - --colorButtonBackgroundDisabled: rgb(from #DEE1E6 r g b / 0.56); - --colorButtonBackgroundPrimaryDefault: #16191F; - --colorButtonBackgroundPrimaryHover: #3D4653; - --colorButtonBackgroundPrimaryPressed: #282F38; - --colorButtonBackgroundSecondaryDefault: rgb(from #515D70 r g b / 0); - --colorButtonBackgroundSecondaryHover: rgb(from #515D70 r g b / 0.08); - --colorButtonBackgroundSecondaryPressed: rgb(from #515D70 r g b / 0.16); - --colorButtonBackgroundTertiaryDefault: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundTertiaryHover: rgb(from #8A96A7 r g b / 0.2); - --colorButtonBackgroundTertiaryPressed: rgb(from #8A96A7 r g b / 0.32); - --colorButtonBackgroundNeutralDefault: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundNeutralHover: rgb(from #8A96A7 r g b / 0.2); - --colorButtonBackgroundNeutralPressed: rgb(from #8A96A7 r g b / 0.32); - --colorButtonBackgroundQuietDefault: rgb(from #8A96A7 r g b / 0); - --colorButtonBackgroundQuietHover: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundQuietPressed: rgb(from #8A96A7 r g b / 0.24); - --colorButtonBackgroundLoudDefault: #16191F; - --colorButtonBackgroundLoudHover: #3D4653; - --colorButtonBackgroundLoudPressed: #282F38; - --colorButtonBackgroundDestructiveDefault: #D63D3D; - --colorButtonBackgroundDestructiveHover: #AA3030; - --colorButtonBackgroundDestructivePressed: #802424; - --colorButtonBackgroundGhostDefault: rgb(from #8A96A7 r g b / 0); - --colorButtonBackgroundGhostHover: rgb(from #8A96A7 r g b / 0.12); - --colorButtonBackgroundGhostPressed: rgb(from #8A96A7 r g b / 0.24); - --colorButtonFocus: #515D70; - --colorCalloutTextInfo: #282F38; - --colorCalloutTextSuccess: #00361F; - --colorCalloutTextWarning: #3B2C00; - --colorCalloutTextDanger: #571818; - --colorCalloutTextFeature: #3B1D66; - --colorCalloutTextBody: #3D4653; - --colorCalloutBorderInfo: #68778D; - --colorCalloutBorderSuccess: #00874D; - --colorCalloutBorderWarning: #B98F02; - --colorCalloutBorderDanger: #D63D3D; - --colorCalloutBorderFeature: #895ED3; - --colorCalloutBorderDefault: #68778D; - --colorCalloutBorderUpsell: linear-gradient(180deg, #87BFEC 0%, #C5AEEE 100%); - --colorCalloutIconInfo: #515D70; - --colorCalloutIconSuccess: #006A3D; - --colorCalloutIconWarning: #745801; - --colorCalloutIconDanger: #AA3030; - --colorCalloutIconFeature: #7043B7; - --colorCalloutBackgroundInfoDefault: rgb(from #8A96A7 r g b / 0.16); - --colorCalloutBackgroundInfoHover: rgb(from #8A96A7 r g b / 0.24); - --colorCalloutBackgroundInfoPressed: rgb(from #8A96A7 r g b / 0.32); - --colorCalloutBackgroundSuccessDefault: rgb(from #B8E7D3 r g b / 0.45); - --colorCalloutBackgroundSuccessHover: rgb(from #5ECD9E r g b / 0.4); - --colorCalloutBackgroundSuccessPressed: rgb(from #5ECD9E r g b / 0.64); - --colorCalloutBackgroundWarningDefault: rgb(from #FFDF62 r g b / 0.32); - --colorCalloutBackgroundWarningHover: rgb(from #FFDF62 r g b / 0.4); - --colorCalloutBackgroundWarningPressed: rgb(from #FFDF62 r g b / 0.64); - --colorCalloutBackgroundDangerDefault: rgb(from #FFD8D8 r g b / 0.5); - --colorCalloutBackgroundDangerHover: rgb(from #FF9F9F r g b / 0.4); - --colorCalloutBackgroundDangerPressed: rgb(from #FF9F9F r g b / 0.64); - --colorCalloutBackgroundFeatureDefault: rgb(from #E7DEF8 r g b / 0.5); - --colorCalloutBackgroundFeatureHover: rgb(from #C5AEEE r g b / 0.4); - --colorCalloutBackgroundFeaturePressed: rgb(from #C5AEEE r g b / 0.64); - --colorCalloutBackgroundUpsell: linear-gradient(95deg, rgb(from #CDE4F7 r g b / 0.5) 0%, rgb(from #E7DEF8 r g b / 0.5) 100%); - --colorCalloutCodeBackground: #68778D; - --colorCardBackgroundPrimaryDefault: #FFFFFF; - --colorCardBackgroundSecondaryDefault: rgb(from #FFFFFF r g b / 0); - --colorCardBackgroundSecondaryHover: rgb(from #F5F6F8 r g b / 0.64); - --colorCardChartBackgroundDefault: rgb(from #F5F6F8 r g b / 0.3); - --colorCardChartBackgroundHover: rgb(from #F5F6F8 r g b / 0.5); - --colorCarouselTextPrimary: #FFFFFF; - --colorCarouselIconDefault: rgb(from #B2B9C5 r g b / 0.32); - --colorCarouselIconHover: rgb(from #B2B9C5 r g b / 0.72); - --colorCarouselIconSelected: #449BE1; - --colorCarouselBackgroundPrimary: #16191F; - --colorChipOutlinedBorderPrimary: #515D70; - --colorChipOutlinedBorderSecondary: #895ED3; - --colorChipOutlinedBorderInfo: #1A77CA; - --colorChipOutlinedBorderSuccess: #00874D; - --colorChipOutlinedBorderWarning: #927002; - --colorChipOutlinedBorderDanger: #D63D3D; - --colorChipOutlinedTextPrimary: #68778D; - --colorChipOutlinedTextSecondary: #895ED3; - --colorChipOutlinedTextInfo: #1A77CA; - --colorChipOutlinedTextSuccess: #00874D; - --colorChipOutlinedTextWarning: #927002; - --colorChipOutlinedTextDanger: #D63D3D; - --colorChipOutlinedIconPrimary: #68778D; - --colorChipOutlinedIconSecondary: #895ED3; - --colorChipOutlinedIconInfo: #1A77CA; - --colorChipOutlinedIconSuccess: #00874D; - --colorChipOutlinedIconWarning: #927002; - --colorChipOutlinedIconDanger: #D63D3D; - --colorChipFilledTextPrimary: #515D70; - --colorChipFilledTextSecondary: #7043B7; - --colorChipFilledTextInfo: #155EA0; - --colorChipFilledTextSuccess: #006A3D; - --colorChipFilledTextWarning: #745801; - --colorChipFilledTextDanger: #AA3030; - --colorChipFilledIconPrimary: #515D70; - --colorChipFilledIconSecondary: #7043B7; - --colorChipFilledIconInfo: #155EA0; - --colorChipFilledIconSuccess: #006A3D; - --colorChipFilledIconWarning: #745801; - --colorChipFilledIconDanger: #AA3030; - --colorChipFilledBackgroundPrimary: #DAE2E9; - --colorChipFilledBackgroundSecondary: #E7DEF8; - --colorChipFilledBackgroundInfo: #CDE4F7; - --colorChipFilledBackgroundSuccess: #B8E7D3; - --colorChipFilledBackgroundWarning: #FFDF62; - --colorChipFilledBackgroundDanger: #FFD8D8; - --colorChipTextPrimary: #282F38; - --colorChipTextInverse: #FFFFFF; - --colorChipIconPrimary: #282F38; - --colorChipIconWarning: #C45317; - --colorChipIconInverse: #FFFFFF; - --colorChipBackgroundPrimary: #DEE1E6; - --colorChipBackgroundSecondary: #B2B9C5; - --colorChipBackgroundSuccessful: #00874D; - --colorChipBackgroundDanger: #D63D3D; - --colorChipBorderPrimary: #B2B9C5; - --colorCodeReviewBackgroundPrimaryDefault: #F5F6F8; - --colorCodeReviewBackgroundPrimaryMuted: #FFFFFF; - --colorCodeReviewBackgroundSuccessDefault: #B8E7D3; - --colorCodeReviewBackgroundSuccessMuted: #5ECD9E; - --colorCodeReviewBackgroundDangerDefault: #FFD8D8; - --colorCodeReviewBackgroundDangerMuted: #FF9F9F; - --colorCodeReviewTextPrimary: #282F38; - --colorCodeReviewTextSuccess: #00502E; - --colorCodeReviewTextDanger: #802424; - --colorDialogBackgroundPrimary: #FFFFFF; - --colorDialogBackgroundSecondaryDefault: #F5F6F8; - --colorDialogBackgroundSecondaryUpsell: linear-gradient(95deg, rgb(from #1A77CA r g b / 0.6) 0%, rgb(from #895ED3 r g b / 0.6) 100%); - --colorDialogHelpPanelText: #FFFFFF; - --colorFreezeStatusIcon: #0F4778; - --colorFreezeStatusBorder: #87BFEC; - --colorLifecycleTextPrimary: #282F38; - --colorLifecycleBorderDefault: #515D70; - --colorLifecycleIconPrimary: #FFFFFF; - --colorLifecycleBackgroundPrimary: #8A96A7; - --colorMenuListTextPrimary: #282F38; - --colorMenuListTextSecondary: #515D70; - --colorMenuListTextHighlight: #16191F; - --colorMenuListIconPrimary: #515D70; - --colorMenuListBorderPrimary: #DEE1E6; - --colorMenuListBackgroundDefault: #FFFFFF; - --colorMenuListBackgroundHover: #F5F6F8; - --colorMenuListBackgroundActive: #DEE1E6; - --colorNavButtonBackgroundDefault: rgb(from #16191F r g b / 0); - --colorNavButtonBackgroundHover: #DEE1E6; - --colorNavButtonBackgroundPressed: #B2B9C5; - --colorNavButtonBackgroundActive: #DEE1E6; - --colorNavButtonIconDefault: #282F38; - --colorNavButtonIconHover: #DEE1E6; - --colorNavButtonIconPressed: #DEE1E6; - --colorNavButtonIconActive: #DEE1E6; - --colorNavListTextDefault: #282F38; - --colorNavListTextHover: #FFFFFF; - --colorNavListTextActive: #282F38; - --colorNavListIconDefault: #282F38; - --colorNavListIconActive: #515D70; - --colorNavListBackgroundDefault: rgb(from #F5F6F8 r g b / 0); - --colorNavListBackgroundHover: #3D4653; - --colorNavListBackgroundActive: #F5F6F8; - --colorOverlayPrimary: rgb(from #282F38 r g b / 0.56); - --colorOverlaySecondary: rgb(from #000000 r g b / 0.31); - --colorNavTabBackgroundHover: #F5F6F8; - --colorNavTabBackgroundActive: rgb(from #FFFFFF r g b / 0); - --colorNavTabTextDefault: #282F38; - --colorNavTabTextActive: #3D4653; - --colorNavTabTextHover: #68778D; - --colorNavTabIconDefault: #282F38; - --colorNavTabIconActive: #515D70; - --colorNavTabIconHover: #515D70; - --colorNavTabBorderPrimary: #282F38; - --colorPopoverInfoCircleBackgroundDefault: #DEE1E6; - --colorPopoverInfoCircleBackgroundHover: #68778D; - --colorPopoverInfoCircleTextDefault: #515D70; - --colorPopoverInfoCircleTextHover: #F5F6F8; - --colorPopoverBackgroundPrimary: #FFFFFF; - --colorPopoverBackgroundSecondary: #F5F6F8; - --colorProgressBackgroundLinear: #DEE1E6; - --colorProgressBackgroundPrimary: #68778D; - --colorProgressBackgroundSecondary: #DEE1E6; - --colorProgressForegroundCircular: #68778D; - --colorProgressForegroundLinear: #68778D; - --colorProgressTextInfo: #68778D; - --colorSpaceSwitcherBackgroundDefault: rgb(from #DEE1E6 r g b / 0.32); - --colorSpaceSwitcherBackgroundHover: #68778D; - --colorSpaceSwitcherBackgroundPressed: #68778D; - --colorSpaceSwitcherTextDefault: #515D70; - --colorSpaceSwitcherTextHover: #FFFFFF; - --colorSpaceSwitcherTextPressed: #FFFFFF; - --colorSpaceSwitcherIconDefault: #515D70; - --colorSpaceSwitcherBorderPrimary: rgb(from #16191F r g b / 0.16); - --colorTextFieldTextPrimary: #282F38; - --colorTextFieldTextSecondary: #68778D; - --colorTextFieldTextSelected: #16191F; - --colorTextFieldTextDanger: #D63D3D; - --colorTextFieldTextDisabled: #B2B9C5; - --colorTextFieldBorderDefault: #B2B9C5; - --colorTextFieldBorderHover: #68778D; - --colorTextFieldBorderActive: #16191F; - --colorTextFieldBorderDanger: #D63D3D; - --colorTextFieldBorderDisabled: #B2B9C5; - --colorTextFieldIconPrimary: #3D4653; - --colorTextFieldIconDisabled: #B2B9C5; - --colorSwitchIconActive: #16191F; - --colorSwitchBackgroundOnDefault: #87BFEC; - --colorSwitchBackgroundOnDisabled: #CDE4F7; - --colorSwitchBackgroundOffDefault: #B2B9C5; - --colorSwitchBackgroundOffDisabled: #DEE1E6; - --colorSwitchForegroundOffDefault: #F5F6F8; - --colorSwitchForegroundOffDisabled: #B2B9C5; - --colorSwitchForegroundOnDefault: #1A77CA; - --colorSwitchForegroundOnDisabled: #87BFEC; - --colorSwitchOverlayOn: rgb(from #87BFEC r g b / 0.16); - --colorSwitchOverlayOff: rgb(from #B2B9C5 r g b / 0.16); - --colorCategorySelectListIconDefault: #515D70; - --colorCategorySelectListIconActive: #1A77CA; - --colorCategorySelectListIconHover: #FFFFFF; - --colorCategorySelectListTextActive: #1A77CA; - --colorCategorySelectListTextHover: #FFFFFF; - --colorCategorySelectListBackgroundDefault: #F5F6F8; - --colorCategorySelectListBackgroundHover: #1A77CA; - --colorCategorySelectListBackgroundActive: rgb(from #1A77CA r g b / 0.06); - --colorScrollbarBackground: rgb(from #FFFFFF r g b / 0); - --colorScrollbarHandle: #8A96A7; - --colorTagBackground: #F5F6F8; - --colorTagText: #3D4653; - --colorStatusBadgeTextPrimary: #FFFFFF; - --colorStatusBadgeTextInverse: #3D4653; - --colorStatusBadgeIconDefault: #FFFFFF; - --colorStatusBadgeIconInverse: #3D4653; - --colorStatusBadgeBackgroundHealthy: #00874D; - --colorStatusBadgeBackgroundWarning: #927002; - --colorStatusBadgeBackgroundUnhealthy: #D63D3D; - --colorStatusBadgeBackgroundNeutral: #DEE1E6; - --colorHealthStatusIconDefault: #FFFFFF; - --colorHealthStatusIconInverse: #3D4653; - --colorHealthStatusBackgroundSuccess: #00874D; - --colorHealthStatusBackgroundExecuting: #1A77CA; - --colorHealthStatusBackgroundWarning: #927002; - --colorHealthStatusBackgroundFailure: #D63D3D; - --colorHealthStatusBackgroundNeutral: #DEE1E6; - --colorAvatarText: #FFFFFF; - --colorAvatarIconPrimary: #FFFFFF; - --colorAvatarIconSecondary: #282F38; - --colorAvatarIconPage: #0F4778; - --colorAvatarIconAction: #00502E; - --colorAvatarBackgroundUserDefault: #68778D; - --colorAvatarBackgroundUserHover: #515D70; - --colorAvatarBackgroundSpaceDefault: #68778D; - --colorAvatarBackgroundSpaceHover: #515D70; - --colorAvatarBackgroundProjectDefault: #68778D; - --colorAvatarBackgroundProjectHover: #515D70; - --colorAvatarBackgroundTenantDefault: #FFFFFF; - --colorAvatarBackgroundTenantHover: #F5F6F8; - --colorAvatarBackgroundImageDefault: #F5F6F8; - --colorAvatarBackgroundImageHover: #B2B9C5; - --colorAvatarBackgroundTemplateDefault: #F5F6F8; - --colorAvatarBackgroundTemplateHover: #DEE1E6; - --colorAvatarBackgroundPageDefault: #CDE4F7; - --colorAvatarBackgroundPageHover: #87BFEC; - --colorAvatarBackgroundActionDefault: #B8E7D3; - --colorAvatarBackgroundActionHover: #5ECD9E; - --colorAvatarStackBackgroundHover: #DEE1E6; - --colorAvatarStackBorder: #FFFFFF; - --colorParallelChipBackground: #68778D; - --colorParallelChipIcon: #FFFFFF; - --colorProcessWrapperBackgroundPrimary: #F5F6F8; - --colorProcessWrapperBackgroundSecondary: #DEE1E6; - --colorProcessContainerBackgroundSelected: #F5F6F8; - --colorProcessContainerBorderSelected: #8A96A7; - --colorProcessStepBackgroundPrimaryDefault: #FFFFFF; - --colorProcessStepBackgroundPrimarySelected: #F2F8FD; - --colorProcessStepBackgroundHoverPrimary: #F5F6F8; - --colorProcessStepBackgroundHoverSecondary: #DEE1E6; - --colorProcessStepBackgroundHoverTertiary: #F5F6F8; - --colorProcessStepBackgroundHoverError: #FFD8D8; - --colorProcessStepBackgroundHoverWarning: #FFDABF; - --colorProcessStepBackgroundErrorPrimary: #FFF3F3; - --colorProcessStepBackgroundErrorSelected: #FFD8D8; - --colorProcessStepBackgroundErrorSecondary: #FF9F9F; - --colorProcessStepBackgroundWarningDefault: #FFF5ED; - --colorProcessStepBackgroundWarningSelected: #FFDABF; - --colorProcessStepBackgroundWarningSecondary: #FFA461; - --colorProcessStepBackgroundSecondaryDefault: #F5F6F8; - --colorProcessStepBorderErrorDefault: #FF9F9F; - --colorProcessStepBorderErrorHover: #FF5D5D; - --colorProcessStepBorderErrorSelected: #D63D3D; - --colorProcessStepBorderWarningDefault: #FFA461; - --colorProcessStepBorderWarningHover: #EA7325; - --colorProcessStepBorderWarningSelected: #C45317; - --colorProcessStepBorderDefault: #DEE1E6; - --colorProcessStepBorderDisabled: #DEE1E6; - --colorProcessStepBorderHover: #B2B9C5; - --colorProcessStepBorderSelected: #8A96A7; - --colorProcessStepTextDisabled: #8A96A7; - --colorProcessStepIconDefault: #282F38; - --colorProcessStepIconErrorPrimary: #D63D3D; - --colorProcessStepIconErrorSecondary: #AA3030; - --colorProcessStepIconWarningPrimary: #EA7325; - --colorProcessStepIconWarningSecondary: #C45317; - --colorCodeEditorBackground: #F5F6F8; - --colorCodeEditorForeground: #282F38; - --colorCodeEditorSelection: #DEE1E6; - --colorCodeEditorSelectionMatch: #DEE1E6; - --colorCodeEditorTextDefault: #282F38; - --colorCodeEditorTextHighlight: #59170D; - --colorCodeEditorTextHintHighlight: #00874D; - --colorCodeEditorTextGutter: #8A96A7; - --colorCodeEditorToolbarBackground: #DEE1E6; - --colorCodeEditorToolbarButtonHover: #B2B9C5; - --colorCodeEditorCodeIndentationMarkerColor: #DEE1E6; - --colorCodeEditorCodeIndentationMarkerActiveColor: #B2B9C5; - --colorCodeEditorCodeSelectedBackground: #DEE1E6; - --colorCodeEditorCodeLinenumberColor: #8A96A7; - --colorCodeEditorCodeCursorBorderLeft: #282F38; - --colorCodeEditorCodeCursorBorderRight: #B2B9C5; - --colorCodeEditorCodeActivelineBackground: rgb(from #68778D r g b / 0.15); - --colorCodeEditorCodeFatCursorBackground: #B2B9C5; - --colorCodeEditorCodeAtomNumberKeywordVariableAttributeQuoteColor: #093051; - --colorCodeEditorCodeVariableColor: #7043B7; - --colorCodeEditorCodePropertyColor: #59170D; - --colorCodeEditorCodePunctuationUnitNegativeColor: #AA3030; - --colorCodeEditorCodeStringOperatorColor: #00502E; - --colorCodeEditorCodePositiveColor: #00361F; - --colorCodeEditorCodeVariable2Variable3String2UrlColor: #155EA0; - --colorCodeEditorCodeDefTagBuiltinQualifierHeaderEmColor: #AA3030; - --colorCodeEditorCodeBracketCommentColor: #8A96A7; - --colorCodeEditorCodeErrorInvalidcharColor: #802424; - --colorCodeEditorCodeMatchingbracketColor: #16191F; - --colorCodeEditorCodeHintsBackground: #DEE1E6; - --colorCodeEditorCodeHint: #282F38; - --colorCodeEditorCodeHintActiveBackground: #DEE1E6; - --colorCodeEditorCodeSyntaxTagName: #006A3D; - --colorCodeEditorCodeSyntaxComment: #515D70; - --colorCodeEditorCodeSyntaxBracket: #515D70; - --colorCodeEditorCodeSyntaxClassName: #7043B7; - --colorCodeEditorCodeSyntaxPropertyName: #7043B7; - --colorCodeEditorCodeSyntaxVariableName: #155EA0; - --colorCodeEditorCodeSyntaxAttributeName: #155EA0; - --colorCodeEditorCodeSyntaxNumber: #155EA0; - --colorCodeEditorCodeSyntaxOperator: #155EA0; - --colorCodeEditorCodeSyntaxKeyword: #AA3030; - --colorCodeEditorCodeSyntaxTypeName: #AA3030; - --colorCodeEditorCodeSyntaxTypeOperator: #AA3030; - --colorCodeEditorCodeSyntaxString: #093051; - --colorCodeEditorCodeSyntaxMeta: #093051; - --colorCodeEditorCodeSyntaxRegexp: #093051; - --colorCodeEditorCodeSyntaxName: #006A3D; - --colorCodeEditorCodeSyntaxQuote: #006A3D; - --colorCodeEditorCodeSyntaxHeading: #2E2E2E; - --colorCodeEditorCodeSyntaxStrong: #2E2E2E; - --colorCodeEditorCodeSyntaxEmphasis: #2E2E2E; - --colorCodeEditorCodeSyntaxDeleted: #AA3030; - --colorCodeEditorCodeSyntaxDeletedBackground: #FFF3F3; - --colorCodeEditorCodeSyntaxAtom: #A13C14; - --colorCodeEditorCodeSyntaxBool: #A13C14; - --colorCodeEditorCodeSyntaxSpecialVariableName: #A13C14; - --colorCodeEditorCodeSyntaxUrl: #093051; - --colorCodeEditorCodeSyntaxEscape: #093051; - --colorCodeEditorCodeSyntaxLink: #093051; - --colorCodeEditorCodeSyntaxInvalid: #AA3030; - --colorPaginationBackgroundActive: #282F38; - --colorPaginationBackgroundDefault: #FFFFFF; - --colorPaginationBackgroundDisabled: #FFFFFF; - --colorPaginationBackgroundHover: #8A96A7; - --colorPaginationIconActive: #FFFFFF; - --colorPaginationIconDefault: #282F38; - --colorPaginationIconDisabled: #8A96A7; - --colorPaginationIconHover: #FFFFFF; - --colorPaginationTextActive: #FFFFFF; - --colorPaginationTextDefault: #282F38; - --colorPaginationTextHover: #FFFFFF; - --colorPaginationTextDisabled: #8A96A7; - --colorFormLegendBackgroundRest: #F5F6F8; - --colorFormLegendBackgroundHover: #DEE1E6; - --colorTableHeaderBackground: rgb(from #F5F6F8 r g b / 0.3); - --colorTableBackgroundSuccessDefault: #B8E7D3; - --colorTableBackgroundSuccessHover: rgb(from #5ECD9E r g b / 0.75); - --colorTableBackgroundDangerDefault: #FFD8D8; - --colorTableBackgroundDangerHover: rgb(from #FF9F9F r g b / 0.75); - --colorTableTextDanger: #802424; - --colorCanvasBackground: #F5F6F8; - --colorCanvasPattern: #DEE1E6; - --colorSearchBackgroundResultHover: #F5F6F8; - --colorSearchBackgroundResultPressed: #DEE1E6; - --colorSearchBackgroundNotice: #F5F6F8; - --colorPortalLinkTextHover: #155EA0; - --colorPortalChipBackground: #E1E1E1; - --colorPortalPopoverBackground: #FFFFFF; - --colorPortalCardBackground: #FFFFFF; - --colorPortalCardContentDisabled: #757575; - --colorPortalCardContentText: #5C5C5C; - --colorPortalLogoBackground: transparent; - --shadowExtraSmall: 0 1px 8px 0 rgba(0,0,0,0.02), 0 1px 2px 0 rgba(0,0,0,0.06); - --shadowSmall: 0 1px 1px 0 rgba(0,0,0,0.12), 0 1px 8px 0 rgba(0,0,0,0.06); - --shadowMedium: 0 1px 4px 0 rgba(0,0,0,0.04), 0 6px 12px 0 rgba(0,0,0,0.1); - --shadowLarge: 0 2px 6px 0 rgba(0,0,0,0.1), 0 14px 32px -4px rgba(0,0,0,0.12); - --shadowDrawer: -4px 0 16px 0 rgba(0,0,0,0.08), -12px 4px 24px -4px rgba(0,0,0,0.1); - --shadowLayoutPrimary: -2px -2px 6px 0 rgba(0,0,0,0.06); - --shadowFocused: 0 0 0 1px rgb(26,119,202), 0 0 0 5px rgba(26,119,202,0.32); - --shadowFocusedInset: inset 0 0 0 4px rgba(26,119,202,0.32); -} diff --git a/src/styles/design-system-tokens/textTheme.css b/src/styles/design-system-tokens/textTheme.css deleted file mode 100644 index 41862a7c9d..0000000000 --- a/src/styles/design-system-tokens/textTheme.css +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Design tokens from @octopusdeploy/design-system-tokens, as CSS custom properties. - * Generated from the design system's source tokens - do not edit. - * - * Include globals.css, textTheme.css and the stylesheet for each theme. The theme - * stylesheets are selected by the data-theme attribute, set on whichever element you want - * themed - usually , but any element works. globals.css and textTheme.css are - * theme-independent and always apply. - */ - -:root { - --fontFamilyCode: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace; - --fontFamilyDefault: BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; - --textHeading2xLarge: 600 3rem/3.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textHeadingXLarge: 600 2rem/2.75rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textHeadingLarge: 600 1.5rem/2rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textHeadingMedium: 600 1.25rem/1.75rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textHeadingSmall: 600 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textHeadingXSmall: 600 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyRegularLarge: 400 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyRegularMedium: 400 0.875rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyRegularSmall: 400 0.8125rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyRegularXSmall: 400 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyBoldLarge: 600 1rem/1.5rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyBoldMedium: 600 0.875rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyBoldSmall: 600 0.8125rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textBodyBoldXSmall: 600 0.75rem/1.25rem var(--fontFamilyDefault, 'BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen Sans", Ubuntu, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol'); - --textCodeRegularLarge: 400 1rem/1.5rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeRegularMedium: 400 0.875rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeRegularSmall: 400 0.8125rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeRegularXSmall: 400 0.75rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeBoldLarge: 600 1rem/1.5rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeBoldMedium: 600 0.875rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeBoldSmall: 600 0.8125rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); - --textCodeBoldXSmall: 600 0.75rem/1.25rem var(--fontFamilyCode, 'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "Oxygen Mono", "Ubuntu Mono", monospace'); -} diff --git a/src/styles/main.css b/src/styles/main.css index 83ba51ec21..8f233872ee 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -138,7 +138,7 @@ div.hint code:not(pre code) { } /* Shiki writes the light set inline and the dark set to --shiki-dark-*. */ -html[data-theme='dark'] { +html[data-theme='slateDark'] { .astro-code, .astro-code span { color: var(--shiki-dark) !important; @@ -716,11 +716,11 @@ nav.skip-links a:focus { background-color: var(--colorIconPrimary); } -html[data-theme='light'] .top-nav__theme-icon { +html[data-theme='slateLight'] .top-nav__theme-icon { mask: url('../assets/icons/moon.svg') center / contain no-repeat; } -html[data-theme='dark'] .top-nav__theme-icon { +html[data-theme='slateDark'] .top-nav__theme-icon { mask: url('../assets/icons/sun.svg') center / contain no-repeat; } @@ -993,7 +993,7 @@ img.card__icon { /* Default-color icons keep whatever color is baked into the source file, so on a dark background a dark icon (e.g. a brand logo drawn for a light background) can disappear. Force the light theme's card background behind it so it stays visible. */ -html[data-theme='dark'] img.card__icon { +html[data-theme='slateDark'] img.card__icon { background-color: var(--white); border-radius: var(--borderRadiusSmall); } diff --git a/src/styles/vars.css b/src/styles/vars.css index 59ddc4917c..bc7986035b 100644 --- a/src/styles/vars.css +++ b/src/styles/vars.css @@ -261,7 +261,7 @@ } } -html[data-theme='dark'] { +html[data-theme='slateDark'] { /* The navigation matches the page in dark, unlike light */ --bg-color-menu: var(--colorBackgroundPrimaryDefault); --grey-lighter: var(--blue-grey-dark); diff --git a/src/themes/octopus/components/HtmlHead.astro b/src/themes/octopus/components/HtmlHead.astro index e5d5fcb589..8ed80355c1 100644 --- a/src/themes/octopus/components/HtmlHead.astro +++ b/src/themes/octopus/components/HtmlHead.astro @@ -9,19 +9,13 @@ import ThemeScript from '@components/ThemeScript.astro'; import SignedInScript from '@components/SignedInScript.astro'; // Design tokens as CSS custom properties. globals and textTheme apply at :root; -// lightTheme and darkTheme are selected by the data-theme attribute on - -// rendered as a default by layouts/Default.astro, then resolved before first -// paint by . See src/lib/theme.ts. -// -// SPIKE: the slate theme isn't published to npm yet, so these are copied from an -// unpublished build (OctopusDeploy repo, frontend/packages/design-system-tokens/src/generated, -// commit ba3902e78c7). The slate files' selectors were rewritten from slateLight/slateDark to -// light/dark so the existing theme switching works unchanged. Once a package version with -// slate is published, delete src/styles/design-system-tokens and import from the package again. -import '../../../styles/design-system-tokens/globals.css'; -import '../../../styles/design-system-tokens/textTheme.css'; -import '../../../styles/design-system-tokens/slateLightTheme.css'; -import '../../../styles/design-system-tokens/slateDarkTheme.css'; +// slateLightTheme and slateDarkTheme are selected by the data-theme attribute on +// - rendered as a default by layouts/Default.astro, then resolved before +// first paint by . See src/lib/theme.ts. +import '@octopusdeploy/design-system-tokens/css/globals.css'; +import '@octopusdeploy/design-system-tokens/css/textTheme.css'; +import '@octopusdeploy/design-system-tokens/css/slateLightTheme.css'; +import '@octopusdeploy/design-system-tokens/css/slateDarkTheme.css'; // Site styles, imported so that Vite will bundle/minify/content-hash them. // Note: @font-face rules in vars.css point at public/docs/css/fa/webfonts, which stay in diff --git a/src/themes/octopus/components/ThemeScript.astro b/src/themes/octopus/components/ThemeScript.astro index ce28991a88..3610ffcf3c 100644 --- a/src/themes/octopus/components/ThemeScript.astro +++ b/src/themes/octopus/components/ThemeScript.astro @@ -2,6 +2,7 @@ import { COLOR_SCHEME_QUERY, THEME_ATTRIBUTE, + THEME_ATTRIBUTE_VALUES, THEME_PREFERENCE_ATTRIBUTE, THEME_STORAGE_KEY, THEME_VARIANT_ATTRIBUTE, @@ -27,6 +28,7 @@ const VARIANT_MEDIA = { define:vars={{ COLOR_SCHEME_QUERY, THEME_ATTRIBUTE, + THEME_ATTRIBUTE_VALUES, THEME_PREFERENCE_ATTRIBUTE, THEME_STORAGE_KEY, THEME_VARIANT_ATTRIBUTE, @@ -51,7 +53,7 @@ const VARIANT_MEDIA = { : preference; const root = document.documentElement; - root.setAttribute(THEME_ATTRIBUTE, theme); + root.setAttribute(THEME_ATTRIBUTE, THEME_ATTRIBUTE_VALUES[theme]); root.setAttribute(THEME_PREFERENCE_ATTRIBUTE, preference); // Themed :img{src-dark=...} pictures follow the OS setting as written. When diff --git a/tests/theme.spec.ts b/tests/theme.spec.ts index 30c51b4f95..4d9f3accd2 100644 --- a/tests/theme.spec.ts +++ b/tests/theme.spec.ts @@ -9,8 +9,14 @@ const toggleIcon = `${toggle} .btn__icon`; const drawerToggleIcon = '.top-nav__drawer-theme .btn__icon'; // Auto-retrying so a slow style/attribute write can never make these flaky. -function expectTheme(page: Page, value: string) { - return expect(page.locator('html')).toHaveAttribute('data-theme', value); +// data-theme carries the slate token theme's name for each theme +const themeAttribute = { light: 'slateLight', dark: 'slateDark' } as const; + +function expectTheme(page: Page, theme: 'light' | 'dark') { + return expect(page.locator('html')).toHaveAttribute( + 'data-theme', + themeAttribute[theme] + ); } function expectPreference(page: Page, value: string) { @@ -114,7 +120,7 @@ test.describe('theme', () => { }); // The design token stylesheets define their custom properties only under - // [data-theme='light'] / [data-theme='dark'] and nothing at :root, so a page + // [data-theme='slateLight'] / [data-theme='slateDark'] and nothing at :root, so a page // with no attribute resolves no tokens at all. The server-rendered default in // layouts/Default.astro is what keeps that from happening without scripting. test.describe('with scripting disabled', () => { From bd1bd2a8007801f29548338cc45a9ed8662b5a35 Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Tue, 1 Dec 2026 11:40:32 +1300 Subject: [PATCH 4/7] Use semantic design tokens directly and remove unused CSS - Search results use the search tokens for hover and the active row, in place of the menu-list tokens with the same values. - Article links now change colour on hover; hover resolved to the same token as the resting colour. - The lightbox close button hover is visible in dark mode again. - Author dates use the secondary text token instead of a fixed grey. - Fonts use the semantic font family tokens instead of the primitives. - vars.css aliases that only renamed a semantic token are gone; call sites use the token directly. Variables nothing referenced are removed. - Removed the rules for the old search dialog, results list, overlay and "show more" button, which nothing renders any more, and two declarations that referenced undefined variables. Co-Authored-By: Claude Opus 5.5 --- src/components/DocsSearch.astro | 10 +- src/styles/api.css | 4 +- src/styles/main.css | 360 +++--------------- src/styles/vars.css | 134 +------ .../octopus/components/Breadcrumbs.astro | 6 +- src/themes/octopus/components/Search.astro | 2 +- 6 files changed, 66 insertions(+), 450 deletions(-) diff --git a/src/components/DocsSearch.astro b/src/components/DocsSearch.astro index d79df37527..796a337431 100644 --- a/src/components/DocsSearch.astro +++ b/src/components/DocsSearch.astro @@ -239,7 +239,7 @@ const listboxId = `${name}-search-listbox`; } .docs-search::backdrop { - background: var(--search-overlay); + background: var(--colorOverlayPrimary); } /* The UA rule for `[hidden]` loses to a class selector, and the regions below @@ -379,7 +379,7 @@ const listboxId = `${name}-search-listbox`; /* The default scrollbar keeps its light chrome in dark mode. Same treatment as the other scroll containers in main.css. */ scrollbar-width: thin; - scrollbar-color: var(--scrollbar-color) transparent; + scrollbar-color: var(--colorScrollbarHandle) transparent; } .docs-search__results { @@ -401,13 +401,13 @@ const listboxId = `${name}-search-listbox`; } .docs-search__row:hover { - background: var(--colorMenuListBackgroundHover); + background: var(--colorSearchBackgroundResultHover); } /* Focus never leaves the input, so the active row is the only thing telling you where Enter will take you. It has to be the loudest state here. */ .docs-search__row[data-active] { - background: var(--colorMenuListBackgroundActive); + background: var(--colorSearchBackgroundResultPressed); } .docs-search__row-icon { @@ -495,7 +495,7 @@ const listboxId = `${name}-search-listbox`; } .docs-search__section[data-active] { - background: var(--colorMenuListBackgroundActive); + background: var(--colorSearchBackgroundResultPressed); } .docs-search__section-mark { diff --git a/src/styles/api.css b/src/styles/api.css index 45c78b71f7..00f0c7dfd7 100644 --- a/src/styles/api.css +++ b/src/styles/api.css @@ -146,7 +146,7 @@ section so its examples can sit beside it. */ /* A deprecated endpoint keeps its badge and its row, and reads as secondary until the reader opens it. The page itself carries the warning in full. */ .site-nav__link--deprecated .site-nav__label { - color: var(--color-text-tertiary); + color: var(--colorTextTertiary); text-decoration: line-through; } @@ -170,7 +170,7 @@ section so its examples can sit beside it. */ border: var(--borderWidth1) solid; border-radius: var(--borderRadiusSmall); max-width: fit-content; - font-family: var(--fontFamilySystem-ui-monospace); + font-family: var(--fontFamilyCode); font-size: var(--fontSizeXSmall); font-weight: 400; line-height: var(--lineHeightXSmall); diff --git a/src/styles/main.css b/src/styles/main.css index 8f233872ee..d86b342ede 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -29,8 +29,8 @@ html { body { font: var(--textBodyRegularLarge); - color: var(--color-text); - background-color: var(--color-base-primary); + color: var(--colorTextPrimary); + background-color: var(--colorBackgroundPrimaryDefault); transition-property: background-color, color; transition-duration: var(--duration-default); transition-timing-function: ease-in-out; @@ -49,7 +49,7 @@ summary, summary > * { text-decoration: underline; cursor: pointer; - color: var(--body-link-alt); + color: var(--colorTextPrimary); } a:hover, @@ -57,26 +57,26 @@ a:focus, summary:hover, summary:focus, dt[data-destination]:hover { - color: var(--body-link-color); + color: var(--colorTextLinkDefault); } button[data-share] { background-color: unset; cursor: pointer; - color: var(--body-link-alt); - stroke: var(--body-link-alt); + color: var(--colorTextPrimary); + stroke: var(--colorTextPrimary); } hr { - border-bottom: 1px solid var(--header-separator-color); + border-bottom: 1px solid var(--colorBorderPrimary); } .page-content :where(a) { - color: var(--octo-blue); + color: var(--colorTextLinkDefault); } .page-content :where(a:hover, a:focus) { - color: var(--body-link-color); + color: var(--colorTextLinkHover); } /* The tinted card is the callout's shape. Almost every `>` in the docs holds @@ -110,7 +110,7 @@ pre { white-space: break-spaces; background: transparent !important; font: var(--textCodeRegularMedium); - color: var(--color-text); + color: var(--colorTextPrimary); } pre code { @@ -134,7 +134,7 @@ div.problem code:not(pre code), div.question code:not(pre code), div.hint code:not(pre code) { background-color: var(--colorBackgroundSecondaryDefault); - color: var(--color-text); + color: var(--colorTextPrimary); } /* Shiki writes the light set inline and the dark set to --shiki-dark-*. */ @@ -154,7 +154,7 @@ em { h1 { font: var(--textHeadingXLarge); - color: var(--color-heading); + color: var(--colorTextPrimary); } h2:not(:where([data-shared-fragment] *)), @@ -162,7 +162,7 @@ h3:not(:where([data-shared-fragment] *)), h4:not(:where([data-shared-fragment] *)), h5:not(:where([data-shared-fragment] *)), h6:not(:where([data-shared-fragment] *)) { - color: var(--color-heading); + color: var(--colorTextPrimary); margin-block-end: var(--space12); transition: color var(--duration-default) ease-in-out; @@ -210,7 +210,7 @@ h6:not(:where([data-shared-fragment] *)) { img { max-width: 100%; height: auto; - background-color: var(--color-base-primary); + background-color: var(--colorBackgroundPrimaryDefault); } /* Content screenshots and diagrams are captured against a light UI and exported @@ -252,7 +252,7 @@ figure picture { } .image__caption { - color: var(--color-heading); + color: var(--colorTextPrimary); font-size: var(--fontSizeBase); font-weight: var(--fontWeight400); text-align: start; @@ -263,7 +263,7 @@ figure picture { position: fixed; inset: 0; z-index: 100; - background: var(--color-base-primary); + background: var(--colorBackgroundPrimaryDefault); animation: zoom-fade 200ms ease-out; } @@ -290,7 +290,7 @@ figure picture { height: 2.75rem; border-radius: 50%; background: none; - color: var(--color-heading); + color: var(--colorTextPrimary); font-size: 1.75rem; line-height: 1; cursor: pointer; @@ -298,7 +298,7 @@ figure picture { .zoom-close:hover, .zoom-close:focus-visible { - background: var(--bg-color-menu); + background: var(--colorBackgroundPrimaryHover); } .zoom-lightbox img { @@ -328,7 +328,7 @@ mark { strong { font-weight: var(--fontWeight700); - font-family: var(--fontFamilySystem-ui); + font-family: var(--fontFamilyDefault); } /* Headings are excluded because they set a tighter 12px block-end themselves, @@ -433,7 +433,7 @@ strong { margin-block: var(--space24); padding: var(--space16); border-radius: var(--borderRadiusMedium); - color: var(--color-callout-body); + color: var(--colorCalloutTextBody); font: var(--textBodyRegularMedium); } @@ -473,57 +473,57 @@ strong { } .hint { - --callout-title-color: var(--color-hint); - background-color: var(--bg-color-hint); + --callout-title-color: var(--colorCalloutTextInfo); + background-color: var(--colorCalloutBackgroundInfoDefault); } .hint::before { - background-color: var(--icon-color-hint); + background-color: var(--colorCalloutIconInfo); mask-image: url('../assets/icons/info-circle.svg'); } .info { - --callout-title-color: var(--color-info); - background-color: var(--bg-color-info); + --callout-title-color: var(--colorCalloutTextInfo); + background-color: var(--colorCalloutBackgroundInfoDefault); } .info::before { - background-color: var(--icon-color-info); + background-color: var(--colorCalloutIconInfo); mask-image: url('../assets/icons/info-circle.svg'); } .success { - --callout-title-color: var(--color-success); - background-color: var(--bg-color-success); + --callout-title-color: var(--colorCalloutTextSuccess); + background-color: var(--colorCalloutBackgroundSuccessDefault); } .success::before { - background-color: var(--icon-color-success); + background-color: var(--colorCalloutIconSuccess); mask-image: url('../assets/icons/check-circle.svg'); } .warning { - --callout-title-color: var(--color-warning); - background-color: var(--bg-color-warning); + --callout-title-color: var(--colorCalloutTextWarning); + background-color: var(--colorCalloutBackgroundWarningDefault); } .warning::before { - background-color: var(--icon-color-warning); + background-color: var(--colorCalloutIconWarning); mask-image: url('../assets/icons/exclamation-triangle.svg'); } .problem { - --callout-title-color: var(--color-problem); - background-color: var(--bg-color-problem); + --callout-title-color: var(--colorCalloutTextDanger); + background-color: var(--colorCalloutBackgroundDangerDefault); } .problem::before { - background-color: var(--icon-color-problem); + background-color: var(--colorCalloutIconDanger); mask-image: url('../assets/icons/exclamation-circle.svg'); } .question { - background: var(--bg-color-hint); + background: var(--colorCalloutBackgroundInfoDefault); border-radius: var(--standard-radius); margin: var(--space24) 0; padding: 1.5rem; @@ -690,7 +690,7 @@ nav.skip-links { } nav.skip-links a { - background-color: var(--color-base-primary); + background-color: var(--colorBackgroundPrimaryDefault); clip: rect(0 0 0 0); min-width: 20vw; overflow: hidden; @@ -739,7 +739,7 @@ html[data-signed-in='false'] [data-signed-in-only] { .separator { width: 100%; height: 0.0625rem; - background-color: var(--separator-color); + background-color: var(--colorBorderPrimary); margin: 3rem 0 3.75rem; transition: background-color var(--duration-default) ease-in-out; @@ -754,7 +754,7 @@ html[data-signed-in='false'] [data-signed-in-only] { gap: 1rem; text-decoration: none; color: var(--colorTextLinkDefault); - font-family: var(--fontFamilySystem-ui); + font-family: var(--fontFamilyDefault); font-size: var(--fontSizeLarge); line-height: var(--lineHeightMedium); font-weight: var(--fontWeight500); @@ -1049,7 +1049,7 @@ html[data-theme='slateDark'] img.card__icon { padding-block: var(--space16) 0; padding-inline: var(--space16) 0; background-color: var(--colorBackgroundPrimaryDefault); - border-inline-end: 1px solid var(--border-default-color); + border-inline-end: 1px solid var(--colorBorderPrimary); transition-property: background-color, border-color; transition-duration: var(--duration-default); transition-timing-function: ease-in-out; @@ -1080,7 +1080,7 @@ html[data-theme='slateDark'] img.card__icon { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; - scrollbar-color: var(--scrollbar-color) transparent; + scrollbar-color: var(--colorScrollbarHandle) transparent; } .site-nav__list .site-nav__list { @@ -1194,7 +1194,7 @@ html[data-theme='slateDark'] img.card__icon { padding-block-end: var(--space48); overflow-y: auto; scrollbar-width: thin; - scrollbar-color: var(--scrollbar-color) transparent; + scrollbar-color: var(--colorScrollbarHandle) transparent; } @media (max-width: 1130px) { @@ -1272,7 +1272,7 @@ html[data-theme='slateDark'] img.card__icon { } .header__title { - color: var(--color-text); + color: var(--colorTextPrimary); transition: color var(--duration-default) ease-in-out; @media (prefers-reduced-motion: reduce) { @@ -1281,7 +1281,7 @@ html[data-theme='slateDark'] img.card__icon { } .header__subtitle { - color: var(--color-subtitle); + color: var(--colorTextSecondary); font-size: var(--fontSizeLarge); line-height: var(--lineHeightMedium); transition: color var(--duration-default) ease-in-out; @@ -1391,7 +1391,7 @@ html[data-theme='slateDark'] img.card__icon { .page-toc li a.highlight { font-weight: var(--fontWeight700); - color: var(--color-menu-link-alt); + color: var(--colorTextLinkDefault); } .page-toc .toc-lev-3 { @@ -1442,7 +1442,7 @@ html[data-theme='slateDark'] img.card__icon { .author-list time { font-size: var(--fontSizeBase); - color: var(--grey); + color: var(--colorTextSecondary); } @media (max-width: 860px) { @@ -1456,49 +1456,6 @@ html[data-theme='slateDark'] img.card__icon { } } -/* Search dialog */ - -.search-dialog { - margin: auto; - padding: 2rem 3rem; - border-radius: var(--standard-radius); - box-shadow: var(--box-shadow); - height: calc(90vh - 4em); - width: calc(80vw - 6em); - max-width: 860px; -} - -.search-dialog::backdrop { - background-color: #000; - opacity: 0.5; -} - -.search-dialog form { - margin-top: 2rem; -} - -#site-search-close { - float: right; - position: relative; - top: -1rem; - left: 2.5rem; - background: none; - cursor: pointer; - font-size: var(--fontSize2xLarge); - stroke: var(--color-menu-link); -} - -@media (max-width: 860px) { - .search-dialog { - /* Fallback */ - height: calc(100vh - 4rem); - width: calc(100vw - 6rem); - /* Ideal units */ - height: calc(100dvh - 4rem); - width: calc(100dvw - 6rem); - } -} - /* Taxonomy Links */ .post-taxonomy div { @@ -1581,15 +1538,9 @@ html[data-theme='slateDark'] img.card__icon { background-size: cover; border-radius: var(--standard-radius); box-shadow: var(--octo-shadow-standard-box); - color: var(--fore-link); font-size: 5em; } -.yt-video:hover .title, -.yt-video:focus .title { - background-color: var(--funk); -} - .yt-iframe { max-width: 100%; margin: 0 auto; @@ -1681,20 +1632,6 @@ a[data-youtube] { } } -/* Overlay (Mobile Navigation, Search) */ - -.overlay { - position: fixed; - top: 0; - background-color: var(--content-bg); - width: calc(100% - 1em - 1em); - height: calc(100% - 5rem - 2rem); - padding: 110px 1em 2rem 1em; - max-height: 100vh; - overflow-y: auto; - z-index: 1; -} - /* Site Search */ .site-search__wrapper { @@ -1737,7 +1674,7 @@ a[data-youtube] { height: var(--search-height); border-radius: var(--search-border-radius); border: var(--search-border); - background-color: var(--color-base-primary); + background-color: var(--colorBackgroundPrimaryDefault); position: relative; z-index: 1; transition: background-color var(--duration-default) ease-in-out; @@ -1747,53 +1684,10 @@ a[data-youtube] { } } -.site-search-results { - background-color: var(--color-base-primary); - position: absolute; - top: var(--search-height); - width: 100%; - padding: 0; - border-radius: var(--search-border-radius); - border-radius: 0.9375rem; - list-style-type: none; - overflow-y: scroll; - transition-property: opacity, padding, transform, visibility; - transition-duration: var(--search-dropdown-duration); - transition-timing-function: ease-in-out; - visibility: hidden; - transform: translateY(0) scaleY(0); - z-index: 1; - max-height: var(--search-dropdown-height); - transform-origin: top; - will-change: transform; - opacity: 0; -} - -.site-search.is-active + .site-search-results { - opacity: 1; - padding: 1rem 0; - transform: translateY(1.37rem) scaleY(1); - visibility: visible; -} - -.site-search-results ul { - list-style-type: none; - margin-inline-start: 0; -} - -.site-search-results .show-more { - border-radius: 4.0625rem; - background: #00ffa3; - padding: 0.5rem 0.75rem; - display: block; - margin: 1rem auto 0; - cursor: pointer; -} - .site-search__overlay { opacity: 0; visibility: hidden; - background: var(--search-overlay); + background: var(--colorOverlayPrimary); position: fixed; top: 0; left: 0; @@ -1812,10 +1706,10 @@ a[data-youtube] { that strip showing the undimmed page color once the scrollbar goes. Painting the same wash onto the canvas carries the dimming across it. */ html:has(.site-search__wrapper.is-active) { - background-color: var(--color-base-primary); + background-color: var(--colorBackgroundPrimaryDefault); background-image: linear-gradient( - var(--search-overlay), - var(--search-overlay) + var(--colorOverlayPrimary), + var(--colorOverlayPrimary) ); } @@ -1829,116 +1723,13 @@ html:has(.site-search__wrapper.is-active) { height: 100%; padding: 0 1rem; width: calc(100% - 2rem); - color: var(--color-text); + color: var(--colorTextPrimary); } .site-search-query::placeholder { color: var(--colorTextFieldTextSecondary); } -.search-results__heading { - visibility: hidden; - padding: 1.5rem 3.6rem 1.75rem; -} - -.site-search.is-active + .site-search-results > .search-results__heading { - visibility: visible; -} - -.site-search-results__item { - background-color: transparent; - transition-property: background-color, border-color; - transition-duration: var(--search-dropdown-duration); - transition-timing-function: ease-in-out; - border-bottom: 0.0625rem solid; - border-color: var(--colorBorderPrimary); - position: relative; - cursor: pointer; -} - -.site-search-results__item:hover { - --hover-color: var(--colorSearchBackgroundResultHover); - background-color: var(--hover-color); - border-color: var(--hover-color); -} - -.site-search-results__item::after { - content: ''; - display: inline-block; - width: 0.75rem; - height: 1.25rem; - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20' viewBox='0 0 12 20' fill='none'%3E%3Cpath d='M2 18L10 10L2 2' stroke='%230D80D8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); - background-size: 0.75rem 1.25rem; - background-repeat: no-repeat; - position: absolute; - right: 2rem; - top: 50%; - transform: translateY(-50%) translateX(-1rem); - opacity: 0; - transition-property: opacity, transform; - transition-duration: var(--search-dropdown-duration); - transition-timing-function: ease-in-out; -} - -.site-search-results__item:hover::after { - opacity: 1; - transform: translateY(-50%) translateX(0); -} - -@media (max-width: 930px) { - .site-search-results__item { - padding: 1rem; - } -} - -.result-wrapper { - display: flex; - padding: 1.5rem 3.6rem 1.75rem; - text-decoration: none; - flex-direction: column; - gap: 0.56rem; -} - -@media (max-width: 930px) { - .result-wrapper { - padding: 1rem; - } -} - -.site-search-results__item:hover .result-wrapper { - color: initial; -} - -.result-wrapper mark { - color: var(--octo-blue); -} - -.result-path { - color: var(--colorTextTertiary); - font-size: var(--fontSizeMedium); - font-weight: var(--fontWeight400); - display: flex; - gap: 0.5rem; - flex-wrap: wrap; -} - -.result-path__segment:last-child { - color: var(--color-menu-link-active); -} - -.result-title { - color: var(--color-text); - font-size: var(--fontSizeLarge); - line-height: var(--lineHeightMedium); - font-weight: var(--fontWeight700); -} - -.result-description { - color: var(--color-heading); - font-size: var(--fontSizeBase); - font-weight: var(--fontWeight400); -} - .site-search > fieldset { height: 100%; display: flex; @@ -1971,49 +1762,6 @@ html:has(.site-search__wrapper.is-active) { display: none; } -.site-search .show-more { - display: inline-block; - font-size: var(--fontSizeMedium); - border-radius: 100px; - text-decoration: none; - text-align: center; - padding: 0.2em 0.6em 0.3em 0.6em; - color: var(--button-primary-text); - background-color: var(--bg-color-hint); -} - -.result-headings li { - display: none; -} - -.result-headings li:nth-child(-n + 3) { - display: block; -} - -.result-headings:has(li:nth-child(n + 4))::after { - content: 'See more >'; - color: var(--octo-blue); - text-decoration: underline; -} - -.result-headings:focus-within li { - display: block; -} - -.result-headings:focus-within::after { - display: none; -} - -.show-more { - display: inline-block; - border-radius: 100px; - text-decoration: none; - text-align: center; - padding: 0.2em 1.6em 0.3em 1.6em; - color: var(--button-primary-text); - background-color: var(--bg-color-hint); -} - @media (max-width: 860px) { .site-search div { grid-template-columns: repeat(1, auto); @@ -2412,7 +2160,7 @@ a.button { padding: 0.75rem 1.875rem; justify-content: center; align-items: center; - font-family: var(--fontFamilySystem-ui); + font-family: var(--fontFamilyDefault); font-size: var(--fontSizeBase); font-weight: var(--fontWeight700); line-height: 1.38rem; @@ -2628,7 +2376,7 @@ a.button.button--primary:active { overflow-x: auto; overscroll-behavior: contain; scrollbar-width: thin; - scrollbar-color: var(--scrollbar-color) transparent; + scrollbar-color: var(--colorScrollbarHandle) transparent; gap: var(--space0); background-color: var(--colorBackgroundSecondaryDefault); } diff --git a/src/styles/vars.css b/src/styles/vars.css index bc7986035b..ff3bffaa05 100644 --- a/src/styles/vars.css +++ b/src/styles/vars.css @@ -24,22 +24,12 @@ } :root { - --page-inline-margin: 2rem; - /* Theme colors The palette entries below map 1:1 onto the design system's color scales from @octopusdeploy/design-system-tokens. Scales are theme-invariant, so - these values are the same in light and dark; the semantic variables - further down are what differ between themes. */ - --black: var(--colorScalesBlack); + these values are the same in light and dark. */ --white: var(--colorScalesWhite); - --navy-700: var(--colorScalesNavy700); - --navy-400: var(--colorScalesNavy400); - --navy-300: var(--colorScalesNavy300); - --navy-200: var(--colorScalesNavy200); - --navy-100: var(--colorScalesNavy100); - /* TODO: remove green-400 as it's being used in one place only */ --green-400: var(--colorScalesGreen400); --green-500: var(--colorScalesGreen500); @@ -52,93 +42,18 @@ --orange-400: var(--colorScalesOrange400); --orange-500: var(--colorScalesOrange500); - --blue-midnight-dark: #070e14ff; - --blue-midnight-darker: #0a202fff; - --blue-midnight-lighter: #22425cff; - - --blue-grey-dark: #152b3dff; - --blue-gray-darker: #1f2f3cff; --blue-grey-medium: var(--brandGrey); - --grey: #555555ff; /* #777777 is low contrast (WCAG) */ --grey-500: var(--colorScalesGrey500); - /* #777777 is low contrast (WCAG) */ - --grey-light: #eef0f2ff; - --grey-lighter: var(--navy-100); - - --color-base-primary: var(--colorBackgroundPrimaryDefault); - --color-text: var(--colorTextPrimary); - --color-heading: var(--colorTextPrimary); - --color-text-secondary: var(--colorTextSecondary); - --color-text-tertiary: var(--colorTextTertiary); - - --color-subtitle: var(--colorTextSecondary); - - --border-color-header: var(--colorBorderPrimary); - - --color-menu-link: var(--colorTextSecondary); - --color-menu-link-active: var(--colorTextPrimary); - --color-menu-link-alt: var(--colorTextLinkDefault); - --color-menu-marker: var(--navy-300); - --bg-color-menu: var(--colorBackgroundSecondaryDefault); - --border-color-menu-open: var(--colorBorderPrimary); --gap-menu: 0.6em; --navigation-width: 20rem; - --bg-color-tab: var(--colorBackgroundTertiary); - --border-color-tab: var(--colorBorderPrimary); - --border-color-tab-active: var(--colorBorderSelected); - - --color-callout-body: var(--colorCalloutTextBody); - - --color-hint: var(--colorCalloutTextInfo); - --bg-color-hint: var(--colorCalloutBackgroundInfoDefault); - --icon-color-hint: var(--colorCalloutIconInfo); - - --color-info: var(--colorCalloutTextInfo); - --bg-color-info: var(--colorCalloutBackgroundInfoDefault); - --icon-color-info: var(--colorCalloutIconInfo); - - --color-success: var(--colorCalloutTextSuccess); - --bg-color-success: var(--colorCalloutBackgroundSuccessDefault); - --icon-color-success: var(--colorCalloutIconSuccess); - - --color-warning: var(--colorCalloutTextWarning); - --bg-color-warning: var(--colorCalloutBackgroundWarningDefault); - --icon-color-warning: var(--colorCalloutIconWarning); - - --color-problem: var(--colorCalloutTextDanger); - --bg-color-problem: var(--colorCalloutBackgroundDangerDefault); - --icon-color-problem: var(--colorCalloutIconDanger); - --duration-default: 300ms; --theme-transition-duration: 0s; - /* Backgrounds */ - --background-light: var(--colorBackgroundSecondaryDefault); - --background-default: var(--colorBackgroundPrimaryDefault); - - /* Borders */ - --border-default-color: var(--colorBorderPrimary); - - /* Separator */ - --separator-color: var(--colorBorderPrimary); - - /* Scrollbar */ - --scrollbar-color: var(--colorScrollbarHandle); - - /* Icon Tile */ - --icon-tile-border: var(--border-default-color); - --icon-tile-border-hover: var(--colorBorderSelected); - --icon-tile-background: var(--background-light); - --icon-tile-background-hover: var(--background-default); - - /* Article header */ - --header-separator-color: var(--colorBorderPrimary); - /* Button */ --button-primary: var(--green); --button-primary-focus: var(--light-green); @@ -148,47 +63,16 @@ /* Search variables */ --search-height: 3rem; --search-border-radius: calc(var(--search-height) / 2); - --search-results-padding: 1rem; --search-border: 0.0625rem solid var(--colorTextFieldBorderDefault); - --search-dropdown-height: 60vh; --search-dropdown-duration: var(--duration-default); - --search-overlay: var(--colorOverlayPrimary); - - --hamburger-lines-color: var(--colorIconPrimary); - - /* Card */ - --card-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15); - --card-related-topics-shadow: 0px 10px 35px 0px rgba(133, 152, 165, 0.1); - --card-related-topics-hover-shadow: 0px 10px 35px 0px - rgba(133, 152, 165, 0.25); - - /* To be checked and cleaned */ - - --octo-blue: var(--colorTextLinkDefault); - - --header-link-color: var(--octo-blue); - - --content-bg: var(--white); - - --body-link-color: var(--octo-blue); - --body-link-alt: var(--colorTextPrimary); - - --icon-stroke: var(--white); - --icon-fill: var(--colorIconSecondary); - - --octopus-logo-text-color: #0f2535; --block-gap: 2rem; - --header-pin: 0; --header-height: 68px; --scroll-pad: 140px; - --box-shadow: 4px 0px 8px rgba(0, 0, 0, 0.25); --octo-shadow-standard-box: 0 2px 6px 0 rgba(0, 0, 0, 0.2); - --octo-shadow-standard-box-hover: 0 2px 6px 0 rgba(0, 0, 0, 0.4); - --content-width: 78vw; --content-width-article: 800px; --content-width-mobile: calc(100vw - 4rem); --toc-width: 250px; @@ -212,8 +96,6 @@ var(--api-content-min-width) + var(--api-columns-gap) + var(--api-examples-min-width) ); - --grid-max-width: 1250px; - --grid-gap: 1rem; --grid-gap-main: 1rem; --standard-radius: 0.5rem; @@ -255,21 +137,7 @@ } } -@media (max-width: 860px) { - :root { - --page-inline-margin: 1rem; - } -} - html[data-theme='slateDark'] { - /* The navigation matches the page in dark, unlike light */ - --bg-color-menu: var(--colorBackgroundPrimaryDefault); - --grey-lighter: var(--blue-grey-dark); - --grey-light: var(--navy-700); - --octopus-logo-text-color: var(--white); - /* Tiles sit one step above the page so hover has somewhere lighter to go */ - --icon-tile-background-hover: var(--colorBackgroundTertiary); - --colorApiBadgeBackgroundGet: var(--colorScalesGreen900); --colorApiBadgeBorderGet: var(--colorScalesGreen700); --colorApiBadgeIconGet: var(--colorScalesGreen300); diff --git a/src/themes/octopus/components/Breadcrumbs.astro b/src/themes/octopus/components/Breadcrumbs.astro index f2a790c3f6..11eed5a650 100644 --- a/src/themes/octopus/components/Breadcrumbs.astro +++ b/src/themes/octopus/components/Breadcrumbs.astro @@ -59,13 +59,13 @@ stats.stop(); li + li::before { content: '/'; margin-inline-end: var(--space8); - color: var(--color-text-tertiary); + color: var(--colorTextTertiary); font: var(--textBodyRegularSmall); } a, span { - color: var(--color-menu-link); + color: var(--colorTextSecondary); font: var(--textBodyRegularMedium); text-decoration: none; transition: color var(--duration-default) ease-in-out; @@ -77,6 +77,6 @@ stats.stop(); a:hover, a:focus { - color: var(--color-menu-link-alt); + color: var(--colorTextLinkDefault); } diff --git a/src/themes/octopus/components/Search.astro b/src/themes/octopus/components/Search.astro index 62d0c6ece2..456af521cf 100644 --- a/src/themes/octopus/components/Search.astro +++ b/src/themes/octopus/components/Search.astro @@ -74,7 +74,7 @@ stats.stop(); > + fill="var(--colorIconPrimary)"> From 048c3ab16a231941091f9097cd6f9625ec65bdc9 Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Tue, 1 Dec 2026 12:00:23 +1300 Subject: [PATCH 5/7] Fix spelling in theme.ts comment Co-Authored-By: Claude Opus 5.5 --- src/lib/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/theme.ts b/src/lib/theme.ts index 87aaf17478..f6c38ce4ac 100644 --- a/src/lib/theme.ts +++ b/src/lib/theme.ts @@ -70,7 +70,7 @@ export const THEME_ATTRIBUTE_VALUES = { dark: 'slateDark', } as const satisfies Record; -/** Reads a `data-theme` value back to a Theme. Anything unrecognised is light. */ +/** Reads a `data-theme` value back to a Theme. Any other value reads as light. */ export function themeFromAttribute(value: string | null): Theme { return value === THEME_ATTRIBUTE_VALUES.dark ? 'dark' : 'light'; } From 52fce6e65138e007da2445c3a75f6e22028b9c05 Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Wed, 2 Dec 2026 17:25:20 +1300 Subject: [PATCH 6/7] Use the new Octopus logo in the top nav Replace the logo with the current one from octopus.com, renamed to octopus-logo-v3.svg to bust any cached copies of the old asset. The wordmark uses currentColor so it follows the light/dark theme, and it is sized at its native 130x30 to match octopus.com. Co-Authored-By: Claude Opus 5.5 --- src/assets/octopus-logo-v2.svg | 4 ---- src/assets/octopus-logo-v3.svg | 10 ++++++++++ src/components/TopNav.astro | 5 +++-- 3 files changed, 13 insertions(+), 6 deletions(-) delete mode 100644 src/assets/octopus-logo-v2.svg create mode 100644 src/assets/octopus-logo-v3.svg diff --git a/src/assets/octopus-logo-v2.svg b/src/assets/octopus-logo-v2.svg deleted file mode 100644 index bffd0a9517..0000000000 --- a/src/assets/octopus-logo-v2.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/assets/octopus-logo-v3.svg b/src/assets/octopus-logo-v3.svg new file mode 100644 index 0000000000..09a61dd832 --- /dev/null +++ b/src/assets/octopus-logo-v3.svg @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/src/components/TopNav.astro b/src/components/TopNav.astro index be93d595a7..130e0e71aa 100644 --- a/src/components/TopNav.astro +++ b/src/components/TopNav.astro @@ -1,5 +1,5 @@ --- -import Logo from '../assets/octopus-logo-v2.svg'; +import Logo from '../assets/octopus-logo-v3.svg'; import Button from './Button.astro'; import Menu, { type MenuItem } from './Menu.astro'; import ProfileMenu from './ProfileMenu.astro'; @@ -206,7 +206,8 @@ const sectionItems: MenuItem[] = links.map(({ label, href }) => ({ .top-nav__logo-mark { display: block; - height: 2rem; + /* The logo's native size (130x30), matching octopus.com */ + height: 1.875rem; width: auto; color: var(--colorTextPrimary); transition: color var(--theme-transition-duration) ease-in-out; From 4acbd799b722637392846f614c8bad39c364b394 Mon Sep 17 00:00:00 2001 From: Orion Edwards Date: Wed, 2 Dec 2026 17:25:21 +1300 Subject: [PATCH 7/7] Use loud button colors for in-content buttons The legacy a.button rule hardcoded the old green button colors, which overrode the button--primary class on the Getting started page. Use the same loud button tokens as the top-nav "Start for free" button instead, and remove the now-unused legacy button and brand green variables. Also display the bare that MDX wraps a standalone button in as a block, so the paragraph spacing below the button applies. Co-Authored-By: Claude Opus 5.5 --- src/styles/main.css | 46 ++++++++++++++++++++------------------------- src/styles/vars.css | 11 ----------- 2 files changed, 20 insertions(+), 37 deletions(-) diff --git a/src/styles/main.css b/src/styles/main.css index d86b342ede..01b13928c6 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -2152,7 +2152,8 @@ ol.col-3 { } } -/* Buttons */ +/* Buttons written directly in page content (``). These use + the same colors as the loud `Button` component (see button.css). */ a.button { text-decoration: none; @@ -2165,41 +2166,34 @@ a.button { font-weight: var(--fontWeight700); line-height: 1.38rem; border-radius: 0.5rem; - border-width: 0.0625rem; - color: var(--button-primary-text); - background: var(--button-primary); + border: var(--borderWidth1) solid transparent; + color: var(--colorButtonTextLoud); + background: var(--colorButtonBackgroundLoudDefault); max-width: fit-content; - transition-duration: 250ms; - transition-property: background, border-color, box-shadow, color; + transition-property: background-color, color; + transition-duration: var(--theme-transition-duration); transition-timing-function: ease-in-out; } -a.button, -a.button.button--primary { - color: var(--button-primary-text); - background: var(--button-primary); - border-color: var(--button-primary); +a.button:hover, +a.button:focus-visible { + background: var(--colorButtonBackgroundLoudHover); } -a.button:focus, -a.button.button--primary:focus { - background: var(--button-primary-focus); - border-color: var(--button-ring-color); - outline: 0.1875rem solid var(--button-ring-color); - box-shadow: none; +a.button:focus-visible { + outline: var(--borderWidth2) solid var(--colorBorderSelected); + outline-offset: var(--borderWidth1); } -a.button:hover, -a.button.button--primary:hover { - background: var(--button-primary-focus); - border-color: var(--button-primary-focus); +a.button:active { + background: var(--colorButtonBackgroundLoudPressed); } -a.button:active, -a.button.button--primary:active { - background: var(--button-primary); - border-color: var(--button-primary-focus); - box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.35) inset; +/* MDX renders a button on a line of its own as a bare inline at the + top level of the page. Block-end margins don't apply to inline elements, so + without this the button sits flush against the paragraph that follows. */ +.page-content > span:has(> a.button) { + display: block; } /* Tooltip. Put the label in data-tooltip; the host positions the bubble above diff --git a/src/styles/vars.css b/src/styles/vars.css index ff3bffaa05..2709682e70 100644 --- a/src/styles/vars.css +++ b/src/styles/vars.css @@ -33,17 +33,12 @@ /* TODO: remove green-400 as it's being used in one place only */ --green-400: var(--colorScalesGreen400); --green-500: var(--colorScalesGreen500); - /* Brand greens, no scale equivalent */ - --green: #00e693ff; - --light-green: #00ffa3ff; --red-500: var(--colorScalesRed500); --orange-400: var(--colorScalesOrange400); --orange-500: var(--colorScalesOrange500); - --blue-grey-medium: var(--brandGrey); - /* #777777 is low contrast (WCAG) */ --grey-500: var(--colorScalesGrey500); @@ -54,12 +49,6 @@ --duration-default: 300ms; --theme-transition-duration: 0s; - /* Button */ - --button-primary: var(--green); - --button-primary-focus: var(--light-green); - --button-primary-text: var(--blue-grey-medium); - --button-ring-color: rgba(0, 255, 163, 0.5); - /* Search variables */ --search-height: 3rem; --search-border-radius: calc(var(--search-height) / 2);