Centralize readable app theme colors
This commit is contained in:
parent
c136f01f2e
commit
3cf07d0e1b
@ -16,6 +16,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Responsive Design -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Responsive Design -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
@ -1,3 +1,57 @@
|
||||
/* App-wide theme tokens
|
||||
Keep Open Props' sizing/spacing, but pin semantic colors to a readable
|
||||
light theme so pages do not inherit low-contrast dark-mode surfaces. */
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--surface-1: #ffffff;
|
||||
--surface-2: #f8fafc;
|
||||
--surface-3: #eef2f7;
|
||||
--surface-4: #cbd5e1;
|
||||
--text-1: #17202a;
|
||||
--text-2: #3d4b5c;
|
||||
--muted-text: #64748b;
|
||||
--app-border: #cbd5e1;
|
||||
--app-focus: #3157d5;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--gray-0);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
button {
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
background: var(--surface-2);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
input[type="file"]::file-selector-button {
|
||||
border: 1px solid var(--app-border);
|
||||
border-radius: 6px;
|
||||
background: var(--surface-1);
|
||||
color: var(--text-1);
|
||||
padding: 0.35rem 0.7rem;
|
||||
margin-right: 0.75rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input[type="file"]::file-selector-button:hover {
|
||||
background: var(--surface-3);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
outline: 2px solid var(--app-focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Mobile-first approach */
|
||||
.map-container {
|
||||
height: 100vh;
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Responsive Design -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
|
||||
<style>
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Responsive Design -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
/>
|
||||
|
||||
<!-- Responsive Design -->
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<style>
|
||||
/* Use Open Props design tokens */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user