Skip to content

Commit

Permalink
fix: add border tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Oct 13, 2023
1 parent 3379335 commit 44ddb76
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/app/components/generic-error/generic-error.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export function GenericErrorLayout(props: GenericErrorProps) {
{body}
</styled.h2>
<styled.ul
border="1px solid"
borderColor="accent.border-default !important"
border="default"
borderRadius="10px"
fontSize="14px"
lineHeight="1.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ export function PsbtInputsOutputsTotals() {
<PsbtAddressTransferTotals showNativeSegwitTotal={isNativeSegwitTotalGreaterThanZero} />
</Box>
) : null}
{showDivider ? (
<styled.hr border="1px solid" borderColor="accent.border-default !important" />
) : null}
{showDivider ? <styled.hr border="default" /> : null}
{isReceiving ? (
<Box p="space.05">
<PsbtRequestDetailsSectionHeader title="You'll receive" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@ import { HasChildren } from '@app/common/has-children';

export function PsbtRequestDetailsSectionLayout({ children, ...props }: HasChildren & StackProps) {
return (
<Stack
border="1px solid"
borderColor="accent.border-default !important"
borderRadius="16px"
gap="space.01"
p="space.05"
width="100%"
{...props}
>
<Stack border="default" borderRadius="16px" gap="space.01" p="space.05" width="100%" {...props}>
{children}
</Stack>
);
Expand Down
7 changes: 2 additions & 5 deletions src/app/pages/swap/components/selected-asset-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ export function SelectedAssetField({
return (
<Flex
alignItems="center"
border="1px solid"
borderColor={showError ? 'error !important' : 'accent.border-default !important'}
border={showError ? 'error' : 'default'}
borderRadius="10px"
css={{
'&:focus-within': {
border: '1px solid',
borderColor: `${
showError ? 'error !important' : 'accent.action-primary-default !important'
}`,
borderColor: `${showError ? 'error' : 'action-primary-default'}`,
},
}}
height="76px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ interface SwapAssetsPairLayoutProps {
export function SwapAssetsPairLayout({ swapAssetFrom, swapAssetTo }: SwapAssetsPairLayoutProps) {
return (
<Stack
border="1px solid"
borderColor="accent.border-default !important"
border="default"
borderRadius="12px"
gap="space.01"
mb="space.05"
Expand Down
5 changes: 5 additions & 0 deletions theme/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ export const tokens = defineTokens({
'extra-loose': { value: '32px' },
},
colors,
borders: {
default: { value: '1px solid {colors.accent.border-default}' },
error: { value: '1px solid {colors.error}' },
'action-primary-default': { value: '1px solid {colors.accent.action-primary-default}' },
},
});

0 comments on commit 44ddb76

Please sign in to comment.