Merged
Conversation
8b89cb7 to
a6a4d9e
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR migrates color and background-color styling from CSS variables to Tailwind utility classes. The migration introduces new utility classes in the design system for color roles (oc-role-{name}) and replaces legacy classes like oc-text-muted and oc-text-error with semantic role-based equivalents.
Key changes:
- Introduction of new Tailwind utility classes for color roles in the design system layer
- Migration of inline CSS color/background properties to Tailwind classes
- Replacement of legacy helper classes with semantic role-based equivalents
- Removal of redundant CSS color definitions in favor of utility classes
Reviewed Changes
Copilot reviewed 138 out of 138 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| packages/design-system/src/styles/colors.css | New utility classes for color roles |
| packages/design-system/src/styles/layers.css | Integration of new color utilities |
| Various component and test files | Migration from CSS variables to Tailwind classes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
74ebc95 to
835af1a
Compare
835af1a to
ae14b8f
Compare
kulmann
approved these changes
Aug 22, 2025
openclouders
pushed a commit
that referenced
this pull request
Aug 22, 2025
refactor: colors to tailwind
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates
colorandbackground-colorto Tailwind.Migration
The theme color roles now exist as tailwind variables and can be used like so:
bg-role-primary,text-role-on-primary. This also supports variations, e.g.hover:text-role-on-primaryorbg-role-primary/50.Also these oc-helper classes are now redundant:
oc-text-muted>text-role-on-surface-variantoc-text-error>text-role-on-errorrefs #937