Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic-Tokens: Generate from token JSON export #33931

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7a48bb0
Stash initial for now
Mitch-At-Work Feb 11, 2025
13424bc
Add initial Link tokens as example
Mitch-At-Work Feb 12, 2025
5badbf8
Add tsconfig for semantic-tokens
Mitch-At-Work Feb 12, 2025
36cc985
Update indexing and add token vars as exports
Mitch-At-Work Feb 14, 2025
88cc6f4
Change files
Mitch-At-Work Feb 18, 2025
6b008bd
Fix version of react-tokens
Mitch-At-Work Feb 18, 2025
8dba624
Update and connect local build artifacts
Mitch-At-Work Feb 18, 2025
4a8db31
Lint and fix exports
Mitch-At-Work Feb 19, 2025
e2aa7f2
Update E2E for semantic tokens to a dummy test (for now)
Mitch-At-Work Feb 20, 2025
96ef49f
Fix up extra bracket and brand ref color
Mitch-At-Work Feb 20, 2025
1d6d672
remove console
Mitch-At-Work Feb 21, 2025
f478839
Alphebetize order
Mitch-At-Work Feb 24, 2025
bb81096
Update tokens so far
Mitch-At-Work Feb 28, 2025
940f605
Add script to generate
Mitch-At-Work Feb 28, 2025
44bfcdf
Initial script gen
Mitch-At-Work Feb 28, 2025
57c7867
Update tokens and script
Mitch-At-Work Feb 28, 2025
81f1e05
Update script to handle duplicated tokens
Mitch-At-Work Feb 28, 2025
6035592
Add strokeWidthThin fallback
Mitch-At-Work Feb 28, 2025
83f6a0a
Set variable path correctly
Mitch-At-Work Mar 1, 2025
e5671d7
Update latest
Mitch-At-Work Mar 3, 2025
0ed592f
Update with better fallback logic
Mitch-At-Work Mar 3, 2025
c81c862
Update script to handle fallbacks and f2 tokens better
Mitch-At-Work Mar 3, 2025
4d4bd3f
Update naming to handle brackets and spacings
Mitch-At-Work Mar 3, 2025
4609e99
Ensure fallbacks work correctly for FST
Mitch-At-Work Mar 3, 2025
9c3a7fe
Simplify script to match design and add custom fluent fallback map
Mitch-At-Work Mar 5, 2025
032d3b7
Add missing imports structure
Mitch-At-Work Mar 5, 2025
a750369
Fix imports
Mitch-At-Work Mar 5, 2025
a55568e
Update script to add exports
Mitch-At-Work Mar 5, 2025
5658e2d
Update script to handle imports/exports
Mitch-At-Work Mar 5, 2025
56e1102
Token script fixed
Mitch-At-Work Mar 5, 2025
e3a0bba
Update tokens and script
Mitch-At-Work Mar 6, 2025
58bac11
Fix token reference fallback
Mitch-At-Work Mar 6, 2025
791a838
Update api
Mitch-At-Work Mar 6, 2025
9c1c981
Fix port
Mitch-At-Work Mar 6, 2025
8884ea1
Lint all files
Mitch-At-Work Mar 6, 2025
a5bb059
Update and remove eslint rule
Mitch-At-Work Mar 6, 2025
c4719f4
Fix up the ESLint rule
Mitch-At-Work Mar 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update script to handle fallbacks and f2 tokens better
  • Loading branch information
