I still get an error after making the changes mentioned in this ticket.
- Drupal version 10.3.5
- Install Lightship 2 via composer
- Make the changes from this ticket
- Run the command
lando php ./core/scripts/drupal generate-theme jonesui2024 --starterkit=lightship
Error Message:
[ERROR] Theme source theme lightship is not a valid starter kit.
6 years?
@dineshkumarbollu
Your patch also needs to change the name of the actual function in sass/abstracts/_functions.scss to rem-calc()
I changed the name of the function from rem() to rem-calc() and replaced the instances where it is used.
This cleared up my errors.
I came across this relevant post on StackOverflow...
https://stackoverflow.com/a/76878307
The CSS rem() function required 2 parameters: https://developer.mozilla.org/en-US/docs/Web/CSS/rem
The rem() CSS function returns a remainder left over when the first parameter is divided by the second parameter, similar to the JavaScript remainder operator (%)
If you created a custom rem() function, I suggest naming it something else as there could be a conflict.
JonesUI β created an issue.
JonesUI β created an issue.
JonesUI β created an issue.