diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx index a325343..0b38fab 100644 --- a/src/components/DecoratedAddressLink.tsx +++ b/src/components/DecoratedAddressLink.tsx @@ -41,11 +41,13 @@ const DecoratedAddresssLink: React.FC = ({ return (
{creation && ( diff --git a/src/index.css b/src/index.css index b5c61c9..6088bfb 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,14 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + :root { + --color-from-border: 254, 226, 226; + --color-from-text: 220, 38, 38; + --color-from-fill: 254, 242, 242; + --color-to-fill: 236, 253, 245; + + --color-table-row-hover: 243, 244, 246; + } +} diff --git a/src/search/TransactionItem.tsx b/src/search/TransactionItem.tsx index 32aab32..f5196d8 100644 --- a/src/search/TransactionItem.tsx +++ b/src/search/TransactionItem.tsx @@ -56,7 +56,9 @@ const TransactionItem: React.FC = ({ return (
diff --git a/src/special/london/BlockRow.tsx b/src/special/london/BlockRow.tsx index 8915417..df22a85 100644 --- a/src/special/london/BlockRow.tsx +++ b/src/special/london/BlockRow.tsx @@ -22,7 +22,7 @@ const BlockRow: React.FC = ({ now, block, baseFeeDelta }) => { const totalReward = block.blockReward.add(netFeeReward ?? 0); return ( -
+
diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 1f3cd65..6f46e7f 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -176,7 +176,7 @@ const Details: React.FC = ({ Ether{" "} {!txData.value.isZero() && ethUSDPrice && ( - + )} @@ -266,7 +266,7 @@ const Details: React.FC = ({
Ether{" "} {ethUSDPrice && ( - + { + if (opacityValue !== undefined) { + return `rgba(var(${variableName}), ${opacityValue})`; + } + return `rgb(var(${variableName}))`; + }; +} + module.exports = { purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"], darkMode: false, // or 'media' or 'class' @@ -19,6 +28,23 @@ module.exports = { balance: ["Fira Code"], blocknum: ["Roboto"], }, + borderColor: { + skin: { + from: withOpacity("--color-from-border"), + }, + }, + textColor: { + skin: { + from: withOpacity("--color-from-text"), + }, + }, + backgroundColor: { + skin: { + from: withOpacity("--color-from-fill"), + to: withOpacity("--color-to-fill"), + "table-hover": withOpacity("--color-table-row-hover"), + }, + }, }, }, variants: {