// Generated by scripts/flex-defaults/generate-defaults.mjs. Do not edit; run `yarn gen:flex-defaults`. // Source: x3-design/fluent-design@206e890b645fb450ad7c5df2ff981765349a2b58 // cool: dev/web/flex-themes/css/semantic.css, dev/web/flex-themes/css/interaction-fallback.css // warm: dev/web/flex-themes/css/warm/semantic.css, dev/web/flex-themes/css/warm/interaction-fallback.css // Generic sources: src/tokens/mappings/flex-token-map.yaml // Coverage: scripts/flex-defaults/coverage.generated.json import type { CompleteFlexTokenInput, PartialFlexTokens } from '../tokens.types'; import { sharedFlexTokenInput } from './sharedTokens.generated'; const inverted = 'inverted'; const rgb000000db = '#000000db'; const rgb242424 = '#242424'; const rgb3c3c3c80 = '#3c3c3c80'; const rgbffffff = '#ffffff'; const rgbffffff14 = '#ffffff14'; const rgbffffff80 = '#ffffff80'; const backgroundNeutralSoft = ['#00000014', '#ffffff1f'] as const; const backgroundNeutralSubtle = ['#0000000d', rgbffffff14] as const; const backgroundNeutralTransparent = ['#24242400', '#ffffff00'] as const; const rest1 = ['#6f6f6f', '#929292'] as const; const rest2 = [rgb242424, '#dedede'] as const; const backgroundNeutralHeavy = { rest: [rgb242424, rgbffffff], type: inverted } as const; const backgroundNeutralLoud = { rest: rest1, type: inverted } as const; const strokeNeutralOnloud = { rest: [rgbffffff, rgb000000db], type: inverted } as const; const strokeNeutralSoft = { rest: ['#0000006d', '#ffffff61'], hover: ['#02020277', '#ffffff69'], pressed: ['#04040481', '#ffffff70'], } as const; const strokeNeutralSubtle = { rest: ['#00000021', '#ffffff48'], pressed: ['#05050535', '#ffffff57'] } as const; export const coolFlexTokenOverrides = { color: { surfaceNeutralFarther: ['#ebebeb', '#1b1b1b'], surfaceNeutralFar: ['#f2f2f2', '#1f1f1f'], surfaceNeutralNear: ['#fcfcfc', '#181818'], surfaceNeutralNearer: [rgbffffff, '#292929'], surfaceNeutralTranslucent: [rgbffffff80, rgb3c3c3c80], backgroundNeutralHeavy, backgroundNeutralLoud, backgroundNeutralSoft, backgroundNeutralSubtle, backgroundNeutralTransparent, backgroundNeutralTranslucent: { rest: ['#e9e9e980', rgb3c3c3c80], hover: ['#d8d8d88a', '#56565688'], pressed: ['#cacaca94', '#6d6d6d8f'], }, backgroundBrandHeavy: backgroundNeutralHeavy, backgroundBrandLoud: backgroundNeutralLoud, backgroundBrandSoft: backgroundNeutralSoft, backgroundBrandSubtle: ['#0000000a', rgbffffff14], backgroundBrandTransparent: backgroundNeutralTransparent, strokeNeutralHeavy: { rest: rest2, type: inverted }, strokeNeutralLoud: backgroundNeutralLoud, strokeNeutralSoft, strokeNeutralSubtle, strokeNeutralTransparent: backgroundNeutralTransparent, strokeNeutralOnloud, strokeBrandLoud: backgroundNeutralLoud, strokeBrandSoft: strokeNeutralSoft, strokeBrandSubtle: strokeNeutralSubtle, strokeBrandOnloud: { rest: [rgbffffff, rgb242424], type: inverted }, foregroundNeutralPrimary: [rgb000000db, '#ffffffde'], foregroundNeutralSecondary: ['#000000a2', '#ffffffa1'], foregroundNeutralTertiary: ['#00000090', rgbffffff80], foregroundNeutralOnloud: strokeNeutralOnloud, foregroundBrandPrimary: rest2, foregroundBrandOnloud: strokeNeutralOnloud, expressionAccentHeavy: [rgb242424, rgbffffff], expressionAccentLoud: rest1, expressionAccentSoft: backgroundNeutralSoft, expressionAccentSubtle: backgroundNeutralSubtle, backgroundNeutralSubtleDisabled: ['#00000008', '#ffffff07'], }, } satisfies PartialFlexTokens; /** The x3 cool-tone defaults. Omitted interaction states are computed from rest. */ export const coolFlexTokenInput: CompleteFlexTokenInput = { color: { ...sharedFlexTokenInput.color, ...coolFlexTokenOverrides.color }, shadow: sharedFlexTokenInput.shadow, fontWeight: sharedFlexTokenInput.fontWeight, fontFamily: sharedFlexTokenInput.fontFamily, fontSize: sharedFlexTokenInput.fontSize, lineHeight: sharedFlexTokenInput.lineHeight, borderRadius: sharedFlexTokenInput.borderRadius, spacing: sharedFlexTokenInput.spacing, strokeWidth: sharedFlexTokenInput.strokeWidth, motion: sharedFlexTokenInput.motion, };