Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@
"license": "MIT",
"dependencies": {
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2"
"@tauri-apps/plugin-opener": "^2",
"carbon-components-svelte": "^0.99.0",
"carbon-icons-svelte": "^13.8.0",
"carbon-preprocess-svelte": "^0.11.23"
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tauri-apps/cli": "^2",
"@wdio/cli": "^9.19.0",
"@wdio/local-runner": "^9.19.0",
"@wdio/mocha-framework": "^9.19.0",
"@wdio/spec-reporter": "^9.19.0",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "~5.6.2",
"vite": "^6.0.3",
"@tauri-apps/cli": "^2"
"vite": "^6.0.3"
}
}
38 changes: 38 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

191 changes: 57 additions & 134 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,67 +1,10 @@
/* Global styles for Potasko */
/* Note: Most styling is handled by Carbon Design System */

:root {
/* Responsive breakpoints */
--mobile-breakpoint: 768px;
--touch-target-min: 44px;

/* Colors - Light mode */
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-hover: #f3f4f6;
--bg-selected: #e5e7eb;
--text-primary: #111827;
--text-secondary: #6b7280;
--border-color: #e5e7eb;
--accent-color: #3b82f6;
--error-color: #dc2626;

/* Priority colors - Light mode */
--priority-high-bg: #fee2e2;
--priority-high-text: #dc2626;
--priority-medium-bg: #fef3c7;
--priority-medium-text: #d97706;
--priority-low-bg: #dbeafe;
--priority-low-text: #2563eb;

/* Typography */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
font-size: 16px;
line-height: 1.5;
color: var(--text-primary);
background-color: var(--bg-primary);

/* Rendering */
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #1f2937;
--bg-secondary: #111827;
--bg-hover: #374151;
--bg-selected: #4b5563;
--text-primary: #f9fafb;
--text-secondary: #9ca3af;
--border-color: #374151;
--accent-color: #60a5fa;
--error-color: #f87171;

/* Priority colors - Dark mode */
--priority-high-bg: #7f1d1d;
--priority-high-text: #fca5a5;
--priority-medium-bg: #78350f;
--priority-medium-text: #fcd34d;
--priority-low-bg: #1e3a5f;
--priority-low-text: #93c5fd;
}
}
/* ============================================
Base Reset & Setup
============================================ */

/* Reset */
*,
*::before,
*::after {
Expand All @@ -78,79 +21,56 @@ body {
overflow: hidden;
}

/* Mobile drawer backdrop */
.backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 99;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.backdrop.visible {
opacity: 1;
pointer-events: auto;
}

/* Mobile header */
.mobile-header {
display: none;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
padding-top: calc(0.75rem + env(safe-area-inset-top, 0));
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
}
/* ============================================
Legacy Color Variables (fallbacks)
Used by components that haven't fully migrated
============================================ */

.mobile-header h1 {
font-size: 1.125rem;
font-weight: 600;
margin: 0;
}

.hamburger-btn {
display: flex;
align-items: center;
justify-content: center;
width: var(--touch-target-min);
height: var(--touch-target-min);
background: none;
border: none;
cursor: pointer;
color: var(--text-primary);
border-radius: 8px;
}

.hamburger-btn:hover {
background: var(--bg-hover);
}

.hamburger-btn svg {
width: 24px;
height: 24px;
}

@media (max-width: 768px) {
.mobile-header {
display: flex;
}

/* Safe area padding for mobile devices */
.safe-area-bottom {
padding-bottom: env(safe-area-inset-bottom, 0);
:root {
/* Fallback colors - Carbon tokens preferred */
--bg-primary: #ffffff;
--bg-secondary: #f4f4f4;
--bg-hover: #e8e8e8;
--text-primary: #161616;
--text-secondary: #525252;
--border-color: #e0e0e0;
--accent-color: #0f62fe;
--error-color: #da1e28;

/* Priority colors for task tags */
--priority-high-bg: #fff1f1;
--priority-high-text: #da1e28;
--priority-medium-bg: #fff8e1;
--priority-medium-text: #f1c21b;
--priority-low-bg: #e5f6ff;
--priority-low-text: #0043ce;
}

/* Dark mode fallbacks */
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #262626;
--bg-secondary: #161616;
--bg-hover: #393939;
--text-primary: #f4f4f4;
--text-secondary: #c6c6c6;
--border-color: #525252;
--accent-color: #78a9ff;
--error-color: #ff8389;

--priority-high-bg: #520408;
--priority-high-text: #ffb3b8;
--priority-medium-bg: #4a3000;
--priority-medium-text: #f1c21b;
--priority-low-bg: #002d5c;
--priority-low-text: #a6c8ff;
}
}

/* Focus styles */
:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
}
/* ============================================
Scrollbar Styling
============================================ */

/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
Expand All @@ -161,16 +81,19 @@ body {
}

::-webkit-scrollbar-thumb {
background: var(--border-color);
background: var(--cds-border-subtle, var(--border-color));
border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
background: var(--cds-text-secondary, var(--text-secondary));
}

/* Selection */
/* ============================================
Selection
============================================ */

::selection {
background: var(--accent-color);
color: white;
background: var(--cds-interactive, var(--accent-color));
color: var(--cds-text-on-color, white);
}
Loading
Loading