1
1
import React , { useState } from "react" ;
2
2
import { navigate } from "gatsby" ;
3
3
import { useLocation } from "@reach/router" ;
4
-
5
-
6
4
import { SistentLayout } from "../../sistent-layout" ;
7
5
import { Col , Row } from "../../../../../reusecore/Layout" ;
8
6
import Button from "../../../../../reusecore/Button" ;
@@ -447,8 +445,8 @@ const CopyColor = ({ hex , token }) => {
447
445
448
446
const PreviewBox = styled ( "div" ) ( ( { theme, bgcolor } ) => ( {
449
447
backgroundColor : bgcolor ,
450
- width : "1 .6rem" ,
451
- height : "1 .6rem" ,
448
+ width : "2 .6rem" ,
449
+ height : "2 .6rem" ,
452
450
borderRadius : "6px" ,
453
451
border : `1px solid ${ theme . palette . divider } ` ,
454
452
boxShadow : "inset 0 0 3px rgba(0,0,0,0.15)" ,
@@ -486,6 +484,7 @@ const PreviewTextBox = styled("p")(({ theme, tokenName }) => {
486
484
justifyContent : "center" ,
487
485
fontSize : "1rem" ,
488
486
fontWeight : "bold" ,
487
+ backgroundColor : theme . palette . background . tertiary ,
489
488
} ;
490
489
} ) ;
491
490
@@ -501,8 +500,8 @@ const PreviewBorderBox = styled("div")(({ theme , tokenName }) => {
501
500
502
501
return {
503
502
backgroundColor : "transparent" ,
504
- width : "1 .6rem" ,
505
- height : "1 .6rem" ,
503
+ width : "2 .6rem" ,
504
+ height : "2 .6rem" ,
506
505
borderRadius : "6px" ,
507
506
border : `1px solid ${ resolvedColors } ` ,
508
507
boxShadow : "inset 0 0 3px rgba(0,0,0,0.15)" ,
@@ -535,7 +534,7 @@ const StyledTableContainer = styled(TableContainer)(() => ({
535
534
536
535
const StyledTableCell = styled ( TableCell ) ( ( { theme } ) => ( {
537
536
color : theme . palette . text . secondary ,
538
- fontSize : "0.875rem " ,
537
+ fontSize : "0.975rem " ,
539
538
padding : "0.75rem" ,
540
539
borderBottom : `1px solid ${ theme . palette . divider } ` ,
541
540
borderRadius : "4px" ,
@@ -631,7 +630,7 @@ const ColorCode = () => {
631
630
< StyledTableRow key = { col . tokenName } >
632
631
< StyledTableCell > { col . tokenName } </ StyledTableCell >
633
632
< StyledTableCell > { col . name } </ StyledTableCell >
634
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
633
+ < StyledTableCell > { col . hex } </ StyledTableCell >
635
634
< StyledTableCell sx = { { fontFamily : "monospace" } } >
636
635
< CopyColor hex = { col . token } />
637
636
</ StyledTableCell >
@@ -668,7 +667,7 @@ const ColorCode = () => {
668
667
< StyledTableRow key = { col . tokenName } >
669
668
< StyledTableCell > { col . tokenName } </ StyledTableCell >
670
669
< StyledTableCell > { col . name } </ StyledTableCell >
671
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
670
+ < StyledTableCell > { col . hex } </ StyledTableCell >
672
671
< StyledTableCell sx = { { fontFamily : "monospace" } } >
673
672
< CopyColor hex = { col . token } />
674
673
</ StyledTableCell >
@@ -706,7 +705,7 @@ const ColorCode = () => {
706
705
< StyledTableRow key = { col . tokenName } >
707
706
< StyledTableCell > { col . tokenName } </ StyledTableCell >
708
707
< StyledTableCell > { col . name } </ StyledTableCell >
709
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
708
+ < StyledTableCell > { col . hex } </ StyledTableCell >
710
709
< StyledTableCell sx = { { fontFamily : "monospace" } } >
711
710
< CopyColor hex = { col . token } />
712
711
</ StyledTableCell >
@@ -753,7 +752,7 @@ const ColorCode = () => {
753
752
< StyledTableRow key = { col . tokenName } >
754
753
< StyledTableCell > { col . tokenName } </ StyledTableCell >
755
754
< StyledTableCell > { col . Alias_of } </ StyledTableCell >
756
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
755
+ < StyledTableCell > { col . hex } </ StyledTableCell >
757
756
< StyledTableCell sx = { { fontFamily : "monospace" } } >
758
757
< CopyColor hex = { col . token } />
759
758
</ StyledTableCell >
@@ -793,7 +792,7 @@ const ColorCode = () => {
793
792
< StyledTableRow key = { col . tokenName } >
794
793
< StyledTableCell > { col . tokenName } </ StyledTableCell >
795
794
< StyledTableCell > { col . Alias_of } </ StyledTableCell >
796
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
795
+ < StyledTableCell > { col . hex } </ StyledTableCell >
797
796
< StyledTableCell sx = { { fontFamily : "monospace" } } >
798
797
< CopyColor hex = { col . token } />
799
798
</ StyledTableCell >
@@ -833,7 +832,7 @@ const ColorCode = () => {
833
832
< StyledTableRow key = { col . tokenName } >
834
833
< StyledTableCell > { col . tokenName } </ StyledTableCell >
835
834
< StyledTableCell > { col . Alias_of } </ StyledTableCell >
836
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
835
+ < StyledTableCell > { col . hex } </ StyledTableCell >
837
836
< StyledTableCell sx = { { fontFamily : "monospace" } } >
838
837
< CopyColor hex = { col . token } />
839
838
</ StyledTableCell >
@@ -878,7 +877,7 @@ const ColorCode = () => {
878
877
< StyledTableRow key = { col . tokenName } >
879
878
< StyledTableCell > { col . tokenName } </ StyledTableCell >
880
879
< StyledTableCell > { col . Alias_of } </ StyledTableCell >
881
- < StyledTableCell > < CopyColor hex = { col . hex } /> </ StyledTableCell >
880
+ < StyledTableCell > { col . hex } </ StyledTableCell >
882
881
< StyledTableCell sx = { { fontFamily : "monospace" } } >
883
882
< CopyColor hex = { col . token } />
884
883
</ StyledTableCell >
0 commit comments