This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ios": "theo color.yml - setup setup.js - format ios.color.swift > UIColor+Token.swift" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = theo => { | |
theo.registerFormat('ios.color.swift', result => { | |
return `🎉`; | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Default page background */ | |
export const colorGray10 = "#f7f7f7"; | |
/* ClassPass' key brand color */ | |
export const colorBrand = "#0055ff"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"web": "theo colors.yml - transform web - format scss > colors.scss" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Default page background */ | |
$color-gray10: rgb(247, 247, 247); | |
/* ClassPass' key brand color */ | |
$color-brand: rgb(0, 85, 255); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
type: color | |
category: color | |
props: | |
colorGray10: | |
value: "#f7f7f7" | |
comment: Default page background | |
colorBrand: | |
value: "#0055ff" | |
comment: ClassPass' key brand color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"theo": "salesforce-ux/theo" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIImage (ImageEffects) | |
- (UIImage *)applyLightEffect; | |
- (UIImage *)applyExtraLightEffect; | |
- (UIImage *)applyDarkEffect; | |
- (UIImage *)applyTintEffectWithColor:(UIColor *)tintColor; | |
- (UIImage *)applyBlurWithRadius:(CGFloat)blurRadius tintColor:(UIColor *)tintColor saturationDeltaFactor:(CGFloat)saturationDeltaFactor maskImage:(UIImage *)maskImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIEdgeInsets { | |
static var zero: UIEdgeInsets { | |
return UIEdgeInsetsZero | |
} | |
} | |
// Inspired by "Many Controllers Make Light Work" by Soroush Khanlou | |
// http://khanlou.com/2016/02/many-controllers/ | |
class KeyboardManagerViewController: UIViewController { | |
let scrollView: UIScrollView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (UIFont *)bodyFont | |
{ | |
UIFont *dynamicTextFont = [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; | |
UIFont *customFont = [UIFont fontWithName:@"Avenir" size:dynamicTextFont.pointSize]; | |
return customFont; | |
} |