Skip to content

Commit 43d7d89

Browse files
author
Daniel Dunn
committed
Readme, h min and max
1 parent 476d4a9 commit 43d7d89

File tree

2 files changed

+40
-18
lines changed

2 files changed

+40
-18
lines changed

README.md

+32-18
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ Make a link look like it's a button.
111111
All child paragraphs have centered text and preserved white space, display centered, generally make
112112
a pre look nice for poetry.
113113

114+
### led led-red
115+
116+
Use this on a checkbox type input to make an inducator LED. Available colors
117+
are red, yellow, green, blue, cyan, purple
118+
114119
## Utilities
115120

116121
### .round-feathered
@@ -291,15 +296,16 @@ Note that the base color definitinons change in dark theme.
291296
--grey-2: #f1f1f1;
292297
--grey-3: #F8F9FA;
293298

294-
--red: #b92020;
295-
--yellow: #cea916;
299+
--red: #e03131;
300+
--yellow: #ffd43b;
296301
--green: rgb(0, 158, 0);
297-
--teal: rgb(116 174 174);
298-
--blue: rgb(95 111 161);
299-
--purple: rgb(161, 95, 141);
300-
302+
--teal: rgb(102, 190, 179);
303+
--blue: rgb(81, 104, 173);
304+
--purple: rgb(182, 80, 151);
301305
--dark-blue: rgb(40 55 102);
302306

307+
308+
303309
--scrollbar-width: 14px;
304310

305311
/*Text color*/
@@ -317,13 +323,15 @@ Note that the base color definitinons change in dark theme.
317323

318324
/*typography*/
319325

320-
--sans-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
326+
--sans-font: font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
321327
--serif-font: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
322328
--mono-font: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
323329

324330
--main-font: var(--sans-font);
325331
--font-size: 18px;
332+
--line-height: calc(2px + 18px + 2px + 4px);
326333
--heading-font: var(--main-font);
334+
--control-font: var(--main-font);
327335

328336
/*Spacing*/
329337
--padding: 12px;
@@ -346,23 +354,30 @@ Note that the base color definitinons change in dark theme.
346354
--control-fg: var(--graphical-fg);
347355

348356

349-
--3d-highlight: color-mix(in srgb, var(--control-bg) 25%, rgba(241, 241, 241, 100%));
350-
--3d-shadow: color-mix(in srgb, var(--control-bg) 98%, rgba(0, 0, 0, 100%));
357+
/*Used for the convex and concave*/
358+
--3d-highlight: color-mix(in srgb, var(--control-bg) 62%, rgba(241, 241, 241, 100%));
359+
--3d-shadow: color-mix(in srgb, var(--control-bg) 96%, rgba(0, 0, 0, 100%));
360+
361+
/*Concave than convex BG needs to be less intense than other shadows
362+
because we stack it with the inset shadow
363+
Also, we usually don't want it to be that extremely concave
364+
*/
365+
--concave-shadow: color-mix(in srgb, var(--3d-shadow) 40%, var(--control-bg));
366+
--concave-highlight: color-mix(in srgb, var(--3d-highlight) 60%, var(--control-bg));
351367

352-
--concave-item-bg: linear-gradient(180deg, var(--3d-shadow) 3%, var(--3d-highlight) 45%);
353-
--convex-item-bg: linear-gradient(180deg, var(--3d-highlight) 0%, var(--3d-shadow) 96%);
354-
--convex-item-active-bg: var(--concave-item-bg);
355-
--concave-item-box-shadow: inset 0px 0px 4px 2px #38383815;
368+
--concave-item-bg: linear-gradient(180deg, var(--concave-shadow) 4px, var(--concave-highlight) 43%);
369+
--convex-item-bg: linear-gradient(180deg, var(--concave-highlight) 0%, var(--concave-shadow) 96%);
370+
--convex-item-active-bg: linear-gradient(180deg, color-mix(in srgb, var(--concave-shadow) 90%, var(--control-fg)) 3%, color-mix(in srgb, var(--3d-highlight) 90%, var(--control-fg)) 45%);
371+
--concave-item-box-shadow: inset 0px 0px 4px 2px color-mix(in srgb, var(--fg) 7%, transparent);
356372

357373

358374
/*Used for headers, trays, and anything smaller than a box and bigger than a button*/
359375
--alt-control-bg: color-mix(in srgb, var(--control-bg) 90%, #816e23);
360376
/*#e1dfd7*/
361377

362-
--window-box-shadow: none;
363-
378+
--window-box-shadow: rgb(0 0 0 / 15%) 1px 5px 12px -3px;
364379
/*Used for tool bars and cards*/
365-
--item-box-shadow: none;
380+
--item-box-shadow: 1px 2px 8px -3px rgba(0, 0, 0, 0.1);
366381

367382
/*Below this line you probably don't need to change stuff*/
368383
/* fg color for warning and danger */
@@ -371,7 +386,7 @@ Note that the base color definitinons change in dark theme.
371386
--warning-color: var(--yellow);
372387
--danger-color: var(--red);
373388

374-
--hover-color: color-mix(in srgb, var(--highlight-color) 30%, transparent);
389+
--hover-color: color-mix(in srgb, var(--highlight-color) 30%, var(--control-bg));
375390

376391
--control-border-color: color-mix(in srgb, var(--graphical-fg) 35%, rgb(0 0 0 / 0%));
377392

@@ -385,7 +400,6 @@ Note that the base color definitinons change in dark theme.
385400
--heading-text-shadow: none;
386401
--control-text-shadow: none;
387402
--slider-thumb: var(--convex-item-bg);
388-
}
389403
```
390404

391405
## The Color System

css/barrel.css

+8
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,14 @@ A little smaller in flex to allow for expansion or fitting lots on a row*/
16021602
height: min-content;
16031603
}
16041604

1605+
.h-max-content {
1606+
height: min-content;
1607+
}
1608+
1609+
.h-fit-content {
1610+
height: min-content;
1611+
}
1612+
16051613
.flex-col,
16061614
.stacked-form {
16071615
&>.h-1rem {

0 commit comments

Comments
 (0)