Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import './styles/variables.css'
import './styles/global.css'
import App from './App.tsx'

createRoot(document.getElementById('root')!).render(
Expand Down
Empty file added src/styles/global.css
Empty file.
61 changes: 61 additions & 0 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
:root {
/* Color palette */
--primary-color: #F0EDE7;
--secondary-color: #E0DFE4;
--accent-color: #C0D2F6;
--background-color: #ecf0f1;
--background-color-element: #F8F7F3;

/* Text colors */
--text-color: #101844;
--text-color-dark: #090F2F;
--text-color-light: #EAE0CF;

/* Font settings */
--font-family-title: 'Faustina', serif;
--font-family-text: 'Inter';
--font-size-page-title: 42px;
--font-size-element-title: 19px;
--font-size-row-title: 15px;

/* Box settings */
--corner-radius: 100px;
--box-color: #F0EDE7;
--box-stroke: #888394;
--box-shadow: 0 2px 5px rgba(3, 2, 2, 0.1);

/* D-value */
--background-color: #BDE981;
--border-color: var(--text-color);

/* This part was generate with the help of Gemini 2.5 Flash using the prompt:
"Create spacing variables and a dark mode colro pallette based on my previous design" */

/* Space settings */
--space-xs: 0.25rem; /* 4px - micro gaps (title to subtext) */
--space-sm: 0.5rem; /* 8px - small padding (chips, badges) */
--space-md: 1rem; /* 16px - default padding (inputs, row heights) */
--space-lg: 1.5rem; /* 24px - component gaps (between search & filters) */
--space-xl: 2.5rem; /* 40px - page section margins & outer padding */

/* Dark mode colors */
[data-theme="dark"] {
/* Main Layout Colors */
--background-color: #090F2F; /* Dark blue background */
--header-background: #101844; /* Slightly lighter blue for nav */
--element-background: #18225C; /* Inputs, dropdowns, table background */
--surface-selected: #253788; /* Row selection tint */

/* Text Colors */
--text-color-primary: #EAE0CF; /* Warm light text */
--text-color-secondary: #A0AEC0; /* Muted text for labels */
--text-color-on-dark: #090F2F; /* Inverted text for light buttons */

/* UI Components & Borders */
--border-color: #3B426B;
--border-subtle: #2A3363;
--badge-d-value-bg: #82C43C; /* Slightly deeper green for contrast */
--badge-d-value-text: #090F2F;

}
}