@use 'sass:math';

@mixin theme {
	--color-primary-h: var(--prim-color-primary-h);
	--color-primary-s: var(--prim-color-primary-s);
	--color-primary-l: 68%;

	// Primary tokens

	// Primary
	--color-primary-shade-1: var(--prim-color-primary-shade-100);
	--color-primary: var(--prim-color-primary);
	--color-primary-tint-1: var(--prim-color-primary-tint-200);
	--color-primary-tint-2: var(--prim-color-primary-tint-250);
	--color-primary-tint-3: var(--prim-color-primary-tint-300);

	// Secondary
	--color-secondary-shade-1: var(--prim-color-secondary-shade-100);
	--color-secondary: var(--prim-color-secondary);
	--color-secondary-tint-1: var(--prim-color-secondary-tint-300);
	--color-secondary-tint-3: var(--prim-color-secondary-tint-400);

	// Success
	--color-success-shade-1: var(--prim-color-alt-a-shade-100);
	--color-success: var(--prim-color-alt-a);
	--color-success-light: var(--prim-color-alt-a-tint-300);
	--color-success-light-2: var(--prim-color-alt-a-tint-400);
	--color-success-tint-1: var(--prim-color-alt-a-tint-500);
	--color-success-tint-2: var(--prim-color-alt-a-tint-550);

	// Warning
	--color-warning-shade-1: var(--prim-color-alt-b-shade-100);
	--color-warning: var(--prim-color-alt-b);
	--color-warning-tint-1: var(--prim-color-alt-b-tint-250);
	--color-warning-tint-2: var(--prim-color-alt-b-tint-400);

	// Danger
	--color-danger-shade-1: var(--prim-color-alt-c-shade-100);
	--color-danger: var(--prim-color-alt-c);
	--color-danger-tint-1: var(--prim-color-alt-c-tint-400);
	--color-danger-tint-2: var(--prim-color-alt-c-tint-450);

	// Text
	--color-text-dark: var(--prim-gray-740);
	--color-text-base: var(--prim-gray-540);
	--color-text-light: var(--prim-gray-420);
	--color-text-lighter: var(--prim-gray-120);
	--color-text-xlight: var(--prim-gray-0);
	--color-text-danger: var(--prim-color-alt-c);

	// Foreground
	--color-foreground-xdark: var(--prim-gray-490);
	--color-foreground-dark: var(--prim-gray-200);
	--color-foreground-base: var(--prim-gray-120);
	--color-foreground-light: var(--prim-gray-70);
	--color-foreground-xlight: var(--prim-gray-0);

	// Background
	--color-background-dark: var(--prim-gray-820);
	--color-background-medium: var(--prim-gray-120);
	--color-background-base: var(--prim-gray-40);
	--color-background-light-base: var(--prim-gray-25);
	--color-background-light: var(--prim-gray-10);
	--color-background-xlight: var(--prim-gray-0);

	// Secondary tokens

	// LangChain
	--color-lm-chat-messages-background: var(--color-background-base);
	--color-lm-chat-bot-background: var(--prim-gray-0);
	--color-lm-chat-user-background: var(--prim-color-alt-a);
	--color-lm-chat-user-color: var(--color-text-xlight);

	// Canvas
	--color-canvas-background: var(--prim-gray-10);
	--color-canvas-background-h: var(--prim-gray-h); // Used for connectors labels background
	--color-canvas-background-s: 47%;
	--color-canvas-background-l: 99%;
	--color-canvas-dot: var(--prim-gray-120);
	--color-canvas-read-only-line: var(--prim-gray-30);
	--color-canvas-selected: var(--prim-gray-70);
	--color-canvas-selected-transparent: hsla(var(--prim-gray-h), 47%, 30%, 0.1);
	--color-canvas-label-background: hsla(
		var(--color-canvas-background-h),
		var(--color-canvas-background-s),
		var(--color-canvas-background-l),
		0.85
	);

	// Nodes
	--color-node-background: var(--color-background-xlight);
	--color-node-executing-background: var(--color-primary-tint-3);
	--color-node-executing-other-background: var(--color-primary-tint-3);
	--color-node-pinned-border: var(--color-secondary);
	--color-node-running-border: var(--color-primary);
	--node-type-main-color: var(--prim-gray-490);

	// Sticky
	--color-sticky-background: var(--prim-color-alt-d);
	--color-sticky-border: var(--prim-color-alt-d-shade-150);
	--color-sticky-font: var(--prim-gray-740);
	--color-sticky-code-font: var(--color-secondary);
	--color-sticky-code-background: var(--color-background-base);

	--color-sticky-background-1: var(--color-sticky-background);
	--color-sticky-border-1: var(--color-sticky-border);
	--color-sticky-background-2: var(--prim-color-alt-b-tint-300);
	--color-sticky-border-2: var(--prim-color-alt-b-tint-150);
	--color-sticky-background-3: var(--prim-color-alt-c-tint-400);
	--color-sticky-border-3: var(--prim-color-alt-c-tint-300);
	--color-sticky-background-4: var(--prim-color-alt-a-tint-500);
	--color-sticky-border-4: var(--prim-color-alt-a-tint-300);
	--color-sticky-background-5: var(--prim-color-alt-e-tint-350);
	--color-sticky-border-5: var(--prim-color-alt-e-tint-250);
	--color-sticky-background-6: var(--prim-color-secondary-tint-400);
	--color-sticky-border-6: var(--prim-color-secondary-tint-300);
	--color-sticky-background-7: var(--prim-gray-10);
	--color-sticky-border-7: var(--prim-gray-120);

	// AI Assistant
	--color-askAssistant-button-background: var(--color-background-xlight);
	--color-askAssistant-button-background-hover: var(--color-background-xlight);
	--color-askAssistant-button-background-active: var(--color-background-xlight);

	--color-assistant-highlight-1: #5b60e8;
	--color-assistant-highlight-2: #aa7bec;
	--color-assistant-highlight-3: #ec7b8e;
	--color-assistant-highlight-gradient: linear-gradient(
		105deg,
		var(--color-assistant-highlight-1) 0%,
		var(--color-assistant-highlight-2) 50%,
		var(--color-assistant-highlight-3) 100%
	);
	--color-assistant-highlight-reverse: linear-gradient(
		105deg,
		var(--color-assistant-highlight-3) 0%,
		var(--color-assistant-highlight-2) 50%,
		var(--color-assistant-highlight-1) 100%
	);
	--color-assistant-inner-highlight-hover: linear-gradient(
		108.82deg,
		rgba(236, 123, 142, 0.12) 0%,
		rgba(170, 123, 236, 0.12) 50.5%,
		rgba(91, 96, 232, 0.12) 100%
	);
	--color-assistant-inner-highlight-active: linear-gradient(
		108.82deg,
		rgba(236, 123, 142, 0.25) 0%,
		rgba(170, 123, 236, 0.25) 50.5%,
		rgba(91, 96, 232, 0.25) 100%
	);

	// NodeIcon
	--color-node-icon-gray: var(--prim-gray-420);
	--color-node-icon-black: var(--prim-gray-780);
	--color-node-icon-blue: #3a42e9;
	--color-node-icon-light-blue: #5fabf7;
	--color-node-icon-dark-blue: #353f6e;
	--color-node-icon-orange: #ff965a;
	--color-node-icon-orange-red: #ff6d5a;
	--color-node-icon-pink-red: #ea4b71;
	--color-node-icon-red: var(--prim-color-alt-c);
	--color-node-icon-light-green: #31c4ab;
	--color-node-icon-green: #108e49;
	--color-node-icon-dark-green: #157562;
	--color-node-icon-azure: #54b8c9;
	--color-node-icon-purple: #553399;
	--color-node-icon-crimson: #772244;

	// Expressions, autocomplete, infobox
	--color-valid-resolvable-foreground: var(--prim-color-alt-a);
	--color-valid-resolvable-background: var(--prim-color-alt-a-tint-500);
	--color-invalid-resolvable-foreground: var(--prim-color-alt-c);
	--color-invalid-resolvable-background: var(--prim-color-alt-c-tint-450);
	--color-pending-resolvable-foreground: var(--color-text-base);
	--color-pending-resolvable-background: var(--prim-gray-40);
	--color-expression-editor-background: var(--prim-gray-0);
	--color-expression-editor-modal-background: var(--color-background-base);
	--color-expression-syntax-example: var(--prim-gray-40);
	--color-autocomplete-item-selected: var(--color-secondary);
	--color-autocomplete-section-header-border: var(--color-foreground-light);
	--color-infobox-background: var(--color-background-light-base);
	--color-infobox-examples-border-color: var(--color-foreground-light);

	// Code
	--color-code-tags-string: var(--prim-color-alt-f);
	--color-code-tags-primitive: var(--prim-color-alt-b-shade-100);
	--color-code-tags-keyword: var(--prim-color-alt-g);
	--color-code-tags-operator: var(--prim-color-alt-h);
	--color-code-tags-variable: var(--prim-color-alt-c-shade-100);
	--color-code-tags-definition: var(--prim-color-alt-e-shade-150);
	--color-json-default: var(--prim-color-secondary-shade-100);
	--color-json-null: var(--prim-color-alt-c);
	--color-json-boolean: var(--prim-color-alt-a);
	--color-json-number: var(--prim-color-alt-a);
	--color-json-string: var(--prim-color-secondary-shade-100);
	--color-json-key: var(--prim-gray-670);
	--color-json-brackets: var(--prim-gray-670);
	--color-json-brackets-hover: var(--prim-color-alt-e);
	--color-json-line: var(--prim-gray-200);
	--color-json-highlight: var(--prim-gray-70);
	--color-code-background: var(--prim-gray-0);
	--color-code-background-readonly: var(--prim-gray-40);
	--color-code-lineHighlight: var(--prim-gray-40);
	--color-code-foreground: var(--prim-gray-670);
	--color-code-caret: var(--prim-gray-420);
	--color-code-selection: var(--prim-gray-120);
	--color-code-gutterBackground: var(--prim-gray-0);
	--color-code-gutterForeground: var(--prim-gray-320);
	--color-code-tags-comment: var(--prim-gray-420);
	--color-line-break: var(--prim-gray-320);
	--color-code-line-break: var(--prim-color-secondary-tint-200);

	// Variables
	--color-variables-usage-font: var(--color-success);
	--color-variables-usage-syntax-bg: var(--color-success-tint-2);

	// Button primary
	--color-button-primary-font: var(--prim-gray-0);
	--color-button-primary-border: var(--prim-color-primary);
	--color-button-primary-background: var(--prim-color-primary);
	--color-button-primary-hover-active-border: var(--prim-color-primary-shade-100);
	--color-button-primary-hover-active-focus-background: var(--prim-color-primary-shade-100);
	--color-button-primary-focus-outline: var(--prim-color-primary-alpha-035);
	--color-button-primary-disabled-font: var(--prim-gray-0-alpha-075);
	--color-button-primary-disabled-border: var(--prim-color-primary-tint-200);
	--color-button-primary-disabled-background: var(--prim-color-primary-tint-200);

	// Button secondary
	--color-button-secondary-font: var(--prim-gray-670);
	--color-button-secondary-border: var(--prim-gray-320);
	--color-button-secondary-background: var(--prim-gray-0);
	--color-button-secondary-hover-active-focus-font: var(--prim-color-primary-shade-100);
	--color-button-secondary-hover-active-focus-border: var(--prim-color-primary);
	--color-button-secondary-hover-background: var(--prim-color-primary-tint-300);
	--color-button-secondary-active-focus-background: var(--prim-color-primary-tint-270);
	--color-button-secondary-focus-outline: var(--prim-gray-120);
	--color-button-secondary-disabled-font: var(--prim-gray-200);
	--color-button-secondary-disabled-border: var(--prim-gray-200);

	// Button success, warning, danger
	--color-button-success-font: var(--prim-gray-0);
	--color-button-success-disabled-font: var(--prim-gray-0-alpha-075);
	--color-button-warning-font: var(--color-text-xlight);
	--color-button-warning-disabled-font: var(--prim-gray-0-alpha-075);
	--color-button-danger-font: var(--color-text-xlight);
	--color-button-danger-disabled-font: var(--prim-gray-0-alpha-075);

	// Text button
	--color-text-button-secondary-font: var(--prim-gray-670);

	// Node Creator Button
	--color-button-node-creator-border-font: var(--prim-gray-540);
	--color-button-node-creator-hover-font: var(--prim-color-primary);
	--color-button-node-creator-hover-border: var(--prim-color-primary);
	--color-button-node-creator-background: var(--prim-gray-0);

	// Table
	--color-table-header-background: var(--color-background-base);
	--color-table-row-background: var(--color-background-xlight);
	--color-table-row-even-background: var(--color-background-light);
	--color-table-row-hover-background: var(--color-primary-tint-3);
	--color-table-row-highlight-background: var(--color-warning-tint-1);

	// Notification
	--color-notification-background: var(--color-background-xlight);

	// Execution
	--execution-card-border-new: var(--prim-gray-200);
	--execution-card-border-success: var(--prim-color-alt-a-tint-300);
	--execution-card-border-error: var(--prim-color-alt-c-tint-250);
	--execution-card-border-waiting: var(--prim-color-secondary-tint-300);
	--execution-card-border-running: var(--prim-color-alt-b-tint-250);
	--execution-card-border-unknown: var(--prim-gray-120);
	--execution-card-background-hover: var(--color-foreground-light);
	--execution-card-text-waiting: var(--color-secondary);
	--execution-selector-background: var(--color-background-dark);
	--execution-selector-text: var(--color-text-xlight);
	--execution-select-all-text: var(--color-danger);

	// NDV
	--color-run-data-background: var(--color-background-base);
	--color-ndv-droppable-parameter: var(--color-secondary);
	--color-ndv-droppable-parameter-background: var(--prim-color-secondary-alpha-010);
	--color-ndv-droppable-parameter-active-background: var(--prim-color-alt-a-alpha-015);
	--color-ndv-back-font: var(--prim-gray-0);

	// Notice
	--color-notice-warning-border: var(--color-warning-tint-1);
	--color-notice-warning-background: var(--color-warning-tint-2);
	--color-notice-font: var(--color-text-base);

	// Callout
	--color-callout-info-border: var(--color-foreground-base);
	--color-callout-info-background: var(--color-foreground-xlight);
	--color-callout-info-font: var(--color-text-base);
	--color-callout-info-icon: var(--color-text-light);
	--color-callout-success-border: var(--color-success-light-2);
	--color-callout-success-background: var(--color-success-tint-2);
	--color-callout-success-font: var(--color-success);
	--color-callout-success-icon: var(--color-success);
	--color-callout-warning-border: var(--color-warning-tint-1);
	--color-callout-warning-background: var(--color-warning-tint-2);
	--color-callout-warning-font: var(--color-warning);
	--color-callout-warning-icon: var(--color-warning);
	--color-callout-danger-border: var(--color-danger-tint-1);
	--color-callout-danger-background: var(--color-danger-tint-2);
	--color-callout-danger-font: var(--color-danger);
	--color-callout-danger-icon: var(--color-danger);
	--color-callout-secondary-border: var(--color-secondary-tint-1);
	--color-callout-secondary-background: var(--color-secondary-tint-3);
	--color-callout-secondary-font: var(--color-secondary);
	--color-callout-secondary-icon: var(--color-secondary);

	// Dialogs and overlays
	--color-dialog-background: var(--prim-gray-0);
	--color-dialog-overlay-background: var(--prim-gray-0-alpha-075);
	--color-dialog-overlay-background-dark: var(--prim-color-alt-j-alpha-075);
	--color-block-ui-overlay: var(--prim-gray-820);

	// Avatar
	--color-avatar-font: var(--color-text-xlight);

	// NPS Survey
	--color-nps-survey-background: var(--prim-gray-740);
	--color-nps-survey-font: var(--prim-gray-0);

	// Action Dropdown
	--color-action-dropdown-item-active-background: var(--color-background-base);

	// Switch (Activation, boolean)
	--color-switch-background: var(--prim-gray-420);
	--color-switch-active-background: var(--prim-color-alt-i);
	--color-switch-border-color: transparent;
	--color-switch-toggle: var(--prim-gray-0);

	// Feature Request
	--color-feature-request-font: var(--prim-gray-0);

	// Input Triple
	--color-background-input-triple: var(--color-background-light);

	// Node error
	--color-node-error-output-text-color: var(--color-danger);

	// MFA Recovery codes
	--color-mfa-recovery-code-background: var(--color-background-base);
	--color-mfa-recovery-code-color: var(--prim-gray-490);
	--color-mfa-lose-access-text-color: var(--color-danger);

	// Text highlight
	--color-text-highlight-background: var(--prim-color-alt-d-shade-150);

	// AI
	--node-type-background-l: 95%;
	--node-type-supplemental-label-color-h: 235;
	--node-type-supplemental-label-color-s: 28%;
	--node-type-supplemental-label-color-l: 40%;
	--node-type-supplemental-color-h: 235;
	--node-type-supplemental-color-s: 28%;
	--node-type-supplemental-color-l: 60%;
	--node-type-supplemental-label-color: hsl(
		var(--node-type-supplemental-label-color-h),
		var(--node-type-supplemental-label-color-s),
		var(--node-type-supplemental-label-color-l)
	);
	--node-type-supplemental-icon: var(--color-foreground-dark);
	--node-type-supplemental-color: hsl(
		var(--node-type-supplemental-color-h),
		var(--node-type-supplemental-color-s),
		var(--node-type-supplemental-color-l)
	);
	--node-type-supplemental-background: hsl(
		var(--node-type-supplemental-color-h),
		var(--node-type-supplemental-color-s),
		var(--node-type-background-l)
	);
	--node-type-supplemental-connector-color: var(--color-foreground-dark);
	--node-type-ai_chain-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_chain-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_chain-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_chain-color: hsl(
		var(--node-type-ai_chain-color-h),
		var(--node-type-ai_chain-color-s),
		var(--node-type-ai_chain-color-l)
	);
	--node-type-chain-background: hsl(
		var(--node-type-ai_chain-color-h),
		var(--node-type-ai_chain-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_document-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_document-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_document-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_document-color: hsl(
		var(--node-type-ai_document-color-h),
		var(--node-type-ai_document-color-s),
		var(--node-type-ai_document-color-l)
	);
	--node-type-ai_document-background: hsl(
		var(--node-type-ai_document-color-h),
		var(--node-type-ai_document-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_embedding-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_embedding-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_embedding-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_embedding-color: hsl(
		var(--node-type-ai_embedding-color-h),
		var(--node-type-ai_embedding-color-s),
		var(--node-type-ai_embedding-color-l)
	);
	--node-type-ai_embedding-background: hsl(
		var(--node-type-ai_embedding-color-h),
		var(--node-type-ai_embedding-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_languageModel-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_languageModel-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_languageModel-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_languageModel-color: hsl(
		var(--node-type-ai_languageModel-color-h),
		var(--node-type-ai_languageModel-color-s),
		var(--node-type-ai_languageModel-color-l)
	);
	--node-type-ai_languageModel-background: hsl(
		var(--node-type-ai_languageModel-color-h),
		var(--node-type-ai_languageModel-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_memory-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_memory-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_memory-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_memory-color: hsl(
		var(--node-type-ai_memory-color-h),
		var(--node-type-ai_memory-color-s),
		var(--node-type-ai_memory-color-l)
	);
	--node-type-ai_memory-background: hsl(
		var(--node-type-ai_memory-color-h),
		var(--node-type-ai_memory-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_outputParser-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_outputParser-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_outputParser-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_outputParser-color: hsl(
		var(--node-type-ai_outputParser-color-h),
		var(--node-type-ai_outputParser-color-s),
		var(--node-type-ai_outputParser-color-l)
	);
	--node-type-ai_outputParser-background: hsl(
		var(--node-type-ai_outputParser-color-h),
		var(--node-type-ai_outputParser-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_tool-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_tool-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_tool-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_tool-color: hsl(
		var(--node-type-ai_tool-color-h),
		var(--node-type-ai_tool-color-s),
		var(--node-type-ai_tool-color-l)
	);
	--node-type-ai_tool-background: hsl(
		var(--node-type-ai_tool-color-h),
		var(--node-type-ai_tool-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_retriever-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_retriever-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_retriever-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_retriever-color: hsl(
		var(--node-type-ai_retriever-color-h),
		var(--node-type-ai_retriever-color-s),
		var(--node-type-ai_retriever-color-l)
	);
	--node-type-ai_retriever-background: hsl(
		var(--node-type-ai_retriever-color-h),
		var(--node-type-ai_retriever-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_textSplitter-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_textSplitter-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_textSplitter-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_textSplitter-color: hsl(
		var(--node-type-ai_textSplitter-color-h),
		var(--node-type-ai_textSplitter-color-s),
		var(--node-type-ai_textSplitter-color-l)
	);
	--node-type-ai_textSplitter-background: hsl(
		var(--node-type-ai_textSplitter-color-h),
		var(--node-type-ai_textSplitter-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_vectorRetriever-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_vectorRetriever-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_vectorRetriever-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_vectorRetriever-color: hsl(
		var(--node-type-ai_vectorRetriever-color-h),
		var(--node-type-ai_vectorRetriever-color-s),
		var(--node-type-ai_vectorRetriever-color-l)
	);
	--node-type-ai_vectorRetriever-background: hsl(
		var(--node-type-ai_vectorRetriever-color-h),
		var(--node-type-ai_vectorRetriever-color-s),
		var(--node-type-background-l)
	);
	--node-type-ai_vectorStore-color-h: var(--node-type-supplemental-color-h);
	--node-type-ai_vectorStore-color-s: var(--node-type-supplemental-color-s);
	--node-type-ai_vectorStore-color-l: var(--node-type-supplemental-color-l);
	--node-type-ai_vectorStore-color: hsl(
		var(--node-type-ai_vectorStore-color-h),
		var(--node-type-ai_vectorStore-color-s),
		var(--node-type-ai_vectorStore-color-l)
	);
	--node-type-ai_vectorStore-background: hsl(
		var(--node-type-ai_vectorStore-color-h),
		var(--node-type-ai_vectorStore-color-s),
		var(--node-type-background-l)
	);

	// Various
	--color-avatar-accent-1: var(--prim-gray-120);
	--color-avatar-accent-2: var(--prim-color-alt-e-shade-100);
	--color-info: var(--prim-gray-420);
	--color-info-tint-1: var(--prim-gray-120);
	--color-info-tint-2: var(--prim-gray-40);
	--color-grey: var(--prim-gray-200);
	--color-light-grey: var(--prim-gray-120);
	--color-neutral: var(--prim-gray-490);
	--color-configurable-node-name: var(--color-text-dark);
	--color-secondary-link: var(--color-secondary);
	--color-secondary-link-hover: var(--color-secondary-shade-1);

	// Menu
	--color-menu-background: var(--prim-gray-0);
	--color-menu-hover-background: var(--prim-gray-120);
	--color-menu-active-background: var(--prim-gray-120);

	// Generated Color Shades from 50 to 950
	// Not yet used in design system
	@each $color in ('neutral', 'success', 'warning', 'danger') {
		@each $shade
			in (
				50,
				100,
				150,
				200,
				250,
				300,
				350,
				400,
				450,
				500,
				550,
				600,
				650,
				700,
				750,
				800,
				850,
				900,
				950
			)
		{
			--color-#{$color}-#{$shade}-l: #{math.div($shade, 10)}#{'%'};
			--color-#{$color}-#{$shade}: hsl(
				var(--color-#{$color}-h),
				var(--color-#{$color}-s),
				var(--color-#{$color}-#{$shade}-l)
			);
		}
	}

	--box-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
	--box-shadow-dark: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.12);
	--box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.07);

	--border-radius-xlarge: 12px;
	--border-radius-large: 8px;
	--border-radius-base: 4px;
	--border-radius-small: 2px;
	--border-color-base: var(--color-foreground-base);
	--border-color-light: var(--color-foreground-light);

	--border-style-base: solid;
	--border-width-base: 1px;
	--border-base: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);

	--font-size-4xs: 0.5rem;
	--font-size-3xs: 0.625rem;
	--font-size-2xs: 0.75rem;
	--font-size-xs: 0.8125rem;
	--font-size-s: 0.875rem;
	--font-size-m: 1rem;
	--font-size-l: 1.125rem;
	--font-size-xl: 1.25rem;
	--font-size-2xl: 1.75rem;

	--font-line-height-compact: 1.25;
	--font-line-height-regular: 1.3;
	--font-line-height-loose: 1.35;
	--font-line-height-xloose: 1.5;

	--font-weight-regular: 400;
	--font-weight-bold: 600;
	--font-family: 'Open Sans', sans-serif;
	--font-family-monospace: Menlo, Consolas, 'DejaVu Sans Mono', monospace;

	--spacing-5xs: 0.125rem;
	--spacing-4xs: 0.25rem;
	--spacing-3xs: 0.375rem;
	--spacing-2xs: 0.5rem;
	--spacing-xs: 0.75rem;
	--spacing-s: 1rem;
	--spacing-m: 1.25rem;
	--spacing-l: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	--spacing-3xl: 4rem;
	--spacing-4xl: 8rem;
	--spacing-5xl: 16rem;
}

:root {
	@include theme;
}