Mitch-At-Work committed Mar 3, 2025
commit c81c8624496e996c681591f38a9b4a6641d62c8e
17 changes: 11 additions & 6 deletions packages/semantic-tokens/scripts/tokenGen.ts
Original file line number Diff line number Diff line change
@@ -125,19 +125,24 @@ function handleTokenTransforms(tokenString: string) {
} else if (tokenString.startsWith('Neutral/Stroke/Transparent')) {
formattedToken = `tokens.strokeNeutralTransparent`;
} else if (tokenString.startsWith('Neutral/Stroke/Disabled')) {
formattedToken = `tokens.strokeNeutralDisabled`;
formattedToken = `tokens.colorNeutralStrokeDisabled`;
} else if (tokenString.startsWith('Neutral/Stroke/')) {
const tokenFallbackArr = tokenString.split('/');
const tokenFallbackVal = tokenFallbackArr[2];
formattedToken = `tokens.colorNeutralStroke${tokenFallbackVal}`;
// Hover etc. may be present
const tokenFallbackType = tokenFallbackArr.length > 3 ? tokenFallbackArr[3] : '';
formattedToken = `tokens.colorNeutralStroke${tokenFallbackVal}${tokenFallbackType}`;
} else if (tokenString.startsWith('Neutral/Background/') || tokenString.startsWith('Neutral/Foreground/')) {
const tokenFallbackArr = tokenString.split('/');
const tokenFallbackArea = tokenFallbackArr[1];
const tokenFallbackVal = tokenFallbackArr[2];
const tokenFallbackType = tokenFallbackArr[tokenFallbackArr.length - 1];
if (tokenFallbackType === 'Rest') {
// Rest tokens don't have a qualifier
formattedToken = `tokens.colorNeutral${tokenFallbackArea}${tokenFallbackVal}`;
// Fallback type, i.e. rest/hover/pressed
const tokenFallbackType =
tokenFallbackArr[tokenFallbackArr.length - 1] !== 'Rest' ? tokenFallbackArr[tokenFallbackArr.length - 1] : '';

if (tokenString.includes('Transparent')) {
// Handle transparent token format
formattedToken = `tokens.colorTransparentBackground${tokenFallbackType}`;
} else {
formattedToken = `tokens.colorNeutral${tokenFallbackArea}${tokenFallbackVal}${tokenFallbackType}`;
}
40 changes: 20 additions & 20 deletions packages/semantic-tokens/src/components/choice/tokens.ts
Original file line number Diff line number Diff line change
@@ -5,26 +5,26 @@ export const ctrlChoicePaddingHorizontal = `var(${ctrlChoicePaddingHorizontalRaw
export const ctrlChoicePaddingVertical = `var(${ctrlChoicePaddingVerticalRaw}, ${verticalNoneRaw})`;
export const ctrlChoiceBaseSize = `var(${ctrlChoiceBaseSizeRaw}, ${sizeCtrlIconRaw})`;
export const ctrlChoiceIconTheme = `var(${ctrlChoiceIconThemeRaw})`;
export const ctrlChoiceBaseBackgroundRest = `var(${ctrlChoiceBaseBackgroundRestRaw}, var(${backgroundCtrlOutlineRestRaw}, ${tokens.colorNeutralBackgroundTransparent}))`;
export const ctrlChoiceBaseBackgroundHover = `var(${ctrlChoiceBaseBackgroundHoverRaw}, var(${backgroundCtrlOutlineHoverRaw}, ${tokens.colorNeutralBackgroundTransparentHover}))`;
export const ctrlChoiceBaseBackgroundPressed = `var(${ctrlChoiceBaseBackgroundPressedRaw}, var(${backgroundCtrlOutlinePressedRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseBackgroundDisabled = `var(${ctrlChoiceBaseBackgroundDisabledRaw}, var(${backgroundCtrlOutlineDisabledRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseBackgroundIndeterminateRest = `var(${ctrlChoiceBaseBackgroundIndeterminateRestRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorNeutralBackgroundTransparent}))`;
export const ctrlChoiceBaseBackgroundIndeterminateHover = `var(${ctrlChoiceBaseBackgroundIndeterminateHoverRaw}, var(${backgroundCtrlBrandHoverRaw}, ${tokens.colorNeutralBackgroundTransparentHover}))`;
export const ctrlChoiceBaseBackgroundIndeterminatePressed = `var(${ctrlChoiceBaseBackgroundIndeterminatePressedRaw}, var(${backgroundCtrlBrandPressedRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseBackgroundIndeterminateDisabled = `var(${ctrlChoiceBaseBackgroundIndeterminateDisabledRaw}, var(${backgroundCtrlBrandDisabledRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseStrokeRest = `var(${ctrlChoiceBaseStrokeRestRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlChoiceBaseStrokeHover = `var(${ctrlChoiceBaseStrokeHoverRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlChoiceBaseStrokePressed = `var(${ctrlChoiceBaseStrokePressedRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlChoiceBaseStrokeDisabled = `var(${ctrlChoiceBaseStrokeDisabledRaw}, var(${foregroundCtrlNeutralSecondaryDisabledRaw}, ${tokens.strokeNeutralDisabled}))`;
export const ctrlChoiceBaseStrokeIndeterminateRest = `var(${ctrlChoiceBaseStrokeIndeterminateRestRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorNeutralBackgroundTransparent}))`;
export const ctrlChoiceBaseStrokeIndeterminateHover = `var(${ctrlChoiceBaseStrokeIndeterminateHoverRaw}, var(${backgroundCtrlBrandHoverRaw}, ${tokens.colorNeutralBackgroundTransparentHover}))`;
export const ctrlChoiceBaseStrokeIndeterminatePressed = `var(${ctrlChoiceBaseStrokeIndeterminatePressedRaw}, var(${backgroundCtrlBrandPressedRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseStrokeIndeterminateDisabled = `var(${ctrlChoiceBaseStrokeIndeterminateDisabledRaw}, var(${backgroundCtrlBrandDisabledRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceForegroundIndeterminateRest = `var(${ctrlChoiceForegroundIndeterminateRestRaw}, var(${foregroundCtrlOnbrandRestRaw}, ${tokens.colorNeutralBackgroundTransparent}))`;
export const ctrlChoiceForegroundIndeterminateHover = `var(${ctrlChoiceForegroundIndeterminateHoverRaw}, var(${foregroundCtrlOnbrandHoverRaw}, ${tokens.colorNeutralBackgroundTransparentHover}))`;
export const ctrlChoiceForegroundIndeterminatePressed = `var(${ctrlChoiceForegroundIndeterminatePressedRaw}, var(${foregroundCtrlOnbrandPressedRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceForegroundIndeterminateDisabled = `var(${ctrlChoiceForegroundIndeterminateDisabledRaw}, var(${foregroundCtrlOnbrandDisabledRaw}, ${tokens.colorNeutralBackgroundTransparentPressed}))`;
export const ctrlChoiceBaseBackgroundRest = `var(${ctrlChoiceBaseBackgroundRestRaw}, var(${backgroundCtrlOutlineRestRaw}, ${tokens.colorTransparentBackground}))`;
export const ctrlChoiceBaseBackgroundHover = `var(${ctrlChoiceBaseBackgroundHoverRaw}, var(${backgroundCtrlOutlineHoverRaw}, ${tokens.colorTransparentBackgroundHover}))`;
export const ctrlChoiceBaseBackgroundPressed = `var(${ctrlChoiceBaseBackgroundPressedRaw}, var(${backgroundCtrlOutlinePressedRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceBaseBackgroundDisabled = `var(${ctrlChoiceBaseBackgroundDisabledRaw}, var(${backgroundCtrlOutlineDisabledRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceBaseBackgroundIndeterminateRest = `var(${ctrlChoiceBaseBackgroundIndeterminateRestRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorTransparentBackground}))`;
export const ctrlChoiceBaseBackgroundIndeterminateHover = `var(${ctrlChoiceBaseBackgroundIndeterminateHoverRaw}, var(${backgroundCtrlBrandHoverRaw}, ${tokens.colorTransparentBackgroundHover}))`;
export const ctrlChoiceBaseBackgroundIndeterminatePressed = `var(${ctrlChoiceBaseBackgroundIndeterminatePressedRaw}, var(${backgroundCtrlBrandPressedRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceBaseBackgroundIndeterminateDisabled = `var(${ctrlChoiceBaseBackgroundIndeterminateDisabledRaw}, var(${backgroundCtrlBrandDisabledRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceBaseStrokeRest = `var(${ctrlChoiceBaseStrokeRestRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessibleRest}))`;
export const ctrlChoiceBaseStrokeHover = `var(${ctrlChoiceBaseStrokeHoverRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessibleHover}))`;
export const ctrlChoiceBaseStrokePressed = `var(${ctrlChoiceBaseStrokePressedRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessiblePressed}))`;
export const ctrlChoiceBaseStrokeDisabled = `var(${ctrlChoiceBaseStrokeDisabledRaw}, var(${foregroundCtrlNeutralSecondaryDisabledRaw}, ${tokens.colorNeutralStrokeDisabled}))`;
export const ctrlChoiceBaseStrokeIndeterminateRest = `var(${ctrlChoiceBaseStrokeIndeterminateRestRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorTransparentBackground}))`;
export const ctrlChoiceBaseStrokeIndeterminateHover = `var(${ctrlChoiceBaseStrokeIndeterminateHoverRaw}, var(${backgroundCtrlBrandHoverRaw}, ${tokens.colorTransparentBackgroundHover}))`;
export const ctrlChoiceBaseStrokeIndeterminatePressed = `var(${ctrlChoiceBaseStrokeIndeterminatePressedRaw}, var(${backgroundCtrlBrandPressedRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceBaseStrokeIndeterminateDisabled = `var(${ctrlChoiceBaseStrokeIndeterminateDisabledRaw}, var(${backgroundCtrlBrandDisabledRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceForegroundIndeterminateRest = `var(${ctrlChoiceForegroundIndeterminateRestRaw}, var(${foregroundCtrlOnbrandRestRaw}, ${tokens.colorTransparentBackground}))`;
export const ctrlChoiceForegroundIndeterminateHover = `var(${ctrlChoiceForegroundIndeterminateHoverRaw}, var(${foregroundCtrlOnbrandHoverRaw}, ${tokens.colorTransparentBackgroundHover}))`;
export const ctrlChoiceForegroundIndeterminatePressed = `var(${ctrlChoiceForegroundIndeterminatePressedRaw}, var(${foregroundCtrlOnbrandPressedRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceForegroundIndeterminateDisabled = `var(${ctrlChoiceForegroundIndeterminateDisabledRaw}, var(${foregroundCtrlOnbrandDisabledRaw}, ${tokens.colorTransparentBackgroundPressed}))`;
export const ctrlChoiceCheckboxIconSize = `var(${ctrlChoiceCheckboxIconSizeRaw}, ${sizeCtrlIconsecondaryRaw})`;
export const ctrlChoiceCheckboxCorner = `var(${ctrlChoiceCheckboxCornerRaw}, ${smallRaw})`;
export const ctrlChoiceRadioCorner = `var(${ctrlChoiceRadioCornerRaw}, var(${cornerCircularRaw}, ${circularRaw}))`;
2 changes: 1 addition & 1 deletion packages/semantic-tokens/src/components/dialog/tokens.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
import { tokens } from '@fluentui/tokens';

export const ctrlDialogBackground = `var(${ctrlDialogBackgroundRaw}, ${tokens.colorNeutralBackground1})`;
export const ctrlDialogStroke = `var(${ctrlDialogStrokeRaw}, var(${nullColorRaw}, ${tokens.colorNeutralStroke2}))`;
export const ctrlDialogStroke = `var(${ctrlDialogStrokeRaw}, var(${nullColorRaw}, ${tokens.colorNeutralStroke2Rest}))`;
export const ctrlDialogBaseCorner = `var(${ctrlDialogBaseCornerRaw}, var(${cornerCardRestRaw}, ${x-largeRaw}))`;
export const ctrlDialogBaseShadowKeyX = `var(${ctrlDialogBaseShadowKeyXRaw})`;
export const ctrlDialogBaseShadowKeyY = `var(${ctrlDialogBaseShadowKeyYRaw})`;
4 changes: 2 additions & 2 deletions packages/semantic-tokens/src/components/focus/tokens.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,6 @@ import { tokens } from '@fluentui/tokens';

export const ctrlFocusPositionFigmaOnly = `var(${ctrlFocusPositionFigmaOnlyRaw})`;
export const ctrlFocusInnerStrokewidth = `var(${ctrlFocusInnerStrokewidthRaw}, var(${strokewidthDefaultRaw}, ${tokens.strokeWidthThin}))`;
export const ctrlFocusInnerStroke = `var(${ctrlFocusInnerStrokeRaw}, ${tokens.colorNeutralStrokeFocus})`;
export const ctrlFocusInnerStroke = `var(${ctrlFocusInnerStrokeRaw}, ${tokens.colorNeutralStrokeFocus1})`;
export const ctrlFocusOuterStrokewidth = `var(${ctrlFocusOuterStrokewidthRaw}, ${thickRaw})`;
export const ctrlFocusOuterStroke = `var(${ctrlFocusOuterStrokeRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorNeutralStrokeFocus}))`;
export const ctrlFocusOuterStroke = `var(${ctrlFocusOuterStrokeRaw}, var(${backgroundCtrlBrandRestRaw}, ${tokens.colorNeutralStrokeFocus2}))`;
18 changes: 9 additions & 9 deletions packages/semantic-tokens/src/components/input/tokens.ts
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ import { tokens } from '@fluentui/tokens';
export const ctrlInputBackgroundRest = `var(${ctrlInputBackgroundRestRaw}, var(${backgroundCtrlNeutralRestRaw}, ${tokens.colorNeutralBackground1}))`;
export const ctrlInputBackgroundHover = `var(${ctrlInputBackgroundHoverRaw}, var(${backgroundCtrlNeutralHoverRaw}, ${tokens.colorNeutralBackground1}))`;
export const ctrlInputBackgroundPressed = `var(${ctrlInputBackgroundPressedRaw}, var(${backgroundCtrlNeutralPressedRaw}, ${tokens.colorNeutralBackground1}))`;
export const ctrlInputBackgroundDisabled = `var(${ctrlInputBackgroundDisabledRaw}, var(${backgroundCtrlNeutralDisabledRaw}, ${tokens.colorNeutralBackgroundTransparent}))`;
export const ctrlInputBackgroundDisabled = `var(${ctrlInputBackgroundDisabledRaw}, var(${backgroundCtrlNeutralDisabledRaw}, ${tokens.colorTransparentBackground}))`;
export const ctrlInputBackgroundSelected = `var(${ctrlInputBackgroundSelectedRaw}, var(${backgroundCtrlNeutralRestRaw}, ${tokens.colorNeutralBackground1}))`;
export const ctrlInputBackgroundError = `var(${ctrlInputBackgroundErrorRaw}, var(${backgroundCtrlNeutralRestRaw}, ${tokens.colorNeutralBackground1}))`;
export const ctrlInputStrokeRest = `var(${ctrlInputStrokeRestRaw}, var(${strokeCtrlOnoutlineRestRaw}, ${tokens.colorNeutralStroke1}))`;
export const ctrlInputStrokeRest = `var(${ctrlInputStrokeRestRaw}, var(${strokeCtrlOnoutlineRestRaw}, ${tokens.colorNeutralStroke1Rest}))`;
export const ctrlInputBottomlineStrokewidthRest = `var(${ctrlInputBottomlineStrokewidthRestRaw}, var(${strokewidthDefaultRaw}, ${tokens.strokeWidthThin}))`;
export const ctrlInputStrokewidthRest = `var(${ctrlInputStrokewidthRestRaw}, var(${strokewidthDefaultRaw}, ${tokens.strokeWidthThin}))`;
export const ctrlInputTextselectionBackground = `var(${ctrlInputTextselectionBackgroundRaw}, var(${backgroundCtrlActivebrandRestRaw}, var(${backgroundCtrlBrandRestRaw}, ${brandBackground1RestRaw})))`;
@@ -18,14 +18,14 @@ export const ctrlInputStrokewidthSelected = `var(${ctrlInputStrokewidthSelectedR
export const ctrlInputBottomlineStrokewidthHover = `var(${ctrlInputBottomlineStrokewidthHoverRaw}, var(${strokewidthDefaultRaw}, ${tokens.strokeWidthThin}))`;
export const ctrlInputBottomlineStrokewidthPressed = `var(${ctrlInputBottomlineStrokewidthPressedRaw}, var(${ctrlInputBottomlineStrokewidthSelectedRaw}, ${thickRaw}))`;
export const ctrlInputBottomlineStrokewidthSelected = `var(${ctrlInputBottomlineStrokewidthSelectedRaw}, ${thickRaw})`;
export const ctrlInputBottomlineStrokeRest = `var(${ctrlInputBottomlineStrokeRestRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlInputBottomlineStrokeHover = `var(${ctrlInputBottomlineStrokeHoverRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlInputBottomlineStrokePressed = `var(${ctrlInputBottomlineStrokePressedRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessible}))`;
export const ctrlInputBottomlineStrokeRest = `var(${ctrlInputBottomlineStrokeRestRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessibleRest}))`;
export const ctrlInputBottomlineStrokeHover = `var(${ctrlInputBottomlineStrokeHoverRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessibleHover}))`;
export const ctrlInputBottomlineStrokePressed = `var(${ctrlInputBottomlineStrokePressedRaw}, var(${foregroundCtrlNeutralSecondaryRestRaw}, ${tokens.colorNeutralStrokeAccessiblePressed}))`;
export const ctrlInputBottomlineStrokeDisabled = `var(${ctrlInputBottomlineStrokeDisabledRaw}, var(${nullColorRaw}, ${tokens.strokeNeutralTransparent}))`;
export const ctrlInputBottomlineStrokeSelected = `var(${ctrlInputBottomlineStrokeSelectedRaw}, var(${backgroundCtrlBrandRestRaw}, ${brandStroke1RestRaw}))`;
export const ctrlInputBottomlineStrokeError = `var(${ctrlInputBottomlineStrokeErrorRaw}, var(${nullColorRaw}, ${tokens.strokeNeutralTransparent}))`;
export const ctrlInputStrokeHover = `var(${ctrlInputStrokeHoverRaw}, var(${strokeCtrlOnoutlineHoverRaw}, ${tokens.colorNeutralStroke1}))`;
export const ctrlInputStrokePressed = `var(${ctrlInputStrokePressedRaw}, var(${strokeCtrlOnoutlinePressedRaw}, ${tokens.colorNeutralStroke1}))`;
export const ctrlInputStrokeDisabled = `var(${ctrlInputStrokeDisabledRaw}, var(${strokeCtrlOnoutlineDisabledRaw}, ${tokens.strokeNeutralDisabled}))`;
export const ctrlInputStrokeSelected = `var(${ctrlInputStrokeSelectedRaw}, var(${strokeCtrlOnoutlineRestRaw}, ${tokens.colorNeutralStroke1}))`;
export const ctrlInputStrokeHover = `var(${ctrlInputStrokeHoverRaw}, var(${strokeCtrlOnoutlineHoverRaw}, ${tokens.colorNeutralStroke1Hover}))`;
export const ctrlInputStrokePressed = `var(${ctrlInputStrokePressedRaw}, var(${strokeCtrlOnoutlinePressedRaw}, ${tokens.colorNeutralStroke1Pressed}))`;
export const ctrlInputStrokeDisabled = `var(${ctrlInputStrokeDisabledRaw}, var(${strokeCtrlOnoutlineDisabledRaw}, ${tokens.colorNeutralStrokeDisabled}))`;
export const ctrlInputStrokeSelected = `var(${ctrlInputStrokeSelectedRaw}, var(${strokeCtrlOnoutlineRestRaw}, ${tokens.colorNeutralStroke1Selected}))`;
export const ctrlInputStrokeError = `var(${ctrlInputStrokeErrorRaw}, var(${statusDangerStrokeRaw}, ${statusDangerStroke2RestRaw}))`;
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.