Skip to content

Commit b4d8849

Browse files
committed
updates color palette to use uchū
- cleanup - updates deps
1 parent 9efefa9 commit b4d8849

25 files changed

+87
-400
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"sass-lint": "^1.13.1",
2222
"stylelint": "^16.14.1",
2323
"stylelint-order": "^6.0.4",
24-
"svelte": "^5.20.1",
24+
"svelte": "^5.20.2",
2525
"svelte-adapter-bun": "^0.5.2",
2626
"svelte-check": "^4.1.4",
2727
"svelte-preprocess": "^6.0.3",
2828
"typescript": "^5.7.3",
2929
"updates": "^16.4.2",
30-
"vite": "^6.1.0"
30+
"vite": "^6.1.1"
3131
},
3232
"name": "homepage",
3333
"private": true,
@@ -52,5 +52,5 @@
5252
"watch:sass": "sass --watch sass/uchu:static --style compressed"
5353
},
5454
"type": "module",
55-
"version": "2025.02.18"
55+
"version": "2025.02.19"
5656
}

sass/global.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
@include mixin.font-plus-italics(600, "/type/sans", "webb sans");
55

66
:root {
7-
--color-background: var(--inc-gray-1);
8-
--color-border: var(--inc-gray-3);
9-
--color-foreground: var(--inc-yin-8);
7+
--color-background: var(--uchu-gray-1);
8+
--color-border: var(--uchu-gray-3);
9+
--color-foreground: var(--uchu-yin-8);
1010
--font-mono: "webb mono";
1111
--font-sans: "webb sans";
1212
--font-size: 16px;

sass/uchu/_form.scss

+10-32
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,20 @@ fieldset {
99
text-transform: lowercase;
1010

1111
&:not(:disabled) {
12-
background-color: var(--inc-gray-9);
13-
color: var(--inc-gray-2);
12+
background-color: var(--uchu-gray-9);
13+
color: var(--uchu-gray-2);
1414
cursor: pointer;
15-
16-
// @media (prefers-color-scheme: dark) {
17-
// background-color: var(--inc-blue-8);
18-
// color: var(--inc-gray-1);
19-
// }
2015
}
2116

2217
&:disabled {
23-
background-color: var(--inc-gray-2);
24-
color: var(--inc-gray-6);
18+
background-color: var(--uchu-gray-2);
19+
color: var(--uchu-gray-6);
2520
cursor: not-allowed;
26-
27-
// @media (prefers-color-scheme: dark) {
28-
// background-color: var(--inc-gray-8);
29-
// color: var(--inc-gray-5);
30-
// }
3121
}
3222
}
3323

3424
label {
35-
color: var(--inc-gray-5);
25+
color: var(--uchu-gray-5);
3626
font-size: 80%;
3727
position: absolute;
3828
padding-top: 4px;
@@ -41,7 +31,7 @@ fieldset {
4131

4232
+ input,
4333
+ select {
44-
background-color: var(--inc-gray-2);
34+
background-color: var(--uchu-gray-2);
4535
border: 2px solid;
4636
transition: border-color 0.2s;
4737
width: 400px;
@@ -50,31 +40,19 @@ fieldset {
5040
transition: none;
5141
}
5242

53-
// @media (prefers-color-scheme: dark) {
54-
// background-color: var(--inc-gray-9);
55-
// }
56-
5743
&::placeholder {
58-
color: var(--inc-gray-5);
44+
color: var(--uchu-gray-5);
5945
opacity: 1;
6046
}
6147

6248
&:not(:focus) {
63-
border-color: var(--inc-gray-2);
64-
65-
// @media (prefers-color-scheme: dark) {
66-
// border-color: var(--inc-gray-8);
67-
// }
49+
border-color: var(--uchu-gray-2);
6850
}
6951

7052
&:focus {
71-
border-color: var(--inc-blue-4);
53+
border-color: var(--uchu-blue-4);
7254
box-shadow: none;
7355
outline: none;
74-
75-
// @media (prefers-color-scheme: dark) {
76-
// border-color: var(--inc-blue-8);
77-
// }
7856
}
7957
}
8058

@@ -90,7 +68,7 @@ fieldset {
9068
padding: 1.5rem 0.75rem 0.5rem 0.75rem;
9169

9270
&:invalid {
93-
border-color: var(--inc-red-5);
71+
border-color: var(--uchu-red-5);
9472
box-shadow: none;
9573
outline: none;
9674
}

sass/uchu/_reset.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ address, article, aside, blockquote, dd, dl, dt, fieldset, figure, form, h1, h2,
3434
a {
3535
color: inherit;
3636
cursor: pointer;
37-
text-decoration: underline oklch(var(--inc-yin-raw) / 30%);
37+
text-decoration: underline oklch(var(--uchu-yin-raw) / 30%);
3838
transition: all 0.2s;
3939
white-space: nowrap;
40-
-webkit-text-decoration: underline oklch(var(--inc-yin-raw) / 30%); /// safari needs a hand
40+
-webkit-text-decoration: underline oklch(var(--uchu-yin-raw) / 30%); /// safari needs a hand
4141

4242
&:hover {
43-
color: var(--inc-blue-4);
43+
color: var(--uchu-blue-4);
4444
}
4545
}
4646

@@ -279,7 +279,7 @@ h6 > a {
279279

280280
&:hover {
281281
color: inherit;
282-
text-decoration: underline oklch(var(--inc-yin-raw) / 30%);
282+
text-decoration: underline oklch(var(--uchu-yin-raw) / 30%);
283283
}
284284
}
285285

@@ -343,7 +343,7 @@ select {
343343
-webkit-appearance: none;
344344

345345
&:focus-visible {
346-
outline: 2px solid var(--inc-blue-4);
346+
outline: 2px solid var(--uchu-blue-4);
347347
}
348348
}
349349

@@ -425,7 +425,7 @@ li {
425425
position: absolute;
426426
width: 1.1rem;
427427

428-
@supports ((mask-image: linear-gradient(var(--inc-yin), red))) {
428+
@supports ((mask-image: linear-gradient(var(--uchu-yin), red))) {
429429
mask-position: center center;
430430
mask-repeat: no-repeat;
431431
mask-size: contain;
@@ -435,7 +435,7 @@ li {
435435
&::after {
436436
background-image: var(--outline-svg-url);
437437

438-
@supports ((mask-image: linear-gradient(var(--inc-yin), red))) {
438+
@supports ((mask-image: linear-gradient(var(--uchu-yin), red))) {
439439
background-color: var(--foreground-color);
440440
mask-image: var(--outline-svg-url);
441441
}
@@ -444,7 +444,7 @@ li {
444444
&[checked]::before {
445445
background-image: var(--check-svg-url);
446446

447-
@supports ((mask-image: linear-gradient(var(--inc-yin), red))) {
447+
@supports ((mask-image: linear-gradient(var(--uchu-yin), red))) {
448448
background-color: var(--foreground-color);
449449
mask-image: var(--check-svg-url);
450450
}

sass/uchu/core/_mixin.scss

+1-117
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
1-
// @use "sass:math";
2-
3-
/// Helper function to replace characters in a string
4-
@function str-replace($string, $search, $replace: "") {
5-
$index: str-index($string, $search);
6-
7-
@return if($index,
8-
str-slice($string, 1, $index - 1) + $replace +
9-
str-replace(str-slice($string, $index + str-length($search)), $search, $replace),
10-
$string);
11-
}
12-
// quotes: "“" "”";
13-
/// Create an optimized svg url
14-
@function svg-url($svg) {
15-
// Add missing namespace
16-
@if not str-index($svg,xmlns) {
17-
$svg: str-replace($svg, "<svg", "<svg xmlns=\"http://www.w3.org/2000/svg\"");
18-
}
19-
20-
// Chunk up string in order to avoid "stack level too deep" error
21-
$encoded: "";
22-
$index: 0;
23-
$slice: 2000;
24-
$loops: ceil(calc(str-length($svg) / $slice));
25-
// $loops: ceil(str-length($svg) / $slice);
26-
// $loops: math.div(str-length($svg), $slice);
27-
// $loops: calc(str-length($svg) / $slice);
28-
29-
@for $i from 1 through $loops {
30-
$chunk: str-slice($svg, $index, $index + $slice - 1);
31-
// Encode
32-
$chunk: str-replace($chunk, "\"", "'");
33-
$chunk: str-replace($chunk, "%", "%25");
34-
$chunk: str-replace($chunk, "#", "%23");
35-
$chunk: str-replace($chunk, "{", "%7B");
36-
$chunk: str-replace($chunk, "}", "%7D");
37-
$chunk: str-replace($chunk, "<", "%3C");
38-
$chunk: str-replace($chunk, ">", "%3E");
39-
// The maybe list
40-
// Keep size and compile time down...only add on documented fail
41-
//
42-
// $chunk: str-replace($chunk, "&", "%26");
43-
// $chunk: str-replace($chunk, "|", "%7C");
44-
// $chunk: str-replace($chunk, "[", "%5B");
45-
// $chunk: str-replace($chunk, "]", "%5D");
46-
// $chunk: str-replace($chunk, "^", "%5E");
47-
// $chunk: str-replace($chunk, "`", "%60");
48-
// $chunk: str-replace($chunk, ";", "%3B");
49-
// $chunk: str-replace($chunk, "?", "%3F");
50-
// $chunk: str-replace($chunk, ":", "%3A");
51-
// $chunk: str-replace($chunk, "@", "%40");
52-
// $chunk: str-replace($chunk, "=", "%3D");
53-
$encoded: #{$encoded}#{$chunk};
54-
$index: $index + $slice;
55-
}
56-
57-
@return url("data:image/svg+xml,#{$encoded}");
58-
}
59-
60-
@mixin background-svg($svg) {
61-
background-image: svg-url($svg);
62-
/// via https://codepen.io/jakob-e/full/doMoML
63-
}
64-
651
@mixin center {
662
align-items: center;
673
display: inline-flex;
@@ -133,42 +69,7 @@
13369
text-shadow: none;
13470
}
13571

136-
/// Cross-browser line-clamp support
137-
@mixin line-clamp(
138-
$element-height: 2rem,
139-
$row-count: 2,
140-
$fade-color: var(--inc-white),
141-
$computed-position: relative
142-
) {
143-
height: $element-height;
144-
overflow: hidden;
145-
position: $computed-position;
146-
147-
&::after {
148-
width: 50%; height: calc(#{$element-height} / #{$row-count});
149-
right: 0; bottom: 0;
150-
151-
background-image: linear-gradient(to right, rgba(var(--inc-white-rgb), 0), #{$fade-color} 80%);
152-
content: "";
153-
position: absolute;
154-
}
155-
}
156-
157-
@mixin no-user-select {
158-
user-select: none;
159-
-moz-user-select: none;
160-
-webkit-user-select: none;
161-
}
162-
163-
/// Use CSS variables without upsetting Sass-Lint
164-
/// https://github.com/sasstools/sass-lint/issues/1161#issuecomment-390537190
165-
@mixin root-prop($prop: null, $value: null) {
166-
@if ($prop and $value) {
167-
#{$prop}: $value;
168-
}
169-
}
170-
171-
@mixin selection($background-color: var(--inc-white), $text-color: var(--inc-gray-9)) {
72+
@mixin selection($background-color: var(--uchu-yang), $text-color: var(--uchu-gray-9)) {
17273
&::selection {
17374
background-color: $background-color;
17475
color: $text-color;
@@ -181,20 +82,3 @@
18182
text-shadow: none;
18283
}
18384
}
184-
185-
@mixin underline($text-color: var(--inc-gray-9), $inc-whitespace-color: var(--inc-white)) {
186-
@include selection($text-color, $inc-whitespace-color);
187-
188-
background-image: linear-gradient($inc-whitespace-color, $inc-whitespace-color), linear-gradient($inc-whitespace-color, $inc-whitespace-color), linear-gradient($text-color, $text-color);
189-
background-position: 0 88%, 100% 88%, 0 88%;
190-
background-repeat: no-repeat, no-repeat, repeat-x;
191-
background-size: 0.05rem 1px, 0.05rem 1px, 1px 1px;
192-
box-decoration-break: clone;
193-
display: inline;
194-
text-decoration: none;
195-
text-shadow: 0.03rem 0 $inc-whitespace-color, -0.03rem 0 $inc-whitespace-color, 0 0.03rem $inc-whitespace-color, 0 -0.03rem $inc-whitespace-color, 0.06rem 0 $inc-whitespace-color, -0.06rem 0 $inc-whitespace-color, 0.09rem 0 $inc-whitespace-color, -0.09rem 0 $inc-whitespace-color, 0.12rem 0 $inc-whitespace-color, -0.12rem 0 $inc-whitespace-color, 0.15rem 0 $inc-whitespace-color, -0.15rem 0 $inc-whitespace-color;
196-
197-
@-moz-document url-prefix() { // sass-lint:disable-line empty-args
198-
background-position: 0 90%, 100% 90%, 0 90%;
199-
}
200-
}

0 commit comments

Comments
 (0)