This file contains hidden or 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
| /* styles.js */ | |
| export const SPACING_XXS = 4; | |
| export const SPACING_XS = 6; | |
| export const SPACING_S = 12; | |
| // ... more spacing constants | |
| export const COLOR_DARK_BLUE = "#06171d"; | |
| export const COLOR_GRAY_BLUE = "#b2c3d0"; | |
| export const COLOR_TEAL = "#437f92"; |
This file contains hidden or 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
| /* MyComponent.js */ | |
| import formStyles from "formStyles"; | |
| class MyComponent extends React.Component { | |
| render() { | |
| return ( | |
| // ... | |
| <TextInput style={formStyles.textInput} /> | |
| // ... |
This file contains hidden or 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
| /* formStyles.js */ | |
| export default StyleSheet.create({ | |
| textInput: { | |
| padding: 16, | |
| borderColor: "#eee", | |
| borderWidth: StyleSheet.hairlineWidth, | |
| }, | |
| }); |
This file contains hidden or 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
| /* HeadingText.js */ | |
| const styles = StyleSheet.create({ | |
| text: { | |
| fontFamily: "UnreadableSans", | |
| fontSize: 24, | |
| fontWeight "500", | |
| }, | |
| }); |
This file contains hidden or 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
| /* formStyles.js */ | |
| import { errorText } from "textMixins"; | |
| export default StyleSheet.create({ | |
| formErrorMessage: { | |
| ...errorText, | |
| fontSize: 22, | |
| }, | |
| fieldErrorMessage: { |
This file contains hidden or 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
| /* textMixins.js */ | |
| export const errorText = { | |
| fontWeight: "700", | |
| color: "red", | |
| }; |
This file contains hidden or 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
| <p style="color: lemonchiffon;">Blah…</p> | |
| <p style="color: lemonchiffon;">Bleh…</p> | |
| <p style="color: lemonchiffon;">Bluh..?</p> |
This file contains hidden or 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
| .subheading { | |
| margin-bottom: 16px; | |
| } |
This file contains hidden or 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
| body { | |
| color: lemonchiffon; | |
| } | |
| input[type=text] { | |
| color: peachpuff; | |
| } |
This file contains hidden or 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
| <Text style={styles.branded}> | |
| Yummy Papyrus | |
| <Text style={{fontWeight: bold}}> | |
| Bold, yet still Papyrus | |
| </Text> | |
| </Text> |