Skip to content

Conversation

mannycarrera4
Copy link
Contributor

@mannycarrera4 mannycarrera4 commented Sep 22, 2025

Summary

Fixes: #3518

Release Category

Utilities

Release Note

The following theming utils have been deprecated:

  • defaultCanvasTheme
  • styled
  • createCanvasTheme
  • getTheme
  • useTheme
  • useIsRTL
  • useThemedRing
    To better support our theming we encourage our consumers to use our CSS Tokens. For more information, please view our Theming Docs and CSS Token docs.

Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@mannycarrera4 mannycarrera4 moved this to 🏗 In progress in Canvas Kit Sep 22, 2025
Copy link

cypress bot commented Sep 22, 2025

Workday/canvas-kit    Run #9626

Run Properties:  status check passed Passed #9626  •  git commit fbf0715309 ℹ️: Merge bf0acd0e221df728a3639f3d4b83924ee8136c8c into 450a5e2578f82e81445111c06744...
Project Workday/canvas-kit
Branch Review mc-deprecate-theming-utils
Run status status check passed Passed #9626
Run duration 02m 53s
Commit git commit fbf0715309 ℹ️: Merge bf0acd0e221df728a3639f3d4b83924ee8136c8c into 450a5e2578f82e81445111c06744...
Committer Manuel Carrera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 86
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 843
View all changes introduced in this branch ↗︎
UI Coverage  19.41%
  Untested elements 1526  
  Tested elements 365  
Accessibility  99.31%
  Failed rules  6 critical   5 serious   0 moderate   2 minor
  Failed elements 77  

@mannycarrera4 mannycarrera4 marked this pull request as draft September 23, 2025 16:49
@mannycarrera4 mannycarrera4 marked this pull request as ready for review October 1, 2025 15:44
@mannycarrera4 mannycarrera4 added the ready for review Code is ready for review label Oct 1, 2025
@mannycarrera4 mannycarrera4 moved this from 🏗 In progress to 👀 In review in Canvas Kit Oct 1, 2025
import {memoize} from '../utils/memoize';

/**
* @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on a algorithm for color shifting, you can use
Copy link
Member

Choose a reason for hiding this comment

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

Question: You can use what?

Copy link
Member

@alanbsmith alanbsmith left a comment

Choose a reason for hiding this comment

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

I made some nits, but otherwise this is good. Thanks, Manny!

}

/**
* @deprecated ⚠️ `styled` is deprecated and will be removed in a future major version. Please use `createStyles` or `createStencil` instead with [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values). For more information, view our [Styling docs](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
Copy link
Member

Choose a reason for hiding this comment

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

YES. FI-NA-LLY. It's happening.

import {memoize} from '../utils/memoize';

/**
* @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on a algorithm for color shifting, you can use
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
* @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on a algorithm for color shifting, you can use
* @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on a algorithm for color shifting, you can use [oklch with calc or from](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to choose colors.

Copy link
Member

@alanbsmith alanbsmith left a comment

Choose a reason for hiding this comment

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

:shipit:

@mannycarrera4 mannycarrera4 added automerge and removed ready for review Code is ready for review labels Oct 10, 2025
@alanbsmith alanbsmith enabled auto-merge (squash) October 10, 2025 16:03
@alanbsmith alanbsmith disabled auto-merge October 10, 2025 16:04
@alanbsmith alanbsmith enabled auto-merge (squash) October 10, 2025 16:04
@alanbsmith alanbsmith disabled auto-merge October 10, 2025 16:26
@alanbsmith alanbsmith enabled auto-merge (squash) October 10, 2025 16:26
@alanbsmith alanbsmith merged commit 69e1e3b into Workday:prerelease/minor Oct 10, 2025
17 of 18 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Canvas Kit Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants