Skip to content

[WB-1998.3] Migrate color to semanticColor in math-input#3250

Open
jandrade wants to merge 3 commits intowb-color2sc-2from
wb-color2sc-3
Open

[WB-1998.3] Migrate color to semanticColor in math-input#3250
jandrade wants to merge 3 commits intowb-color2sc-2from
wb-color2sc-3

Conversation

@jandrade
Copy link
Member

Summary:

Migrates the Aphrodite styles in math-input to the new semanticColor tokens.

This PR is part of the larger effort to migrate the Perseus codebase to use the
new semanticColor tokens.

Documents for reference:

Implementation plan:

  1. [WB-1998.1] Migrate color to semanticColor in perseus-editor #3244
  2. [WB-1998.2] Migrate color to semanticColor in perseus #3246
  3. math-input (current PR)

Issue: https://khanacademy.atlassian.net/browse/WB-1998

Test plan:

Verify that the components in math-input look correct.

@jandrade jandrade self-assigned this Feb 12, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Size Change: +61 B (+0.01%)

Total Size: 485 kB

Filename Size Change
packages/math-input/dist/es/index.js 98.5 kB +61 B (+0.06%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.8 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 5.98 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 11.8 kB
packages/perseus-core/dist/es/index.js 24.8 kB
packages/perseus-editor/dist/es/index.js 99.3 kB
packages/perseus-linter/dist/es/index.js 8.83 kB
packages/perseus-score/dist/es/index.js 9.32 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 187 kB
packages/perseus/dist/es/strings.js 7.44 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (335f5c7) and published it to npm. You
can install it using the tag PR3250.

Example:

pnpm add @khanacademy/perseus@PR3250

If you are working in Khan Academy's frontend, you can run the below command.

./dev/tools/bump_perseus_version.ts -t PR3250

If you are working in Khan Academy's webapp, you can run the below command.

./dev/tools/bump_perseus_version.js -t PR3250

Juan Andrade added 2 commits February 12, 2026 10:52
position: "relative",
borderStyle: "solid",
borderColor: color.offBlack50,
borderColor: semanticColor.core.border.neutral.default,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...(showInputFocusStyle
? {
borderColor: color.blue,
borderColor:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

borderColor: semanticColor.core.border.neutral.default,
borderRadius: 4,
color: color.offBlack,
color: semanticColor.core.foreground.neutral.strong,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width: "100%",
marginBottom: "1em",
border: `1px solid ${color.offBlack16}`,
border: `1px solid ${semanticColor.core.border.neutral.subtle}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

justifyContent: "center",
alignItems: "center",
boxShadow: `0px 1px 0px ${color.offBlack32}`,
boxShadow: `0px 1px 0px ${semanticColor.core.shadow.chonky.neutral.subtle}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant