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
Set variable path correctly
  • Loading branch information
Mitch-At-Work committed Mar 1, 2025
commit 83f6a0a16a76fc5ec70848d3714c85f9e06b9dd9
2 changes: 1 addition & 1 deletion packages/semantic-tokens/scripts/tokenGen.ts
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ function generateTokenRawStrings() {
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
fs.writeFileSync(`./src/components/${component}/tokens.ts`, componentTokens[component]);
fs.writeFileSync(`./src/components/${component}/variables.ts`, componentTokens[component]);
}
}

17 changes: 17 additions & 0 deletions packages/semantic-tokens/src/components/avatar/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const ctrlAvatarSizeRaw = '--smtc-ctrl-avatar-size';
export const ctrlAvatarCornerItemRaw = '--smtc-ctrl-avatar-corner-item';
export const ctrlAvatarBackgroundRaw = '--smtc-ctrl-avatar-background';
export const ctrlAvatarForegroundRaw = '--smtc-ctrl-avatar-foreground';
export const ctrlAvatarIconSizeRaw = '--smtc-ctrl-avatar-icon-size';
export const ctrlAvatarPresencebadgeSizeRaw = '--smtc-ctrl-avatar-presencebadge-size';
export const ctrlAvatarActiveringSizeRaw = '--smtc-ctrl-avatar-activering-size';
export const ctrlAvatarPresencebadgePaddingBottomrightoffsetRaw = '--smtc-ctrl-avatar-presencebadge-padding-bottomrightoffset';
export const ctrlAvatarCornerGroupRaw = '--smtc-ctrl-avatar-corner-group';
export const ctrlAvatarActiveringStrokewidthRaw = '--smtc-ctrl-avatar-activering-strokewidth';
export const ctrlAvatarPresencebadgeStrokewidthRaw = '--smtc-ctrl-avatar-presencebadge-strokewidth';
export const ctrlAvatarTextFontsizeRaw = '--smtc-ctrl-avatar-text-fontsize';
export const ctrlAvatarTextLineheightRaw = '--smtc-ctrl-avatar-text-lineheight';
export const ctrlAvatarTextPaddingTopoffsetRaw = '--smtc-ctrl-avatar-text-padding-topoffset';
export const ctrlAvatarActiveringStrokeRaw = '--smtc-ctrl-avatar-activering-stroke';
export const ctrlAvatarShowcutoutRaw = '--smtc-ctrl-avatar-showcutout';
export const ctrlAvatarPresencebadgeBackgroundBehindbadgeRaw = '--smtc-ctrl-avatar-presencebadge-background-behindbadge';
24 changes: 24 additions & 0 deletions packages/semantic-tokens/src/components/badge/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export const ctrlBadgeTextPaddingTopRaw = '--smtc-ctrl-badge-text-padding-top';
export const ctrlBadgeTextPaddingBottomRaw = '--smtc-ctrl-badge-text-padding-bottom';
export const ctrlBadgeSmTextPaddingTopRaw = '--smtc-ctrl-badge-sm-text-padding-top';
export const ctrlBadgeSmTextPaddingBottomRaw = '--smtc-ctrl-badge-sm-text-padding-bottom';
export const ctrlBadgeLgTextPaddingTopRaw = '--smtc-ctrl-badge-lg-text-padding-top';
export const ctrlBadgeLgTextPaddingBottomRaw = '--smtc-ctrl-badge-lg-text-padding-bottom';
export const ctrlBadgeIconThemeRaw = '--smtc-ctrl-badge-icon-theme';
export const ctrlBadgeBeaconSizeRaw = '--smtc-ctrl-badge-beacon-size';
export const ctrlBadgeSizeRaw = '--smtc-ctrl-badge-size';
export const ctrlBadgeCornerRaw = '--smtc-ctrl-badge-corner';
export const ctrlBadgeIconSizeFigmaOnlyRaw = '--smtc-ctrl-badge-icon-size (figma only)';
export const ctrlBadgeGapRaw = '--smtc-ctrl-badge-gap';
export const ctrlBadgeIconSizeRaw = '--smtc-ctrl-badge-icon-size';
export const ctrlBadgePaddingRaw = '--smtc-ctrl-badge-padding';
export const ctrlBadgeSmSizeRaw = '--smtc-ctrl-badge-sm-size';
export const ctrlBadgeSmCornerRaw = '--smtc-ctrl-badge-sm-corner';
export const ctrlBadgeSmIconSizeFigmaOnlyRaw = '--smtc-ctrl-badge-sm-icon-size (figma only)';
export const ctrlBadgeSmIconSizeRaw = '--smtc-ctrl-badge-sm-icon-size';
export const ctrlBadgeSmPaddingRaw = '--smtc-ctrl-badge-sm-padding';
export const ctrlBadgeLgSizeRaw = '--smtc-ctrl-badge-lg-size';
export const ctrlBadgeLgIconSizeFigmaOnlyRaw = '--smtc-ctrl-badge-lg-icon-size (figma only)';
export const ctrlBadgeLgIconSizeRaw = '--smtc-ctrl-badge-lg-icon-size';
export const ctrlBadgeLgCornerRaw = '--smtc-ctrl-badge-lg-corner';
export const ctrlBadgeLgPaddingRaw = '--smtc-ctrl-badge-lg-padding';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ctrlBooleanSelectionhintRaw = '--smtc-ctrl-boolean-selectionhint';
69 changes: 69 additions & 0 deletions packages/semantic-tokens/src/components/choice/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
export const ctrlChoicePaddingHorizontalRaw = '--smtc-ctrl-choice-padding-horizontal';
export const ctrlChoicePaddingVerticalRaw = '--smtc-ctrl-choice-padding-vertical';
export const ctrlChoiceBaseSizeRaw = '--smtc-ctrl-choice-base-size';
export const ctrlChoiceIconThemeRaw = '--smtc-ctrl-choice-icon-theme';
export const ctrlChoiceBaseBackgroundRestRaw = '--smtc-ctrl-choice-base-background-rest';
export const ctrlChoiceBaseBackgroundHoverRaw = '--smtc-ctrl-choice-base-background-hover';
export const ctrlChoiceBaseBackgroundPressedRaw = '--smtc-ctrl-choice-base-background-pressed';
export const ctrlChoiceBaseBackgroundDisabledRaw = '--smtc-ctrl-choice-base-background-disabled';
export const ctrlChoiceBaseBackgroundIndeterminateRestRaw = '--smtc-ctrl-choice-base-background-indeterminate-rest';
export const ctrlChoiceBaseBackgroundIndeterminateHoverRaw = '--smtc-ctrl-choice-base-background-indeterminate-hover';
export const ctrlChoiceBaseBackgroundIndeterminatePressedRaw = '--smtc-ctrl-choice-base-background-indeterminate-pressed';
export const ctrlChoiceBaseBackgroundIndeterminateDisabledRaw = '--smtc-ctrl-choice-base-background-indeterminate-disabled';
export const ctrlChoiceBaseStrokeRestRaw = '--smtc-ctrl-choice-base-stroke-rest';
export const ctrlChoiceBaseStrokeHoverRaw = '--smtc-ctrl-choice-base-stroke-hover';
export const ctrlChoiceBaseStrokePressedRaw = '--smtc-ctrl-choice-base-stroke-pressed';
export const ctrlChoiceBaseStrokeDisabledRaw = '--smtc-ctrl-choice-base-stroke-disabled';
export const ctrlChoiceBaseStrokeIndeterminateRestRaw = '--smtc-ctrl-choice-base-stroke-indeterminate-rest';
export const ctrlChoiceBaseStrokeIndeterminateHoverRaw = '--smtc-ctrl-choice-base-stroke-indeterminate-hover';
export const ctrlChoiceBaseStrokeIndeterminatePressedRaw = '--smtc-ctrl-choice-base-stroke-indeterminate-pressed';
export const ctrlChoiceBaseStrokeIndeterminateDisabledRaw = '--smtc-ctrl-choice-base-stroke-indeterminate-disabled';
export const ctrlChoiceForegroundIndeterminateRestRaw = '--smtc-ctrl-choice-foreground-indeterminate-rest';
export const ctrlChoiceForegroundIndeterminateHoverRaw = '--smtc-ctrl-choice-foreground-indeterminate-hover';
export const ctrlChoiceForegroundIndeterminatePressedRaw = '--smtc-ctrl-choice-foreground-indeterminate-pressed';
export const ctrlChoiceForegroundIndeterminateDisabledRaw = '--smtc-ctrl-choice-foreground-indeterminate-disabled';
export const ctrlChoiceCheckboxIconSizeRaw = '--smtc-ctrl-choice-checkbox-icon-size';
export const ctrlChoiceCheckboxCornerRaw = '--smtc-ctrl-choice-checkbox-corner';
export const ctrlChoiceRadioCornerRaw = '--smtc-ctrl-choice-radio-corner';
export const ctrlChoiceSwitchCornerRaw = '--smtc-ctrl-choice-switch-corner';
export const ctrlChoiceRadioDotSizeRestRaw = '--smtc-ctrl-choice-radio-dot-size-rest';
export const ctrlChoiceRadioDotSizeHoverRaw = '--smtc-ctrl-choice-radio-dot-size-hover';
export const ctrlChoiceRadioDotSizePressedRaw = '--smtc-ctrl-choice-radio-dot-size-pressed';
export const ctrlChoiceSwitchPaddingRestRaw = '--smtc-ctrl-choice-switch-padding-rest';
export const ctrlChoiceSwitchPaddingHoverRaw = '--smtc-ctrl-choice-switch-padding-hover';
export const ctrlChoiceSwitchPaddingPressedRaw = '--smtc-ctrl-choice-switch-padding-pressed';
export const ctrlChoiceSwitchHeightRaw = '--smtc-ctrl-choice-switch-height';
export const ctrlChoiceSwitchWidthRaw = '--smtc-ctrl-choice-switch-width';
export const ctrlChoiceSwitchThumbWidthRestRaw = '--smtc-ctrl-choice-switch-thumb-width-rest';
export const ctrlChoiceSwitchThumbWidthHoverRaw = '--smtc-ctrl-choice-switch-thumb-width-hover';
export const ctrlChoiceSwitchThumbWidthPressedRaw = '--smtc-ctrl-choice-switch-thumb-width-pressed';
export const ctrlChoiceSwitchThumbShadowKeyXRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(key)-(x)';
export const ctrlChoiceSwitchThumbShadowKeyYRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(key)-(y)';
export const ctrlChoiceSwitchThumbShadowKeyBlurRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(key)-(blur)';
export const ctrlChoiceSwitchThumbShadowKeyColorRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(key)-(color)';
export const ctrlChoiceSwitchThumbShadowAmbientXRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(ambient)-(x)';
export const ctrlChoiceSwitchThumbShadowAmbientYRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(ambient)-(y)';
export const ctrlChoiceSwitchThumbShadowAmbientBlurRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(ambient)-(blur)';
export const ctrlChoiceSwitchThumbShadowAmbientColorRaw = '--smtc-ctrl-choice-switch-thumb-shadow-(ambient)-(color)';
export const ctrlChoiceSmBaseSizeRaw = '--smtc-ctrl-choice-sm-base-size';
export const ctrlChoiceSmCheckboxIconSizeRaw = '--smtc-ctrl-choice-sm-checkbox-icon-size';
export const ctrlChoiceSmCheckboxCornerRaw = '--smtc-ctrl-choice-sm-checkbox-corner';
export const ctrlChoiceSmCheckboxIconSizeFigmaOnlyRaw = '--smtc-ctrl-choice-sm-checkbox-icon-size (figma only)';
export const ctrlChoiceSmRadioDotSizeRaw = '--smtc-ctrl-choice-sm-radio-dot-size';
export const ctrlChoiceSmSwitchWidthRaw = '--smtc-ctrl-choice-sm-switch-width';
export const ctrlChoiceSmSwitchHeightRaw = '--smtc-ctrl-choice-sm-switch-height';
export const ctrlChoiceSmSwitchThumbWidthRestRaw = '--smtc-ctrl-choice-sm-switch-thumb-width-rest';
export const ctrlChoiceSmSwitchThumbWidthHoverRaw = '--smtc-ctrl-choice-sm-switch-thumb-width-hover';
export const ctrlChoiceSmSwitchThumbWidthPressedRaw = '--smtc-ctrl-choice-sm-switch-thumb-width-pressed';
export const ctrlChoiceLgBaseSizeRaw = '--smtc-ctrl-choice-lg-base-size';
export const ctrlChoiceLgCheckboxCornerRaw = '--smtc-ctrl-choice-lg-checkbox-corner';
export const ctrlChoiceLgCheckboxIconSizeRaw = '--smtc-ctrl-choice-lg-checkbox-icon-size';
export const ctrlChoiceLgCheckboxIconSizeFigmaOnlyRaw = '--smtc-ctrl-choice-lg-checkbox-icon-size (figma only)';
export const ctrlChoiceLgRadioDotSizeRestRaw = '--smtc-ctrl-choice-lg-radio-dot-size-rest';
export const ctrlChoiceLgRadioDotSizeHoverRaw = '--smtc-ctrl-choice-lg-radio-dot-size-hover';
export const ctrlChoiceLgRadioDotSizePressedRaw = '--smtc-ctrl-choice-lg-radio-dot-size-pressed';
export const ctrlChoiceLgSwitchWidthRaw = '--smtc-ctrl-choice-lg-switch-width';
export const ctrlChoiceLgSwitchHeightRaw = '--smtc-ctrl-choice-lg-switch-height';
export const ctrlChoiceLgSwitchThumbWidthRestRaw = '--smtc-ctrl-choice-lg-switch-thumb-width-rest';
export const ctrlChoiceLgSwitchThumbWidthHoverRaw = '--smtc-ctrl-choice-lg-switch-thumb-width-hover';
export const ctrlChoiceLgSwitchThumbWidthPressedRaw = '--smtc-ctrl-choice-lg-switch-thumb-width-pressed';
13 changes: 13 additions & 0 deletions packages/semantic-tokens/src/components/dialog/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const ctrlDialogBackgroundRaw = '--smtc-ctrl-dialog-background';
export const ctrlDialogStrokeRaw = '--smtc-ctrl-dialog-stroke';
export const ctrlDialogBaseCornerRaw = '--smtc-ctrl-dialog-base-corner';
export const ctrlDialogBaseShadowKeyXRaw = '--smtc-ctrl-dialog-base-shadow-(key)-(x)';
export const ctrlDialogBaseShadowKeyYRaw = '--smtc-ctrl-dialog-base-shadow-(key)-(y)';
export const ctrlDialogBaseShadowKeyBlurRaw = '--smtc-ctrl-dialog-base-shadow-(key)-(blur)';
export const ctrlDialogBaseShadowKeyColorRaw = '--smtc-ctrl-dialog-base-shadow-(key)-(color)';
export const ctrlDialogBaseShadowAmbientXRaw = '--smtc-ctrl-dialog-base-shadow-(ambient)-(x)';
export const ctrlDialogBaseShadowAmbientYRaw = '--smtc-ctrl-dialog-base-shadow-(ambient)-(y)';
export const ctrlDialogBaseShadowAmbientBlurRaw = '--smtc-ctrl-dialog-base-shadow-(ambient)-(blur)';
export const ctrlDialogBaseShadowAmbientColorRaw = '--smtc-ctrl-dialog-base-shadow-(ambient)-(color)';
export const ctrlDialogLayerBackgroundRaw = '--smtc-ctrl-dialog-layer-background';
export const ctrlDialogLayerPaddingBottomRaw = '--smtc-ctrl-dialog-layer-padding-bottom';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ctrlDividerFixedlineLengthRaw = '--smtc-ctrl-divider-fixedline-length';
3 changes: 3 additions & 0 deletions packages/semantic-tokens/src/components/drag/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const ctrlDragBackgroundSolidRaw = '--smtc-ctrl-drag-background-(solid)';
export const ctrlDragBackgroundColorblendRaw = '--smtc-ctrl-drag-background-(colorblend)';
export const ctrlDragBackgroundLumblendRaw = '--smtc-ctrl-drag-background-(lumblend)';
27 changes: 27 additions & 0 deletions packages/semantic-tokens/src/components/fab/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export const ctrlFabBackgroundRestRaw = '--smtc-ctrl-fab-background-rest';
export const ctrlFabBackgroundHoverRaw = '--smtc-ctrl-fab-background-hover';
export const ctrlFabBackgroundPressedRaw = '--smtc-ctrl-fab-background-pressed';
export const ctrlFabBackgroundDisabledRaw = '--smtc-ctrl-fab-background-disabled';
export const ctrlFabCornerRestRaw = '--smtc-ctrl-fab-corner-rest';
export const ctrlFabShadowRestKeyXRaw = '--smtc-ctrl-fab-shadow-rest-(key)-(x)';
export const ctrlFabShadowRestKeyYRaw = '--smtc-ctrl-fab-shadow-rest-(key)-(y)';
export const ctrlFabShadowRestKeyBlurRaw = '--smtc-ctrl-fab-shadow-rest-(key)-(blur)';
export const ctrlFabShadowRestKeyColorRaw = '--smtc-ctrl-fab-shadow-rest-(key)-(color)';
export const ctrlFabShadowRestAmbientXRaw = '--smtc-ctrl-fab-shadow-rest-(ambient)-(x)';
export const ctrlFabShadowRestAmbientYRaw = '--smtc-ctrl-fab-shadow-rest-(ambient)-(y)';
export const ctrlFabShadowRestAmbientBlurRaw = '--smtc-ctrl-fab-shadow-rest-(ambient)-(blur)';
export const ctrlFabShadowRestAmbientColorRaw = '--smtc-ctrl-fab-shadow-rest-(ambient)-(color)';
export const ctrlFabShadowHoverKeyXRaw = '--smtc-ctrl-fab-shadow-hover-(key)-(x)';
export const ctrlFabShadowHoverKeyYRaw = '--smtc-ctrl-fab-shadow-hover-(key)-(y)';
export const ctrlFabShadowHoverKeyBlurRaw = '--smtc-ctrl-fab-shadow-hover-(key)-(blur)';
export const ctrlFabShadowHoverKeyColorRaw = '--smtc-ctrl-fab-shadow-hover-(key)-(color)';
export const ctrlFabShadowPressedKeyXRaw = '--smtc-ctrl-fab-shadow-pressed-(key)-(x)';
export const ctrlFabShadowPressedKeyYRaw = '--smtc-ctrl-fab-shadow-pressed-(key)-(y)';
export const ctrlFabShadowPressedKeyBlurRaw = '--smtc-ctrl-fab-shadow-pressed-(key)-(blur)';
export const ctrlFabShadowPressedKeyColorRaw = '--smtc-ctrl-fab-shadow-pressed-(key)-(color)';
export const ctrlFabShadowDisabledKeyXRaw = '--smtc-ctrl-fab-shadow-disabled-(key)-(x)';
export const ctrlFabShadowDisabledKeyYRaw = '--smtc-ctrl-fab-shadow-disabled-(key)-(y)';
export const ctrlFabShadowDisabledKeyBlurRaw = '--smtc-ctrl-fab-shadow-disabled-(key)-(blur)';
export const ctrlFabShadowDisabledKeyColorRaw = '--smtc-ctrl-fab-shadow-disabled-(key)-(color)';
export const ctrlFabCornerHoverRaw = '--smtc-ctrl-fab-corner-hover';
export const ctrlFabCornerPressedRaw = '--smtc-ctrl-fab-corner-pressed';
5 changes: 5 additions & 0 deletions packages/semantic-tokens/src/components/focus/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const ctrlFocusPositionFigmaOnlyRaw = '--smtc-ctrl-focus-position (figma only)';
export const ctrlFocusInnerStrokewidthRaw = '--smtc-ctrl-focus-inner-strokewidth';
export const ctrlFocusInnerStrokeRaw = '--smtc-ctrl-focus-inner-stroke';
export const ctrlFocusOuterStrokewidthRaw = '--smtc-ctrl-focus-outer-strokewidth';
export const ctrlFocusOuterStrokeRaw = '--smtc-ctrl-focus-outer-stroke';
28 changes: 28 additions & 0 deletions packages/semantic-tokens/src/components/input/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export const ctrlInputBackgroundRestRaw = '--smtc-ctrl-input-background-rest';
export const ctrlInputBackgroundHoverRaw = '--smtc-ctrl-input-background-hover';
export const ctrlInputBackgroundPressedRaw = '--smtc-ctrl-input-background-pressed';
export const ctrlInputBackgroundDisabledRaw = '--smtc-ctrl-input-background-disabled';
export const ctrlInputBackgroundSelectedRaw = '--smtc-ctrl-input-background-selected';
export const ctrlInputBackgroundErrorRaw = '--smtc-ctrl-input-background-error';
export const ctrlInputStrokeRestRaw = '--smtc-ctrl-input-stroke-rest';
export const ctrlInputBottomlineStrokewidthRestRaw = '--smtc-ctrl-input-bottomline-strokewidth-rest';
export const ctrlInputStrokewidthRestRaw = '--smtc-ctrl-input-strokewidth-rest';
export const ctrlInputTextselectionBackgroundRaw = '--smtc-ctrl-input-textselection-background';
export const ctrlInputTextselectionForegroundRaw = '--smtc-ctrl-input-textselection-foreground';
export const ctrlInputStrokewidthHoverRaw = '--smtc-ctrl-input-strokewidth-hover';
export const ctrlInputStrokewidthPressedRaw = '--smtc-ctrl-input-strokewidth-pressed';
export const ctrlInputStrokewidthSelectedRaw = '--smtc-ctrl-input-strokewidth-selected';
export const ctrlInputBottomlineStrokewidthHoverRaw = '--smtc-ctrl-input-bottomline-strokewidth-hover';
export const ctrlInputBottomlineStrokewidthPressedRaw = '--smtc-ctrl-input-bottomline-strokewidth-pressed';
export const ctrlInputBottomlineStrokewidthSelectedRaw = '--smtc-ctrl-input-bottomline-strokewidth-selected';
export const ctrlInputBottomlineStrokeRestRaw = '--smtc-ctrl-input-bottomline-stroke-rest';
export const ctrlInputBottomlineStrokeHoverRaw = '--smtc-ctrl-input-bottomline-stroke-hover';
export const ctrlInputBottomlineStrokePressedRaw = '--smtc-ctrl-input-bottomline-stroke-pressed';
export const ctrlInputBottomlineStrokeDisabledRaw = '--smtc-ctrl-input-bottomline-stroke-disabled';
export const ctrlInputBottomlineStrokeSelectedRaw = '--smtc-ctrl-input-bottomline-stroke-selected';
export const ctrlInputBottomlineStrokeErrorRaw = '--smtc-ctrl-input-bottomline-stroke-error';
export const ctrlInputStrokeHoverRaw = '--smtc-ctrl-input-stroke-hover';
export const ctrlInputStrokePressedRaw = '--smtc-ctrl-input-stroke-pressed';
export const ctrlInputStrokeDisabledRaw = '--smtc-ctrl-input-stroke-disabled';
export const ctrlInputStrokeSelectedRaw = '--smtc-ctrl-input-stroke-selected';
export const ctrlInputStrokeErrorRaw = '--smtc-ctrl-input-stroke-error';
15 changes: 15 additions & 0 deletions packages/semantic-tokens/src/components/link/variables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const ctrlLinkForegroundNeutralRestRaw = '--smtc-ctrl-link-foreground-neutral-rest';
export const ctrlLinkInlineStrokewidthRestRaw = '--smtc-ctrl-link-inline-strokewidth-rest';
export const ctrlLinkInlineStrokewidthHoverRaw = '--smtc-ctrl-link-inline-strokewidth-hover';
export const ctrlLinkInlineUnderlineDashedRaw = '--smtc-ctrl-link-inline-underline-dashed';
export const ctrlLinkInlineUnderlineSolidFigmaOnlyRaw = '--smtc-ctrl-link-inline-underline-solid (figma only)';
export const ctrlLinkForegroundNeutralHoverRaw = '--smtc-ctrl-link-foreground-neutral-hover';
export const ctrlLinkForegroundNeutralPressedRaw = '--smtc-ctrl-link-foreground-neutral-pressed';
export const ctrlLinkForegroundBrandRestRaw = '--smtc-ctrl-link-foreground-brand-rest';
export const ctrlLinkForegroundBrandHoverRaw = '--smtc-ctrl-link-foreground-brand-hover';
export const ctrlLinkForegroundBrandPressedRaw = '--smtc-ctrl-link-foreground-brand-pressed';
export const ctrlLinkOnpageStrokewidthRestRaw = '--smtc-ctrl-link-onpage-strokewidth-rest';
export const ctrlLinkOnpageStrokewidthHoverRaw = '--smtc-ctrl-link-onpage-strokewidth-hover';
export const ctrlLinkOnpageUnderlineDashedRaw = '--smtc-ctrl-link-onpage-underline-dashed';
export const ctrlLinkOnpageUnderlineSolidFigmaOnlyRaw = '--smtc-ctrl-link-onpage-underline-solid (figma only)';
export const ctrlLinkShowunderlineatrestRaw = '--smtc-ctrl-link-showunderlineatrest';
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.