From a84bb0259f14bdf75846163ce5a44b663fb2760f Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 11 Jun 2024 17:49:14 +0800 Subject: [PATCH] More work on themes --- .../icons/home/AddToLibraryActionIcon.tsx | 1 - .../web/components/tokens/stitches.config.ts | 66 ++++++++++++------- packages/web/pages/highlights/index.tsx | 1 + packages/web/pages/home/index.tsx | 35 +++++----- 4 files changed, 64 insertions(+), 39 deletions(-) diff --git a/packages/web/components/elements/icons/home/AddToLibraryActionIcon.tsx b/packages/web/components/elements/icons/home/AddToLibraryActionIcon.tsx index b2db19fe2..ae852aac8 100644 --- a/packages/web/components/elements/icons/home/AddToLibraryActionIcon.tsx +++ b/packages/web/components/elements/icons/home/AddToLibraryActionIcon.tsx @@ -7,7 +7,6 @@ import React from 'react' export class AddToLibraryActionIcon extends React.Component { render() { const strokeColor = (this.props.color || '#D9D9D9').toString() - const backgroundColor = (this.props.color || '#3D3D3D').toString() return ( { fontFamily: '$inter', fontSize: '16px', fontWeight: '600', - color: '$readerText', + color: '$homeTextTitle', }} > {props.homeSection.title} - {props.homeSection.items.map((homeItem) => { return })} @@ -149,7 +148,7 @@ const TopPicksHomeSection = (props: HomeSectionProps): JSX.Element => { fontFamily: '$inter', fontSize: '16px', fontWeight: '600', - color: '$readerText', + color: '$homeTextTitle', }} > {props.homeSection.title} @@ -232,7 +231,7 @@ const HiddenHomeSection = (props: HomeSectionProps): JSX.Element => { fontFamily: '$inter', fontSize: '16px', fontWeight: '600', - color: '$readerText', + color: '$homeTextTitle', }} > {props.homeSection.title} @@ -299,7 +298,7 @@ const TimeAgo = (props: HomeItemViewProps): JSX.Element => { fontSize: '12px', fontWeight: 'medium', fontFamily: '$inter', - color: '$readerTextSubtle', + color: '$homeTextSubtle', }} > {timeAgo(props.homeItem.date)} @@ -317,7 +316,7 @@ const Title = (props: HomeItemViewProps): JSX.Element => { lineHeight: '20px', fontWeight: '600', fontFamily: '$inter', - color: '$readerText', + color: '$homeTextTitle', overflow: 'hidden', textOverflow: 'ellipsis', wordBreak: 'break-word', @@ -366,7 +365,7 @@ const JustAddedItemView = (props: HomeItemViewProps): JSX.Element => { padding: '5px', borderRadius: '5px', '&:hover': { - bg: '$thBackground', + bg: '$homeCardHover', borderRadius: '0px', }, }} @@ -403,7 +402,7 @@ const TopicPickHomeItemView = (props: HomeItemViewProps): JSX.Element => { borderRadius: '5px', '&:hover': { - bg: '#323232', + bg: '$homeCardHover', borderRadius: '0px', }, }} @@ -450,22 +449,26 @@ const TopicPickHomeItemView = (props: HomeItemViewProps): JSX.Element => { - + ) } @@ -537,7 +540,7 @@ const SourceInfo = (props: HomeItemViewProps) => ( fontFamily: '$inter', fontWeight: '500', fontSize: '13px', - color: '$readerFont', + color: '$homeTextSource', textDecoration: 'underline', }} > @@ -625,7 +628,7 @@ const SubscriptionSourceHoverContent = ( css={{ fontFamily: '$inter', fontSize: '13px', - color: '$thTextSubtle4', + color: '$homeTextBody', }} > {subscription ? <>{subscription.description} : <>}