diff --git a/apps/nextjs-example/app/CardTokens.stylex.ts b/apps/nextjs-example/app/CardTokens.stylex.ts index 70ca9268..ef960929 100644 --- a/apps/nextjs-example/app/CardTokens.stylex.ts +++ b/apps/nextjs-example/app/CardTokens.stylex.ts @@ -10,5 +10,5 @@ import * as stylex from '@stylexjs/stylex'; export const tokens = stylex.defineVars({ - arrowTransform: 'translateX(0)', + arrow_transform: 'translateX(0)', }); diff --git a/apps/nextjs-example/components/Card.tsx b/apps/nextjs-example/components/Card.tsx index 3f2de3e6..9382dc9c 100644 --- a/apps/nextjs-example/components/Card.tsx +++ b/apps/nextjs-example/components/Card.tsx @@ -68,7 +68,7 @@ const styles = stylex.create({ transitionDuration: '400ms', textAlign: 'center', textDecoration: 'none', - [tokens.arrowTransform]: { + [tokens.arrow_transform]: { default: 'translateX(0)', ':hover': 'translateX(4px)', }, @@ -85,7 +85,7 @@ const styles = stylex.create({ span: { display: 'inline-block', transitionProperty: 'transform', - transform: tokens.arrowTransform, + transform: tokens.arrow_transform, transitionDuration: { default: '200ms', [REDUCE_MOTION]: '0s',