πŸ‡ΊπŸ‡ΈUnited States @JonesUI

Account created on 25 September 2008, over 16 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States JonesUI

I still get an error after making the changes mentioned in this ticket.

  1. Drupal version 10.3.5
  2. Install Lightship 2 via composer
  3. Make the changes from this ticket
  4. 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.

πŸ‡ΊπŸ‡ΈUnited States JonesUI

@dineshkumarbollu
Your patch also needs to change the name of the actual function in sass/abstracts/_functions.scss to rem-calc()

πŸ‡ΊπŸ‡ΈUnited States JonesUI

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.

πŸ‡ΊπŸ‡ΈUnited States JonesUI

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.

Production build 0.71.5 2024