dataframe-gradio / src /app.css
akhaliq's picture
akhaliq HF Staff
Upload folder using huggingface_hub
61e6f10 verified
Raw
History Blame Contribute Delete
2.03 kB
:root {
--primary: #7c3aed;
--primary-dark: #5b21b6;
--bg-light: #f9fafb;
--bg-dark: #1f2937;
--text-light: #111827;
--text-dark: #f3f4f6;
--border-color: #e5e7eb;
--border-radius: 8px;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--bg-light);
color: var(--text-light);
line-height: 1.5;
transition: background-color 0.3s, color 0.3s;
}
body.dark {
background-color: var(--bg-dark);
color: var(--text-dark);
--border-color: #4b5563;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.card {
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
body.dark .card {
background: #374151;
}
.btn {
background: var(--primary);
color: white;
border: none;
border-radius: var(--border-radius);
padding: 0.5rem 1rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.btn:hover {
background: var(--primary-dark);
}
input, select {
padding: 0.5rem;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
background: white;
color: var(--text-light);
font-size: 1rem;
}
body.dark input,
body.dark select {
background: #4b5563;
color: var(--text-dark);
border-color: #6b7280;
}
.df-theme {
--gr-df-accent: var(--primary);
--gr-df-accent-soft: #ede9fe;
--gr-df-table-radius: var(--border-radius);
margin-top: 1rem;
}
body.dark .df-theme {
--gr-df-table-bg-even: #374151;
--gr-df-table-bg-odd: #1f2937;
--gr-df-table-border: #4b5563;
--gr-df-table-text: var(--text-dark);
--gr-df-accent-soft: #5b21b6;
}
@media (max-width: 768px) {
.card {
padding: 1rem;
}
.btn {
padding: 0.4rem 0.8rem;
font-size: 0.9rem;
}
}