// 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 { fontFamilyBase, fontFamilyMonospace, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, } from '../../tokens/global.generated'; import type { PartialFlexTokens } from '../tokens.types'; const inverted = 'inverted'; const rgb000000 = '#000000'; const rgb00000008 = '#00000008'; const rgb0000000f = '#0000000f'; const rgb00000014 = '#00000014'; const rgb0000001a = '#0000001a'; const rgb0000001f = '#0000001f'; const rgb00000029 = '#00000029'; const rgb0b497f = '#0b497f'; const rgb0c5722 = '#0c5722'; const rgb294482 = '#294482'; const rgb2f95f4 = '#2f95f4'; const rgb32ad52 = '#32ad52'; const rgb345200 = '#345200'; const rgb484848 = '#484848'; const rgb523778 = '#523778'; const rgb524800 = '#524800'; const rgb5c8df8 = '#5c8df8'; const rgb5dce97 = '#5dce97'; const rgb6da603 = '#6da603'; const rgb6f2b53 = '#6f2b53'; const rgb762f0e = '#762f0e'; const rgb772b28 = '#772b28'; const rgb929292 = '#929292'; const rgba575e8 = '#a575e8'; const rgbbaedc1 = '#baedc1'; const rgbc6e1ff = '#c6e1ff'; const rgbcbff93 = '#cbff93'; const rgbcd4808 = '#cd4808'; const rgbcedeff = '#cedeff'; const rgbd961a6 = '#d961a6'; const rgbdedede = '#dedede'; const rgbe4d6ff = '#e4d6ff'; const rgbe55e7a = '#e55e7a'; const rgbe56738 = '#e56738'; const rgbe6ffcf = '#e6ffcf'; const rgbe7615b = '#e7615b'; const rgbe7fce9 = '#e7fce9'; const rgbeef6ff = '#eef6ff'; const rgbf0f5ff = '#f0f5ff'; const rgbf5f5f5 = '#f5f5f5'; const rgbf7f3ff = '#f7f3ff'; const rgbfb966e = '#fb966e'; const rgbfbdf06 = '#fbdf06'; const rgbfc9571 = '#fc9571'; const rgbfef2ee = '#fef2ee'; const rgbffcee6 = '#ffcee6'; const rgbffd2cd = '#ffd2cd'; const rgbffd3c2 = '#ffd3c2'; const rgbffed85 = '#ffed85'; const rgbfff1f7 = '#fff1f7'; const rgbfff2f0 = '#fff2f0'; const rgbfff7c4 = '#fff7c4'; const rgbffffff = '#ffffff'; const easingFunctionalEnter = [0, 0, 0, 1] as const; const easingFunctionalExit = [0.6, 0, 0.75, 0.4] as const; const easingFunctionalTransition = [0.33, 0, 0, 1] as const; const shadowLayer1 = { x: 0, y: 0, blur: 2, color: rgb0000001a } as const; const shadowLayer2 = { x: 0, y: 0, blur: 2, color: '#00000033' } as const; const shadowLayer3 = { x: 0, y: 8, blur: 16, color: rgb0000001f } as const; const shadowLayer4 = { x: 0, y: 8, blur: 16, color: rgb00000008 } as const; const backgroundDangerLoud = { rest: ['#c02e56', rgbe55e7a], type: inverted } as const; const backgroundSuccessLoud = { rest: ['#008455', '#05ad72'], type: inverted } as const; const foregroundDangerOnloud = { rest: [rgbffffff, '#000000db'], type: inverted } as const; const strokeDangerOnloud = { rest: [rgbffffff, '#242424'], type: inverted } as const; export const sharedFlexTokenInput = { color: { backgroundDangerLoud, backgroundDangerSoft: ['#ffe3e6', '#5a2932'], backgroundDangerSubtle: ['#fff1f3', '#402529'], backgroundWarningLoud: { rest: ['#bb4001', rgbe56738], type: inverted }, backgroundWarningSoft: ['#ffe5dc', '#592c1c'], backgroundWarningSubtle: ['#fff2ee', '#40261d'], backgroundSuccessLoud, backgroundSuccessSoft: ['#c9f8dd', '#0c462d'], backgroundSuccessSubtle: ['#e3fcee', '#193426'], strokeDangerLoud: backgroundDangerLoud, strokeDangerSoft: [rgbe55e7a, '#d14164'], strokeDangerSubtle: ['#ffd0d6', '#76293a'], strokeDangerOnloud, strokeWarningLoud: { rest: [rgbcd4808, rgbe56738], type: inverted }, strokeWarningSoft: [rgbfc9571, rgbcd4808], strokeWarningSubtle: ['#ffd3c4', '#762e12'], strokeWarningOnloud: strokeDangerOnloud, strokeSuccessLoud: backgroundSuccessLoud, strokeSuccessSoft: [rgb5dce97, '#008e5c'], strokeSuccessSubtle: ['#b1efcc', '#025636'], strokeSuccessOnloud: strokeDangerOnloud, foregroundDangerPrimary: ['#a62147', '#fd8ea1'], foregroundDangerOnloud, foregroundWarningPrimary: ['#a93901', rgbfc9571], foregroundWarningOnloud: foregroundDangerOnloud, foregroundSuccessPrimary: ['#017048', rgb5dce97], foregroundSuccessOnloud: foregroundDangerOnloud, fixedWhite: rgbffffff, fixedBlack: rgb000000, expressionAchromaticHeavy: [rgb000000, rgbffffff], expressionAchromaticSubtle: [rgbffffff, rgb000000], expressionGrayHeavy: [rgb484848, rgbf5f5f5], expressionGrayLoud: [rgb929292, rgbdedede], expressionGraySoft: [rgbdedede, rgb929292], expressionGraySubtle: [rgbf5f5f5, rgb484848], expressionNavyHeavy: [rgb294482, rgbf0f5ff], expressionNavyLoud: [rgb5c8df8, rgbcedeff], expressionNavySoft: [rgbcedeff, rgb5c8df8], expressionNavySubtle: [rgbf0f5ff, rgb294482], expressionBlueHeavy: [rgb0b497f, rgbeef6ff], expressionBlueLoud: [rgb2f95f4, rgbc6e1ff], expressionBlueSoft: [rgbc6e1ff, rgb2f95f4], expressionBlueSubtle: [rgbeef6ff, rgb0b497f], expressionGreenHeavy: [rgb0c5722, rgbe7fce9], expressionGreenLoud: [rgb32ad52, rgbbaedc1], expressionGreenSoft: [rgbbaedc1, rgb32ad52], expressionGreenSubtle: [rgbe7fce9, rgb0c5722], expressionLimeHeavy: [rgb345200, rgbe6ffcf], expressionLimeLoud: [rgb6da603, rgbcbff93], expressionLimeSoft: [rgbcbff93, rgb6da603], expressionLimeSubtle: [rgbe6ffcf, rgb345200], expressionYellowHeavy: [rgb524800, rgbfff7c4], expressionYellowLoud: [rgbfbdf06, rgbffed85], expressionYellowSoft: [rgbffed85, rgbfbdf06], expressionYellowSubtle: [rgbfff7c4, rgb524800], expressionPumpkinHeavy: [rgb762f0e, rgbfef2ee], expressionPumpkinLoud: [rgbfb966e, rgbffd3c2], expressionPumpkinSoft: [rgbffd3c2, rgbfb966e], expressionPumpkinSubtle: [rgbfef2ee, rgb762f0e], expressionRedHeavy: [rgb772b28, rgbfff2f0], expressionRedLoud: [rgbe7615b, rgbffd2cd], expressionRedSoft: [rgbffd2cd, rgbe7615b], expressionRedSubtle: [rgbfff2f0, rgb772b28], expressionPinkHeavy: [rgb6f2b53, rgbfff1f7], expressionPinkLoud: [rgbd961a6, rgbffcee6], expressionPinkSoft: [rgbffcee6, rgbd961a6], expressionPinkSubtle: [rgbfff1f7, rgb6f2b53], expressionPurpleHeavy: [rgb523778, rgbf7f3ff], expressionPurpleLoud: [rgba575e8, rgbe4d6ff], expressionPurpleSoft: [rgbe4d6ff, rgba575e8], expressionPurpleSubtle: [rgbf7f3ff, rgb523778], overlayNeutralTranslucent: ['#00000026', '#00000099'], materialBackgroundThick: ['#fffffff1', '#262626ea'], materialBackgroundRegular: ['#ffffffd7', '#2f2f2fd1'], materialBackgroundThin: ['#ffffff7e', '#3434348b'], backgroundNeutralDisabled: [rgb00000008, '#ffffff07'], backgroundNeutralHeavyDisabled: [rgb0000001a, '#ffffff20'], strokeNeutralDisabled: [rgb00000014, '#ffffff24'], foregroundNeutralDisabled: ['#0000006d', '#ffffff61'], strokeFocusInner: [rgbffffff, rgb000000], strokeFocusOuter: [rgb000000, rgbffffff], shadow: rgb000000, }, shadow: { lowest: [[shadowLayer1, { x: 0, y: 1, blur: 2, color: '#0000000d' }], [shadowLayer2, { x: 0, y: 1, blur: 2, color: rgb0000001a }]], lower: [[shadowLayer1, { x: 0, y: 2, blur: 4, color: rgb00000014 }], [shadowLayer2, { x: 0, y: 2, blur: 4, color: rgb00000029 }]], low: [ [shadowLayer1, { x: 0, y: 2, blur: 4, color: rgb00000008 }, { x: 0, y: 4, blur: 8, color: rgb00000014 }], [shadowLayer2, { x: 0, y: 2, blur: 4, color: rgb0000001f }, { x: 0, y: 4, blur: 8, color: rgb00000029 }], ], high: [ [shadowLayer1, { x: 0, y: 4, blur: 8, color: rgb00000008 }, { x: 0, y: 8, blur: 16, color: rgb0000000f }], [shadowLayer2, { x: 0, y: 4, blur: 8, color: rgb0000001f }, shadowLayer3], ], higher: [ [shadowLayer1, shadowLayer4, { x: 0, y: 16, blur: 32, color: rgb0000000f }], [shadowLayer2, shadowLayer3, { x: 0, y: 16, blur: 32, color: rgb0000001f }], ], highest: [ [shadowLayer1, shadowLayer4, { x: 0, y: 32, blur: 64, color: rgb0000000f }], [shadowLayer2, shadowLayer3, { x: 0, y: 32, blur: 64, color: rgb0000001f }], ], }, fontWeight: { functionalRegular: fontWeightRegular, functionalMedium: fontWeightMedium, functionalSemibold: fontWeightSemibold, functionalBold: fontWeightBold, contentRegular: fontWeightRegular, contentMedium: fontWeightMedium, contentSemibold: fontWeightSemibold, contentBold: fontWeightBold, contentEditorialRegular: fontWeightRegular, contentEditorialMedium: fontWeightMedium, contentEditorialSemibold: fontWeightSemibold, contentEditorialBold: fontWeightBold, }, fontFamily: { functional: fontFamilyBase, content: fontFamilyBase, contentEditorial: fontFamilyBase, contentCode: fontFamilyMonospace }, fontSize: { functionalDisplay: 68, functionalPagetitle: 40, functionalTitleLarge: 32, functionalTitleMedium: 28, functionalTitleSmall: 24, functionalSubtitle: 20, functionalBodyLarge: 16, functionalBodyMedium: 14, functionalBodySmall: 12, functionalCaption: 10, contentStatement: 56, contentExpressiveLarge: 48, contentExpressiveMedium: 36, contentExpressiveSmall: 28, contentH1: 36, contentH2: 32, contentH3: 28, contentH4: 24, contentH5: 20, contentSubheadline: 16, contentParagraphLarge: 20, contentParagraphMedium: 16, contentParagraphSmall: 12, contentSubtext: 10, contentTable: 16, contentCode: 16, }, lineHeight: { functionalDisplay: 82, functionalPagetitle: 48, functionalTitleLarge: 38, functionalTitleMedium: 34, functionalTitleSmall: 28, functionalSubtitle: 28, functionalBodyLarge: 22, functionalBodyMedium: 20, functionalBodySmall: 16, functionalCaption: 14, contentStatement: 68, contentExpressiveLarge: 58, contentExpressiveMedium: 44, contentExpressiveSmall: 34, contentH1: 44, contentH2: 38, contentH3: 34, contentH4: 28, contentH5: 24, contentSubheadline: 22, contentParagraphLarge: 34, contentParagraphMedium: 28, contentParagraphSmall: 20, contentSubtext: 14, contentTable: 22, contentCode: 22, }, borderRadius: { base100: 4, base200: 8, base300: 12, base400: 16, base600: 24, base700: 28, circular: 9999 }, spacing: { componentBase50: 2, componentBase100: 4, componentBase150: 6, componentBase200: 8, componentBase250: 10, componentBase300: 12, componentBase400: 16, componentBase500: 20, componentBase600: 24, componentBase700: 28, componentBase800: 32, layoutBase100: 8, layoutBase200: 16, layoutBase300: 24, layoutBase400: 32, layoutBase450: 36, layoutBase500: 40, layoutBase600: 48, layoutBase700: 56, layoutBase800: 64, layoutBase1000: 80, layoutBase1200: 96, }, strokeWidth: { thin: 1, thick: 2, thicker: 3, thickest: 4 }, motion: { durationBase50: 50, durationBase100: 100, durationBase200: 200, durationBase300: 300, durationBase500: 500, durationBase1000: 1000, easingFunctionalEnter, easingFunctionalExit, easingFunctionalTransition, easingFunctionalLinear: [0, 0, 1, 1], easingExpressiveEnter: easingFunctionalEnter, easingExpressiveExit: easingFunctionalExit, easingExpressiveTransition: easingFunctionalTransition, }, } satisfies PartialFlexTokens;