Skip to content

Instantly share code, notes, and snippets.

@joansanfeliu
Created June 7, 2019 11:08
Show Gist options
  • Save joansanfeliu/10c778fd14cebce321f92a2271ddc541 to your computer and use it in GitHub Desktop.
Save joansanfeliu/10c778fd14cebce321f92a2271ddc541 to your computer and use it in GitHub Desktop.
Android text color
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Dark Text Color for Light Background -->
<color name="textDarkPrimary">#DE000000</color> <!--DE for %87 opacity-->
<color name="textDarkSecondary">#8A000000</color> <!--8A for %54 opacity-->
<color name="textDarkDisabled">#61000000</color> <!--61 for %38 opacity-->
<!-- White Text Color for Dark Background -->
<color name="textLightPrimary">#FFFFFF</color> <!--%100 opacity-->
<color name="textLightSecondary">#B2FFFFFF</color> <!--B2 for %70 opacity-->
<color name="textLightDisabled">#80FFFFFF</color> <!--80 for %50 opacity-->
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment