Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Aug 19, 2025

Also removes some unused classes in the scss files.

Migration

  • oc-text-xsmall > text-xs
  • oc-text-small > text-sm
  • oc-text-medium > text-base
  • oc-text-large > text-lg
  • oc-text-xlarge > text-xl

The line-height gets determined by the given text- class. However, it can also be adjusted separately via the leading- classes.

refs #937

@JammingBen JammingBen force-pushed the refactor/font-size-tailwind branch from bce1636 to a397236 Compare August 19, 2025 08:06
@JammingBen JammingBen marked this pull request as ready for review August 19, 2025 08:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates font-size and line-height styles from custom SCSS classes to Tailwind CSS utilities across the entire codebase. The migration replaces custom oc-text-* size classes with standardized Tailwind equivalents and removes related unused SCSS code.

  • Replaces custom font-size classes (oc-text-xsmall, oc-text-small, etc.) with Tailwind text utilities (text-xs, text-sm, etc.)
  • Updates line-height implementations to use Tailwind's leading-* classes where needed
  • Removes obsolete SCSS font-size and line-height definitions from the design system

Reviewed Changes

Copilot reviewed 100 out of 100 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/web-runtime/tests/unit/components/Topbar/snapshots/UserMenu.spec.ts.snap Updates test snapshots to reflect new Tailwind classes
packages/web-runtime/src/pages/ Migrates error message font sizes in public/private link resolvers and 404 pages
packages/web-runtime/src/components/ Updates component templates with new Tailwind text size classes
packages/web-pkg/tests/unit/components/ Updates test snapshots for components using new text sizing
packages/web-pkg/src/components/ Migrates component templates to use Tailwind text utilities
packages/web-app-files/src/components/ Updates file management components with new text sizing
packages/web-app-admin-settings/src/components/ Migrates admin interface components to Tailwind text classes
packages/design-system/src/ Removes obsolete SCSS font-size definitions and adds Tailwind layer configurations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Looks good to me (literally). 💪

@JammingBen JammingBen merged commit b569473 into main Aug 20, 2025
29 checks passed
@JammingBen JammingBen deleted the refactor/font-size-tailwind branch August 20, 2025 12:02
@openclouders openclouders mentioned this pull request Aug 20, 2025
1 task
openclouders pushed a commit that referenced this pull request Aug 20, 2025
refactor: migrate font-size and line-height to tailwind
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.

3 participants