mirror of
https://github.com/arthur-pbty/qrcode.git
synced 2026-06-03 23:36:24 +02:00
162 lines
2.9 KiB
CSS
162 lines
2.9 KiB
CSS
@import "tailwindcss";
|
|
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
@theme inline {
|
|
--font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
|
|
--color-violet-50: #f5f3ff;
|
|
--color-violet-100: #ede9fe;
|
|
--color-violet-200: #ddd6fe;
|
|
--color-violet-300: #c4b5fd;
|
|
--color-violet-400: #a78bfa;
|
|
--color-violet-500: #8b5cf6;
|
|
--color-violet-600: #7c3aed;
|
|
--color-violet-700: #6d28d9;
|
|
--color-violet-800: #5b21b6;
|
|
--color-violet-900: #4c1d95;
|
|
--color-indigo-600: #4f46e5;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Custom animations */
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slide-down {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes scale-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.animate-fade-in {
|
|
animation: fade-in 0.3s ease-out;
|
|
}
|
|
|
|
.animate-slide-down {
|
|
animation: slide-down 0.3s ease-out;
|
|
}
|
|
|
|
.animate-scale-in {
|
|
animation: scale-in 0.2s ease-out;
|
|
}
|
|
|
|
/* Range slider styling */
|
|
input[type='range'] {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type='range']::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: #7c3aed;
|
|
cursor: pointer;
|
|
border: 3px solid white;
|
|
box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
input[type='range']::-webkit-slider-thumb:hover {
|
|
transform: scale(1.15);
|
|
}
|
|
|
|
input[type='range']::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: #7c3aed;
|
|
cursor: pointer;
|
|
border: 3px solid white;
|
|
box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
|
|
}
|
|
|
|
input[type='range']::-webkit-slider-runnable-track {
|
|
background: linear-gradient(to right, #7c3aed 0%, #e5e7eb 0%);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
:where(.dark) input[type='range']::-webkit-slider-runnable-track {
|
|
background: linear-gradient(to right, #7c3aed 0%, #374151 0%);
|
|
}
|
|
|
|
input[type='range']::-moz-range-track {
|
|
background: #e5e7eb;
|
|
border-radius: 999px;
|
|
height: 6px;
|
|
}
|
|
|
|
:where(.dark) input[type='range']::-moz-range-track {
|
|
background: #374151;
|
|
}
|
|
|
|
/* Checkbox styling */
|
|
input[type='checkbox'] {
|
|
accent-color: #7c3aed;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #d1d5db;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
:where(.dark) ::-webkit-scrollbar-thumb {
|
|
background: #374151;
|
|
}
|
|
|
|
/* Focus styles */
|
|
*:focus-visible {
|
|
outline: 2px solid #7c3aed;
|
|
outline-offset: 2px;
|
|
border-radius: 4px;
|
|
}
|