From 7ef00d085f9d1b636143471b0789edc548ce9d00 Mon Sep 17 00:00:00 2001 From: jahooma Date: Sun, 12 Dec 2021 16:37:59 -0600 Subject: [PATCH] Fix tailwind theme to not override previous font families. --- web/components/bet-panel.tsx | 6 +++--- web/tailwind.config.js | 13 +++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx index bcb18b47..b8677768 100644 --- a/web/components/bet-panel.tsx +++ b/web/components/bet-panel.tsx @@ -96,11 +96,11 @@ export function BetPanel(props: { contract: Contract; className?: string }) {
Implied probability
-
+
{Math.floor(initialProb * 1000) / 10 + '%'}
-
+
{Math.floor(resultProb * 1000) / 10 + '%'}
@@ -108,7 +108,7 @@ export function BetPanel(props: { contract: Contract; className?: string }) {
Estimated winnings
-
+
{formatMoney(estimatedWinnings)} (+{estimatedReturnPercent})
diff --git a/web/tailwind.config.js b/web/tailwind.config.js index 3a4c8354..a55ef759 100644 --- a/web/tailwind.config.js +++ b/web/tailwind.config.js @@ -1,12 +1,17 @@ +const defaultTheme = require('tailwindcss/defaultTheme') + module.exports = { mode: 'jit', purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], darkMode: false, // or 'media' or 'class' theme: { - fontFamily: { - 'major-mono': ['Major Mono Display', 'monospace'], - 'readex-pro': ['Readex Pro', 'sans-serif'], - }, + fontFamily: Object.assign( + { ...defaultTheme.fontFamily }, + { + 'major-mono': ['Major Mono Display', 'monospace'], + 'readex-pro': ['Readex Pro', 'sans-serif'], + } + ), extend: { backgroundImage: { 'world-trading': "url('/world-trading-background.jpg')",