diff --git a/components/MangoAccountsList.tsx b/components/MangoAccountsList.tsx index 46b1308a..357b0e27 100644 --- a/components/MangoAccountsList.tsx +++ b/components/MangoAccountsList.tsx @@ -53,7 +53,7 @@ const MangoAccountsList = ({ {({ open }) => ( <> - +

{t('accounts')}

@@ -91,7 +91,7 @@ const MangoAccountsList = ({ {acc.name} {acc.publicKey.toString() === mangoAccount?.publicKey.toString() ? ( - + ) : null}

diff --git a/components/SideNav.tsx b/components/SideNav.tsx index 26a91bef..d38be172 100644 --- a/components/SideNav.tsx +++ b/components/SideNav.tsx @@ -202,8 +202,8 @@ const MenuItem = ({
@@ -288,7 +288,7 @@ export const ExpandableMenuItem = ({ role="button" > toggleMenu()} >
- {children} +
+ {children} +
) : null}
@@ -330,7 +332,7 @@ export const ExpandableMenuItem = ({ }`} >
{
diff --git a/components/TokenList.tsx b/components/TokenList.tsx index 18c09bf9..88734116 100644 --- a/components/TokenList.tsx +++ b/components/TokenList.tsx @@ -224,14 +224,14 @@ const TokenList = () => {
-

+

{formatDecimal(bank.getDepositRateUi(), 2, { fixed: true, })} %

| -

+

{formatDecimal(bank.getBorrowRateUi(), 2, { fixed: true, })} @@ -397,11 +397,11 @@ const MobileTokenListItem = ({ bank }: { bank: Bank }) => {

{t('rates')}

- + {formatDecimal(bank.getDepositRate().toNumber(), 2)}% | - + {formatDecimal(bank.getBorrowRate().toNumber(), 2)}%

diff --git a/components/TopBar.tsx b/components/TopBar.tsx index f74106a9..1f18a54b 100644 --- a/components/TopBar.tsx +++ b/components/TopBar.tsx @@ -79,7 +79,7 @@ const TopBar = () => { ) : null} {!isOnline ? ( -
+
Your network connection appears to be offline! @@ -111,7 +111,7 @@ const TopBar = () => { ) : (
@@ -250,23 +250,23 @@ const UserSetup = ({ onClose }: { onClose: () => void }) => {

{t('onboarding:intro-desc')}

- +

{t('onboarding:bullet-1')}

{/*
- +

Deeply liquid markets

*/}
- +

{t('onboarding:bullet-2')}

- +

{t('onboarding:bullet-3')}

- +

{t('onboarding:bullet-4')}

@@ -289,7 +289,7 @@ const UserSetup = ({ onClose }: { onClose: () => void }) => {
{showDepositRates ? (
-

+

{formatDecimal(bank.getDepositRate().toNumber(), 2)}%

) : null} {showBorrowRates ? (
-

+

{formatDecimal(bank.getBorrowRate().toNumber(), 2)}%

diff --git a/components/account/ActivityFeed.tsx b/components/account/ActivityFeed.tsx index 1f792e95..5eaa535b 100644 --- a/components/account/ActivityFeed.tsx +++ b/components/account/ActivityFeed.tsx @@ -225,7 +225,7 @@ const ActivityFilters = ({
setShowMobileFilters(!showMobileFilters)} role="button" - className={`default-transition w-full border-b border-th-bkg-3 bg-th-bkg-2 p-4 hover:bg-th-bkg-3 md:px-6`} + className={`default-transition w-full bg-th-bkg-2 p-4 hover:bg-th-bkg-3 md:px-6`} > = 0 ? 'text-th-green' : 'text-th-red' + value >= 0 ? 'text-th-up' : 'text-th-down' }`} > {value > 0 ? '+' : ''} @@ -368,8 +368,8 @@ const MobileActivityFeedItem = ({ {activity.activity_details.taker_side === 'bid' diff --git a/components/account/HealthHeart.tsx b/components/account/HealthHeart.tsx index 334c0db8..1c199008 100644 --- a/components/account/HealthHeart.tsx +++ b/components/account/HealthHeart.tsx @@ -17,10 +17,10 @@ const HealthHeart = ({ className={ health ? health > 15 && health < 50 - ? 'text-th-orange' + ? 'text-th-warning' : health >= 50 - ? 'text-th-green' - : 'text-th-red' + ? 'text-th-success' + : 'text-th-error' : 'text-th-fgd-4' } style={styles} diff --git a/components/forms/ButtonGroup.tsx b/components/forms/ButtonGroup.tsx index 4d6dcf5b..98cb00e4 100644 --- a/components/forms/ButtonGroup.tsx +++ b/components/forms/ButtonGroup.tsx @@ -22,11 +22,11 @@ const ButtonGroup: FunctionComponent = ({ large, }) => { return ( -
+
{activeValue && values.includes(activeValue) ? (
v === activeValue) * 100 @@ -42,8 +42,8 @@ const ButtonGroup: FunctionComponent = ({ } font-normal ${ v === activeValue - ? `text-th-primary` - : `text-th-fgd-2 md:hover:text-th-primary` + ? `text-th-active` + : `text-th-fgd-2 md:hover:text-th-active` } `} disabled={disabled} diff --git a/components/forms/Checkbox.tsx b/components/forms/Checkbox.tsx index c6d15b98..10331644 100644 --- a/components/forms/Checkbox.tsx +++ b/components/forms/Checkbox.tsx @@ -39,7 +39,7 @@ const Checkbox = ({ />
{halfState ? ( diff --git a/components/forms/Input.tsx b/components/forms/Input.tsx index a751c37e..819e81ce 100644 --- a/components/forms/Input.tsx +++ b/components/forms/Input.tsx @@ -43,7 +43,7 @@ const Input = forwardRef((props, ref) => { ((props, ref) => { {charLimit ? (

{`${value.length}/${charLimit}`} diff --git a/components/forms/Select.tsx b/components/forms/Select.tsx index aa710745..81531020 100644 --- a/components/forms/Select.tsx +++ b/components/forms/Select.tsx @@ -27,10 +27,10 @@ const Select = ({ {({ open }) => ( <>

{value ? ( value @@ -70,8 +70,8 @@ const Option = ({ value, children, className }: OptionProps) => { {({ selected }) => (
{children} diff --git a/components/forms/Switch.tsx b/components/forms/Switch.tsx index 9f7197c9..73fa8b4a 100644 --- a/components/forms/Switch.tsx +++ b/components/forms/Switch.tsx @@ -25,7 +25,7 @@ const Switch: FunctionComponent = ({
{acc.publicKey.toString() === mangoAccount?.publicKey.toString() ? ( -
+
) : ( diff --git a/components/profile/EditNftProfilePic.tsx b/components/profile/EditNftProfilePic.tsx index 747cf983..e8a83c39 100644 --- a/components/profile/EditNftProfilePic.tsx +++ b/components/profile/EditNftProfilePic.tsx @@ -138,7 +138,7 @@ const EditNftProfilePic = ({ onClose }: { onClose: () => void }) => {
@@ -161,7 +161,7 @@ const EditNftProfilePic = ({ onClose }: { onClose: () => void }) => {
diff --git a/components/settings/DisplaySettings.tsx b/components/settings/DisplaySettings.tsx index bfcbd5db..ff9e9618 100644 --- a/components/settings/DisplaySettings.tsx +++ b/components/settings/DisplaySettings.tsx @@ -1,4 +1,5 @@ import ButtonGroup from '@components/forms/ButtonGroup' +import Select from '@components/forms/Select' import dayjs from 'dayjs' import useLocalStorageState from 'hooks/useLocalStorageState' import { useTranslation } from 'next-i18next' @@ -41,7 +42,15 @@ const DisplaySettings = () => { 'Slider' ) const themes = useMemo(() => { - return [t('settings:light'), t('settings:mango'), t('settings:dark')] + return [ + t('settings:light'), + 'Medium', + t('settings:dark'), + 'Jungle', + t('settings:mango'), + 'Ocean', + // 'Smoothy', + ] }, [t]) const handleLangChange = useCallback( @@ -58,12 +67,25 @@ const DisplaySettings = () => {

{t('settings:display')}

{t('settings:theme')}

-
- + + {/* setTheme(t)} values={themes} - /> + /> */}
diff --git a/components/settings/PreferredExplorerSettings.tsx b/components/settings/PreferredExplorerSettings.tsx index bd148ee1..996ed1c0 100644 --- a/components/settings/PreferredExplorerSettings.tsx +++ b/components/settings/PreferredExplorerSettings.tsx @@ -37,7 +37,7 @@ const PreferredExplorerSettings = () => {

{t(`settings:${ex.name}`)}

{preferredExplorer.url === ex.url ? ( - + ) : null} ))} diff --git a/components/shared/Button.tsx b/components/shared/Button.tsx index 4a9ff6d3..0f786b67 100644 --- a/components/shared/Button.tsx +++ b/components/shared/Button.tsx @@ -1,4 +1,3 @@ -import { useTheme } from 'next-themes' import { FunctionComponent, ReactNode } from 'react' interface AllButtonProps { @@ -24,19 +23,14 @@ const Button: FunctionComponent = ({ size = 'medium', ...props }) => { - const { theme } = useTheme() return (
diff --git a/components/shared/DetailedAreaChart.tsx b/components/shared/DetailedAreaChart.tsx index 5b658f9b..63e3d386 100644 --- a/components/shared/DetailedAreaChart.tsx +++ b/components/shared/DetailedAreaChart.tsx @@ -212,8 +212,8 @@ const DetailedAreaChart: FunctionComponent = ({ offset="0%" stopColor={ calculateChartChange() >= 0 - ? COLORS.GREEN[theme] - : COLORS.RED[theme] + ? COLORS.UP[theme] + : COLORS.DOWN[theme] } stopOpacity={0.15} /> @@ -221,8 +221,8 @@ const DetailedAreaChart: FunctionComponent = ({ offset="99%" stopColor={ calculateChartChange() >= 0 - ? COLORS.GREEN[theme] - : COLORS.RED[theme] + ? COLORS.UP[theme] + : COLORS.DOWN[theme] } stopOpacity={0} /> @@ -234,8 +234,8 @@ const DetailedAreaChart: FunctionComponent = ({ dataKey={yKey} stroke={ calculateChartChange() >= 0 - ? COLORS.GREEN[theme] - : COLORS.RED[theme] + ? COLORS.UP[theme] + : COLORS.DOWN[theme] } strokeWidth={1.5} fill="url(#gradientArea)" diff --git a/components/shared/DirectionTriangles.tsx b/components/shared/DirectionTriangles.tsx index 7c2c91d5..2488b9ec 100644 --- a/components/shared/DirectionTriangles.tsx +++ b/components/shared/DirectionTriangles.tsx @@ -4,7 +4,7 @@ export const UpTriangle = ({ size }: { size?: 'small' }) => ( size === 'small' ? 'border-l-[4px] border-r-[4px] border-b-[6.92px]' : 'border-l-[6px] border-r-[6px] border-b-[10.39px]' - } border-l-transparent border-r-transparent border-b-th-green`} + } border-b-th-up border-l-transparent border-r-transparent`} /> ) @@ -14,6 +14,6 @@ export const DownTriangle = ({ size }: { size?: 'small' }) => ( size === 'small' ? 'border-l-[4px] border-r-[4px] border-t-[6.92px]' : 'border-l-[6px] border-r-[6px] border-t-[10.39px]' - } border-l-transparent border-r-transparent border-t-th-red`} + } border-l-transparent border-r-transparent border-t-th-down`} /> ) diff --git a/components/shared/FavoriteMarketButton.tsx b/components/shared/FavoriteMarketButton.tsx index f4cb1beb..565cc530 100644 --- a/components/shared/FavoriteMarketButton.tsx +++ b/components/shared/FavoriteMarketButton.tsx @@ -27,14 +27,14 @@ const FavoriteMarketButton = ({ (marketName: string) => marketName === market.name ) ? ( ) : ( diff --git a/components/shared/Notification.tsx b/components/shared/Notification.tsx index 74c15f90..78ed1976 100644 --- a/components/shared/Notification.tsx +++ b/components/shared/Notification.tsx @@ -224,25 +224,25 @@ const Notification = ({ notification }: { notification: Notification }) => {
{type === 'success' ? ( - + ) : null} {type === 'info' && ( )} {type === 'error' && ( - + )} {type === 'confirm' && ( - + )}
@@ -257,7 +257,7 @@ const Notification = ({ notification }: { notification: Notification }) => { {txid ? ( diff --git a/components/shared/TabButtons.tsx b/components/shared/TabButtons.tsx index a904fe4c..a59e1479 100644 --- a/components/shared/TabButtons.tsx +++ b/components/shared/TabButtons.tsx @@ -39,7 +39,7 @@ const TabButtons: FunctionComponent = ({ : '' } ${ label === activeValue - ? 'bg-th-bkg-2 text-th-primary' + ? 'bg-th-bkg-2 text-th-active' : 'hover:cursor-pointer hover:text-th-fgd-2' }`} key={`${label}${i}`} diff --git a/components/shared/TabUnderline.tsx b/components/shared/TabUnderline.tsx index 50a6493a..26d2d6cf 100644 --- a/components/shared/TabUnderline.tsx +++ b/components/shared/TabUnderline.tsx @@ -19,10 +19,10 @@ const TabUnderline = ({
{ chartData !== undefined ? ( = 0 - ? COLORS.GREEN[theme] - : COLORS.RED[theme] + change >= 0 ? COLORS.UP[theme] : COLORS.DOWN[theme] } data={chartData} height={40} @@ -178,7 +176,7 @@ const MobileSpotMarketItem = ({ market }: { market: Serum3Market }) => { {!loadingPrices ? ( chartData !== undefined ? ( = 0 ? COLORS.GREEN[theme] : COLORS.RED[theme]} + color={change >= 0 ? COLORS.UP[theme] : COLORS.DOWN[theme]} data={chartData} height={40} name={bank!.name} diff --git a/components/stats/TokenStats.tsx b/components/stats/TokenStats.tsx index 40852245..60c2e7d0 100644 --- a/components/stats/TokenStats.tsx +++ b/components/stats/TokenStats.tsx @@ -190,14 +190,14 @@ const TokenStats = () => {
-

+

{formatDecimal(bank.getDepositRateUi(), 2, { fixed: true, })} %

| -

+

{formatDecimal(bank.getBorrowRateUi(), 2, { fixed: true, })} @@ -310,11 +310,11 @@ const TokenStats = () => {

{t('rates')}

- + {formatDecimal(bank.getDepositRate().toNumber(), 2)}% | - + {formatDecimal(bank.getBorrowRate().toNumber(), 2)}%

diff --git a/components/swap/JupiterRouteInfo.tsx b/components/swap/JupiterRouteInfo.tsx index 75207595..626d3a26 100644 --- a/components/swap/JupiterRouteInfo.tsx +++ b/components/swap/JupiterRouteInfo.tsx @@ -315,7 +315,7 @@ const JupiterRouteInfo = ({ )}

setSwapRate(!swapRate)} />
@@ -325,8 +325,8 @@ const JupiterRouteInfo = ({
{Decimal.abs(coinGeckoPriceDifference).toFixed(1)}%{' '} @@ -415,7 +415,7 @@ const JupiterRouteInfo = ({ ) })} - +
{typeof feeValue === 'number' ? ( @@ -492,7 +492,7 @@ const JupiterRouteInfo = ({ } placement={'left'} > - +
diff --git a/components/swap/RoutesModal.tsx b/components/swap/RoutesModal.tsx index d0ec171e..fb3c5fcf 100644 --- a/components/swap/RoutesModal.tsx +++ b/components/swap/RoutesModal.tsx @@ -44,7 +44,7 @@ const RoutesModal = ({ key={index} className={`default-transition mb-2 rounded border bg-th-bkg-3 hover:bg-th-bkg-4 ${ selected - ? 'border-th-primary text-th-primary hover:border-th-primary' + ? 'border-th-active text-th-active hover:border-th-active' : 'border-transparent text-th-fgd-1' }`} > diff --git a/components/swap/SwapForm.tsx b/components/swap/SwapForm.tsx index 795fc7b0..d0222eb6 100644 --- a/components/swap/SwapForm.tsx +++ b/components/swap/SwapForm.tsx @@ -277,7 +277,7 @@ const SwapForm = () => {
@@ -82,7 +82,7 @@ const CustomTooltip = ({ {allSteps.map((s, i) => (
diff --git a/components/trade/AdvancedTradeForm.tsx b/components/trade/AdvancedTradeForm.tsx index 79f79427..13b5716b 100644 --- a/components/trade/AdvancedTradeForm.tsx +++ b/components/trade/AdvancedTradeForm.tsx @@ -529,8 +529,8 @@ const AdvancedTradeForm = () => { onClick={handlePlaceOrder} className={`flex w-full items-center justify-center text-white ${ tradeForm.side === 'buy' - ? 'bg-th-green-dark md:hover:bg-th-green' - : 'bg-th-red-dark md:hover:bg-th-red' + ? 'bg-th-up-dark md:hover:bg-th-up' + : 'bg-th-down-dark md:hover:bg-th-down' }`} disabled={false} size="large" diff --git a/components/trade/FavoriteMarketsBar.tsx b/components/trade/FavoriteMarketsBar.tsx index c412bd5f..87839228 100644 --- a/components/trade/FavoriteMarketsBar.tsx +++ b/components/trade/FavoriteMarketsBar.tsx @@ -20,7 +20,7 @@ const FavoriteMarketsBar = () => { return !isMobile ? ( { return (
@@ -58,8 +58,8 @@ const FavoriteMarketsBar = () => { className={`text-xs ${ change24h ? change24h >= 0 - ? 'text-th-green' - : 'text-th-red' + ? 'text-th-up' + : 'text-th-down' : 'text-th-fgd-4' }`} > diff --git a/components/trade/GroupSize.tsx b/components/trade/GroupSize.tsx index deef6a60..daead4ce 100644 --- a/components/trade/GroupSize.tsx +++ b/components/trade/GroupSize.tsx @@ -30,7 +30,7 @@ const GroupSize = ({ {({ open }) => ( <>
{({ selected }) => (
{size} diff --git a/components/trade/MarketSelectDropdown.tsx b/components/trade/MarketSelectDropdown.tsx index 6a6839ac..cd92362c 100644 --- a/components/trade/MarketSelectDropdown.tsx +++ b/components/trade/MarketSelectDropdown.tsx @@ -38,7 +38,7 @@ const MarketSelectDropdown = () => { className="relative flex flex-col overflow-visible" id="trade-step-one" > - + <> {selectedMarket ? : null} @@ -89,12 +89,12 @@ const MarketSelectDropdown = () => { }} shallow={true} > -
+
@@ -129,7 +129,7 @@ const MarketSelectDropdown = () => { diff --git a/components/trade/Orderbook.tsx b/components/trade/Orderbook.tsx index f6aa54fa..d0016de2 100644 --- a/components/trade/Orderbook.tsx +++ b/components/trade/Orderbook.tsx @@ -637,7 +637,7 @@ const OrderbookRow = ({
@@ -651,13 +651,13 @@ const OrderbookRow = ({ { {formattedPrice.toFixed()} diff --git a/components/trade/TradingViewChart.tsx b/components/trade/TradingViewChart.tsx index 948017bd..91427ce9 100644 --- a/components/trade/TradingViewChart.tsx +++ b/components/trade/TradingViewChart.tsx @@ -47,8 +47,8 @@ const TradingViewChart = () => { fullscreen: false, autosize: true, studiesOverrides: { - 'volume.volume.color.0': COLORS.RED[theme], - 'volume.volume.color.1': COLORS.GREEN[theme], + 'volume.volume.color.0': COLORS.DOWN[theme], + 'volume.volume.color.1': COLORS.UP[theme], 'volume.precision': 4, }, }), @@ -81,13 +81,13 @@ const TradingViewChart = () => { [`mainSeriesProperties.${prop}.barColorsOnPrevClose`]: true, [`mainSeriesProperties.${prop}.drawWick`]: true, [`mainSeriesProperties.${prop}.drawBorder`]: true, - [`mainSeriesProperties.${prop}.upColor`]: COLORS.GREEN[theme], - [`mainSeriesProperties.${prop}.downColor`]: COLORS.RED[theme], - [`mainSeriesProperties.${prop}.borderColor`]: COLORS.GREEN[theme], - [`mainSeriesProperties.${prop}.borderUpColor`]: COLORS.GREEN[theme], - [`mainSeriesProperties.${prop}.borderDownColor`]: COLORS.RED[theme], - [`mainSeriesProperties.${prop}.wickUpColor`]: COLORS.GREEN[theme], - [`mainSeriesProperties.${prop}.wickDownColor`]: COLORS.RED[theme], + [`mainSeriesProperties.${prop}.upColor`]: COLORS.UP[theme], + [`mainSeriesProperties.${prop}.downColor`]: COLORS.DOWN[theme], + [`mainSeriesProperties.${prop}.borderColor`]: COLORS.UP[theme], + [`mainSeriesProperties.${prop}.borderUpColor`]: COLORS.UP[theme], + [`mainSeriesProperties.${prop}.borderDownColor`]: COLORS.DOWN[theme], + [`mainSeriesProperties.${prop}.wickUpColor`]: COLORS.UP[theme], + [`mainSeriesProperties.${prop}.wickDownColor`]: COLORS.DOWN[theme], } }) diff --git a/components/wallet/ConnectWalletButton.tsx b/components/wallet/ConnectWalletButton.tsx index 010d7dec..34a727ea 100644 --- a/components/wallet/ConnectWalletButton.tsx +++ b/components/wallet/ConnectWalletButton.tsx @@ -19,7 +19,7 @@ export const ConnectWalletButton: React.FC = () => { disabled={!groupLoaded} className={` text-white focus:outline-none disabled:cursor-wait disabled:opacity-25`} > -
+
{ />
-
+
{connecting ? : t('connect')}
-
+
{preselectedWalletName}
diff --git a/components/wallet/ConnectedMenu.tsx b/components/wallet/ConnectedMenu.tsx index 9e012701..b0049c74 100644 --- a/components/wallet/ConnectedMenu.tsx +++ b/components/wallet/ConnectedMenu.tsx @@ -118,7 +118,7 @@ const ConnectedMenu = () => {

{t('deposit-rate')}

-

+

{formatDecimal(bank.getDepositRateUi(), 2, { fixed: true, })} @@ -347,7 +347,7 @@ const Token: NextPage = () => {

{t('borrow-rate')}

-

+

{formatDecimal(bank.getBorrowRateUi(), 2, { fixed: true, })} diff --git a/styles/colors.ts b/styles/colors.ts index d5c49398..77b3686f 100644 --- a/styles/colors.ts +++ b/styles/colors.ts @@ -1,7 +1,74 @@ export const COLORS: any = { - BKG1: { Mango: '#18181C', Dark: '#17171B', Light: '#FDFDFD' }, - BKG2: { Mango: '#242132', Dark: '#201F27', Light: '#f0f0f0' }, - GREEN: { Mango: '#A6CD03', Dark: '#5EBF4d', Light: '#5EBF4d' }, - PRIMARY: { Mango: '#F2C94C', Dark: '#F2C94C', Light: '#FF9C24' }, - RED: { Mango: '#F84638', Dark: '#CC2929', Light: '#CC2929' }, + BKG1: { + Mango: 'hsl(256, 18%, 12%)', + Dark: 'hsl(240, 6%, 7%)', + Light: 'hsl(0, 0%, 99%)', + // Smoothy: 'hsl(45, 100%, 96%)', + Jungle: 'hsl(120, 18%, 12%)', + Medium: 'hsl(240, 6%, 12%)', + Ocean: 'hsl(222, 74%, 21%)', + }, + BKG2: { + Mango: 'hsl(256, 18%, 17%)', + Dark: 'hsl(240, 6%, 12%)', + Light: 'hsl(0, 0%, 94%)', + // Smoothy: 'hsl(45, 100%, 91%)', + Jungle: 'hsl(120, 18%, 17%)', + Medium: 'hsl(240, 6%, 17%)', + Ocean: 'hsl(222, 74%, 26%)', + }, + BKG3: { + Mango: 'hsl(256, 18%, 22%)', + Dark: 'hsl(240, 6%, 17%)', + Light: 'hsl(0, 0%, 89%)', + // Smoothy: 'hsl(45, 100%, 86%)', + Jungle: 'hsl(120, 18%, 22%)', + Medium: 'hsl(240, 6%, 22%)', + Ocean: 'hsl(222, 74%, 31%)', + }, + BKG4: { + Mango: 'hsl(256, 18%, 27%)', + Dark: 'hsl(240, 6%, 22%)', + Light: 'hsl(0, 0%, 84%)', + // Smoothy: 'hsl(45, 100%, 81%)', + Jungle: 'hsl(120, 18%, 27%)', + Medium: 'hsl(240, 6%, 27%)', + Ocean: 'hsl(222, 74%, 36%)', + }, + FGD4: { + Mango: 'hsl(253, 19%, 61%)', + Dark: 'hsl(0, 0%, 52%)', + Light: 'hsl(188, 71%, 38%)', + // Smoothy: 'hsl(45, 100%, 34%)', + Jungle: 'hsl(120, 20%, 63%)', + Medium: 'hsl(0, 0%, 50%)', + Ocean: 'hsl(220, 71%, 66%)', + }, + UP: { + Mango: 'hsl(72, 97%, 41%)', + Dark: 'hsl(111, 47%, 53%)', + Light: 'hsl(111, 47%, 53%)', + // Smoothy: 'hsl(110, 73%, 40%)', + Jungle: 'hsl(120, 50%, 53%)', + Medium: 'hsl(111, 47%, 53%)', + Ocean: 'hsl(165, 82%, 45%)', + }, + ACTIVE: { + Mango: 'hsl(45, 86%, 62%)', + Dark: 'hsl(45, 86%, 62%)', + Light: 'hsl(33, 100%, 57%)', + // Smoothy: 'hsl(321, 100%, 48%)', + Jungle: 'hsl(120, 100%, 73%)', + Medium: 'hsl(45, 86%, 62%)', + Ocean: 'hsl(45, 86%, 62%)', + }, + DOWN: { + Mango: 'hsl(4, 93%, 60%)', + Dark: 'hsl(0, 67%, 48%)', + Light: 'hsl(0, 67%, 48%)', + // Smoothy: 'hsl(0, 100%, 56%)', + Jungle: 'hsl(0, 100%, 73%)', + Medium: 'hsl(0, 67%, 48%)', + Ocean: 'hsl(3, 59%, 56%)', + }, } diff --git a/styles/datepicker.css b/styles/datepicker.css index bb1e92d0..34cd1bb0 100644 --- a/styles/datepicker.css +++ b/styles/datepicker.css @@ -9,19 +9,19 @@ } .nice-dates .nice-dates-navigation_next:before { - @apply border-th-fgd-2 hover:border-th-primary; + @apply border-th-fgd-2 hover:border-th-active; } .nice-dates .nice-dates-navigation_next:hover:before { - @apply border-th-primary; + @apply border-th-active; } .nice-dates .nice-dates-navigation_previous:before { - @apply border-th-fgd-2 hover:border-th-primary; + @apply border-th-fgd-2 hover:border-th-active; } .nice-dates .nice-dates-navigation_previous:hover:before { - @apply border-th-primary; + @apply border-th-active; } .nice-dates .nice-dates-week-header_day { diff --git a/styles/globals.css b/styles/globals.css index 685014cc..934e870d 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -80,15 +80,16 @@ th { /* Theme */ :root { - --primary: theme('colors.light-theme.orange.DEFAULT'); - --primary-dark: theme('colors.light-theme.orange.dark'); - --red: theme('colors.light-theme.red.DEFAULT'); - --red-dark: theme('colors.light-theme.red.dark'); - --red-muted: theme('colors.light-theme.red.muted'); - --green: theme('colors.light-theme.green.DEFAULT'); - --green-dark: theme('colors.light-theme.green.dark'); - --green-muted: theme('colors.light-theme.green.muted'); - --orange: theme('colors.light-theme.orange.DEFAULT'); + --active: theme('colors.light-theme.active.DEFAULT'); + --active-dark: theme('colors.light-theme.active.dark'); + --down: theme('colors.light-theme.down.DEFAULT'); + --down-dark: theme('colors.light-theme.down.dark'); + --down-muted: theme('colors.light-theme.down.muted'); + --up: theme('colors.light-theme.up.DEFAULT'); + --up-dark: theme('colors.light-theme.up.dark'); + --up-muted: theme('colors.light-theme.up.muted'); + --link: theme('colors.light-theme.link.DEFAULT'); + --link-hover: theme('colors.light-theme.link.hover'); --bkg-1: theme('colors.light-theme.bkg-1'); --bkg-2: theme('colors.light-theme.bkg-2'); --bkg-3: theme('colors.light-theme.bkg-3'); @@ -97,20 +98,24 @@ th { --fgd-2: theme('colors.light-theme.fgd-2'); --fgd-3: theme('colors.light-theme.fgd-3'); --fgd-4: theme('colors.light-theme.fgd-4'); - --button: theme('colors.light-theme.button'); - --button-hover: theme('colors.light-theme.button-hover'); + --button: theme('colors.light-theme.button.DEFAULT'); + --button-hover: theme('colors.light-theme.button.hover'); + --error: theme('colors.light-theme.error'); + --success: theme('colors.light-theme.success'); + --warning: theme('colors.light-theme.warning'); } [data-theme='Dark'] { - --primary: theme('colors.dark-theme.yellow.DEFAULT'); - --primary-dark: theme('colors.dark-theme.yellow.dark'); - --red: theme('colors.dark-theme.red.DEFAULT'); - --red-dark: theme('colors.dark-theme.red.dark'); - --red-muted: theme('colors.dark-theme.red.muted'); - --green: theme('colors.dark-theme.green.DEFAULT'); - --green-dark: theme('colors.dark-theme.green.dark'); - --green-muted: theme('colors.dark-theme.green.muted'); - --orange: theme('colors.dark-theme.orange.DEFAULT'); + --active: theme('colors.dark-theme.active.DEFAULT'); + --active-dark: theme('colors.dark-theme.active.dark'); + --down: theme('colors.dark-theme.down.DEFAULT'); + --down-dark: theme('colors.dark-theme.down.dark'); + --down-muted: theme('colors.dark-theme.down.muted'); + --up: theme('colors.dark-theme.up.DEFAULT'); + --up-dark: theme('colors.dark-theme.up.dark'); + --up-muted: theme('colors.dark-theme.up.muted'); + --link: theme('colors.dark-theme.link.DEFAULT'); + --link-hover: theme('colors.dark-theme.link.hover'); --bkg-1: theme('colors.dark-theme.bkg-1'); --bkg-2: theme('colors.dark-theme.bkg-2'); --bkg-3: theme('colors.dark-theme.bkg-3'); @@ -119,20 +124,24 @@ th { --fgd-2: theme('colors.dark-theme.fgd-2'); --fgd-3: theme('colors.dark-theme.fgd-3'); --fgd-4: theme('colors.dark-theme.fgd-4'); - --button: theme('colors.dark-theme.button'); - --button-hover: theme('colors.dark-theme.button-hover'); + --button: theme('colors.dark-theme.button.DEFAULT'); + --button-hover: theme('colors.dark-theme.button.hover'); + --error: theme('colors.dark-theme.error'); + --success: theme('colors.dark-theme.success'); + --warning: theme('colors.dark-theme.warning'); } [data-theme='Mango'] { - --primary: theme('colors.mango-theme.yellow.DEFAULT'); - --primary-dark: theme('colors.mango-theme.yellow.dark'); - --red: theme('colors.mango-theme.red.DEFAULT'); - --red-dark: theme('colors.mango-theme.red.dark'); - --red-muted: theme('colors.mango-theme.red.muted'); - --green: theme('colors.mango-theme.green.DEFAULT'); - --green-dark: theme('colors.mango-theme.green.dark'); - --green-muted: theme('colors.mango-theme.green.muted'); - --orange: theme('colors.mango-theme.orange.DEFAULT'); + --active: theme('colors.mango-theme.active.DEFAULT'); + --active-dark: theme('colors.mango-theme.active.dark'); + --down: theme('colors.mango-theme.down.DEFAULT'); + --down-dark: theme('colors.mango-theme.down.dark'); + --down-muted: theme('colors.mango-theme.down.muted'); + --up: theme('colors.mango-theme.up.DEFAULT'); + --up-dark: theme('colors.mango-theme.up.dark'); + --up-muted: theme('colors.mango-theme.up.muted'); + --link: theme('colors.mango-theme.link.DEFAULT'); + --link-hover: theme('colors.mango-theme.link.hover'); --bkg-1: theme('colors.mango-theme.bkg-1'); --bkg-2: theme('colors.mango-theme.bkg-2'); --bkg-3: theme('colors.mango-theme.bkg-3'); @@ -141,8 +150,115 @@ th { --fgd-2: theme('colors.mango-theme.fgd-2'); --fgd-3: theme('colors.mango-theme.fgd-3'); --fgd-4: theme('colors.mango-theme.fgd-4'); - --button: theme('colors.mango-theme.button'); - --button-hover: theme('colors.mango-theme.button-hover'); + --button: theme('colors.mango-theme.button.DEFAULT'); + --button-hover: theme('colors.mango-theme.button.hover'); + --error: theme('colors.mango-theme.error'); + --success: theme('colors.mango-theme.success'); + --warning: theme('colors.mango-theme.warning'); +} + +[data-theme='Medium'] { + --active: theme('colors.medium-theme.active.DEFAULT'); + --active-dark: theme('colors.medium-theme.active.dark'); + --down: theme('colors.medium-theme.down.DEFAULT'); + --down-dark: theme('colors.medium-theme.down.dark'); + --down-muted: theme('colors.medium-theme.down.muted'); + --up: theme('colors.medium-theme.up.DEFAULT'); + --up-dark: theme('colors.medium-theme.up.dark'); + --up-muted: theme('colors.medium-theme.up.muted'); + --link: theme('colors.medium-theme.link.DEFAULT'); + --link-hover: theme('colors.medium-theme.link.hover'); + --bkg-1: theme('colors.medium-theme.bkg-1'); + --bkg-2: theme('colors.medium-theme.bkg-2'); + --bkg-3: theme('colors.medium-theme.bkg-3'); + --bkg-4: theme('colors.medium-theme.bkg-4'); + --fgd-1: theme('colors.medium-theme.fgd-1'); + --fgd-2: theme('colors.medium-theme.fgd-2'); + --fgd-3: theme('colors.medium-theme.fgd-3'); + --fgd-4: theme('colors.medium-theme.fgd-4'); + --button: theme('colors.medium-theme.button.DEFAULT'); + --button-hover: theme('colors.medium-theme.button.hover'); + --error: theme('colors.medium-theme.error'); + --success: theme('colors.medium-theme.success'); + --warning: theme('colors.medium-theme.warning'); +} + +[data-theme='Ocean'] { + --active: theme('colors.ocean-theme.active.DEFAULT'); + --active-dark: theme('colors.ocean-theme.active.dark'); + --down: theme('colors.ocean-theme.down.DEFAULT'); + --down-dark: theme('colors.ocean-theme.down.dark'); + --down-muted: theme('colors.ocean-theme.down.muted'); + --up: theme('colors.ocean-theme.up.DEFAULT'); + --up-dark: theme('colors.ocean-theme.up.dark'); + --up-muted: theme('colors.ocean-theme.up.muted'); + --link: theme('colors.ocean-theme.link.DEFAULT'); + --link-hover: theme('colors.ocean-theme.link.hover'); + --bkg-1: theme('colors.ocean-theme.bkg-1'); + --bkg-2: theme('colors.ocean-theme.bkg-2'); + --bkg-3: theme('colors.ocean-theme.bkg-3'); + --bkg-4: theme('colors.ocean-theme.bkg-4'); + --fgd-1: theme('colors.ocean-theme.fgd-1'); + --fgd-2: theme('colors.ocean-theme.fgd-2'); + --fgd-3: theme('colors.ocean-theme.fgd-3'); + --fgd-4: theme('colors.ocean-theme.fgd-4'); + --button: theme('colors.ocean-theme.button.DEFAULT'); + --button-hover: theme('colors.ocean-theme.button.hover'); + --error: theme('colors.ocean-theme.error'); + --success: theme('colors.ocean-theme.success'); + --warning: theme('colors.ocean-theme.warning'); +} + +/* [data-theme='Smoothy'] { + --active: theme('colors.smoothy-theme.active.DEFAULT'); + --active-dark: theme('colors.smoothy-theme.active.dark'); + --down: theme('colors.smoothy-theme.down.DEFAULT'); + --down-dark: theme('colors.smoothy-theme.down.dark'); + --down-muted: theme('colors.smoothy-theme.down.muted'); + --up: theme('colors.smoothy-theme.up.DEFAULT'); + --up-dark: theme('colors.smoothy-theme.up.dark'); + --up-muted: theme('colors.smoothy-theme.up.muted'); + --link: theme('colors.smoothy-theme.link.DEFAULT'); + --link-hover: theme('colors.smoothy-theme.link.hover'); + --bkg-1: theme('colors.smoothy-theme.bkg-1'); + --bkg-2: theme('colors.smoothy-theme.bkg-2'); + --bkg-3: theme('colors.smoothy-theme.bkg-3'); + --bkg-4: theme('colors.smoothy-theme.bkg-4'); + --fgd-1: theme('colors.smoothy-theme.fgd-1'); + --fgd-2: theme('colors.smoothy-theme.fgd-2'); + --fgd-3: theme('colors.smoothy-theme.fgd-3'); + --fgd-4: theme('colors.smoothy-theme.fgd-4'); + --button: theme('colors.smoothy-theme.button.DEFAULT'); + --button-hover: theme('colors.smoothy-theme.button.hover'); + --error: theme('colors.smoothy-theme.error'); + --success: theme('colors.smoothy-theme.success'); + --warning: theme('colors.smoothy-theme.warning'); +} */ + +[data-theme='Jungle'] { + --active: theme('colors.jungle-theme.active.DEFAULT'); + --active-dark: theme('colors.jungle-theme.active.dark'); + --down: theme('colors.jungle-theme.down.DEFAULT'); + --down-dark: theme('colors.jungle-theme.down.dark'); + --down-muted: theme('colors.jungle-theme.down.muted'); + --up: theme('colors.jungle-theme.up.DEFAULT'); + --up-dark: theme('colors.jungle-theme.up.dark'); + --up-muted: theme('colors.jungle-theme.up.muted'); + --link: theme('colors.jungle-theme.link.DEFAULT'); + --link-hover: theme('colors.jungle-theme.link.hover'); + --bkg-1: theme('colors.jungle-theme.bkg-1'); + --bkg-2: theme('colors.jungle-theme.bkg-2'); + --bkg-3: theme('colors.jungle-theme.bkg-3'); + --bkg-4: theme('colors.jungle-theme.bkg-4'); + --fgd-1: theme('colors.jungle-theme.fgd-1'); + --fgd-2: theme('colors.jungle-theme.fgd-2'); + --fgd-3: theme('colors.jungle-theme.fgd-3'); + --fgd-4: theme('colors.jungle-theme.fgd-4'); + --button: theme('colors.jungle-theme.button.DEFAULT'); + --button-hover: theme('colors.jungle-theme.button.hover'); + --error: theme('colors.jungle-theme.error'); + --success: theme('colors.jungle-theme.success'); + --warning: theme('colors.jungle-theme.warning'); } /* Base */ @@ -191,6 +307,12 @@ li { @apply text-sm text-th-fgd-3; } +/* Forms */ + +input::placeholder { + @apply text-th-fgd-4; +} + /* Slider */ input[type='range']::-webkit-slider-thumb { @@ -198,7 +320,7 @@ input[type='range']::-webkit-slider-thumb { height: 16px; width: 16px; border-radius: 100%; - background: var(--primary); + background: var(--active); cursor: pointer; margin-top: -1px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */ } @@ -208,7 +330,7 @@ input[type='range']::-moz-range-thumb { height: 16px; width: 16px; border-radius: 100%; - background: var(--primary); + background: var(--active); cursor: pointer; } @@ -217,7 +339,7 @@ input[type='range']::-ms-thumb { height: 16px; width: 16px; border-radius: 100%; - background: var(--primary); + background: var(--active); cursor: pointer; } @@ -311,7 +433,7 @@ input[type='range'] { } input[type='range']::-webkit-slider-thumb { - @apply h-5 w-5 cursor-ew-resize appearance-none rounded-full bg-th-primary; + @apply h-5 w-5 cursor-ew-resize appearance-none rounded-full bg-th-active; } input[type='range']::-webkit-slider-runnable-track { @@ -328,7 +450,7 @@ input[type='range']::-webkit-slider-runnable-track { @keyframes green-flash { from { - background-color: var(--green-muted); + background-color: var(--up-muted); } to { background-color: transparent; @@ -337,7 +459,7 @@ input[type='range']::-webkit-slider-runnable-track { @-webkit-keyframes green-flash { from { - background-color: var(--green-muted); + background-color: var(--up-muted); } to { background-color: transparent; @@ -345,7 +467,7 @@ input[type='range']::-webkit-slider-runnable-track { } @-moz-keyframes green-flash { from { - background-color: var(--green-muted); + background-color: var(--up-muted); } to { background-color: transparent; @@ -354,7 +476,7 @@ input[type='range']::-webkit-slider-runnable-track { @keyframes red-flash { from { - background-color: var(--red-muted); + background-color: var(--down-muted); } to { background-color: transparent; @@ -363,7 +485,7 @@ input[type='range']::-webkit-slider-runnable-track { @-webkit-keyframes red-flash { from { - background-color: var(--red-muted); + background-color: var(--down-muted); } to { background-color: transparent; @@ -371,7 +493,7 @@ input[type='range']::-webkit-slider-runnable-track { } @-moz-keyframes red-flash { from { - background-color: var(--red-muted); + background-color: var(--down-muted); } to { background-color: transparent; diff --git a/tailwind.config.js b/tailwind.config.js index f408259d..a6835955 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -17,65 +17,234 @@ module.exports = { cursor: { help: 'help', }, + // each color category in a theme has a single base color with the variations acheived by adjusting lightness (dark and hover variants) and lightness and saturation for muted variants colors: { 'gradient-start': '#AFD803', 'gradient-mid': '#F2C94C', 'gradient-end': '#E54033', - 'light-theme': { - orange: { - DEFAULT: '#FF9C24', - dark: '#F58700', + 'mango-theme': { + active: { + DEFAULT: 'hsl(45, 86%, 62%)', + dark: 'hsl(45, 86%, 52%)', }, - red: { DEFAULT: '#CC2929', dark: '#CC2929', muted: '#eba9a9' }, - green: { DEFAULT: '#5EBF4D', dark: '#5EBF4D', muted: '#bfe5b8' }, - 'bkg-1': '#FDFDFD', - 'bkg-2': '#f7f7f7', - 'bkg-3': '#F0F0F0', - 'bkg-4': '#E6E6E6', - 'fgd-1': '#061f23', - 'fgd-2': '#0C3F45', - 'fgd-3': '#446065', - 'fgd-4': '#B0B0B0', - button: '#7261BD', - 'button-hover': '#5B48AD', + button: { + DEFAULT: 'hsl(251, 41%, 48%)', + hover: 'hsl(251, 41%, 38%)', + }, + link: { DEFAULT: 'hsl(33, 100%, 57%)', hover: 'hsl(33, 100%, 47%)' }, + down: { + DEFAULT: 'hsl(4, 93%, 60%)', + dark: 'hsl(4, 93%, 50%)', + muted: 'hsl(4, 53%, 50%)', + }, + up: { + DEFAULT: 'hsl(72, 97%, 41%)', + dark: 'hsl(72, 97%, 31%)', + muted: 'hsl(72, 57%, 31%)', + }, + error: 'hsl(4, 93%, 60%)', + success: 'hsl(72, 97%, 41%)', + warning: 'hsl(33, 100%, 57%)', + 'bkg-1': 'hsl(256, 18%, 12%)', + 'bkg-2': 'hsl(256, 18%, 17%)', + 'bkg-3': 'hsl(256, 18%, 22%)', + 'bkg-4': 'hsl(256, 18%, 27%)', + 'fgd-1': 'hsl(253, 19%, 91%)', + 'fgd-2': 'hsl(253, 19%, 81%)', + 'fgd-3': 'hsl(253, 19%, 71%)', + 'fgd-4': 'hsl(253, 19%, 61%)', + }, + 'light-theme': { + active: { + DEFAULT: 'hsl(33, 100%, 57%)', + dark: 'hsl(33, 100%, 47%)', + }, + button: { + DEFAULT: 'hsl(251, 41%, 56%)', + hover: 'hsl(251, 41%, 46%)', + }, + link: { DEFAULT: 'hsl(33, 100%, 57%)', hover: 'hsl(33, 100%, 47%)' }, + down: { + DEFAULT: 'hsl(0, 67%, 48%)', + dark: 'hsl(0, 67%, 38%)', + muted: 'hsl(0, 27%, 38%)', + }, + up: { + DEFAULT: 'hsl(111, 47%, 53%)', + dark: 'hsl(111, 47%, 43%)', + muted: 'hsl(111, 7%, 43%)', + }, + error: 'hsl(0, 67%, 48%)', + success: 'hsl(111, 47%, 53%)', + warning: 'hsl(33, 100%, 57%)', + 'bkg-1': 'hsl(0, 0%, 99%)', + 'bkg-2': 'hsl(0, 0%, 94%)', + 'bkg-3': 'hsl(0, 0%, 89%)', + 'bkg-4': 'hsl(0, 0%, 84%)', + 'fgd-1': 'hsl(188, 71%, 8%)', + 'fgd-2': 'hsl(188, 71%, 18%)', + 'fgd-3': 'hsl(188, 71%, 28%)', + 'fgd-4': 'hsl(188, 71%, 38%)', }, 'dark-theme': { - yellow: { - DEFAULT: '#F2C94C', - dark: '#E4AF11', + active: { + DEFAULT: 'hsl(45, 86%, 62%)', + dark: 'hsl(45, 86%, 52%)', }, - red: { DEFAULT: '#CC2929', dark: '#AA2222', muted: '#571e20' }, - green: { DEFAULT: '#5EBF4D', dark: '#4BA53B', muted: '#365D31' }, - orange: { DEFAULT: '#FF9C24' }, - 'bkg-1': '#101012', - 'bkg-2': '#1B1B1F', - 'bkg-3': '#27272B', - 'bkg-4': '#38383D', - 'fgd-1': '#D1D1D1', - 'fgd-2': '#C8C8C8', - 'fgd-3': '#B3B3B3', - 'fgd-4': '#878787', - button: '#5B48AD', - 'button-hover': '#443681', + button: { + DEFAULT: 'hsl(251, 41%, 48%)', + hover: 'hsl(251, 41%, 38%)', + }, + link: { DEFAULT: 'hsl(45, 86%, 62%)', hover: 'hsl(45, 86%, 52%)' }, + down: { + DEFAULT: 'hsl(0, 67%, 48%)', + dark: 'hsl(0, 67%, 38%)', + muted: 'hsl(0, 27%, 38%)', + }, + up: { + DEFAULT: 'hsl(111, 47%, 53%)', + dark: 'hsl(111, 47%, 43%)', + muted: 'hsl(111, 7%, 43%)', + }, + error: 'hsl(0, 67%, 48%)', + success: 'hsl(111, 47%, 53%)', + warning: 'hsl(45, 86%, 62%)', + 'bkg-1': 'hsl(240, 6%, 7%)', + 'bkg-2': 'hsl(240, 6%, 12%)', + 'bkg-3': 'hsl(240, 6%, 17%)', + 'bkg-4': 'hsl(240, 6%, 22%)', + 'fgd-1': 'hsl(0, 0%, 82%)', + 'fgd-2': 'hsl(0, 0%, 72%)', + 'fgd-3': 'hsl(0, 0%, 62%)', + 'fgd-4': 'hsl(0, 0%, 52%)', }, - 'mango-theme': { - yellow: { - DEFAULT: '#F2C94C', - dark: '#E4AF11', + 'medium-theme': { + active: { + DEFAULT: 'hsl(45, 86%, 62%)', + dark: 'hsl(45, 86%, 52%)', }, - red: { DEFAULT: '#F84638', dark: '#C7251A', muted: '#6d2832' }, - green: { DEFAULT: '#A6CD03', dark: '#84A21C', muted: '#49601b' }, - orange: { DEFAULT: '#FF9C24' }, - 'bkg-1': '#1C1924', // '#141026', - 'bkg-2': '#252232', // '#1D1832', - 'bkg-3': '#302B40', // '#2A2440', - 'bkg-4': '#383544', // '#37324D', - 'fgd-1': '#E5E3EC', - 'fgd-2': '#D2CEDE', - 'fgd-3': '#C1BED3', - 'fgd-4': '#7E7A90', - button: '#5B48AD', - 'button-hover': '#443681', + button: { + DEFAULT: 'hsl(251, 35%, 38%)', + hover: 'hsl(251, 35%, 28%)', + }, + link: { DEFAULT: 'hsl(45, 86%, 62%)', hover: 'hsl(45, 86%, 52%)' }, + down: { + DEFAULT: 'hsl(0, 67%, 48%)', + dark: 'hsl(0, 67%, 38%)', + muted: 'hsl(0, 27%, 38%)', + }, + up: { + DEFAULT: 'hsl(111, 47%, 53%)', + dark: 'hsl(111, 47%, 43%)', + muted: 'hsl(111, 7%, 43%)', + }, + error: 'hsl(0, 67%, 48%)', + success: 'hsl(111, 47%, 53%)', + warning: 'hsl(45, 86%, 62%)', + 'bkg-1': 'hsl(240, 6%, 12%)', + 'bkg-2': 'hsl(240, 6%, 17%)', + 'bkg-3': 'hsl(240, 6%, 22%)', + 'bkg-4': 'hsl(240, 6%, 27%)', + 'fgd-1': 'hsl(0, 0%, 80%)', + 'fgd-2': 'hsl(0, 0%, 70%)', + 'fgd-3': 'hsl(0, 0%, 60%)', + 'fgd-4': 'hsl(0, 0%, 50%)', + }, + 'ocean-theme': { + active: { + DEFAULT: 'hsl(45, 86%, 62%)', + dark: 'hsl(45, 86%, 52%)', + }, + button: { + DEFAULT: 'hsl(222, 74%, 36%)', + hover: 'hsl(222, 74%, 26%)', + }, + link: { DEFAULT: 'hsl(45, 86%, 62%)', hover: 'hsl(45, 86%, 52%)' }, + down: { + DEFAULT: 'hsl(3, 59%, 56%)', + dark: 'hsl(3, 59%, 46%)', + muted: 'hsl(3, 19%, 46%)', + }, + up: { + DEFAULT: 'hsl(165, 82%, 45%)', + dark: 'hsl(165, 82%, 35%)', + muted: 'hsl(165, 42%, 35%)', + }, + error: 'hsl(3, 59%, 56%)', + success: 'hsl(165, 82%, 45%)', + warning: 'hsl(45, 86%, 62%)', + 'bkg-1': 'hsl(222, 74%, 21%)', + 'bkg-2': 'hsl(222, 74%, 26%)', + 'bkg-3': 'hsl(222, 74%, 31%)', + 'bkg-4': 'hsl(222, 74%, 36%)', + 'fgd-1': 'hsl(220, 71%, 96%)', + 'fgd-2': 'hsl(220, 71%, 86%)', + 'fgd-3': 'hsl(220, 71%, 76%)', + 'fgd-4': 'hsl(220, 71%, 66%)', + }, + 'smoothy-theme': { + active: { + DEFAULT: 'hsl(321, 100%, 48%)', + dark: 'hsl(321, 100%, 38%)', + }, + button: { + DEFAULT: 'hsl(284, 100%, 56%)', + hover: 'hsl(284, 100%, 46%)', + }, + link: { DEFAULT: 'hsl(21, 100%, 56%)', hover: 'hsl(21, 100%, 46%)' }, + down: { + DEFAULT: 'hsl(0, 100%, 56%)', + dark: 'hsl(0, 100%, 46%)', + muted: 'hsl(0, 60%, 46%)', + }, + up: { + DEFAULT: 'hsl(110, 73%, 40%)', + dark: 'hsl(110, 73%, 30%)', + muted: 'hsl(110, 33%, 30%)', + }, + error: 'hsl(0, 100%, 56%)', + success: 'hsl(110, 73%, 40%)', + warning: 'hsl(21, 100%, 56%)', + 'bkg-1': 'hsl(45, 100%, 96%)', + 'bkg-2': 'hsl(45, 100%, 91%)', + 'bkg-3': 'hsl(45, 100%, 86%)', + 'bkg-4': 'hsl(45, 100%, 81%)', + 'fgd-1': 'hsl(45, 100%, 4%)', + 'fgd-2': 'hsl(45, 100%, 14%)', + 'fgd-3': 'hsl(45, 100%, 24%)', + 'fgd-4': 'hsl(45, 100%, 34%)', + }, + 'jungle-theme': { + active: { + DEFAULT: 'hsl(120, 100%, 73%)', + dark: 'hsl(120, 100%, 63%)', + }, + button: { + DEFAULT: 'hsl(21, 15%, 38%)', + hover: 'hsl(21, 15%, 28%)', + }, + link: { DEFAULT: 'hsl(31, 100%, 57%)', hover: 'hsl(31, 100%, 47%)' }, + down: { + DEFAULT: 'hsl(0, 100%, 73%)', + dark: 'hsl(0, 100%, 63%)', + muted: 'hsl(0, 60%, 63%)', + }, + up: { + DEFAULT: 'hsl(120, 50%, 53%)', + dark: 'hsl(120, 50%, 43%)', + muted: 'hsl(120, 10%, 43%)', + }, + error: 'hsl(0, 100%, 73%)', + success: 'hsl(120, 50%, 53%)', + warning: 'hsl(31, 80%, 57%)', + 'bkg-1': 'hsl(120, 18%, 12%)', + 'bkg-2': 'hsl(120, 18%, 17%)', + 'bkg-3': 'hsl(120, 18%, 22%)', + 'bkg-4': 'hsl(120, 18%, 27%)', + 'fgd-1': 'hsl(120, 20%, 93%)', + 'fgd-2': 'hsl(120, 20%, 83%)', + 'fgd-3': 'hsl(120, 20%, 73%)', + 'fgd-4': 'hsl(120, 20%, 63%)', }, 'th-bkg-1': 'var(--bkg-1)', 'th-bkg-2': 'var(--bkg-2)', @@ -85,17 +254,22 @@ module.exports = { 'th-fgd-2': 'var(--fgd-2)', 'th-fgd-3': 'var(--fgd-3)', 'th-fgd-4': 'var(--fgd-4)', - 'th-primary': 'var(--primary)', - 'th-primary-dark': 'var(--primary-dark)', - 'th-red': 'var(--red)', - 'th-red-dark': 'var(--red-dark)', - 'th-red-muted': 'var(--red-muted)', - 'th-green': 'var(--green)', - 'th-green-dark': 'var(--green-dark)', - 'th-green-muted': 'var(--green-muted)', - 'th-orange': 'var(--orange)', + 'th-active': 'var(--active)', + 'th-active-dark': 'var(--active-dark)', + 'th-error': 'var(--error)', + 'th-success': 'var(--success)', + 'th-warning': 'var(--warning)', + 'th-down': 'var(--down)', + 'th-down-dark': 'var(--down-dark)', + 'th-down-muted': 'var(--down-muted)', + 'th-up': 'var(--up)', + 'th-up-dark': 'var(--up-dark)', + 'th-up-muted': 'var(--up-muted)', + 'th-link': 'var(--link)', + 'th-link-hover': 'var(--link-hover)', 'th-button': 'var(--button)', 'th-button-hover': 'var(--button-hover)', + 'th-warning': 'var(--warning)', }, fontSize: { xxs: '.65rem',