clipwright/dashboard/tailwind.config.js
juancarlos.cavero 3709d64085 feat(dashboard): make the app usable on a phone
The dashboard was a desktop layout that merely survived a narrow viewport.
The changes below are interface only; no backend behaviour, request shape or
data changes.

Navigation. Below md the 80px icon rail is gone. It cost a fifth of a 360px
screen to show seven unlabelled glyphs. In its place: a bottom tab bar with
the four everyday destinations plus "more", and a drawer behind the header's
menu button carrying the full list. All three surfaces read one `navItems`
array, so they cannot drift. The tab bar is a flex sibling of the scrolling
pane rather than a fixed overlay, so no pane needs compensating padding and
nothing hides behind it. The header gains the section name the rail used to
carry, so a phone still knows where it is.

Shell. h-dvh where supported (100vh hides its own bottom bar behind mobile
browser chrome), body overflow-x hidden, and safe-area padding for the iOS
home indicator via viewport-fit=cover.

Touch and legibility. Inputs render at 16px below sm so iOS stops zooming on
focus and never zooming back; the shared button pills get a 44px floor on
coarse pointers; the 10.5px mono labels come up to 11.5px on phones.

Density. The clip-generator hero no longer fills the fold on its own. The log
terminal starts collapsed on phones. Result cards cap the 9:16 preview so the
title, captions and actions stay on the same screen as the clip. Modals become
bottom sheets below sm — a centred dialog with 4px side margins was wasting the
only width there was. Banners, the results toolbar and the social nudge stack
instead of crushing.

Also fixes three <div>-inside-<p> blocks in Settings that the browser was
silently tearing apart.
2026-08-24 02:25:24 +02:00

75 lines
2.6 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
// Lumen · Night Foundry — values mirror tokens.css (kept literal so
// Tailwind alpha modifiers like bg-brass/10 compile)
paper: "oklch(13% 0.014 265 / <alpha-value>)",
paper2: "oklch(16.5% 0.015 265 / <alpha-value>)",
paper3: "oklch(20% 0.016 265 / <alpha-value>)",
ink: "oklch(96% 0.006 262 / <alpha-value>)",
ink2: "oklch(86% 0.01 262 / <alpha-value>)",
muted: "oklch(64% 0.012 262 / <alpha-value>)",
brass: "oklch(76% 0.17 50 / <alpha-value>)",
brassink: "oklch(17% 0.03 50 / <alpha-value>)",
coral: "oklch(68% 0.16 18 / <alpha-value>)",
ok: "oklch(75% 0.11 150 / <alpha-value>)",
warn: "oklch(78% 0.14 75 / <alpha-value>)",
danger: "oklch(66% 0.18 25 / <alpha-value>)",
// legacy aliases so untouched files degrade gracefully
background: "oklch(13% 0.014 265 / <alpha-value>)",
surface: "oklch(16.5% 0.015 265 / <alpha-value>)",
primary: "oklch(76% 0.17 50 / <alpha-value>)",
accent: "oklch(68% 0.16 18 / <alpha-value>)",
},
fontFamily: {
display: "var(--font-display)",
body: "var(--font-body)",
sans: "var(--font-body)",
serif: "var(--font-display)",
mono: "var(--font-mono)",
},
borderColor: {
rule: "var(--color-rule)",
rule2: "var(--color-rule-2)",
},
borderRadius: {
card: "var(--radius-card)",
input: "var(--radius-input)",
},
fontSize: {
micro: ["10.5px", { letterSpacing: "0.10em" }],
},
transitionTimingFunction: {
out: "var(--ease-out)",
},
animation: {
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'fade': 'fadeIn 0.4s var(--ease-out)',
// mobile shell: the nav drawer flies in from the edge, sheets rise
'slide-in-left': 'slideInLeft 0.24s var(--ease-out)',
'sheet-up': 'sheetUp 0.26s var(--ease-out)',
},
keyframes: {
fadeIn: {
from: { opacity: '0' },
to: { opacity: '1' },
},
slideInLeft: {
from: { transform: 'translateX(-100%)' },
to: { transform: 'translateX(0)' },
},
sheetUp: {
from: { transform: 'translateY(12px)', opacity: '0' },
to: { transform: 'translateY(0)', opacity: '1' },
},
},
},
},
plugins: [],
}