Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 9, 2025

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


There is just no need for these things anymore, they just add unnecessary complexity.

refs #937

@JammingBen JammingBen self-assigned this Sep 9, 2025
@JammingBen JammingBen added Type:Maintenance E.g. technical debt, packaging, etc. Type:Breaking-Change and removed Type:Maintenance E.g. technical debt, packaging, etc. labels Sep 9, 2025
Comment on lines -371 to -373
app.use(designSystem, {
tokens: currentTheme.value.designTokens
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The theme store already applies tokens to html, no need for the design-system to do it again.

There is no need to generate tokens for our default CSS variables anymore, we can just define them via CSS and extract them for the design-system docs where we want to list them.
This includes breakpoints, spacing, font-size, size.
@JammingBen JammingBen force-pushed the refactor/remove-token-generation branch from d91122a to 6e1122a Compare September 9, 2025 07:24
Base automatically changed from refactor/remove-scss to main September 12, 2025 07:20
@JammingBen JammingBen marked this pull request as ready for review September 12, 2025 07: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 removes token generation infrastructure and unnecessary theming options to reduce system complexity. The changes eliminate the build-tokens system, simplify design token handling by moving to hardcoded defaults, and streamline the theming API.

  • Removes token generation build system and related dependencies
  • Replaces dynamic theme token loading with static CSS defaults
  • Simplifies design system API by removing unused token categories

Reviewed Changes

Copilot reviewed 36 out of 38 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/web-runtime/src/container/bootstrap.ts Removes token passing to design system and simplifies theme initialization
packages/web-pkg/src/composables/piniaStores/theme.ts Removes unused design token categories (breakpoints, fontSizes, sizes, spacing)
packages/web-pkg/src/composables/viewMode/useTileSize.ts Replaces dynamic CSS variable reading with hardcoded pixel values
packages/design-system/src/styles/defaults.css Adds hardcoded CSS custom properties replacing generated tokens
packages/design-system/src/index.ts Removes unused token initialization for removed categories
packages/design-system/docs/.vitepress/config.ts Adds CSS vars generator and removes token-related documentation
packages/design-system/package.json Removes token generation scripts and dependencies
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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.

👏

Copy link
Contributor

Choose a reason for hiding this comment

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

did you "sync" the color roles with the ones in the opencloud default theme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet, #1147 is still open.

@JammingBen JammingBen merged commit 04a377b into main Sep 12, 2025
28 checks passed
@JammingBen JammingBen deleted the refactor/remove-token-generation branch September 12, 2025 11:04
openclouders pushed a commit that referenced this pull request Sep 12, 2025
…ration

chore!: remove token generation and unnecessary theming options
@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.

3 participants