Skip to content

Commit 442d07d

Browse files
authored
Merge pull request #342 from SolidOS/profileEditA11y
updated css var
2 parents 0de1050 + 58f4819 commit 442d07d

3 files changed

Lines changed: 43 additions & 7 deletions

File tree

src/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ window.onpopstate = function (_event: any) {
8484
)
8585
}
8686

87-
// It's not clear where this function is used, so unfortunately we cannot remove it:
88-
function dump (msg: string[]) {
89-
console.log(msg.slice(0, -1))
90-
}
91-
92-
global.dump = dump
93-
9487
export {
9588
versionInfo
9689
}

src/styles/themes/dark.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ html[data-theme="dark"] {
2525
--color-border-darker: #333;
2626
--color-border-light: #666;
2727
--color-border-pale: #555;
28+
--color-border-accent: #9999dd;
2829

2930
/* Status Colors */
3031
--color-selected-bg: #4a6e3a;
@@ -133,16 +134,23 @@ html[data-theme="dark"] {
133134
/* Spacing and Sizing */
134135
--spacing-tiny: 0.05em;
135136
--spacing-small: 0.1em;
137+
--spacing-xxxs: 0.2em;
138+
--spacing-xxs: 0.3em;
136139
--spacing-xs: 0.5rem;
137140
--spacing-sm: 0.75em;
141+
--spacing-btn: 0.7em;
138142
--spacing-base: 0.5em;
139143
--spacing-md: 1em;
140144
--spacing-lg: 1.5em;
141145
--spacing-xl: 2em;
142146
--spacing-2xl: 3em;
147+
--border-width-xthin: 0.05em;
148+
--border-width-sm: 0.1em;
143149
--border-width-thin: 1px;
144150
--border-width-medium: 2px;
145151
--border-width-bold: 5px;
152+
--border-radius-xs: 0.1em;
153+
--border-radius-sm: 0.2em;
146154
--border-radius-base: 0.5em;
147155
--border-radius-lg: 0.75em;
148156
--border-radius-full: 1em;
@@ -165,6 +173,12 @@ html[data-theme="dark"] {
165173
/* Shadows */
166174
--box-shadow: 0 2px 8px rgba(0,0,0,0.3);
167175
--box-shadow-sm: 0 1px 4px rgba(0,0,0,0.2);
176+
--box-shadow-active: 0 1px 2px rgba(124, 77, 255, 0.3);
177+
--box-shadow-focus: 0 0 0 5px rgba(124, 77, 255, 0.35);
178+
--box-shadow-hover: 0 2px 4px rgba(124, 77, 255, 0.3);
179+
--box-shadow-modal: 0 2px 10px rgba(0, 0, 0, 0.5);
180+
--box-shadow-overlay: 0 4px 24px rgba(0, 0, 0, 0.4);
181+
--box-shadow-popup: 0 0.5em 0.9em rgba(0, 0, 0, 0.4);
168182

169183
/* Accessibility */
170184
--min-touch-target: 44px;
@@ -178,15 +192,18 @@ html[data-theme="dark"] {
178192

179193
/* Overlay and Modal */
180194
--overlay-bg: rgba(0, 0, 0, 0.7);
195+
--overlay-bg-muted: rgba(0, 0, 0, 0.5);
181196
--z-index-modal: 9999;
182197
--z-index-skip-links: 1000;
183198

184199
/* Opacity */
185200
--opacity-disabled: 0.6;
201+
--opacity-input-disabled: 0.75;
186202

187203
/* Layout Values */
188204
--max-width-readable: 65ch;
189205
--max-width-readable-wide: 70ch;
206+
--grid-min-column: 30em;
190207

191208
/* Outline Offsets */
192209
--outline-offset-sm: 2px;

src/styles/themes/light.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
:root {
77
/* Background and Text */
88
--color-background: white;
9+
--color-background-row-default: white;
10+
--color-background-row-alternate: #f0f0f0;
911
--color-text: #1A1A1A;
1012
--color-text-secondary: #666;
1113
--color-text-light: #aaa;
@@ -25,6 +27,7 @@
2527
--color-border-darker: #444;
2628
--color-border-light: #aaa;
2729
--color-border-pale: #eee;
30+
--color-border-accent: #88c;
2831

2932
/* Status Colors */
3033
--color-selected-bg: #8F3;
@@ -134,20 +137,34 @@
134137
/* Spacing and Sizing */
135138
--spacing-tiny: 0.05em;
136139
--spacing-small: 0.1em;
140+
--spacing-xxxs: 0.2em;
141+
--spacing-xxs: 0.3em;
137142
--spacing-xs: 0.5rem;
138143
--spacing-sm: 0.75em;
144+
--spacing-btn: 0.7em;
139145
--spacing-base: 0.5em;
140146
--spacing-md: 1em;
141147
--spacing-lg: 1.5em;
142148
--spacing-xl: 2em;
143149
--spacing-2xl: 3em;
150+
--border-width-xthin: 0.05em;
151+
--border-width-sm: 0.1em;
144152
--border-width-thin: 1px;
145153
--border-width-medium: 2px;
146154
--border-width-bold: 5px;
155+
--border-radius-xs: 0.1em;
156+
--border-radius-sm: 0.2em;
147157
--border-radius-base: 0.5em;
148158
--border-radius-lg: 0.75em;
149159
--border-radius-full: 1em;
150160

161+
/* icons */
162+
--icon-xxs: 1em;
163+
--icon-xs: 1.5em;
164+
--icon-sm: 1.8em;
165+
--icon-base: 2em;
166+
--icon-xl: 3.1em;
167+
151168
/* Primary/Accent Colors */
152169
--color-primary: #7C4DFF;
153170
--color-primary-alpha: rgba(124, 77, 255, 0.25);
@@ -166,6 +183,12 @@
166183
/* Shadows */
167184
--box-shadow: 0 2px 8px rgba(124,77,255,0.08);
168185
--box-shadow-sm: 0 1px 4px rgba(124,77,255,0.12);
186+
--box-shadow-active: 0 1px 2px rgba(124, 77, 255, 0.2);
187+
--box-shadow-focus: 0 0 0 5px rgba(124, 77, 255, 0.25);
188+
--box-shadow-hover: 0 2px 4px rgba(124, 77, 255, 0.2);
189+
--box-shadow-modal: 0 2px 10px rgba(0, 0, 0, 0.3);
190+
--box-shadow-overlay: 0 4px 24px rgba(0, 0, 0, 0.2);
191+
--box-shadow-popup: 0 0.5em 0.9em rgba(0, 0, 0, 0.2);
169192

170193
/* Accessibility */
171194
--min-touch-target: 44px;
@@ -179,15 +202,18 @@
179202

180203
/* Overlay and Modal */
181204
--overlay-bg: rgba(0, 0, 0, 0.5);
205+
--overlay-bg-muted: rgba(0, 0, 0, 0.3);
182206
--z-index-modal: 9999;
183207
--z-index-skip-links: 1000;
184208

185209
/* Opacity */
186210
--opacity-disabled: 0.6;
211+
--opacity-input-disabled: 0.75;
187212

188213
/* Layout Values */
189214
--max-width-readable: 65ch;
190215
--max-width-readable-wide: 70ch;
216+
--grid-min-column: 30em;
191217

192218
/* Outline Offsets */
193219
--outline-offset-sm: 2px;

0 commit comments

Comments
 (0)