predikt/oracle/web/tailwind.config.js
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

592 lines
19 KiB
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
module.exports = {
darkMode: ['class'],
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
fontFamily: Object.assign(
{ ...defaultTheme.fontFamily },
{
figtree: ['icomoon', 'var(--font-main)', 'emoji', 'sans-serif'],
'grenze-gotisch': ['var(--font-match-cards)', 'cursive'], // just for match card game
}
),
extend: {
minHeight: {
screen: ['100vh /* fallback for Opera, IE and etc. */', '100dvh'],
},
height: {
screen: ['100vh /* fallback for Opera, IE and etc. */', '100dvh'],
},
maxHeight: {
screen: ['100vh /* fallback for Opera, IE and etc. */', '100dvh'],
},
gridTemplateColumns: {
15: 'repeat(15, minmax(0, 1fr))',
16: 'repeat(16, minmax(0, 1fr))',
},
fontFamily: {
mana: ['icomoon'],
},
transitionTimingFunction: {
bouncy: 'cubic-bezier(0.8, 0, 1, 1)',
},
keyframes: {
progress: {
from: {
width: '0%',
},
to: {
width: '100%',
},
},
'bounce-left': {
'0%,100%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'50%': {
transform: 'translateX(-15%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'bounce-right': {
'0%,100%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'50%': {
transform: 'translateX(15%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-from-right': {
'0%': {
transform: 'translateX(100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-1': {
'0%': {
transform: 'translateX(-100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'19.5%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-2': {
'0%': {
transform: 'translateX(-100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'20%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-3': {
'0%,30%': {
transform: 'translateX(-150%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'60%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-4': {
'0%,31%': {
transform: 'translateX(-150%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'61%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-1': {
'0%': {
transform: 'translateY(200%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'19.5%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-2': {
'0%': {
transform: 'translateY(200%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'20%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-3': {
'0%,30%': {
transform: 'translateY(200%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'60%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-4': {
'0%,31%': {
transform: 'translateY(200%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'61%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-3-big': {
'0%,30%': {
transform: 'translateY(500%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'60%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-4-big': {
'0%,31%': {
transform: 'translateY(500%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'61%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'press-3x': {
'0%,60%,70%,80%,100%': {
transform: 'translateX(0%) translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'65%,75%,85%': {
transform: 'translateX(10%) translateY(10%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'float-and-fade-1': {
'0%,64%': {
opacity: 0,
},
'65%': {
transform: 'translateY(0%)',
opacity: 1,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'80%,100%': {
transform: 'translateY(-150%)',
opacity: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'float-and-fade-2': {
'0%,74%': {
opacity: 0,
},
'75%': {
transform: 'translateY(0%)',
opacity: 1,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'90%,100%': {
transform: 'translateY(-150%)',
opacity: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'float-and-fade-3': {
'0%,84%': {
opacity: 0,
},
'85%': {
transform: 'translateY(0%)',
opacity: 1,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateY(-150%)',
opacity: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-in-4-grow': {
'0%,31%': {
transform: 'translateX(-250%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'61%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'80%': {
transform: 'scale(120%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'65%,95%,100%': {
transform: 'scale(100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-3-grow': {
'0%,30%': {
transform: 'translateY(100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'60%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'80%': {
transform: 'scale(120%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'65%,95%,100%': {
transform: 'scale(100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-out': {
'0%': {
transform: 'translateY(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateY(-100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-left-out': {
'0%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateX(-100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-right-out': {
'0%': {
transform: 'translateX(0%)',
opacity: 1,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateX(100%)',
opacity: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-right-in': {
'0%': {
transform: 'translateX(-100%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
transform: 'translateX(0%)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'fade-in': {
'0%': {
opacity: 0,
transform: 'translateY(8px)',
},
'100%': {
opacity: 1,
transform: 'translateY(0)',
},
},
'fade-out': {
'0%': {
opacity: 1,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
opacity: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'grow-up': {
'0%': {
height: 0,
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
height: '200px',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
'slide-up-and-fade': {
'0%': {
opacity: 0,
transform: 'translateY(4px)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
'100%': {
opacity: 1,
transform: 'translateY(0)',
transitionTimingFunction: 'cubic-bezier(1, 1, 0.8, 0)',
},
},
shake: {
'0%, 100%': {
transform: 'translateX(0)',
},
'10%, 30%, 50%, 70%, 90%': {
transform: 'translateX(-8px)',
},
'20%, 40%, 60%, 80%': {
transform: 'translateX(8px)',
},
},
'supporter-shimmer': {
'0%, 100%': {
opacity: 1,
transform: 'scale(1)',
filter: 'drop-shadow(0 0 2px rgba(245, 158, 11, 0.5))',
},
'50%': {
opacity: 0.85,
transform: 'scale(1.1)',
filter: 'drop-shadow(0 0 6px rgba(245, 158, 11, 0.8))',
},
},
},
animation: {
progress: 'progress linear forwards',
'bounce-left': 'bounce-left 0.8s',
'bounce-left-loop': 'bounce-left 0.8s infinite',
'bounce-right': 'bounce-right 0.7s',
'bounce-right-loop': 'bounce-right 0.7s infinite',
'slide-in-from-right': 'slide-in-from-right 0.1s',
'slide-in-1': 'slide-in-1 4s',
'slide-in-2': 'slide-in-2 4s',
'slide-in-3': 'slide-in-3 4s',
'slide-in-4': 'slide-in-4 4s',
'slide-up-1': 'slide-up-1 4s',
'slide-up-2': 'slide-up-2 4s',
'slide-up-3': 'slide-up-3 4s',
'slide-up-4': 'slide-up-4 4s',
'slide-up-3-big': 'slide-up-3-big 4s',
'slide-up-4-big': 'slide-up-4-big 4s',
'press-3x': 'press-3x 5s',
'float-and-fade-1': 'float-and-fade-1 5s',
'float-and-fade-2': 'float-and-fade-2 5s',
'float-and-fade-3': 'float-and-fade-3 5s',
'slide-in-4-grow': 'slide-in-4-grow 4s',
'slide-up-3-grow': 'slide-up-3-grow 4s',
'slide-up-out': 'slide-up-out 1s',
'slide-left-out': 'slide-left-out 1s',
'slide-right-out': 'slide-right-out 1s',
'slide-right-in': 'slide-right-in 1s',
'fade-in': 'fade-in 0.4s ease-out both',
'fade-out': 'fade-out 1s',
'grow-up': 'grow-up 1s',
'slide-up-and-fade': 'slide-up-and-fade 150ms',
shake: 'shake 0.5s ease-in-out',
'supporter-shimmer': 'supporter-shimmer 2s ease-in-out infinite',
},
colors: {
ink: {
0: 'rgb(var(--color-ink-0) / <alpha-value>)',
50: 'rgb(var(--color-ink-50) / <alpha-value>)',
100: 'rgb(var(--color-ink-100) / <alpha-value>)',
200: 'rgb(var(--color-ink-200) / <alpha-value>)',
300: 'rgb(var(--color-ink-300) / <alpha-value>)',
400: 'rgb(var(--color-ink-400) / <alpha-value>)',
500: 'rgb(var(--color-ink-500) / <alpha-value>)',
600: 'rgb(var(--color-ink-600) / <alpha-value>)',
700: 'rgb(var(--color-ink-700) / <alpha-value>)',
800: 'rgb(var(--color-ink-800) / <alpha-value>)',
900: 'rgb(var(--color-ink-900) / <alpha-value>)',
950: 'rgb(var(--color-ink-950) / <alpha-value>)',
1000: 'rgb(var(--color-ink-1000) / <alpha-value>)',
},
canvas: {
0: 'rgb(var(--color-canvas-0) / <alpha-value>)',
50: 'rgb(var(--color-canvas-50) / <alpha-value>)',
100: 'rgb(var(--color-canvas-100) / <alpha-value>)',
},
primary: {
50: 'rgb(var(--color-primary-50) / <alpha-value>)',
100: 'rgb(var(--color-primary-100) / <alpha-value>)',
200: 'rgb(var(--color-primary-200) / <alpha-value>)',
300: 'rgb(var(--color-primary-300) / <alpha-value>)',
400: 'rgb(var(--color-primary-400) / <alpha-value>)',
500: 'rgb(var(--color-primary-500) / <alpha-value>)',
600: 'rgb(var(--color-primary-600) / <alpha-value>)',
700: 'rgb(var(--color-primary-700) / <alpha-value>)',
800: 'rgb(var(--color-primary-800) / <alpha-value>)',
900: 'rgb(var(--color-primary-900) / <alpha-value>)',
950: 'rgb(var(--color-primary-950) / <alpha-value>)',
},
gray: {
50: 'hsl(240, 40%, 98%)',
100: 'hsl(235, 46%, 95%)',
200: 'hsl(236, 33%, 90%)',
300: 'hsl(238, 26%, 81%)',
400: 'hsl(238, 19%, 68%)',
500: 'hsl(240, 12%, 52%)',
600: 'hsl(240, 16%, 40%)',
700: 'hsl(240, 20%, 30%)',
800: 'hsl(240, 30%, 22%)',
900: 'hsl(242, 45%, 15%)',
950: 'hsl(243, 69%, 10%)',
},
azure: {
50: '#f3f6fb',
100: '#e4eaf5',
200: '#cedcef',
300: '#adc4e3',
400: '#86a6d4',
500: '#6989c8',
600: '#5671ba',
700: '#4a5fa8',
800: '#42508b',
900: '#39456f',
950: '#262c45',
},
sienna: {
50: '#fcf6e6',
100: '#faece9',
200: '#f4dad7',
300: '#ecbab5',
400: '#e0928c',
500: '#d16762',
600: '#c25555',
700: '#9d3336',
800: '#842d32',
900: '#712a30',
950: '#3e1316',
},
warning: '#F0D630',
error: '#E70D3D',
scarlet: {
50: 'rgb(var(--color-no-50) / <alpha-value>)',
100: 'rgb(var(--color-no-100) / <alpha-value>)',
200: 'rgb(var(--color-no-200) / <alpha-value>)',
300: 'rgb(var(--color-no-300) / <alpha-value>)',
400: 'rgb(var(--color-no-400) / <alpha-value>)',
500: 'rgb(var(--color-no-500) / <alpha-value>)',
600: 'rgb(var(--color-no-600) / <alpha-value>)',
700: 'rgb(var(--color-no-700) / <alpha-value>)',
800: 'rgb(var(--color-no-800) / <alpha-value>)',
900: 'rgb(var(--color-no-900) / <alpha-value>)',
950: 'rgb(var(--color-no-950) / <alpha-value>)',
},
teal: {
50: 'rgb(var(--color-yes-50) / <alpha-value>)',
100: 'rgb(var(--color-yes-100) / <alpha-value>)',
200: 'rgb(var(--color-yes-200) / <alpha-value>)',
300: 'rgb(var(--color-yes-300) / <alpha-value>)',
400: 'rgb(var(--color-yes-400) / <alpha-value>)',
500: 'rgb(var(--color-yes-500) / <alpha-value>)',
600: 'rgb(var(--color-yes-600) / <alpha-value>)',
700: 'rgb(var(--color-yes-700) / <alpha-value>)',
800: 'rgb(var(--color-yes-800) / <alpha-value>)',
900: 'rgb(var(--color-yes-900) / <alpha-value>)',
950: 'rgb(var(--color-yes-950) / <alpha-value>)',
},
},
// https://github.com/tailwindlabs/tailwindcss-typography?tab=readme-ov-file#customizing-the-css
typography: (theme) => ({
DEFAULT: {
css: {
h1: {
fontWeight: 600,
fontSize: '2em',
marginTop: '1.25em',
marginBottom: '0.5em',
},
h2: {
fontWeight: 600,
marginTop: '1.5em',
marginBottom: '0.5em',
},
h3: {
marginTop: '1.5em',
marginBottom: '0.5em',
},
code: {
fontWeight: 500,
},
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false,
'code::before': false,
'code::after': false,
'--tw-prose-bold': 'inherit',
'--tw-prose-invert-bold': 'inherit',
'--tw-prose-quote-borders': 'inherit',
'--tw-prose-invert-quote-borders': 'inherit',
'--tw-prose-code': theme('colors.red.700'),
'--tw-prose-invert-code': theme('colors.red.400'),
},
},
}),
fontSize: {
xxs: '0.625rem', // extra small font
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/container-queries'),
plugin(function ({ addUtilities }) {
addUtilities({
'.scrollbar-hide': {
/* IE and Edge */
'-ms-overflow-style': 'none',
/* Firefox */
'scrollbar-width': 'none',
/* Safari and Chrome */
'&::-webkit-scrollbar': {
display: 'none',
},
},
'.date-range-input-white': {
'&::-webkit-calendar-picker-indicator': {
filter: 'invert(1)',
},
},
'.break-anywhere': {
'overflow-wrap': 'anywhere',
'word-break': 'break-word', // for Safari
},
'.hide-video-cast-overlay': {
'&::-internal-media-controls-overlay-cast-button': {
display: 'none',
},
},
})
}),
],
future: {
hoverOnlyWhenSupported: true,
},
}