Commit 9ac83bea authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: replace many blue instances with accentAction (#5501)

replace many blue instances with accentAction
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent 53b9a847
...@@ -194,7 +194,7 @@ export const ListingButton = ({ onClick, buttonText, showWarningOverride = false ...@@ -194,7 +194,7 @@ export const ListingButton = ({ onClick, buttonText, showWarningOverride = false
<Row <Row
marginLeft="72" marginLeft="72"
cursor="pointer" cursor="pointer"
color="genieBlue" color="accentAction"
onClick={() => { onClick={() => {
setShowWarning(false) setShowWarning(false)
setCanContinue(true) setCanContinue(true)
...@@ -210,7 +210,7 @@ export const ListingButton = ({ onClick, buttonText, showWarningOverride = false ...@@ -210,7 +210,7 @@ export const ListingButton = ({ onClick, buttonText, showWarningOverride = false
<Box <Box
as="button" as="button"
border="none" border="none"
backgroundColor="genieBlue" backgroundColor="accentAction"
cursor={ cursor={
[ListingStatus.APPROVED, ListingStatus.PENDING, ListingStatus.SIGNING].includes(listingStatus) || [ListingStatus.APPROVED, ListingStatus.PENDING, ListingStatus.SIGNING].includes(listingStatus) ||
disableListButton disableListButton
......
...@@ -161,7 +161,7 @@ export const ListingSection = ({ ...@@ -161,7 +161,7 @@ export const ListingSection = ({
className={buttonTextSmall} className={buttonTextSmall}
borderRadius="12" borderRadius="12"
border="none" border="none"
color="genieBlue" color="accentAction"
height="32" height="32"
cursor="pointer" cursor="pointer"
style={{ backgroundColor: '#4C82FB29' }} style={{ backgroundColor: '#4C82FB29' }}
......
...@@ -131,13 +131,13 @@ export const buyCell = style([ ...@@ -131,13 +131,13 @@ export const buyCell = style([
selectors: { selectors: {
'&:enabled': { '&:enabled': {
cursor: 'pointer', cursor: 'pointer',
color: vars.color.blue400, color: vars.color.accentAction,
}, },
'&:disabled': { '&:disabled': {
color: themeVars.colors.textTertiary, color: themeVars.colors.textTertiary,
}, },
'&:hover&:enabled': { '&:hover&:enabled': {
background: vars.color.blue400, background: vars.color.accentAction,
color: themeVars.colors.explicitWhite, color: themeVars.colors.explicitWhite,
}, },
}, },
......
...@@ -610,7 +610,7 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie ...@@ -610,7 +610,7 @@ export const CollectionNfts = ({ contractAddress, collectionStats, rarityVerifie
onClick={reset} onClick={reset}
type="button" type="button"
className={clsx(bodySmall, buttonTextMedium)} className={clsx(bodySmall, buttonTextMedium)}
color="blue" color="accentAction"
cursor="pointer" cursor="pointer"
> >
<ViewFullCollection>View full collection</ViewFullCollection> <ViewFullCollection>View full collection</ViewFullCollection>
......
...@@ -14,7 +14,7 @@ export const CollectionSearch = () => { ...@@ -14,7 +14,7 @@ export const CollectionSearch = () => {
<Box <Box
as="input" as="input"
flex="1" flex="1"
borderColor={{ default: 'backgroundOutline', focus: 'genieBlue' }} borderColor={{ default: 'backgroundOutline', focus: 'accentAction' }}
borderWidth="1.5px" borderWidth="1.5px"
borderStyle="solid" borderStyle="solid"
borderRadius="12" borderRadius="12"
......
...@@ -354,7 +354,7 @@ export const returnButton = style([ ...@@ -354,7 +354,7 @@ export const returnButton = style([
fontWeight: 'bold', fontWeight: 'bold',
fontSize: '14', fontSize: '14',
color: 'explicitWhite', color: 'explicitWhite',
backgroundColor: 'genieBlue', backgroundColor: 'accentAction',
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
marginLeft: 'auto', marginLeft: 'auto',
......
...@@ -364,7 +364,7 @@ const TxCompleteModal = () => { ...@@ -364,7 +364,7 @@ const TxCompleteModal = () => {
<Box <Box
as="button" as="button"
border="none" border="none"
backgroundColor="genieBlue" backgroundColor="accentAction"
cursor="pointer" cursor="pointer"
className={styles.returnButton} className={styles.returnButton}
type="button" type="button"
......
...@@ -39,7 +39,7 @@ export const tab = style([ ...@@ -39,7 +39,7 @@ export const tab = style([
selectors: { selectors: {
'&[data-active="true"]': { '&[data-active="true"]': {
textDecoration: 'underline', textDecoration: 'underline',
textDecorationColor: vars.color.genieBlue, textDecorationColor: vars.color.accentAction,
textUnderlineOffset: '8px', textUnderlineOffset: '8px',
textDecorationThickness: '2px', textDecorationThickness: '2px',
color: vars.color.textPrimary, color: vars.color.textPrimary,
......
import { style } from '@vanilla-extract/css' import { style } from '@vanilla-extract/css'
import { sprinkles, themeVars } from 'nft/css/sprinkles.css' import { sprinkles, themeVars } from 'nft/css/sprinkles.css'
export const buttonSelected = style([
sprinkles({
borderWidth: '1px',
borderStyle: 'solid',
borderColor: 'genieBlue',
}),
])
export const nftDivider = style([ export const nftDivider = style([
sprinkles({ sprinkles({
height: '0', height: '0',
......
...@@ -161,7 +161,7 @@ const PriceTextInput = ({ ...@@ -161,7 +161,7 @@ const PriceTextInput = ({
warningType !== WarningType.NONE && !focused warningType !== WarningType.NONE && !focused
? 'orange' ? 'orange'
: isGlobalPrice : isGlobalPrice
? 'genieBlue' ? 'accentAction'
: listPrice != null : listPrice != null
? 'textSecondary' ? 'textSecondary'
: 'blue400' : 'blue400'
...@@ -231,7 +231,7 @@ const PriceTextInput = ({ ...@@ -231,7 +231,7 @@ const PriceTextInput = ({
: formatEth(asset.floor_sell_order_price)} : formatEth(asset.floor_sell_order_price)}
ETH ETH
<Box <Box
color={warningType === WarningType.BELOW_FLOOR ? 'genieBlue' : 'orange'} color={warningType === WarningType.BELOW_FLOOR ? 'accentAction' : 'orange'}
marginLeft="8" marginLeft="8"
cursor="pointer" cursor="pointer"
onClick={() => { onClick={() => {
......
...@@ -11,10 +11,6 @@ export const section = style([ ...@@ -11,10 +11,6 @@ export const section = style([
{ maxWidth: '1000px', margin: '0 auto' }, { maxWidth: '1000px', margin: '0 auto' },
]) ])
export const buttonSelected = style({
border: `2px solid ${vars.color.genieBlue}`,
})
export const ethIcon = style({ export const ethIcon = style({
marginBottom: '-3px', marginBottom: '-3px',
}) })
......
...@@ -56,7 +56,7 @@ export const buttonMedium = style([ ...@@ -56,7 +56,7 @@ export const buttonMedium = style([
buttonTextMedium, buttonTextMedium,
commonButtonStyles, commonButtonStyles,
sprinkles({ sprinkles({
backgroundColor: 'blue', backgroundColor: 'accentAction',
color: 'explicitWhite', color: 'explicitWhite',
}), }),
{ {
......
...@@ -37,7 +37,6 @@ const themeContractValues = { ...@@ -37,7 +37,6 @@ const themeContractValues = {
shadows: { shadows: {
menu: '', menu: '',
genieBlue: '',
elevation: '', elevation: '',
tooltip: '', tooltip: '',
deep: '', deep: '',
...@@ -157,7 +156,6 @@ const zIndices = { ...@@ -157,7 +156,6 @@ const zIndices = {
export const vars = createGlobalTheme(':root', { export const vars = createGlobalTheme(':root', {
color: { color: {
...themeVars.colors, ...themeVars.colors,
genieBlue: '#4C82FB',
fallbackGradient: 'linear-gradient(270deg, #D1D5DB 0%, #F6F6F6 100%)', fallbackGradient: 'linear-gradient(270deg, #D1D5DB 0%, #F6F6F6 100%)',
loadingBackground: '#24272e', loadingBackground: '#24272e',
cardDropShadow: 'rgba(0, 0, 0, 10%) 0px 4px 12px', cardDropShadow: 'rgba(0, 0, 0, 10%) 0px 4px 12px',
...@@ -165,7 +163,6 @@ export const vars = createGlobalTheme(':root', { ...@@ -165,7 +163,6 @@ export const vars = createGlobalTheme(':root', {
orange: '#FA2C38', orange: '#FA2C38',
black: 'black', black: 'black',
whitesmoke: '#F5F5F5', whitesmoke: '#F5F5F5',
blue: '#4C82FB',
gray: '#CBCEDC', gray: '#CBCEDC',
transculent: '#7F7F7F', transculent: '#7F7F7F',
transparent: 'transparent', transparent: 'transparent',
......
import { style } from '@vanilla-extract/css' import { style } from '@vanilla-extract/css'
import { center, subhead } from '../../css/common.css' import { center } from '../../css/common.css'
import { sprinkles, vars } from '../../css/sprinkles.css' import { sprinkles } from '../../css/sprinkles.css'
export const image = style([ export const image = style([
sprinkles({ borderRadius: '20', height: 'full', alignSelf: 'center' }), sprinkles({ borderRadius: '20', height: 'full', alignSelf: 'center' }),
...@@ -33,22 +33,6 @@ export const container = style([ ...@@ -33,22 +33,6 @@ export const container = style([
export const marketplace = sprinkles({ borderRadius: '4' }) export const marketplace = sprinkles({ borderRadius: '4' })
export const tab = style([
subhead,
sprinkles({ color: 'textSecondary', border: 'none', padding: '0', background: 'transparent', cursor: 'pointer' }),
{
selectors: {
'&[data-active="true"]': {
textDecoration: 'underline',
textDecorationColor: vars.color.genieBlue,
textUnderlineOffset: '8px',
textDecorationThickness: '2px',
color: vars.color.textPrimary,
},
},
},
])
export const creator = style({ export const creator = style({
'@media': { '@media': {
'(max-width: 640px)': { '(max-width: 640px)': {
......
...@@ -4,7 +4,7 @@ import { buttonTextMedium } from 'nft/css/common.css' ...@@ -4,7 +4,7 @@ import { buttonTextMedium } from 'nft/css/common.css'
import { loadingBlock } from 'nft/css/loading.css' import { loadingBlock } from 'nft/css/loading.css'
import { css } from 'styled-components/macro' import { css } from 'styled-components/macro'
import { sprinkles, vars } from '../../css/sprinkles.css' import { sprinkles } from '../../css/sprinkles.css'
export const bannerImage = style({ objectFit: 'cover' }) export const bannerImage = style({ objectFit: 'cover' })
...@@ -28,25 +28,6 @@ export const activitySwitcherToggle = style([ ...@@ -28,25 +28,6 @@ export const activitySwitcherToggle = style([
}), }),
]) ])
export const selectedActivitySwitcherToggle = style([
baseActivitySwitcherToggle,
sprinkles({
color: 'textPrimary',
}),
{
':after': {
content: '',
position: 'absolute',
background: vars.color.genieBlue,
width: '100%',
height: '2px',
left: '0px',
right: '0px',
bottom: '-8px',
},
},
])
export const loadingBanner = style([ export const loadingBanner = style([
loadingBlock, loadingBlock,
sprinkles({ sprinkles({
......
...@@ -34,7 +34,6 @@ export const darkTheme: Theme = { ...@@ -34,7 +34,6 @@ export const darkTheme: Theme = {
}, },
shadows: { shadows: {
menu: '0px 10px 30px rgba(0, 0, 0, 0.1)', menu: '0px 10px 30px rgba(0, 0, 0, 0.1)',
genieBlue: '0 4px 16px 0 rgba(70, 115, 250, 0.4)',
elevation: '0px 4px 16px rgba(70, 115, 250, 0.4)', elevation: '0px 4px 16px rgba(70, 115, 250, 0.4)',
tooltip: '0px 4px 16px rgba(255, 255, 255, 0.2)', tooltip: '0px 4px 16px rgba(255, 255, 255, 0.2)',
deep: '12px 16px 24px rgba(0, 0, 0, 0.24), 12px 8px 12px rgba(0, 0, 0, 0.24), 4px 4px 8px rgba(0, 0, 0, 0.32)', deep: '12px 16px 24px rgba(0, 0, 0, 0.24), 12px 8px 12px rgba(0, 0, 0, 0.24), 4px 4px 8px rgba(0, 0, 0, 0.32)',
......
...@@ -34,7 +34,6 @@ export const lightTheme: Theme = { ...@@ -34,7 +34,6 @@ export const lightTheme: Theme = {
}, },
shadows: { shadows: {
menu: '0px 10px 30px rgba(0, 0, 0, 0.1)', menu: '0px 10px 30px rgba(0, 0, 0, 0.1)',
genieBlue: '0 4px 16px 0 rgba(251, 17, 142)',
elevation: '0px 4px 16px rgba(70, 115, 250, 0.4)', elevation: '0px 4px 16px rgba(70, 115, 250, 0.4)',
tooltip: '0px 4px 16px rgba(10, 10, 59, 0.2)', tooltip: '0px 4px 16px rgba(10, 10, 59, 0.2)',
deep: '8px 12px 20px rgba(51, 53, 72, 0.04), 4px 6px 12px rgba(51, 53, 72, 0.02), 4px 4px 8px rgba(51, 53, 72, 0.04)', deep: '8px 12px 20px rgba(51, 53, 72, 0.04), 4px 6px 12px rgba(51, 53, 72, 0.02), 4px 4px 8px rgba(51, 53, 72, 0.04)',
......
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