Last active
March 16, 2018 14:40
-
-
Save julia-r/082bc74fc0ccc5535f164fe38792b1e5 to your computer and use it in GitHub Desktop.
Color Accessibility Example
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
/** | |
* Color Accessibility Example | |
*/ | |
.contrast { | |
background-color: #585858; | |
color: #777575; | |
} | |
.red-green { | |
background-color: #4CAF50; | |
color: #ea7a72; | |
} | |
h1 { | |
display: inline-block; | |
text-align: center; | |
font-size: 50px; | |
font-family: monospace; | |
margin: 0; | |
height: 100vh; | |
width: 48vw; | |
line-height: 100vh; | |
} |
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
<h1 class="contrast">The cake is a lie!</h1> | |
<h1 class="red-green">The cake is a lie!</h1> |
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
// alert('Hello world!'); |
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
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment