['desktop' => $value[$key] ?? '']; $length = [Style::class, 'length']; $styles ->add($name . '-font-size', $value['fontSize'] ?? [], $length) ->add($name . '-letter-spacing', $value['letterSpacing'] ?? [], $length) ->add($name . '-font-weight', $single('fontWeight'), static fn($weight): string => Style::oneOf($weight, self::FONT_WEIGHTS)) ->add($name . '-line-height', $single('lineHeight'), [Style::class, 'lineHeight']) ->add($name . '-text-transform', $single('textTransform'), static fn($transform): string => Style::oneOf($transform, self::TEXT_TRANSFORMS)); } }