These are the resources mentioned during my talk, Accessibility at Scale, delivered at enterJS on June 27, 2019 in Darmstadt, Germany.
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
@function c( | |
$name, | |
$theme:null, | |
$component:null, | |
) { | |
// Retrieve a palette color value | |
@if ($theme == null) and ($component == null) { | |
@return map-get($colors, $name); | |
} | |
// Retrieve a component color value |
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
.c-tab { | |
border: 1px solid c(tab, border); | |
color: c(tab, type); | |
padding: 1rem 3rem; | |
a { | |
color: c(tab, link); | |
} | |
} |
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
$crimson: #a51c30; | |
// Other color variables | |
$brand-primary: $crimson; |
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
$_color-outline: saturate($brand-primary, 20%); | |
.component { | |
border: 2px solid $color-outline; | |
// Other component code | |
} |
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
$colors: ( | |
brand-primary: #6b9cdd, | |
brand-secondary: #ffadfa, | |
brand-tertiary: #fed5d8, | |
tab ( | |
background: #6b9cdd, | |
border: #00e2ff, | |
link: #ffffe7, | |
link-hover: #ffd5d9, |
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
.c-tab { | |
color: c(tab, type); | |
border: 1px solid c(tab, border); | |
padding: 1rem 3rem; | |
@media (prefers-color-scheme: dark) { | |
background-color: c(tab, dark-theme, background); | |
} | |
a { |
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
$colors: ( | |
tab ( | |
background: #6b9cdd, | |
border: #00e2ff, | |
link: #ffffe7, | |
link-hover: #ffd5d9, | |
link-active: #ffadfb, | |
type: #ffffff, | |
dark-theme: ( |
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
:root { | |
--color-tab-link: #007aff; | |
// Other CSS Custom property declarations | |
} |
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
.c-tab { | |
color: var(--color-tab-type); | |
// Other component declarations | |
@media (prefers-color-scheme: dark) { | |
--color-tab-link: #ffffff; | |
color: var(--color-tab-link) | |
// Other component theme tweaks | |
} |