Commit df4eaaf5 authored by tom's avatar tom

heading theming

parent 70921643
import type { ComponentStyleConfig } from '@chakra-ui/theme';
const baseStyle = {
fontWeight: '500',
letterSpacing: '-0.5px',
}
// WIP
// designer promised to sync theme and page mock-ups
// so that's not the final point yet
const sizes = {
lg: {
fontSize: '32px',
lineHeight: '40px',
},
}
const Heading: ComponentStyleConfig = {
sizes,
baseStyle,
}
export default Heading;
import Button from './Button'; import Button from './Button';
import Form from './Form'; import Form from './Form';
import Heading from './Heading';
import Input from './Input'; import Input from './Input';
import Link from './Link'; import Link from './Link';
import Modal from './Modal'; import Modal from './Modal';
...@@ -10,6 +11,7 @@ import Tooltip from './Tooltip'; ...@@ -10,6 +11,7 @@ import Tooltip from './Tooltip';
const components = { const components = {
Button, Button,
Heading,
Input, Input,
Form, Form,
Link, Link,
......
import React, { useCallback, useState } from 'react'; import React, { useCallback, useState } from 'react';
import { Box, Button, HStack, Link, Text, useColorModeValue, useDisclosure } from '@chakra-ui/react'; import { Box, Button, Heading, HStack, Link, Text, useColorModeValue, useDisclosure } from '@chakra-ui/react';
import Page from '../Page/Page'; import Page from '../Page/Page';
...@@ -49,7 +49,7 @@ const ApiKeys: React.FC = () => { ...@@ -49,7 +49,7 @@ const ApiKeys: React.FC = () => {
return ( return (
<Page> <Page>
<Box h="100%"> <Box h="100%">
<Box as="h1" textStyle="h2" marginBottom={ 8 }>API keys</Box> <Heading as="h1" size="lg" marginBottom={ 8 }>API keys</Heading>
<Text marginBottom={ 12 }> <Text marginBottom={ 12 }>
Create API keys to use for your RPC and EthRPC API requests. For more information, see { space } Create API keys to use for your RPC and EthRPC API requests. For more information, see { space }
<Link href="#">“How to use a Blockscout API key”</Link>. <Link href="#">“How to use a Blockscout API key”</Link>.
......
...@@ -2,6 +2,7 @@ import React from 'react'; ...@@ -2,6 +2,7 @@ import React from 'react';
import { import {
Box, Box,
Heading,
Tab, Tab,
Tabs, Tabs,
TabList, TabList,
...@@ -17,7 +18,7 @@ const PrivateTags: React.FC = () => { ...@@ -17,7 +18,7 @@ const PrivateTags: React.FC = () => {
return ( return (
<Page> <Page>
<Box h="100%"> <Box h="100%">
<Box as="h1" textStyle="h2" marginBottom={ 8 }>Private tags</Box> <Heading as="h1" size="lg" marginBottom={ 8 }>Private tags</Heading>
<Tabs variant="soft-rounded" colorScheme="blue"> <Tabs variant="soft-rounded" colorScheme="blue">
<TabList marginBottom={ 8 }> <TabList marginBottom={ 8 }>
<Tab>Address</Tab> <Tab>Address</Tab>
......
import React, { useCallback, useState } from 'react'; import React, { useCallback, useState } from 'react';
import { Box, Button, Text, useDisclosure } from '@chakra-ui/react'; import { Box, Button, Text, useDisclosure, Heading } from '@chakra-ui/react';
import Page from '../Page/Page'; import Page from '../Page/Page';
...@@ -41,7 +41,7 @@ const WatchList: React.FC = () => { ...@@ -41,7 +41,7 @@ const WatchList: React.FC = () => {
return ( return (
<Page> <Page>
<Box h="100%"> <Box h="100%">
<Box as="h1" textStyle="h2" marginBottom={ 8 }>Watch list</Box> <Heading as="h1" size="lg" marginBottom={ 8 }>Watch list</Heading>
<Text marginBottom={ 12 }>An email notification can be sent to you when an address on your watch list sends or receives any transactions.</Text> <Text marginBottom={ 12 }>An email notification can be sent to you when an address on your watch list sends or receives any transactions.</Text>
{ Boolean(watchlist.length) && ( { Boolean(watchlist.length) && (
<WatchlistTable <WatchlistTable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment