-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to the new SASS modules API (@use and @forward instead of @import) #4104
Comments
Our Fluent theme is based on |
@joneff Supported yet deprecated... All that's left is to wait I guess. Is it on the roadmap though? |
That's not a question I can answer in a politically correct way... |
It was brought to my attention that my answer may sound What I meant was that I cannot give you a straightforward answer. Is it on the roadmap -- of course! However, neither in the immediate vicinity, nor for a specific date... To get there we need to complete certain steps like complete, verify and battle test our module system, color system and utils; workout proper customization for the new syntax; reduce differences, as much as possible, between the two flavours; to name a few. Without those -- we are nowhere near migrating. |
Angular 15 will not compile if this is not resolved so it is no longer supported. |
Is it because of this issue: https://stackoverflow.com/questions/70074186/worker-terminated-due-to-reaching-memory-limit-js-heap-out-of-memory I am running into this as well, I assume the solution would be to revert to Angular V14? I was also running into issues like "$kendo-color-white", "$kendo-color-white" variable not found, but I'm not sure if I should open a separate ticket for those, would they be related to the Dart compiler being used instead of node-sass? |
|
@goat67 by "this", what exactly do you mean? Would it be the '~' imports, because those are fixed with v6? |
I've tried version 6.0.1 and yes, seems like it is compiling. But scss bundle become too large if you want to import style just for few components, like +30 MB oO With 5.0.x version we have imported styles like this:
With 6.0.1 version it became like this (if i'm not wrong):
Somebody else facing same problem with partial styles importing, or am i doing something wrong? |
@BaHXeLiSiHg #4227 targets the first part (which is utils). We'll followup with icons. |
@Harpush the issue was unintentionally closed by automation. @BaHXeLiSiHg the bundle size issue is be fixed in 6.0.3 |
@Juveniel 6.0.3 fails to compile with Angular 15, imports starts with "~" throws error "Can't find stylesheet to import." :/ |
@BaHXeLiSiHg Can you specify which file? I am looking at our code and I can't find a single |
This comment was marked as off-topic.
This comment was marked as off-topic.
@BaHXeLiSiHg you should import the theme from the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@Juveniel This issue was created for sass modules migration. It has gone off topic. I believe @BaHXeLiSiHg should create a different issue. |
@BaHXeLiSiHg, the current issue is related to dart sass 2.0 migration. Thus, please open a separate issue for the Grid Material issues, or alternatively open a product support ticket from your telerik account. |
Any news concerning this? |
Hey @Harpush, We are working on the internals - integrating and expanding the core module system that is the base for each theme. This will allow us to gradually migrate all themes and align them with the latest sass spec. Also, there has been news from the sass team, that the Taking the above into consideration, we will try to push for the kendo themes to support both the //cc @joneff |
Hey @Juveniel where is it standing now? It seems to be going in right direction :) |
Hey @Harpush, We are moving in that direction, yes. We are working on abstracting common chunks in the core package that will enable faster transition to the new syntax. However, we still need to wait for the official announcement from the sass team and evaluate the usage of node-sass. A specific discussion with more concrete information and steps regarding the migration will be created here in the themes repo. |
Any news? |
Yep! We are beginning with simple code refactoring. More broadly speaking, #5036 is the PR that, when merged, will resolve the issue, but there are myriad of other small tweaks that must be done. We'll update the issue as we go. |
Do what's the status? |
Hey @Harpush, We have begun the process of migration to the modern syntax starting with common modules and will gradually continue with each theme. |
v10.0.0 of the Kendo Themes marks the official adoption of the dart-sass implementation. All Kendo UI theme products (including CSS Utilities and Font icons) have been updated to the
For more detailed information about the change and how to customize and import the themes, please refer to our official documentation. |
Is your feature request related to a problem? Please describe.
The main motivating "issue" is that
@import
is now deprecated in favor of the new SASS modules API.Describe the solution you would like to see implemented
An API similar to the new material theming API:
Describe the alternatives you have considered
Continue using the deprecated
@import
.Additional context
None
Tasks
The text was updated successfully, but these errors were encountered: