Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 5, 2025

See here for the full Tailwind migration guide: https://docs.opencloud.eu/design-system/gettingStarted/tailwindMigration.html


We can now safely remove all scss files from the design-system because all styling is either in components or in the global layers.css file. This allows us to remove the tedious strip-handling.

Also moves some css instructions from the layers.css file to the components they belong.

Note that the login screen cards are still broken.

refs #937

@JammingBen JammingBen self-assigned this Sep 5, 2025
@JammingBen JammingBen force-pushed the refactor/remove-scss branch 3 times, most recently from 5f0402f to d6b892e Compare September 5, 2025 13:36
}
}
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sad to see this go... 😍 🎉

@JammingBen JammingBen marked this pull request as ready for review September 8, 2025 09:12
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 refactors the design system by removing all SCSS files and their tedious strip-handling mechanism. The styling is now consolidated into component-level CSS or the global layers.css file, and Tailwind CSS is used for most styling needs.

Key changes include:

  • Removed all design system SCSS files and the complex build-time stripping mechanism
  • Migrated styles to Tailwind classes or component-specific CSS
  • Updated all input/form components to use inline block labels and simplified input styles

Reviewed Changes

Copilot reviewed 49 out of 49 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
vite.config.ts Removed SCSS strip marker and custom Vite plugin for style processing
packages/design-system/src/styles/ Deleted multiple SCSS theme files (oc-width, oc-form, oc-text, etc.)
packages/design-system/src/components/ Updated components to use Tailwind classes and component-specific CSS
Test snapshots Updated to reflect new CSS class names from SCSS to Tailwind
index.html Removed SCSS import and updated button classes

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

&:disabled:checked {
@include svg-fill($internal-form-checkbox-image, '#000', $form-radio-disabled-icon-color);
@include svg-fill($internal-form-checkbox-image, '#000', var(--oc-role-on-surface-variant));
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The code is using variables like $form-radio-disabled-icon-color in comments but then using hardcoded CSS custom property values. This creates inconsistency and makes it harder to maintain. Consider defining these values consistently either as SCSS variables or CSS custom properties throughout the component.

Copilot uses AI. Check for mistakes.
$internal-form-checkbox-indeterminate-image,
'#000',
$form-radio-disabled-icon-color
var(--oc-role-on-surface-variant)
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The code is using variables like $form-radio-disabled-icon-color in comments but then using hardcoded CSS custom property values. This creates inconsistency and makes it harder to maintain. Consider defining these values consistently either as SCSS variables or CSS custom properties throughout the component.

Copilot uses AI. Check for mistakes.
@kulmann
Copy link
Contributor

kulmann commented Sep 12, 2025

Note that the login screen cards are still broken.

Those are being fixed in #1172

@kulmann kulmann merged commit deabbac into main Sep 12, 2025
28 checks passed
@kulmann kulmann deleted the refactor/remove-scss branch September 12, 2025 07:20
openclouders pushed a commit that referenced this pull request Sep 12, 2025
@openclouders openclouders mentioned this pull request Sep 12, 2025
1 task
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.

4 participants