import type { InteractiveColorToken } from '../../flex/colors/interactiveTokens'; export type InteractionConformanceVector = readonly [ lightRest: string, lightHover: string, lightPressed: string, darkRest: string, darkHover: string, darkPressed: string, ]; /** * Cool rest and interaction fallback values from x3-design/fluent-design@206e890b * (`semantic-{light,dark}.css` and `interaction-fallback-{light,dark}.css`). * Each row covers rest, hover, and pressed in light and then dark. */ export const x3InteractionConformance = { surfaceNeutralFarther: ['#ebebeb', '#e1e1e1', '#d7d7d7', '#1b1b1b', '#2f2f2f', '#454545'], surfaceNeutralFar: ['#f2f2f2', '#e8e8e8', '#dedede', '#1f1f1f', '#323232', '#464646'], surfaceNeutralNear: ['#fcfcfc', '#f2f2f2', '#e8e8e8', '#181818', '#2d2d2d', '#434343'], surfaceNeutralNearer: ['#ffffff', '#f5f5f5', '#ebebeb', '#292929', '#3a3a3a', '#4b4b4b'], surfaceNeutralTranslucent: ['#ffffff80', '#f5f5f58a', '#ebebeb94', '#3c3c3c80', '#47474788', '#5353538f'], backgroundNeutralHeavy: ['#242424', '#363636', '#494949', '#ffffff', '#f5f5f5', '#ebebeb'], backgroundNeutralLoud: ['#6f6f6f', '#787878', '#818181', '#929292', '#898989', '#808080'], backgroundNeutralSoft: ['#00000014', '#0000001e', '#00000028', '#ffffff1f', '#ffffff27', '#ffffff2e'], backgroundNeutralSubtle: ['#0000000d', '#00000017', '#00000021', '#ffffff14', '#ffffff1c', '#ffffff23'], backgroundNeutralTransparent: ['#24242400', '#1313130a', '#05050514', '#ffffff00', '#ffffff08', '#ffffff0f'], backgroundNeutralTranslucent: ['#e9e9e980', '#d8d8d88a', '#cacaca94', '#3c3c3c80', '#56565688', '#6d6d6d8f'], backgroundBrandHeavy: ['#242424', '#363636', '#494949', '#ffffff', '#f5f5f5', '#ebebeb'], backgroundBrandLoud: ['#6f6f6f', '#787878', '#818181', '#929292', '#898989', '#808080'], backgroundBrandSoft: ['#00000014', '#0000001e', '#00000028', '#ffffff1f', '#ffffff27', '#ffffff2e'], backgroundBrandSubtle: ['#0000000a', '#00000014', '#0000001e', '#ffffff14', '#ffffff1c', '#ffffff23'], backgroundBrandTransparent: ['#24242400', '#1313130a', '#05050514', '#ffffff00', '#ffffff08', '#ffffff0f'], backgroundDangerLoud: ['#c02e56', '#cb395e', '#d54467', '#e55e7a', '#da5471', '#d04b69'], backgroundDangerSoft: ['#ffe3e6', '#f5d9dc', '#ebcfd2', '#5a2932', '#67353e', '#754149'], backgroundDangerSubtle: ['#fff1f3', '#f5e7e9', '#ebdddf', '#402529', '#503438', '#614448'], backgroundWarningLoud: ['#bb4001', '#c54a14', '#d05321', '#e56738', '#da5d2e', '#d05422'], backgroundWarningSoft: ['#ffe5dc', '#f5dbd2', '#ebd1c9', '#592c1c', '#663828', '#744434'], backgroundWarningSubtle: ['#fff2ee', '#f5e8e4', '#ebdeda', '#40261d', '#51352c', '#62453b'], backgroundSuccessLoud: ['#008455', '#188d5d', '#279666', '#05ad72', '#00a369', '#009a60'], backgroundSuccessSoft: ['#c9f8dd', '#bfeed3', '#b6e4ca', '#0c462d', '#1c5238', '#295f44'], backgroundSuccessSubtle: ['#e3fcee', '#d9f2e4', '#cfe8da', '#193426', '#294435', '#385445'], strokeNeutralHeavy: ['#242424', '#363636', '#494949', '#dedede', '#d4d4d4', '#cbcbcb'], strokeNeutralLoud: ['#6f6f6f', '#787878', '#818181', '#929292', '#898989', '#808080'], strokeNeutralSoft: ['#0000006d', '#02020277', '#04040481', '#ffffff61', '#ffffff69', '#ffffff70'], strokeNeutralSubtle: ['#00000021', '#0000002b', '#05050535', '#ffffff48', '#ffffff50', '#ffffff57'], strokeNeutralTransparent: ['#24242400', '#1313130a', '#05050514', '#ffffff00', '#ffffff08', '#ffffff0f'], strokeNeutralOnloud: ['#ffffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], strokeBrandLoud: ['#6f6f6f', '#787878', '#818181', '#929292', '#898989', '#808080'], strokeBrandSoft: ['#0000006d', '#02020277', '#04040481', '#ffffff61', '#ffffff69', '#ffffff70'], strokeBrandSubtle: ['#00000021', '#0000002b', '#05050535', '#ffffff48', '#ffffff50', '#ffffff57'], strokeBrandOnloud: ['#ffffff', '#ffffff', '#ffffff', '#242424', '#131313', '#050505'], strokeDangerLoud: ['#c02e56', '#cb395e', '#d54467', '#e55e7a', '#da5471', '#d04b69'], strokeDangerSoft: ['#e55e7a', '#da5471', '#d04b69', '#d14164', '#dc4b6d', '#e65575'], strokeDangerSubtle: ['#ffd0d6', '#f5c6cc', '#ebbdc3', '#76293a', '#803242', '#893a4a'], strokeDangerOnloud: ['#ffffff', '#ffffff', '#ffffff', '#242424', '#131313', '#050505'], strokeWarningLoud: ['#cd4808', '#d8521a', '#e25c27', '#e56738', '#da5d2e', '#d05422'], strokeWarningSoft: ['#fc9571', '#f28c68', '#e7825f', '#cd4808', '#d8521a', '#e25c27'], strokeWarningSubtle: ['#ffd3c4', '#f5c9ba', '#ebc0b1', '#762e12', '#7f371b', '#893f24'], strokeWarningOnloud: ['#ffffff', '#ffffff', '#ffffff', '#242424', '#131313', '#050505'], strokeSuccessLoud: ['#008455', '#188d5d', '#279666', '#05ad72', '#00a369', '#009a60'], strokeSuccessSoft: ['#5dce97', '#52c48e', '#47bb85', '#008e5c', '#1a9765', '#2aa16d'], strokeSuccessSubtle: ['#b1efcc', '#a7e5c2', '#9edbb9', '#025636', '#125f3e', '#1e6746'], strokeSuccessOnloud: ['#ffffff', '#ffffff', '#ffffff', '#242424', '#131313', '#050505'], foregroundNeutralPrimary: ['#000000db', '#000000e5', '#000000ef', '#ffffffde', '#ffffffe6', '#ffffffed'], foregroundNeutralSecondary: ['#000000a2', '#000000ac', '#000000b6', '#ffffffa1', '#ffffffa9', '#ffffffb0'], foregroundNeutralTertiary: ['#00000090', '#0000009a', '#000000a4', '#ffffff80', '#ffffff88', '#ffffff8f'], foregroundNeutralOnloud: ['#ffffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], foregroundBrandPrimary: ['#242424', '#131313', '#050505', '#dedede', '#e8e8e8', '#f2f2f2'], foregroundBrandOnloud: ['#ffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], foregroundDangerPrimary: ['#a62147', '#9c133f', '#910037', '#fd8ea1', '#ff97aa', '#ffa1b4'], foregroundDangerOnloud: ['#ffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], foregroundWarningPrimary: ['#a93901', '#9f2f00', '#952500', '#fc9571', '#ff9f7a', '#ffa884'], foregroundWarningOnloud: ['#ffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], foregroundSuccessPrimary: ['#017048', '#006740', '#005f38', '#5dce97', '#67d8a0', '#72e2aa'], foregroundSuccessOnloud: ['#ffffff', '#ffffff', '#ffffff', '#000000db', '#000000db', '#000000db'], } as const satisfies Record; /** Warm rest and interaction fallback values from the same pinned `warm/` stylesheets. */ export const x3WarmInteractionConformance = { surfaceNeutralFarther: ['#f0eae5', '#e8e0d9', '#dfd6ce', '#1e1916', '#342d29', '#4b423d'], surfaceNeutralFar: ['#faf4f0', '#f2eae4', '#e9dfd9', '#231e1a', '#38312b', '#4d453e'], surfaceNeutralNear: ['#f6f1ec', '#ede7e0', '#e5ddd4', '#1c1714', '#322b27', '#4b413c'], surfaceNeutralNearer: ['#ffffff', '#f6f5f3', '#edebe7', '#2e2823', '#403832', '#534941'], surfaceNeutralTranslucent: ['#ffffff80', '#f7f6f48a', '#f0eeea94', '#00000080', '#02010188', '#0e0b0c8f'], backgroundNeutralHeavy: ['#28231e', '#3b352e', '#50473f', '#ffffff', '#f6f5f3', '#edebe7'], backgroundNeutralLoud: ['#1e0d009a', '#2e1a0a9a', '#3f28169a', '#ffeee39a', '#f3dfd29a', '#e6d0c09a'], backgroundNeutralSoft: ['#4d200028', '#61330f32', '#6a3b193c', '#ffe3cb40', '#fde1c548', '#ffdec44f'], backgroundNeutralSubtle: ['#6c31001a', '#7f471c24', '#8b53272e', '#fff4ef14', '#ffe8e81c', '#ffdfdf23'], backgroundNeutralTransparent: ['#28231e00', '#231d170a', '#1e170f14', '#ffffff00', '#fbfaf808', '#fefcf80f'], backgroundNeutralTranslucent: ['#e9e9e980', '#dcdcd68a', '#d2cfc894', '#3c3c3c80', '#52524e88', '#67665e8f'], backgroundBrandHeavy: ['#28231e', '#3b352e', '#50473f', '#ffffff', '#f6f5f3', '#edebe7'], backgroundBrandLoud: ['#1e0d009a', '#2e1a0a9a', '#3f28169a', '#ffeee39a', '#f3dfd29a', '#e6d0c09a'], backgroundBrandSoft: ['#4d200028', '#61330f32', '#6a3b193c', '#ffe3cb40', '#fde1c548', '#ffdec44f'], backgroundBrandSubtle: ['#6c31001a', '#7f471c24', '#8b53272e', '#fff4ef14', '#ffe8e81c', '#ffdfdf23'], backgroundBrandTransparent: ['#28231e00', '#231d170a', '#1e170f14', '#ffffff00', '#fbfaf808', '#fefcf80f'], backgroundDangerLoud: ['#c02e56', '#cd355e', '#da3c65', '#e55e7a', '#dd5170', '#d54467'], backgroundDangerSoft: ['#ffe3e6', '#f7d8dc', '#efced1', '#5a2932', '#68343d', '#773f49'], backgroundDangerSubtle: ['#fff1f3', '#f7e6e9', '#efdcde', '#402529', '#523338', '#644247'], backgroundWarningLoud: ['#bb4001', '#c84709', '#d54e11', '#e56738', '#dd5b28', '#d54f13'], backgroundWarningSoft: ['#ffe5dc', '#f7dbd1', '#eed0c6', '#592c1c', '#673726', '#764331'], backgroundWarningSubtle: ['#fff2ee', '#f7e7e3', '#efddd7', '#40261d', '#52352b', '#644439'], backgroundSuccessLoud: ['#008455', '#088e5c', '#119864', '#05ad72', '#00a468', '#009c5e'], backgroundSuccessSoft: ['#c9f8dd', '#bdefd3', '#b2e5c8', '#0c462d', '#185338', '#246043'], backgroundSuccessSubtle: ['#e3fcee', '#d7f3e3', '#cce9d9', '#193426', '#274435', '#355544'], strokeNeutralHeavy: ['#28231e', '#3b352e', '#50473f', '#e3dcd7', '#dbd2cb', '#d3c8c0'], strokeNeutralLoud: ['#776d65', '#81756c', '#8c7e73', '#9a9089', '#92877e', '#8b7d74'], strokeNeutralSoft: ['#250f0076', '#2a120280', '#2e16048a', '#ffe6d35c', '#ffe6cf64', '#ffe8d06b'], strokeNeutralSubtle: ['#4d200028', '#61330f32', '#6a3b193c', '#ffe3cb40', '#fde1c548', '#ffdec44f'], strokeNeutralTransparent: ['#28231e00', '#231d170a', '#1e170f14', '#ffffff00', '#fbfaf808', '#fefcf80f'], strokeNeutralOnloud: ['#ffffffff', '#fffffd', '#fffffb', '#0b0600e1', '#000000e1', '#000000e1'], strokeBrandLoud: ['#776d65', '#81756c', '#8c7e73', '#9a9089', '#92877e', '#8b7d74'], strokeBrandSoft: ['#250f0076', '#2a120280', '#2e16048a', '#ffe6d35c', '#ffe6cf64', '#ffe8d06b'], strokeBrandSubtle: ['#4d200028', '#61330f32', '#6a3b193c', '#ffe3cb40', '#fde1c548', '#ffdec44f'], strokeBrandOnloud: ['#ffffffff', '#fffffd', '#fffffb', '#0b0600e1', '#000000e1', '#000000e1'], strokeDangerLoud: ['#c02e56', '#cd355e', '#da3c65', '#e55e7a', '#dd5170', '#d54467'], strokeDangerSoft: ['#e55e7a', '#dd5170', '#d54467', '#d14164', '#de486c', '#eb4f74'], strokeDangerSubtle: ['#ffd0d6', '#f7c5cc', '#eebbc2', '#76293a', '#813041', '#8c3749'], strokeDangerOnloud: ['#ffffff', '#fffffd', '#fffffb', '#242424', '#141312', '#060504'], strokeWarningLoud: ['#cd4808', '#da4f11', '#e75618', '#e56738', '#dd5b28', '#d54f13'], strokeWarningSoft: ['#fc9571', '#f48a65', '#ec7f58', '#cd4808', '#da4f11', '#e75618'], strokeWarningSubtle: ['#ffd3c4', '#f7c9b9', '#eebeae', '#762e12', '#813518', '#8c3c1e'], strokeWarningOnloud: ['#ffffff', '#fffffd', '#fffffb', '#242424', '#141312', '#060504'], strokeSuccessLoud: ['#008455', '#088e5c', '#119864', '#05ad72', '#00a468', '#009c5e'], strokeSuccessSoft: ['#5dce97', '#4cc58d', '#39bc82', '#008e5c', '#089863', '#11a26b'], strokeSuccessSubtle: ['#b1efcc', '#a5e6c2', '#9adcb7', '#025636', '#0a5f3d', '#136844'], strokeSuccessOnloud: ['#ffffff', '#fffffd', '#fffffb', '#242424', '#141312', '#060504'], foregroundNeutralPrimary: ['#0b0600e1', '#060300eb', '#040100f5', '#fff7f2e3', '#fff8f2eb', '#fffaf2f2'], foregroundNeutralSecondary: ['#190c00ab', '#0a0100b5', '#060000bf', '#fff2e8b5', '#fff7ebbd', '#fff9ecc4'], foregroundNeutralTertiary: ['#1e0d009a', '#0c0100a4', '#080000ae', '#ffeee39a', '#fff6eaa2', '#fff8eaa9'], foregroundNeutralOnloud: ['#ffffffff', '#fffffd', '#fffffb', '#0b0600e1', '#010000e1', '#000000e1'], foregroundBrandPrimary: ['#0b0600e1', '#060300eb', '#040100f5', '#fff7f2e3', '#fff8f2eb', '#fffaf2f2'], foregroundBrandOnloud: ['#ffffffff', '#fffffd', '#fffffb', '#0b0600e1', '#010000e1', '#000000e1'], foregroundDangerPrimary: ['#a62147', '#9e0b3e', '#950035', '#fd8ea1', '#ff96aa', '#ff9db2'], foregroundDangerOnloud: ['#ffffff', '#fffffd', '#fffffb', '#000000db', '#000000db', '#000000db'], foregroundWarningPrimary: ['#a93901', '#a12c00', '#991c00', '#fc9571', '#ff9d77', '#ffa57d'], foregroundWarningOnloud: ['#ffffff', '#fffffd', '#fffffb', '#000000db', '#000000db', '#000000db'], foregroundSuccessPrimary: ['#017048', '#00683f', '#006036', '#5dce97', '#62d99f', '#67e4a7'], foregroundSuccessOnloud: ['#ffffff', '#fffffd', '#fffffb', '#000000db', '#000000db', '#000000db'], } as const satisfies Record; /** * Cool table states the cool interaction policy does not reproduce. The x3 * generator routes these entries through its warm path, so the default cool * description authors `sourceValue` explicitly; `derivedValue` is what the * cool policy computes from rest. */ export const x3CoolExplicitStates = { 'backgroundNeutralTranslucent.hover.light': { sourceValue: '#d8d8d88a', derivedValue: '#dfdfdf8a', reason: 'The source composites this translucent background against a reference surface before shifting it.', }, 'backgroundNeutralTranslucent.pressed.light': { sourceValue: '#cacaca94', derivedValue: '#d5d5d594', reason: 'The source composites this translucent background against a reference surface before shifting it.', }, 'backgroundNeutralTranslucent.hover.dark': { sourceValue: '#56565688', derivedValue: '#47474788', reason: 'The source composites this translucent background against a reference surface before shifting it.', }, 'backgroundNeutralTranslucent.pressed.dark': { sourceValue: '#6d6d6d8f', derivedValue: '#5353538f', reason: 'The source composites this translucent background against a reference surface before shifting it.', }, 'strokeNeutralSoft.hover.light': { sourceValue: '#02020277', derivedValue: '#00000077', reason: 'The source adds chroma while the cool policy preserves chroma.', }, 'strokeNeutralSoft.pressed.light': { sourceValue: '#04040481', derivedValue: '#00000081', reason: 'The source adds chroma while the cool policy preserves chroma.', }, 'strokeNeutralSubtle.pressed.light': { sourceValue: '#05050535', derivedValue: '#00000035', reason: 'The source adds chroma while the cool policy preserves chroma.', }, 'strokeBrandSoft.hover.light': { sourceValue: '#02020277', derivedValue: '#00000077', reason: 'The source adds chroma while the cool policy preserves chroma.', }, 'strokeBrandSoft.pressed.light': { sourceValue: '#04040481', derivedValue: '#00000081', reason: 'The source adds chroma while the cool policy preserves chroma.', }, 'strokeBrandSubtle.pressed.light': { sourceValue: '#05050535', derivedValue: '#00000035', reason: 'The source adds chroma while the cool policy preserves chroma.', }, } as const;