Skip to content

Commit

Permalink
update UI colors and add shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
thisanimus committed Aug 25, 2023
1 parent b53d88c commit a90518b
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 29 deletions.
1 change: 1 addition & 0 deletions assets/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.15em;
font-size: 1rem;
}
.layout {
max-width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/baselayer-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/baselayer-light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/baselayer.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ <h2>Radio</h2>
<h2>Basic Form</h2>
<div class="form-row">
<label>First Name* <input id="firstName" name="firstName" placeholder="Jane" required=""
type="text"></label> <label for="last_name">Last Name* <input id="lastName" name="lastName"
type="text"></label> <label for="lastName">Last Name* <input id="lastName" name="lastName"
placeholder="Smith" required="" type="text"></label>
</div>
<div class="form-row">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baselayer.css",
"version": "1.0.32",
"version": "1.0.33",
"description": "A solid, minimal CSS framework.",
"main": "index.html",
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions src/_color-mode-auto.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
:root {
color-scheme: light dark;
--color-text-muted: #5c6a70;
--color-text-muted: #5c6770;
--color-text: var(--color-dark);
--color-text-intense: var(--color-dark-intentse);

--color-ui-intense: hsla(206, 5%, 25%, 0.5);
--color-ui: hsla(206, 5%, 25%, 0.3);
--color-ui-muted: hsla(206, 5%, 25%, 0.1);
--color-ui-intense: #9da7af;
--color-ui: #b9c0c6;
--color-ui-muted: #d6dade;

--color-background-muted: var(--color-light-muted);
--color-background: var(--color-light);
Expand All @@ -24,13 +24,13 @@

@media (prefers-color-scheme: dark) {
:root {
--color-text-muted: #657176;
--color-text-muted: #818d98;
--color-text: var(--color-light);
--color-text-intense: var(--color-light-intentse);

--color-ui-intense: hsla(206, 5%, 75%, 0.5);
--color-ui: hsla(206, 5%, 75%, 0.3);
--color-ui-muted: hsla(206, 5%, 75%, 0.1);
--color-ui-intense: #67747e;
--color-ui: #454d54;
--color-ui-muted: #2e3338;

--color-background-muted: var(--color-dark-muted);
--color-background: var(--color-dark);
Expand Down
13 changes: 9 additions & 4 deletions src/_color-mode-dark.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
:root {
--color-text-muted: #657176;
color-scheme: dark;
--color-text-muted: #818d98;
--color-text: var(--color-light);
--color-text-intense: var(--color-light-intentse);

--color-ui-intense: hsla(206, 5%, 75%, 0.5);
--color-ui: hsla(206, 5%, 75%, 0.3);
--color-ui-muted: hsla(206, 5%, 75%, 0.1);
--color-ui-intense: #67747e;
--color-ui: #454d54;
--color-ui-muted: #2e3338;

--color-background-muted: var(--color-dark-muted);
--color-background: var(--color-dark);
Expand All @@ -15,4 +16,8 @@
--color-link-default: #64b5f6;
--color-link-hover: #bbdefb;
--color-link-visited: #ce93d8;

--color-shadow-intense: rgba(0, 0, 0, 0.3);
--color-shadow: rgba(0, 0, 0, 0.2);
--color-shadow-muted: rgba(0, 0, 0, 0.1);
}
12 changes: 8 additions & 4 deletions src/_color-mode-light.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
:root {
color-scheme: light;
--color-text-muted: #5c6a70;
--color-text-muted: #5c6770;
--color-text: var(--color-dark);
--color-text-intense: var(--color-dark-intentse);

--color-ui-intense: hsla(206, 5%, 25%, 0.5);
--color-ui: hsla(206, 5%, 25%, 0.3);
--color-ui-muted: hsla(206, 5%, 25%, 0.1);
--color-ui-intense: #9da7af;
--color-ui: #b9c0c6;
--color-ui-muted: #d6dade;

--color-background-muted: var(--color-light-muted);
--color-background: var(--color-light);
Expand All @@ -16,4 +16,8 @@
--color-link-default: #1565c0;
--color-link-hover: #0d47a1;
--color-link-visited: #7b1fa2;

--color-shadow-intense: rgba(0, 0, 0, 0.2);
--color-shadow: rgba(0, 0, 0, 0.1);
--color-shadow-muted: rgba(0, 0, 0, 0.05);
}
16 changes: 8 additions & 8 deletions src/_range.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--range-track: 4px;
--range-track: 2px;
--range-size: 20px;
}
[type='range'] {
Expand All @@ -21,23 +21,23 @@
width: 100%;
height: var(--range-track);
border-radius: var(--border-radius);
background: var(--color-ui-muted);
background: var(--color-ui);
}
[type='range']::-moz-range-track {
box-sizing: border-box;
border: none;
width: 100%;
height: var(--range-track);
border-radius: var(--border-radius);
background: var(--color-ui-muted);
background: var(--color-ui);
}
[type='range']::-ms-track {
box-sizing: border-box;
border: none;
width: 100%;
height: var(--range-track);
border-radius: var(--border-radius);
background: var(--color-ui-muted);
background: var(--color-ui);
color: transparent;
}
[type='range']::-moz-range-progress {
Expand All @@ -51,13 +51,13 @@
background: var(--color-ui);
}
[type='range']::-webkit-slider-thumb {
margin-top: -8px;
margin-top: calc((var(--range-size) / -2) + (var(--range-track) / 2));
box-sizing: border-box;
border: none;
width: var(--range-size);
height: var(--range-size);
border-radius: 50%;
border: var(--border-width) solid var(--color-ui);
border: var(--border-width) solid var(--color-ui-intense);
background: #fff;
pointer-events: all !important;
cursor: pointer;
Expand All @@ -68,7 +68,7 @@
width: var(--range-size);
height: var(--range-size);
border-radius: 50%;
border: var(--border-width) solid var(--color-ui);
border: var(--border-width) solid var(--color-ui-intense);
background: #fff;
pointer-events: all !important;
cursor: pointer;
Expand All @@ -80,7 +80,7 @@
width: var(--range-size);
height: var(--range-size);
border-radius: 50%;
border: var(--border-width) solid var(--color-ui);
border: var(--border-width) solid var(--color-ui-intense);
background: #fff;
pointer-events: all !important;
cursor: pointer;
Expand Down

0 comments on commit a90518b

Please sign in to comment.