Use yellow for the Add button

This commit is contained in:
Jackson Harper
2024-05-07 12:10:33 +08:00
parent 91ecc99f37
commit 4dffbadd30
6 changed files with 28 additions and 14 deletions

View File

@ -18,6 +18,22 @@ export const Button = styled('button', {
border: '1px solid $grayBorderHover',
},
},
ctaOmnivoreYellow: {
borderRadius: '5px',
px: '20px',
py: '8px',
fontSize: '14px',
fontWeight: '500',
cursor: 'pointer',
border: '0px solid $yellow3',
bg: '$omnivoreYellow',
color: '#2A2A2A',
'&:hover': {
opacity: 1.0,
border: '0px solid #FFD800',
background: `#FFD800`,
},
},
ctaBlue: {
borderRadius: '5px',
px: '20px',

View File

@ -45,9 +45,8 @@ export const SplitButton = (props: SplitButtonProps): JSX.Element => {
<Button
css={{
display: 'flex',
// minWidth: '70px',
bg: '$ctaBlue',
color: '#EDEDED',
bg: '$omnivoreYellow',
color: '#2A2A2A',
fontSize: '14px',
fontFamily: '$inter',
border: '0px solid transparent',
@ -56,7 +55,7 @@ export const SplitButton = (props: SplitButtonProps): JSX.Element => {
borderTopRightRadius: '5px',
borderBottomRightRadius: '5px',
'&:hover': {
opacity: 0.6,
background: '#FFD800',
border: '0px solid transparent',
},
'&:focus': {

View File

@ -240,9 +240,12 @@ const AddFromURL = (props: AddFromURLProps): JSX.Element => {
</HStack>
)}
<Button
style="ctaBlue"
style="ctaOmnivoreYellow"
type="submit"
css={{ marginLeft: 'auto', marginTop: 'auto' }}
css={{
marginLeft: 'auto',
marginTop: 'auto',
}}
>
Add
</Button>

View File

@ -16,7 +16,6 @@ export const NavMenuFooter = (props: NavMenuFooterProps): JSX.Element => {
position: 'fixed',
bottom: '0%',
alignItems: 'center',
backgroundColor: '$thBackground2',
width: LIBRARY_LEFT_MENU_WIDTH,
overflowY: 'auto',

View File

@ -1,4 +1,4 @@
import { ReactNode, useEffect, useMemo, useRef, useState } from "react"
import { ReactNode, useEffect, useMemo, useRef, useState } from 'react'
import { StyledText } from '../../elements/StyledText'
import { Box, HStack, SpanBox, VStack } from '../../elements/LayoutPrimitives'
import { Button } from '../../elements/Button'
@ -30,8 +30,8 @@ import { OutlinedLabelChip } from '../../elements/OutlinedLabelChip'
import { NewsletterIcon } from '../../elements/icons/NewsletterIcon'
import { Dropdown, DropdownOption } from '../../elements/DropdownElements'
import { useRouter } from 'next/router'
import { DiscoverIcon } from "../../elements/icons/DiscoverIcon"
import { escapeQuotes } from "../../../utils/helper"
import { DiscoverIcon } from '../../elements/icons/DiscoverIcon'
import { escapeQuotes } from '../../../utils/helper'
export const LIBRARY_LEFT_MENU_WIDTH = '275px'
@ -158,9 +158,6 @@ export function LibraryFilterMenu(props: LibraryFilterMenuProps): JSX.Element {
</Box>
<LibraryNav {...props} />
<Shortcuts {...props} />
{/* <SavedSearches {...props} savedSearches={savedSearches} />
<Subscriptions {...props} subscriptions={subscriptions} />
<Labels {...props} labels={labels} /> */}
<NavMenuFooter {...props} />
<Box css={{ height: '250px ' }} />
</Box>

View File

@ -145,7 +145,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
// Brand Colors
omnivoreRed: '#FA5E4A;',
omnivoreGray: '#3D3D3D',
omnivoreYellow: 'rgb(255, 234, 159)',
omnivoreYellow: '#FFEAA0',
omnivoreLightGray: 'rgb(125, 125, 125)',
omnivoreCtaYellow: 'rgb(255, 210, 52)',
searchActiveOutline: 'rgb(255, 210, 52)',