Skip to content

Conversation

dennispost
Copy link
Contributor

No description provided.

@dennispost dennispost self-assigned this Oct 9, 2024
@dennispost dennispost marked this pull request as ready for review October 23, 2024 08:49
@@ -0,0 +1,233 @@
//
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't have any Licence information in other files. Should we remove it here @dennispost?

import SwiftUI

protocol DSDimensions {
var spacingResponsiveRegularTablet3xs: CGFloat { get }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can reuse this as a shared constant to generate those dimensions instead of hard coding it?


extension DSTypography {
init(variant: DSTypographyVariant, density: DSDensity, device: DSDeviceType, sizes: [String: CGFloat]) {
lineHeight3xs = sizes["\\(variant)LineHeight\\(density.rawValue)\\(device.rawValue)3xs", default: 12]
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could create a forEach here to iterate over all t-shirt sizes

"3xl",
];

export const generateStaticSwiftUIFiles = (): string => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Those are all color related, why did you add it to the shared.ts file instead of colors.ts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants