Skip to content

Commit

Permalink
#14 #88 Add initial contrast map structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
azurepolarbear committed Jun 2, 2024
1 parent 3d6b0a8 commit 8d8e63e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/release-notes/v0.6.0-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,16 @@ declare interface Palette {
/**
* The list of {@link PaletteColor} objects that compose the palette.
*/
readonly COLORS: PaletteColor[]
readonly COLORS: PaletteColor[],

/**
* A map of hex color strings to arrays of hex colors,
* where each color in the array passes the WCAG AA standard
* with normal and large size text when compared to the key.<br/>
* The only colors listed in this map should be the colors of the
* palette, black (#000000), and white (#FFFFFF).
*/
readonly CONTRAST_MAP: { [HEX: string]: string[] }
}
```

Expand Down
11 changes: 10 additions & 1 deletion src/main/color/palette/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,14 @@ export interface Palette {
/**
* The list of {@link PaletteColor} objects that compose the palette.
*/
readonly COLORS: PaletteColor[]
readonly COLORS: PaletteColor[],

/**
* A map of hex color strings to arrays of hex colors,
* where each color in the array passes the WCAG AA standard
* with normal and large size text when compared to the key.<br/>
* The only colors listed in this map should be the colors of the
* palette, black (#000000), and white (#FFFFFF).
*/
readonly CONTRAST_MAP: { [HEX: string]: string[] }
}

0 comments on commit 8d8e63e

Please sign in to comment.