Fix light/dark mode for TW v4

pull/297/head
Alex Kern 5 months ago
parent 8ea276d2df
commit 51067dc65b
No known key found for this signature in database
GPG Key ID: EF051FACCACBEE25

@ -38,10 +38,6 @@ function InitialState({
<PageWrapper> <PageWrapper>
<div className="flex flex-col items-center space-y-1 max-w-md"> <div className="flex flex-col items-center space-y-1 max-w-md">
<TitleText>Peer-to-peer file transfers in your browser.</TitleText> <TitleText>Peer-to-peer file transfers in your browser.</TitleText>
<SubtitleText>
Leave this tab openFilePizza is peer to peer and never stores your
files.
</SubtitleText>
</div> </div>
<DropZone onDrop={onDrop} /> <DropZone onDrop={onDrop} />
<TermsAcceptance /> <TermsAcceptance />
@ -110,6 +106,9 @@ function UploadingState({
<TitleText> <TitleText>
You are uploading {pluralize(uploadedFiles.length, 'file', 'files')}. You are uploading {pluralize(uploadedFiles.length, 'file', 'files')}.
</TitleText> </TitleText>
<SubtitleText>
Leave this tab open. FilePizza does not store files.
</SubtitleText>
<UploadFileList files={fileListData} /> <UploadFileList files={fileListData} />
<WebRTCPeerProvider> <WebRTCPeerProvider>
<Uploader files={uploadedFiles} password={password} onStop={onStop} /> <Uploader files={uploadedFiles} password={password} onStop={onStop} />

@ -1,5 +1,11 @@
@import 'tailwindcss'; @import 'tailwindcss';
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--animate-spin-slow: spin 16s linear infinite;
}
html { html {
height: 100dvh; height: 100dvh;
} }
@ -12,4 +18,4 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100dvh; height: 100dvh;
} }

@ -1,13 +0,0 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
animation: {
'spin-slow': 'spin 16s linear infinite',
},
},
},
plugins: [],
darkMode: 'class',
}
Loading…
Cancel
Save