diff --git a/public/index.html b/public/index.html
index bf242dc..4edd463 100644
--- a/public/index.html
+++ b/public/index.html
@@ -10,8 +10,13 @@
:root {
--primary-color: #3B82F6;
+ --secondary-color: #2563EB;
--background-color: #FAFAFA;
--card-background: #FFFFFF;
+ --text-primary: #111827;
+ --text-secondary: #4B5563;
+ --text-muted: #6B7280;
+ --border-color: #E5E7EB;
}
* {
@@ -23,10 +28,53 @@
body {
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.5;
- color: #111827;
+ color: var(--text-primary);
background-color: var(--background-color);
}
+ /* Layout */
+ .container {
+ width: 100%;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 1rem;
+ }
+
+ aside {
+ position: fixed;
+ left: 0;
+ top: 0;
+ height: 100%;
+ width: 16rem;
+ background-color: white;
+ border-right: 1px solid var(--border-color);
+ overflow-y: auto;
+ z-index: 10;
+ }
+
+ main {
+ margin-left: 16rem;
+ padding: 2rem;
+ }
+
+ /* Typography */
+ h1, h2, h3, h4, h5, h6 {
+ font-weight: 700;
+ line-height: 1.2;
+ }
+
+ h1 {
+ font-size: 1.5rem;
+ }
+
+ h2 {
+ font-size: 1.25rem;
+ }
+
+ h3 {
+ font-size: 1.125rem;
+ }
+
/* Utility classes */
.hidden {
display: none !important;
@@ -64,202 +112,219 @@
font-size: 0.875rem;
}
- .mb-1 {
- margin-bottom: 0.25rem;
- }
+ /* Margin & Padding */
+ .m-0 { margin: 0; }
+ .m-1 { margin: 0.25rem; }
+ .m-2 { margin: 0.5rem; }
+ .m-4 { margin: 1rem; }
+ .m-6 { margin: 1.5rem; }
+ .m-8 { margin: 2rem; }
- .mb-4 {
- margin-bottom: 1rem;
- }
+ .mt-1 { margin-top: 0.25rem; }
+ .mt-2 { margin-top: 0.5rem; }
+ .mt-4 { margin-top: 1rem; }
+ .mt-6 { margin-top: 1.5rem; }
+ .mt-8 { margin-top: 2rem; }
- .mb-6 {
- margin-bottom: 1.5rem;
- }
+ .mb-1 { margin-bottom: 0.25rem; }
+ .mb-2 { margin-bottom: 0.5rem; }
+ .mb-4 { margin-bottom: 1rem; }
+ .mb-6 { margin-bottom: 1.5rem; }
+ .mb-8 { margin-bottom: 2rem; }
- .mb-8 {
- margin-bottom: 2rem;
- }
+ .ml-1 { margin-left: 0.25rem; }
+ .ml-2 { margin-left: 0.5rem; }
+ .ml-4 { margin-left: 1rem; }
+ .ml-6 { margin-left: 1.5rem; }
+ .ml-8 { margin-left: 2rem; }
+ .ml-auto { margin-left: auto; }
- .ml-2 {
- margin-left: 0.5rem;
- }
+ .mr-1 { margin-right: 0.25rem; }
+ .mr-2 { margin-right: 0.5rem; }
+ .mr-4 { margin-right: 1rem; }
+ .mr-6 { margin-right: 1.5rem; }
+ .mr-8 { margin-right: 2rem; }
+ .mr-auto { margin-right: auto; }
- .ml-4 {
- margin-left: 1rem;
- }
+ .mx-auto { margin-left: auto; margin-right: auto; }
+ .my-4 { margin-top: 1rem; margin-bottom: 1rem; }
- .ml-auto {
- margin-left: auto;
- }
+ .p-1 { padding: 0.25rem; }
+ .p-2 { padding: 0.5rem; }
+ .p-4 { padding: 1rem; }
+ .p-6 { padding: 1.5rem; }
+ .p-8 { padding: 2rem; }
- .p-1 {
- padding: 0.25rem;
- }
+ .px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
+ .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
+ .px-4 { padding-left: 1rem; padding-right: 1rem; }
+ .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
+ .px-8 { padding-left: 2rem; padding-right: 2rem; }
- .p-2 {
- padding: 0.5rem;
- }
+ .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
+ .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
+ .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
+ .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
+ .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
- .p-4 {
- padding: 1rem;
- }
+ .pt-1 { padding-top: 0.25rem; }
+ .pt-2 { padding-top: 0.5rem; }
+ .pt-4 { padding-top: 1rem; }
+ .pt-6 { padding-top: 1.5rem; }
+ .pt-8 { padding-top: 2rem; }
- .p-6 {
- padding: 1.5rem;
- }
+ .pb-1 { padding-bottom: 0.25rem; }
+ .pb-2 { padding-bottom: 0.5rem; }
+ .pb-4 { padding-bottom: 1rem; }
+ .pb-6 { padding-bottom: 1.5rem; }
+ .pb-8 { padding-bottom: 2rem; }
- .p-8 {
- padding: 2rem;
- }
+ .pl-1 { padding-left: 0.25rem; }
+ .pl-2 { padding-left: 0.5rem; }
+ .pl-4 { padding-left: 1rem; }
+ .pl-6 { padding-left: 1.5rem; }
+ .pl-8 { padding-left: 2rem; }
+ .pl-8 { padding-left: 8rem; }
- .px-4 {
- padding-left: 1rem;
- padding-right: 1rem;
- }
+ .pr-1 { padding-right: 0.25rem; }
+ .pr-2 { padding-right: 0.5rem; }
+ .pr-4 { padding-right: 1rem; }
+ .pr-6 { padding-right: 1.5rem; }
+ .pr-8 { padding-right: 2rem; }
- .py-2 {
- padding-top: 0.5rem;
- padding-bottom: 0.5rem;
- }
+ /* Flex & Grid */
+ .flex { display: flex; }
+ .inline-flex { display: inline-flex; }
+ .flex-col { flex-direction: column; }
+ .flex-row { flex-direction: row; }
+ .flex-wrap { flex-wrap: wrap; }
+ .flex-nowrap { flex-wrap: nowrap; }
+ .flex-1 { flex: 1 1 0%; }
+ .flex-auto { flex: 1 1 auto; }
+ .flex-initial { flex: 0 1 auto; }
+ .flex-none { flex: none; }
+ .flex-grow { flex-grow: 1; }
+ .flex-shrink { flex-shrink: 1; }
+ .flex-grow-0 { flex-grow: 0; }
+ .flex-shrink-0 { flex-shrink: 0; }
- .pt-4 {
- padding-top: 1rem;
- }
+ .items-start { align-items: flex-start; }
+ .items-end { align-items: flex-end; }
+ .items-center { align-items: center; }
+ .items-baseline { align-items: baseline; }
+ .items-stretch { align-items: stretch; }
- .rounded {
- border-radius: 0.25rem;
- }
+ .justify-start { justify-content: flex-start; }
+ .justify-end { justify-content: flex-end; }
+ .justify-center { justify-content: center; }
+ .justify-between { justify-content: space-between; }
+ .justify-around { justify-content: space-around; }
+ .justify-evenly { justify-content: space-evenly; }
- .rounded-lg {
- border-radius: 0.5rem;
- }
+ .grid { display: grid; }
+ .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
+ .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+ .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
+ .gap-1 { gap: 0.25rem; }
+ .gap-2 { gap: 0.5rem; }
+ .gap-4 { gap: 1rem; }
+ .gap-6 { gap: 1.5rem; }
+ .gap-8 { gap: 2rem; }
- .rounded-full {
- border-radius: 9999px;
- }
+ /* Spacing */
+ .space-y-1 > * + * { margin-top: 0.25rem; }
+ .space-y-2 > * + * { margin-top: 0.5rem; }
+ .space-y-4 > * + * { margin-top: 1rem; }
+ .space-y-6 > * + * { margin-top: 1.5rem; }
+ .space-y-8 > * + * { margin-top: 2rem; }
- .border {
- border: 1px solid #E5E7EB;
- }
+ .space-x-1 > * + * { margin-left: 0.25rem; }
+ .space-x-2 > * + * { margin-left: 0.5rem; }
+ .space-x-4 > * + * { margin-left: 1rem; }
+ .space-x-6 > * + * { margin-left: 1.5rem; }
+ .space-x-8 > * + * { margin-left: 2rem; }
- .border-t {
- border-top: 1px solid #E5E7EB;
- }
+ /* Sizing */
+ .w-full { width: 100%; }
+ .w-auto { width: auto; }
+ .w-96 { width: 24rem; }
+ .w-64 { width: 16rem; }
+ .w-48 { width: 12rem; }
+ .w-32 { width: 8rem; }
+ .w-24 { width: 6rem; }
+ .w-16 { width: 4rem; }
+ .w-8 { width: 2rem; }
+ .w-4 { width: 1rem; }
+ .w-2 { width: 0.5rem; }
+ .w-1 { width: 0.25rem; }
- .border-r {
- border-right: 1px solid #E5E7EB;
- }
+ .h-full { height: 100%; }
+ .h-auto { height: auto; }
+ .h-screen { height: 100vh; }
+ .h-96 { height: 24rem; }
+ .h-64 { height: 16rem; }
+ .h-48 { height: 12rem; }
+ .h-32 { height: 8rem; }
+ .h-24 { height: 6rem; }
+ .h-16 { height: 4rem; }
+ .h-8 { height: 2rem; }
+ .h-4 { height: 1rem; }
+ .h-2 { height: 0.5rem; }
+ .h-1 { height: 0.25rem; }
- .shadow-md {
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
- }
+ .min-h-screen { min-height: 100vh; }
+ .min-h-\[200px\] { min-height: 200px; }
+ .max-w-4xl { max-width: 56rem; }
- .shadow-sm {
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
- }
+ /* Positioning */
+ .relative { position: relative; }
+ .absolute { position: absolute; }
+ .fixed { position: fixed; }
+ .sticky { position: sticky; }
+ .static { position: static; }
- .w-full {
- width: 100%;
- }
+ .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
+ .top-0 { top: 0; }
+ .right-0 { right: 0; }
+ .bottom-0 { bottom: 0; }
+ .left-0 { left: 0; }
+ .top-2 { top: 0.5rem; }
+ .right-2 { right: 0.5rem; }
+ .bottom-2 { bottom: 0.5rem; }
+ .left-2 { left: 0.5rem; }
+ .top-2\.5 { top: 0.625rem; }
- .w-96 {
- width: 24rem;
- }
+ /* Borders & Shadows */
+ .rounded { border-radius: 0.25rem; }
+ .rounded-md { border-radius: 0.375rem; }
+ .rounded-lg { border-radius: 0.5rem; }
+ .rounded-full { border-radius: 9999px; }
- .w-64 {
- width: 16rem;
- }
+ .border { border: 1px solid var(--border-color); }
+ .border-t { border-top: 1px solid var(--border-color); }
+ .border-r { border-right: 1px solid var(--border-color); }
+ .border-b { border-bottom: 1px solid var(--border-color); }
+ .border-l { border-left: 1px solid var(--border-color); }
+ .border-none { border: none; }
- .w-4 {
- width: 1rem;
- }
+ .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
+ .shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
+ .shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
+ .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
- .h-4 {
- height: 1rem;
- }
+ /* Text & Colors */
+ .text-white { color: white; }
+ .text-gray-400 { color: #9CA3AF; }
+ .text-gray-500 { color: #6B7280; }
+ .text-gray-600 { color: #4B5563; }
+ .text-gray-900 { color: #111827; }
+ .text-red-600 { color: #DC2626; }
+ .text-blue-600 { color: #2563EB; }
- .min-h-screen {
- min-height: 100vh;
- }
-
- .min-h-\[200px\] {
- min-height: 200px;
- }
-
- .flex {
- display: flex;
- }
-
- .grid {
- display: grid;
- }
-
- .grid-cols-4 {
- grid-template-columns: repeat(4, minmax(0, 1fr));
- }
-
- .gap-4 {
- gap: 1rem;
- }
-
- .space-y-2 > * + * {
- margin-top: 0.5rem;
- }
-
- .space-y-4 > * + * {
- margin-top: 1rem;
- }
-
- .space-x-4 > * + * {
- margin-left: 1rem;
- }
-
- .items-center {
- align-items: center;
- }
-
- .justify-center {
- justify-content: center;
- }
-
- .justify-between {
- justify-content: space-between;
- }
-
- .fixed {
- position: fixed;
- }
-
- .absolute {
- position: absolute;
- }
-
- .relative {
- position: relative;
- }
-
- .inset-0 {
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- }
-
- .left-0 {
- left: 0;
- }
-
- .top-0 {
- top: 0;
- }
-
- .left-2 {
- left: 0.5rem;
- }
-
- .top-2\.5 {
- top: 0.625rem;
- }
+ .bg-opacity-50 { --tw-bg-opacity: 0.5; }
+ .bg-black { background-color: black; }
+ .bg-blue-600 { background-color: #2563EB; }
.truncate {
overflow: hidden;
@@ -267,62 +332,18 @@
white-space: nowrap;
}
- .overflow-y-auto {
- overflow-y: auto;
- }
+ .overflow-hidden { overflow: hidden; }
+ .overflow-y-auto { overflow-y: auto; }
+ .overflow-x-hidden { overflow-x: hidden; }
- .bg-opacity-50 {
- --tw-bg-opacity: 0.5;
- }
-
- .text-gray-400 {
- color: #9CA3AF;
- }
-
- .text-gray-500 {
- color: #6B7280;
- }
-
- .text-gray-600 {
- color: #4B5563;
- }
-
- .text-gray-900 {
- color: #111827;
- }
-
- .text-white {
- color: white;
- }
-
- .text-red-600 {
- color: #DC2626;
- }
-
- .text-blue-600 {
- color: #2563EB;
- }
-
- .hover\:bg-gray-100:hover {
- background-color: #F3F4F6;
- }
-
- .hover\:text-gray-900:hover {
- color: #111827;
- }
-
- .hover\:text-red-600:hover {
- color: #DC2626;
- }
-
- .focus\:outline-none:focus {
- outline: none;
- }
+ /* Hover & Focus states */
+ .hover\:bg-gray-100:hover { background-color: #F3F4F6; }
+ .hover\:text-gray-900:hover { color: #111827; }
+ .hover\:text-red-600:hover { color: #DC2626; }
+ .focus\:outline-none:focus { outline: none; }
/* Transitions */
- .transition {
- transition: all 200ms ease-in-out;
- }
+ .transition { transition: all 200ms ease-in-out; }
/* Form elements */
input[type="text"],
@@ -330,7 +351,7 @@
textarea {
width: 100%;
padding: 0.5rem 0.75rem;
- border: 1px solid #E5E7EB;
+ border: 1px solid var(--border-color);
border-radius: 0.375rem;
background-color: white;
}
@@ -340,7 +361,7 @@
textarea:focus {
outline: none;
border-color: var(--primary-color);
- ring: 2px var(--primary-color);
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
/* Buttons */
@@ -349,11 +370,15 @@
}
.btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
font-weight: 500;
cursor: pointer;
transition: all 200ms;
+ border: none;
}
.btn-primary {
@@ -362,7 +387,33 @@
}
.btn-primary:hover {
- background-color: #2563EB;
+ background-color: var(--secondary-color);
+ }
+
+ .btn-secondary {
+ background-color: #E5E7EB;
+ color: #4B5563;
+ }
+
+ .btn-secondary:hover {
+ background-color: #D1D5DB;
+ }
+
+ .btn-danger {
+ background-color: #EF4444;
+ color: white;
+ }
+
+ .btn-danger:hover {
+ background-color: #DC2626;
+ }
+
+ .btn-icon {
+ padding: 0.5rem;
+ border-radius: 9999px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
}
/* Note item in sidebar */
@@ -450,23 +501,6 @@
animation: fadeIn 200ms ease-in-out;
}
- /* Layout */
- aside {
- position: fixed;
- left: 0;
- top: 0;
- height: 100%;
- width: 16rem;
- background-color: white;
- border-right: 1px solid #E5E7EB;
- overflow-y: auto;
- }
-
- main {
- margin-left: 16rem;
- padding: 2rem;
- }
-
/* Responsive adjustments */
@media (max-width: 768px) {
aside {
@@ -482,6 +516,20 @@
.note-editor {
margin: 1rem;
}
+
+ .grid-cols-4 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+ }
+
+ @media (max-width: 480px) {
+ .grid-cols-4 {
+ grid-template-columns: repeat(1, minmax(0, 1fr));
+ }
+
+ .w-96 {
+ width: 100%;
+ }
}
@@ -499,7 +547,7 @@
-