Skip to content

Instantly share code, notes, and snippets.

@VictorWesterlund
Created February 3, 2021 00:41
Show Gist options
  • Save VictorWesterlund/3b47ce5fc7b9f87daa78d8b92f1d933a to your computer and use it in GitHub Desktop.
Save VictorWesterlund/3b47ce5fc7b9f87daa78d8b92f1d933a to your computer and use it in GitHub Desktop.
Full CGA 16-color palette in CSS
.cga-palette {
/* low intensity */
--black: #000000;
--blue: #0000AA;
--green: #00AA00;
--cyan: #00AAAA;
--red: #AA0000;
--magenta: #AA00AA;
--brown: #AA5500;
--light-gray: #AAAAAA;
/* high intensity */
--dark-gray: #555555;
--light-blue: #5555FF;
--light-green: #55FF55;
--light-cyan: #55FFFF;
--light-red: #FF5555;
--light-magenta: #FF55FF;
--yellow: #FFFF55;
--white: #FFFFFF;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment