Skip to content
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

feat: add output scripts for swiftui #957

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dennispost
Copy link
Collaborator

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
Member

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
Member

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
Member

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
Member

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