Skip to content

Commit b453ce2

Browse files
authored
Merge pull request #153 from emulsify-ds/gallery
EMULSIFY-309: Design tokens for Gallery component
2 parents ee1fe3a + cde94e1 commit b453ce2

3 files changed

Lines changed: 106 additions & 27 deletions

File tree

src/tokens/figma.tokens.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,10 @@
15051505
}
15061506
}
15071507
}
1508+
},
1509+
"darkest": {
1510+
"value": "{color.EmulsifyBlue.900}",
1511+
"type": "color"
15081512
}
15091513
},
15101514
"text": {
@@ -2039,6 +2043,36 @@
20392043
}
20402044
}
20412045
},
2046+
"components/gallery": {
2047+
"gallery": {
2048+
"overlay": {
2049+
"value": "{color.primary.darkest}",
2050+
"type": "color"
2051+
},
2052+
"grid": {
2053+
"value": "{spacing.xl}",
2054+
"type": "spacing"
2055+
},
2056+
"heading": {
2057+
"value": "{color.primary.dark}",
2058+
"type": "color"
2059+
},
2060+
"body": {
2061+
"value": "{color.text.body}",
2062+
"type": "color"
2063+
},
2064+
"modal": {
2065+
"padding-x": {
2066+
"value": "{spacing.xl}",
2067+
"type": "spacing"
2068+
},
2069+
"padding-y": {
2070+
"value": "{spacing.2xl}",
2071+
"type": "spacing"
2072+
}
2073+
}
2074+
}
2075+
},
20422076
"components/header": {
20432077
"header": {
20442078
"search": {
@@ -3308,6 +3342,7 @@
33083342
"components/cta",
33093343
"components/fieldset",
33103344
"components/footer",
3345+
"components/gallery",
33113346
"components/header",
33123347
"components/input",
33133348
"components/link",

src/tokens/tokens.scss

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898
--input-bkg: #ffffff;
9999
--header-search-background: #006089;
100100
--header-search-text-icon: #ffffff;
101+
--gallery-overlay: #00405b;
102+
--gallery-grid: 2rem;
103+
--gallery-heading: #0080b7;
104+
--gallery-body: #00202e;
105+
--gallery-modal-padding-x: 2rem;
106+
--gallery-modal-padding-y: 4rem;
101107
--footer-background-default: #006089;
102108
--footer-background-light: #ffffff;
103109
--footer-heading-default: #9ce1ff;
@@ -190,6 +196,7 @@
190196
--color-primary-lighter: #9ce1ff;
191197
--color-primary-dark: #0080b7;
192198
--color-primary-darker: #006089;
199+
--color-primary-darkest: #00405b;
193200
--color-text-body: #00202e;
194201
--color-text-body-lighter: #006089;
195202
--color-text-heading: #006089;
@@ -403,20 +410,21 @@
403410
--token-set-order-10: components/cta;
404411
--token-set-order-11: components/fieldset;
405412
--token-set-order-12: components/footer;
406-
--token-set-order-13: components/header;
407-
--token-set-order-14: components/input;
408-
--token-set-order-15: components/link;
409-
--token-set-order-16: components/mainMenu;
410-
--token-set-order-17: components/utilityMenu;
411-
--token-set-order-18: components/pager;
412-
--token-set-order-19: components/radioButton;
413-
--token-set-order-20: components/selectdropdown;
414-
--token-set-order-21: components/status;
415-
--token-set-order-22: components/table;
416-
--token-set-order-23: components/tabs;
417-
--token-set-order-24: components/textField;
418-
--token-set-order-25: components/tooltip;
419-
--token-set-order-26: storybook;
413+
--token-set-order-13: components/gallery;
414+
--token-set-order-14: components/header;
415+
--token-set-order-15: components/input;
416+
--token-set-order-16: components/link;
417+
--token-set-order-17: components/mainMenu;
418+
--token-set-order-18: components/utilityMenu;
419+
--token-set-order-19: components/pager;
420+
--token-set-order-20: components/radioButton;
421+
--token-set-order-21: components/selectdropdown;
422+
--token-set-order-22: components/status;
423+
--token-set-order-23: components/table;
424+
--token-set-order-24: components/tabs;
425+
--token-set-order-25: components/textField;
426+
--token-set-order-26: components/tooltip;
427+
--token-set-order-27: storybook;
420428
--emulsify-ui-kit-full: [object Object];
421429
--emulsify-global: [object Object];
422430
--emulsify-semantic: [object Object];

src/tokens/transformed.tokens.json

Lines changed: 49 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,34 @@
500500
}
501501
}
502502
},
503+
"gallery": {
504+
"overlay": {
505+
"value": "#00405b",
506+
"type": "color"
507+
},
508+
"grid": {
509+
"value": 32,
510+
"type": "spacing"
511+
},
512+
"heading": {
513+
"value": "#0080b7",
514+
"type": "color"
515+
},
516+
"body": {
517+
"value": "#00202e",
518+
"type": "color"
519+
},
520+
"modal": {
521+
"padding-x": {
522+
"value": 32,
523+
"type": "spacing"
524+
},
525+
"padding-y": {
526+
"value": 64,
527+
"type": "spacing"
528+
}
529+
}
530+
},
503531
"footer": {
504532
"background": {
505533
"default": {
@@ -995,6 +1023,10 @@
9951023
"darker": {
9961024
"value": "#006089",
9971025
"type": "color"
1026+
},
1027+
"darkest": {
1028+
"value": "#00405b",
1029+
"type": "color"
9981030
}
9991031
},
10001032
"text": {
@@ -2528,58 +2560,62 @@
25282560
"type": "other"
25292561
},
25302562
"13": {
2531-
"value": "components/header",
2563+
"value": "components/gallery",
25322564
"type": "other"
25332565
},
25342566
"14": {
2535-
"value": "components/input",
2567+
"value": "components/header",
25362568
"type": "other"
25372569
},
25382570
"15": {
2539-
"value": "components/link",
2571+
"value": "components/input",
25402572
"type": "other"
25412573
},
25422574
"16": {
2543-
"value": "components/mainMenu",
2575+
"value": "components/link",
25442576
"type": "other"
25452577
},
25462578
"17": {
2547-
"value": "components/utilityMenu",
2579+
"value": "components/mainMenu",
25482580
"type": "other"
25492581
},
25502582
"18": {
2551-
"value": "components/pager",
2583+
"value": "components/utilityMenu",
25522584
"type": "other"
25532585
},
25542586
"19": {
2555-
"value": "components/radioButton",
2587+
"value": "components/pager",
25562588
"type": "other"
25572589
},
25582590
"20": {
2559-
"value": "components/selectdropdown",
2591+
"value": "components/radioButton",
25602592
"type": "other"
25612593
},
25622594
"21": {
2563-
"value": "components/status",
2595+
"value": "components/selectdropdown",
25642596
"type": "other"
25652597
},
25662598
"22": {
2567-
"value": "components/table",
2599+
"value": "components/status",
25682600
"type": "other"
25692601
},
25702602
"23": {
2571-
"value": "components/tabs",
2603+
"value": "components/table",
25722604
"type": "other"
25732605
},
25742606
"24": {
2575-
"value": "components/textField",
2607+
"value": "components/tabs",
25762608
"type": "other"
25772609
},
25782610
"25": {
2579-
"value": "components/tooltip",
2611+
"value": "components/textField",
25802612
"type": "other"
25812613
},
25822614
"26": {
2615+
"value": "components/tooltip",
2616+
"type": "other"
2617+
},
2618+
"27": {
25832619
"value": "storybook",
25842620
"type": "other"
25852621
}

0 commit comments

Comments
 (0)