Skip to content

Commit

Permalink
#125 Add data for white-lily.ts palette.
Browse files Browse the repository at this point in the history
  • Loading branch information
azurepolarbear committed Aug 17, 2024
1 parent dba4ef0 commit ef21f54
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/colors/all-colors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# All Colors

[How to Add a New Color](./add-new-color.md)
[How to Add a New Color to the Library (Developer Instructions)](./add-new-color.md)

----

Expand Down
2 changes: 1 addition & 1 deletion docs/palettes/all-palettes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# All Palettes

[How to Add a New Palette](./add-new-palette.md)
[How to Add a New Palette to the Library (Developer Instructions)](./add-new-palette.md)

----

Expand Down
38 changes: 31 additions & 7 deletions src/main/color/palette/palettes/nature/flower/white-lily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,34 @@
* See the GNU Affero General Public License for more details.
*/

// https://www.color-hex.com/color-palette/1039504
// #fafbf0 --> #FAFBEF
// #b0c59f --> #B1C69F
// #5e855f --> #5F8661
// #d7d7ff --> #D6D6FF
// #afafd7 --> #AEAED6
// gradient - false
import { Discriminators } from 'discriminator';
import { Palette } from 'palette';
import { _5F8661, _AEAED6, _B1C69F, _D6D6FF, _FAFBEF } from 'palette-colors';

export const WHITE_LILY: Palette = {
NAME: 'white lily',

SOURCE: 'https://www.color-hex.com/color-palette/1039504',

IS_GRADIENT: false,

COLORS: [
_FAFBEF,
_B1C69F,
_5F8661,
_D6D6FF,
_AEAED6
],

CONTRAST_MAP: {
'#000000': ['#FAFBEF', '#B1C69F', '#5F8661', '#D6D6FF', '#AEAED6'],
'#FFFFFF': [],
'#FAFBEF': ['#000000'],
'#B1C69F': ['#000000'],
'#5F8661': ['#000000'],
'#D6D6FF': ['#000000'],
'#AEAED6': ['#000000']
},

DISCRIMINATOR: Discriminators.PALETTE
};

0 comments on commit ef21f54

Please sign in to comment.