-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,233 @@ | |||
// |
There was a problem hiding this comment.
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 } |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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 => { |
There was a problem hiding this comment.
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
?
No description provided.