From 6be86b5f05a7c14e9de03d63132e7beb9789965c Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sat, 11 Apr 2026 15:16:43 -0700 Subject: initial commit --- .gitignore | 3 + README.md | 47 ++ UNLICENSE | 21 + definitions/script/color.json | 49 ++ definitions/script/color.ts | 49 ++ definitions/script/color_expanded.json | 105 +++ definitions/script/color_expanded.ts | 105 +++ definitions/style/color.css | 91 ++ definitions/style/color.scss | 44 + definitions/style/color_expanded.css | 185 ++++ definitions/style/color_expanded.scss | 100 +++ demo/asset/audio/pronounciation.mp3 | Bin 0 -> 6912 bytes demo/asset/audio/pronounciation.ogg | Bin 0 -> 7518 bytes demo/asset/audio/pronounciation.wav | Bin 0 -> 41550 bytes demo/asset/image/og.png | Bin 0 -> 4603 bytes demo/asset/script/shared.js | 48 ++ demo/asset/style/shared.css | 207 +++++ demo/favicon.svg | 56 ++ demo/index.html | 1360 ++++++++++++++++++++++++++++++ demo/simple.html | 607 +++++++++++++ documentation/EXPANDED.md | 161 ++++ documentation/FAQ.md | 93 ++ documentation/REDUCED.md | 105 +++ documentation/SHOWCASE.md | 11 + documentation/UNLICENSE.md | 7 + documentation/USAGE.md | 64 ++ documentation/image/expanded/blue.png | Bin 0 -> 176411 bytes documentation/image/expanded/general.png | Bin 0 -> 169358 bytes documentation/image/expanded/gray.png | Bin 0 -> 182202 bytes documentation/image/expanded/green.png | Bin 0 -> 176405 bytes documentation/image/expanded/orange.png | Bin 0 -> 196144 bytes documentation/image/expanded/pink.png | Bin 0 -> 181018 bytes documentation/image/expanded/purple.png | Bin 0 -> 176394 bytes documentation/image/expanded/red.png | Bin 0 -> 170144 bytes documentation/image/expanded/yellow.png | Bin 0 -> 183210 bytes documentation/image/reduced/blue.png | Bin 0 -> 128981 bytes documentation/image/reduced/general.png | Bin 0 -> 123308 bytes documentation/image/reduced/gray.png | Bin 0 -> 134198 bytes documentation/image/reduced/green.png | Bin 0 -> 130886 bytes documentation/image/reduced/orange.png | Bin 0 -> 141481 bytes documentation/image/reduced/pink.png | Bin 0 -> 129517 bytes documentation/image/reduced/purple.png | Bin 0 -> 130647 bytes documentation/image/reduced/red.png | Bin 0 -> 128247 bytes documentation/image/reduced/yellow.png | Bin 0 -> 136727 bytes 44 files changed, 3518 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 UNLICENSE create mode 100644 definitions/script/color.json create mode 100644 definitions/script/color.ts create mode 100644 definitions/script/color_expanded.json create mode 100644 definitions/script/color_expanded.ts create mode 100644 definitions/style/color.css create mode 100644 definitions/style/color.scss create mode 100644 definitions/style/color_expanded.css create mode 100644 definitions/style/color_expanded.scss create mode 100644 demo/asset/audio/pronounciation.mp3 create mode 100644 demo/asset/audio/pronounciation.ogg create mode 100644 demo/asset/audio/pronounciation.wav create mode 100644 demo/asset/image/og.png create mode 100644 demo/asset/script/shared.js create mode 100644 demo/asset/style/shared.css create mode 100644 demo/favicon.svg create mode 100644 demo/index.html create mode 100644 demo/simple.html create mode 100644 documentation/EXPANDED.md create mode 100644 documentation/FAQ.md create mode 100644 documentation/REDUCED.md create mode 100644 documentation/SHOWCASE.md create mode 100644 documentation/UNLICENSE.md create mode 100644 documentation/USAGE.md create mode 100644 documentation/image/expanded/blue.png create mode 100644 documentation/image/expanded/general.png create mode 100644 documentation/image/expanded/gray.png create mode 100644 documentation/image/expanded/green.png create mode 100644 documentation/image/expanded/orange.png create mode 100644 documentation/image/expanded/pink.png create mode 100644 documentation/image/expanded/purple.png create mode 100644 documentation/image/expanded/red.png create mode 100644 documentation/image/expanded/yellow.png create mode 100644 documentation/image/reduced/blue.png create mode 100644 documentation/image/reduced/general.png create mode 100644 documentation/image/reduced/gray.png create mode 100644 documentation/image/reduced/green.png create mode 100644 documentation/image/reduced/orange.png create mode 100644 documentation/image/reduced/pink.png create mode 100644 documentation/image/reduced/purple.png create mode 100644 documentation/image/reduced/red.png create mode 100644 documentation/image/reduced/yellow.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11c8d63 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Files +.DS_Store +Thumbs.db diff --git a/README.md b/README.md new file mode 100644 index 0000000..294fe59 --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# Overview + +![](./demo/asset/image/og.png) + +**uchū is the color palette for internet lovers, by [NetOperator Wibby](https://webb.page).** uchū utilizes the OKLCH color space [for reasons](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl). I've been using this color palette for personal projects for about a year and have been quite pleased with it. + +No, [I will not add other color spaces](./documentation/FAQ.md#normal-colors). + + + +## Table of Contents + +- [Expanded Palette](./documentation/EXPANDED.md) + - [Gray](./documentation/EXPANDED.md#gray) + - [Red](./documentation/EXPANDED.md#red) + - [Pink](./documentation/EXPANDED.md#pink) + - [Purple](./documentation/EXPANDED.md#purple) + - [Blue](./documentation/EXPANDED.md#blue) + - [Green](./documentation/EXPANDED.md#green) + - [Yellow](./documentation/EXPANDED.md#yellow) + - [Orange](./documentation/EXPANDED.md#orange) + - [General](./documentation/EXPANDED.md#general) + - [Sass](./documentation/EXPANDED.md#sass) +- [Reduced Palette](./documentation/REDUCED.md) + - [Gray](./documentation/REDUCED.md#gray) + - [Red](./documentation/REDUCED.md#red) + - [Pink](./documentation/REDUCED.md#pink) + - [Purple](./documentation/REDUCED.md#purple) + - [Blue](./documentation/REDUCED.md#blue) + - [Green](./documentation/REDUCED.md#green) + - [Yellow](./documentation/REDUCED.md#yellow) + - [Orange](./documentation/REDUCED.md#orange) + - [General](./documentation/REDUCED.md#general) + - [Sass](./documentation/REDUCED.md#sass) +- [Usage](./documentation/USAGE.md) + - [Pure](./documentation/USAGE.md#pure) + - [Svelte/SvelteKit](./documentation/USAGE.md#svelte-sveltekit) +- [Showcase](./documentation/SHOWCASE.md) + - [Website](./documentation/SHOWCASE.md#websites) +- [FAQ](./documentation/FAQ.md) + - [Origin](./documentation/FAQ.md#origin) + - [Normal colors](./documentation/FAQ.md#normal-colors) + - [Dark Mode](./documentation/FAQ.md#dark-mode) + - [The name](./documentation/FAQ.md#the-name) + - [Virality](./documentation/FAQ.md#virality) + - [The tagline](./documentation/FAQ.md#the-tagline) +- [Why UNLICENSE?](./documentation/UNLICENSE.md) diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..2894708 --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,21 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or distribute +this software, either in source code form or as a compiled binary, for any +purpose, commercial or non-commercial, and by any means. + +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/definitions/script/color.json b/definitions/script/color.json new file mode 100644 index 0000000..3d724b7 --- /dev/null +++ b/definitions/script/color.json @@ -0,0 +1,49 @@ +{ + "blue": { + "base": "oklch(62.39% 0.181 258.33)", + "dark": "oklch(43.48% 0.17 260.2)", + "light": "oklch(89.66% 0.046 260.67)" + }, + "general": { + "yang": "oklch(99.4% 0 0)", + "yin": "oklch(14.38% 0.007 256.88)" + }, + "gray": { + "base": "oklch(84.68% 0.002 197.12)", + "dark": "oklch(63.12% 0.004 219.55)", + "light": "oklch(95.57% 0.003 286.35)" + }, + "green": { + "base": "oklch(79.33% 0.179 145.62)", + "dark": "oklch(58.83% 0.158 145.05)", + "light": "oklch(93.96% 0.05 148.74)" + }, + "pink": { + "base": "oklch(85.43% 0.09 354.1)", + "dark": "oklch(64.11% 0.084 353.91)", + "light": "oklch(95.8% 0.023 354.27)" + }, + "purple": { + "base": "oklch(58.47% 0.181 302.06)", + "dark": "oklch(39.46% 0.164 298.29)", + "light": "oklch(89.1% 0.046 305.24)" + }, + "orange": { + "base": "oklch(78.75% 0.14163582809066333 54.32911089172009)", + "dark": "oklch(58.28% 0.128 52.2)", + "light": "oklch(93.83% 0.037 56.93)" + }, + "red": { + "base": "oklch(62.73% 0.209 12.37)", + "dark": "oklch(45.8% 0.177 17.7)", + "light": "oklch(88.98% 0.052 3.28)" + }, + "yellow": { + "base": "oklch(90.92% 0.125 92.56)", + "dark": "oklch(69.14% 0.109 91.04)", + "light": "oklch(97.05% 0.039 91.2)" + }, + "yin": { + "light": "oklch(91.87% 0.003 264.54)" + } +} diff --git a/definitions/script/color.ts b/definitions/script/color.ts new file mode 100644 index 0000000..940eabc --- /dev/null +++ b/definitions/script/color.ts @@ -0,0 +1,49 @@ +export default { + blue: { + base: "oklch(62.39% 0.181 258.33)", + dark: "oklch(43.48% 0.17 260.2)", + light: "oklch(89.66% 0.046 260.67)" + }, + general: { + yang: "oklch(99.4% 0 0)", + yin: "oklch(14.38% 0.007 256.88)" + }, + gray: { + base: "oklch(84.68% 0.002 197.12)", + dark: "oklch(63.12% 0.004 219.55)", + light: "oklch(95.57% 0.003 286.35)" + }, + green: { + base: "oklch(79.33% 0.179 145.62)", + dark: "oklch(58.83% 0.158 145.05)", + light: "oklch(93.96% 0.05 148.74)" + }, + pink: { + base: "oklch(85.43% 0.09 354.1)", + dark: "oklch(64.11% 0.084 353.91)", + light: "oklch(95.8% 0.023 354.27)" + }, + purple: { + base: "oklch(58.47% 0.181 302.06)", + dark: "oklch(39.46% 0.164 298.29)", + light: "oklch(89.1% 0.046 305.24)" + }, + orange: { + base: "oklch(78.75% 0.14163582809066333 54.32911089172009)", + dark: "oklch(58.28% 0.128 52.2)", + light: "oklch(93.83% 0.037 56.93)" + }, + red: { + base: "oklch(62.73% 0.209 12.37)", + dark: "oklch(45.8% 0.177 17.7)", + light: "oklch(88.98% 0.052 3.28)" + }, + yellow: { + base: "oklch(90.92% 0.125 92.56)", + dark: "oklch(69.14% 0.109 91.04)", + light: "oklch(97.05% 0.039 91.2)" + }, + yin: { + light: "oklch(91.87% 0.003 264.54)" + } +} diff --git a/definitions/script/color_expanded.json b/definitions/script/color_expanded.json new file mode 100644 index 0000000..3cfe980 --- /dev/null +++ b/definitions/script/color_expanded.json @@ -0,0 +1,105 @@ +{ + "blue": { + "1": "oklch(89.66% 0.046 260.67)", + "2": "oklch(80.17% 0.091 258.88)", + "3": "oklch(70.94% 0.136 258.06)", + "4": "oklch(62.39% 0.181 258.33)", + "5": "oklch(54.87% 0.222 260.33)", + "6": "oklch(51.15% 0.204 260.17)", + "7": "oklch(47.36% 0.185 259.89)", + "8": "oklch(43.48% 0.17 260.2)", + "9": "oklch(39.53% 0.15 259.87)" + }, + "general": { + "yang": "oklch(99.4% 0 0)", + "yin": "oklch(14.38% 0.007 256.88)" + }, + "gray": { + "1": "oklch(95.57% 0.003 286.35)", + "2": "oklch(92.04% 0.002 197.12)", + "3": "oklch(88.28% 0.003 286.34)", + "4": "oklch(84.68% 0.002 197.12)", + "5": "oklch(80.73% 0.002 247.84)", + "6": "oklch(75.03% 0.002 247.85)", + "7": "oklch(69.01% 0.003 286.32)", + "8": "oklch(63.12% 0.004 219.55)", + "9": "oklch(56.82% 0.004 247.89)" + }, + "green": { + "1": "oklch(93.96% 0.05 148.74)", + "2": "oklch(88.77% 0.096 147.71)", + "3": "oklch(83.74% 0.139 146.57)", + "4": "oklch(79.33% 0.179 145.62)", + "5": "oklch(75.23% 0.209 144.64)", + "6": "oklch(70.03% 0.194 144.71)", + "7": "oklch(64.24% 0.175 144.92)", + "8": "oklch(58.83% 0.158 145.05)", + "9": "oklch(52.77% 0.138 145.41)" + }, + "pink": { + "1": "oklch(95.8% 0.023 354.27)", + "2": "oklch(92.14% 0.046 352.31)", + "3": "oklch(88.9% 0.066 354.39)", + "4": "oklch(85.43% 0.09 354.1)", + "5": "oklch(82.23% 0.112 355.33)", + "6": "oklch(76.37% 0.101 355.37)", + "7": "oklch(70.23% 0.092 354.96)", + "8": "oklch(64.11% 0.084 353.91)", + "9": "oklch(57.68% 0.074 353.14)" + }, + "purple": { + "1": "oklch(89.1% 0.046 305.24)", + "2": "oklch(78.68% 0.091 305)", + "3": "oklch(68.5% 0.136 303.78)", + "4": "oklch(58.47% 0.181 302.06)", + "5": "oklch(49.39% 0.215 298.31)", + "6": "oklch(46.11% 0.198 298.4)", + "7": "oklch(42.77% 0.181 298.49)", + "8": "oklch(39.46% 0.164 298.29)", + "9": "oklch(36.01% 0.145 298.35)" + }, + "orange": { + "1": "oklch(93.83% 0.037 56.93)", + "2": "oklch(88.37% 0.07258208750520016 55.80328658240742)", + "3": "oklch(83.56% 0.10753627570574478 56.492594564236946)", + "4": "oklch(78.75% 0.14163582809066333 54.32911089172009)", + "5": "oklch(74.61% 0.171 51.56)", + "6": "oklch(69.33% 0.157 52.18)", + "7": "oklch(63.8% 0.142 52.1)", + "8": "oklch(58.28% 0.128 52.2)", + "9": "oklch(52.49% 0.113 51.98)" + }, + "red": { + "1": "oklch(88.98% 0.052 3.28)", + "2": "oklch(78.78% 0.109 4.54)", + "3": "oklch(69.86% 0.162 7.82)", + "4": "oklch(62.73% 0.209 12.37)", + "5": "oklch(58.63% 0.231 19.6)", + "6": "oklch(54.41% 0.214 19.06)", + "7": "oklch(49.95% 0.195 18.34)", + "8": "oklch(45.8% 0.177 17.7)", + "9": "oklch(41.17% 0.157 16.58)" + }, + "yellow": { + "1": "oklch(97.05% 0.039 91.2)", + "2": "oklch(95% 0.07 92.39)", + "3": "oklch(92.76% 0.098 92.58)", + "4": "oklch(90.92% 0.125 92.56)", + "5": "oklch(89% 0.146 91.5)", + "6": "oklch(82.39% 0.133 91.5)", + "7": "oklch(75.84% 0.122 92.21)", + "8": "oklch(69.14% 0.109 91.04)", + "9": "oklch(62.29% 0.097 91.9)" + }, + "yin": { + "1": "oklch(91.87% 0.003 264.54)", + "2": "oklch(84.61% 0.004 286.31)", + "3": "oklch(76.89% 0.004 247.87)", + "4": "oklch(69.17% 0.004 247.88)", + "5": "oklch(61.01% 0.005 271.34)", + "6": "oklch(52.79% 0.005 271.32)", + "7": "oklch(43.87% 0.005 271.3)", + "8": "oklch(35.02% 0.005 236.66)", + "9": "oklch(25.11% 0.006 258.36)" + } +} diff --git a/definitions/script/color_expanded.ts b/definitions/script/color_expanded.ts new file mode 100644 index 0000000..4e8a61d --- /dev/null +++ b/definitions/script/color_expanded.ts @@ -0,0 +1,105 @@ +export default { + blue: { + 1: "oklch(89.66% 0.046 260.67)", + 2: "oklch(80.17% 0.091 258.88)", + 3: "oklch(70.94% 0.136 258.06)", + 4: "oklch(62.39% 0.181 258.33)", + 5: "oklch(54.87% 0.222 260.33)", + 6: "oklch(51.15% 0.204 260.17)", + 7: "oklch(47.36% 0.185 259.89)", + 8: "oklch(43.48% 0.17 260.2)", + 9: "oklch(39.53% 0.15 259.87)" + }, + general: { + yang: "oklch(99.4% 0 0)", + yin: "oklch(14.38% 0.007 256.88)" + }, + gray: { + 1: "oklch(95.57% 0.003 286.35)", + 2: "oklch(92.04% 0.002 197.12)", + 3: "oklch(88.28% 0.003 286.34)", + 4: "oklch(84.68% 0.002 197.12)", + 5: "oklch(80.73% 0.002 247.84)", + 6: "oklch(75.03% 0.002 247.85)", + 7: "oklch(69.01% 0.003 286.32)", + 8: "oklch(63.12% 0.004 219.55)", + 9: "oklch(56.82% 0.004 247.89)" + }, + green: { + 1: "oklch(93.96% 0.05 148.74)", + 2: "oklch(88.77% 0.096 147.71)", + 3: "oklch(83.74% 0.139 146.57)", + 4: "oklch(79.33% 0.179 145.62)", + 5: "oklch(75.23% 0.209 144.64)", + 6: "oklch(70.03% 0.194 144.71)", + 7: "oklch(64.24% 0.175 144.92)", + 8: "oklch(58.83% 0.158 145.05)", + 9: "oklch(52.77% 0.138 145.41)" + }, + pink: { + 1: "oklch(95.8% 0.023 354.27)", + 2: "oklch(92.14% 0.046 352.31)", + 3: "oklch(88.9% 0.066 354.39)", + 4: "oklch(85.43% 0.09 354.1)", + 5: "oklch(82.23% 0.112 355.33)", + 6: "oklch(76.37% 0.101 355.37)", + 7: "oklch(70.23% 0.092 354.96)", + 8: "oklch(64.11% 0.084 353.91)", + 9: "oklch(57.68% 0.074 353.14)" + }, + purple: { + 1: "oklch(89.1% 0.046 305.24)", + 2: "oklch(78.68% 0.091 305)", + 3: "oklch(68.5% 0.136 303.78)", + 4: "oklch(58.47% 0.181 302.06)", + 5: "oklch(49.39% 0.215 298.31)", + 6: "oklch(46.11% 0.198 298.4)", + 7: "oklch(42.77% 0.181 298.49)", + 8: "oklch(39.46% 0.164 298.29)", + 9: "oklch(36.01% 0.145 298.35)" + }, + orange: { + 1: "oklch(93.83% 0.037 56.93)", + 2: "oklch(88.37% 0.07258208750520016 55.80328658240742)", + 3: "oklch(83.56% 0.10753627570574478 56.492594564236946)", + 4: "oklch(78.75% 0.14163582809066333 54.32911089172009)", + 5: "oklch(74.61% 0.171 51.56)", + 6: "oklch(69.33% 0.157 52.18)", + 7: "oklch(63.8% 0.142 52.1)", + 8: "oklch(58.28% 0.128 52.2)", + 9: "oklch(52.49% 0.113 51.98)" + }, + red: { + 1: "oklch(88.98% 0.052 3.28)", + 2: "oklch(78.78% 0.109 4.54)", + 3: "oklch(69.86% 0.162 7.82)", + 4: "oklch(62.73% 0.209 12.37)", + 5: "oklch(58.63% 0.231 19.6)", + 6: "oklch(54.41% 0.214 19.06)", + 7: "oklch(49.95% 0.195 18.34)", + 8: "oklch(45.8% 0.177 17.7)", + 9: "oklch(41.17% 0.157 16.58)" + }, + yellow: { + 1: "oklch(97.05% 0.039 91.2)", + 2: "oklch(95% 0.07 92.39)", + 3: "oklch(92.76% 0.098 92.58)", + 4: "oklch(90.92% 0.125 92.56)", + 5: "oklch(89% 0.146 91.5)", + 6: "oklch(82.39% 0.133 91.5)", + 7: "oklch(75.84% 0.122 92.21)", + 8: "oklch(69.14% 0.109 91.04)", + 9: "oklch(62.29% 0.097 91.9)" + }, + yin: { + 1: "oklch(91.87% 0.003 264.54)", + 2: "oklch(84.61% 0.004 286.31)", + 3: "oklch(76.89% 0.004 247.87)", + 4: "oklch(69.17% 0.004 247.88)", + 5: "oklch(61.01% 0.005 271.34)", + 6: "oklch(52.79% 0.005 271.32)", + 7: "oklch(43.87% 0.005 271.3)", + 8: "oklch(35.02% 0.005 236.66)", + 9: "oklch(25.11% 0.006 258.36)" + } +} diff --git a/definitions/style/color.css b/definitions/style/color.css new file mode 100644 index 0000000..ae06232 --- /dev/null +++ b/definitions/style/color.css @@ -0,0 +1,91 @@ +:root { + /*** gray ***/ + --uchu-light-gray-raw: 95.57% 0.003 286.35; + --uchu-light-gray: oklch(var(--uchu-light-gray-raw)); + + --uchu-gray-raw: 84.68% 0.002 197.12; + --uchu-gray: oklch(var(--uchu-gray-raw)); + + --uchu-dark-gray-raw: 63.12% 0.004 219.55; + --uchu-dark-gray: oklch(var(--uchu-dark-gray-raw)); + + /*** red ***/ + --uchu-light-red-raw: 88.98% 0.052 3.28; + --uchu-light-red: oklch(var(--uchu-light-red-raw)); + + --uchu-red-raw: 62.73% 0.209 12.37; + --uchu-red: oklch(var(--uchu-red-raw)); + + --uchu-dark-red-raw: 45.8% 0.177 17.7; + --uchu-dark-red: oklch(var(--uchu-dark-red-raw)); + + /*** pink ***/ + --uchu-light-pink-raw: 95.8% 0.023 354.27; + --uchu-light-pink: oklch(var(--uchu-light-pink-raw)); + + --uchu-pink-raw: 85.43% 0.09 354.1; + --uchu-pink: oklch(var(--uchu-pink-raw)); + + --uchu-dark-pink-raw: 64.11% 0.084 353.91; + --uchu-dark-pink: oklch(var(--uchu-dark-pink-raw)); + + /*** purple ***/ + --uchu-light-purple-raw: 89.1% 0.046 305.24; + --uchu-light-purple: oklch(var(--uchu-light-purple-raw)); + + --uchu-purple-raw: 58.47% 0.181 302.06; + --uchu-purple: oklch(var(--uchu-purple-raw)); + + --uchu-dark-purple-raw: 39.46% 0.164 298.29; + --uchu-dark-purple: oklch(var(--uchu-dark-purple-raw)); + + /*** blue ***/ + --uchu-light-blue-raw: 89.66% 0.046 260.67; + --uchu-light-blue: oklch(var(--uchu-light-blue-raw)); + + --uchu-blue-raw: 62.39% 0.181 258.33; + --uchu-blue: oklch(var(--uchu-blue-raw)); + + --uchu-dark-blue-raw: 43.48% 0.17 260.2; + --uchu-dark-blue: oklch(var(--uchu-dark-blue-raw)); + + /*** green ***/ + --uchu-light-green-raw: 93.96% 0.05 148.74; + --uchu-light-green: oklch(var(--uchu-light-green-raw)); + + --uchu-green-raw: 79.33% 0.179 145.62; + --uchu-green: oklch(var(--uchu-green-raw)); + + --uchu-dark-green-raw: 58.83% 0.158 145.05; + --uchu-dark-green: oklch(var(--uchu-dark-green-raw)); + + /*** yellow ***/ + --uchu-light-yellow-raw: 97.05% 0.039 91.2; + --uchu-light-yellow: oklch(var(--uchu-light-yellow-raw)); + + --uchu-yellow-raw: 90.92% 0.125 92.56; + --uchu-yellow: oklch(var(--uchu-yellow-raw)); + + --uchu-dark-yellow-raw: 69.14% 0.109 91.04; + --uchu-dark-yellow: oklch(var(--uchu-dark-yellow-raw)); + + /*** orange ***/ + --uchu-light-orange-raw: 93.83% 0.037 56.93; + --uchu-light-orange: oklch(var(--uchu-light-orange-raw)); + + --uchu-orange-raw: 78.75% 0.14163582809066333 54.32911089172009; + --uchu-orange: oklch(var(--uchu-orange-raw)); + + --uchu-dark-orange-raw: 58.28% 0.128 52.2; + --uchu-dark-orange: oklch(var(--uchu-dark-orange-raw)); + + /*** general ***/ + --uchu-yang-raw: 99.4% 0 0; + --uchu-yang: oklch(var(--uchu-yang-raw)); + + --uchu-light-yin-raw: 91.87% 0.003 264.54; + --uchu-light-yin: oklch(var(--uchu-light-yin-raw)); + + --uchu-yin-raw: 14.38% 0.007 256.88; + --uchu-yin: oklch(var(--uchu-yin-raw)); +} diff --git a/definitions/style/color.scss b/definitions/style/color.scss new file mode 100644 index 0000000..b7e4fd7 --- /dev/null +++ b/definitions/style/color.scss @@ -0,0 +1,44 @@ +/*** gray ***/ +$uchu-light-gray: oklch(95.57% 0.003 286.35); +$uchu-gray: oklch(84.68% 0.002 197.12); +$uchu-dark-gray: oklch(63.12% 0.004 219.55); + +/*** red ***/ +$uchu-light-red: oklch(88.98% 0.052 3.28); +$uchu-red: oklch(62.73% 0.209 12.37); +$uchu-dark-red: oklch(45.8% 0.177 17.7); + +/*** pink ***/ +$uchu-light-pink: oklch(95.8% 0.023 354.27); +$uchu-pink: oklch(85.43% 0.09 354.1); +$uchu-dark-pink: oklch(64.11% 0.084 353.91); + +/*** purple ***/ +$uchu-light-purple: oklch(89.1% 0.046 305.24); +$uchu-purple: oklch(58.47% 0.181 302.06); +$uchu-dark-purple: oklch(39.46% 0.164 298.29); + +/*** blue ***/ +$uchu-light-blue: oklch(89.66% 0.046 260.67); +$uchu-blue: oklch(62.39% 0.181 258.33); +$uchu-dark-blue: oklch(43.48% 0.17 260.2); + +/*** green ***/ +$uchu-light-green: oklch(93.96% 0.05 148.74); +$uchu-green: oklch(79.33% 0.179 145.62); +$uchu-dark-green: oklch(58.83% 0.158 145.05); + +/*** yellow ***/ +$uchu-light-yellow: oklch(97.05% 0.039 91.2); +$uchu-yellow: oklch(90.92% 0.125 92.56); +$uchu-dark-yellow: oklch(69.14% 0.109 91.04); + +/*** orange ***/ +$uchu-light-orange: oklch(93.83% 0.037 56.93); +$uchu-orange: oklch(78.75% 0.14163582809066333 54.32911089172009); +$uchu-dark-orange: oklch(58.28% 0.128 52.2); + +/*** general ***/ +$uchu-yang: oklch(99.4% 0 0); +$uchu-light-yin: oklch(91.87% 0.003 264.54); +$uchu-yin: oklch(14.38% 0.007 256.88); diff --git a/definitions/style/color_expanded.css b/definitions/style/color_expanded.css new file mode 100644 index 0000000..f0e9a21 --- /dev/null +++ b/definitions/style/color_expanded.css @@ -0,0 +1,185 @@ +:root { + /*** gray ***/ + --uchu-gray-1-raw: 95.57% 0.003 286.35; + --uchu-gray-1: oklch(var(--uchu-gray-1-raw)); + --uchu-gray-2-raw: 92.04% 0.002 197.12; + --uchu-gray-2: oklch(var(--uchu-gray-2-raw)); + --uchu-gray-3-raw: 88.28% 0.003 286.34; + --uchu-gray-3: oklch(var(--uchu-gray-3-raw)); + --uchu-gray-4-raw: 84.68% 0.002 197.12; + --uchu-gray-4: oklch(var(--uchu-gray-4-raw)); + --uchu-gray-5-raw: 80.73% 0.002 247.84; + --uchu-gray-5: oklch(var(--uchu-gray-5-raw)); + --uchu-gray-6-raw: 75.03% 0.002 247.85; + --uchu-gray-6: oklch(var(--uchu-gray-6-raw)); + --uchu-gray-7-raw: 69.01% 0.003 286.32; + --uchu-gray-7: oklch(var(--uchu-gray-7-raw)); + --uchu-gray-8-raw: 63.12% 0.004 219.55; + --uchu-gray-8: oklch(var(--uchu-gray-8-raw)); + --uchu-gray-9-raw: 56.82% 0.004 247.89; + --uchu-gray-9: oklch(var(--uchu-gray-9-raw)); + + /*** red ***/ + --uchu-red-1-raw: 88.98% 0.052 3.28; + --uchu-red-1: oklch(var(--uchu-red-1-raw)); + --uchu-red-2-raw: 78.78% 0.109 4.54; + --uchu-red-2: oklch(var(--uchu-red-2-raw)); + --uchu-red-3-raw: 69.86% 0.162 7.82; + --uchu-red-3: oklch(var(--uchu-red-3-raw)); + --uchu-red-4-raw: 62.73% 0.209 12.37; + --uchu-red-4: oklch(var(--uchu-red-4-raw)); + --uchu-red-5-raw: 58.63% 0.231 19.6; + --uchu-red-5: oklch(var(--uchu-red-5-raw)); + --uchu-red-6-raw: 54.41% 0.214 19.06; + --uchu-red-6: oklch(var(--uchu-red-6-raw)); + --uchu-red-7-raw: 49.95% 0.195 18.34; + --uchu-red-7: oklch(var(--uchu-red-7-raw)); + --uchu-red-8-raw: 45.8% 0.177 17.7; + --uchu-red-8: oklch(var(--uchu-red-8-raw)); + --uchu-red-9-raw: 41.17% 0.157 16.58; + --uchu-red-9: oklch(var(--uchu-red-9-raw)); + + /*** pink ***/ + --uchu-pink-1-raw: 95.8% 0.023 354.27; + --uchu-pink-1: oklch(var(--uchu-pink-1-raw)); + --uchu-pink-2-raw: 92.14% 0.046 352.31; + --uchu-pink-2: oklch(var(--uchu-pink-2-raw)); + --uchu-pink-3-raw: 88.9% 0.066 354.39; + --uchu-pink-3: oklch(var(--uchu-pink-3-raw)); + --uchu-pink-4-raw: 85.43% 0.09 354.1; + --uchu-pink-4: oklch(var(--uchu-pink-4-raw)); + --uchu-pink-5-raw: 82.23% 0.112 355.33; + --uchu-pink-5: oklch(var(--uchu-pink-5-raw)); + --uchu-pink-6-raw: 76.37% 0.101 355.37; + --uchu-pink-6: oklch(var(--uchu-pink-6-raw)); + --uchu-pink-7-raw: 70.23% 0.092 354.96; + --uchu-pink-7: oklch(var(--uchu-pink-7-raw)); + --uchu-pink-8-raw: 64.11% 0.084 353.91; + --uchu-pink-8: oklch(var(--uchu-pink-8-raw)); + --uchu-pink-9-raw: 57.68% 0.074 353.14; + --uchu-pink-9: oklch(var(--uchu-pink-9-raw)); + + /*** purple ***/ + --uchu-purple-1-raw: 89.1% 0.046 305.24; + --uchu-purple-1: oklch(var(--uchu-purple-1-raw)); + --uchu-purple-2-raw: 78.68% 0.091 305; + --uchu-purple-2: oklch(var(--uchu-purple-2-raw)); + --uchu-purple-3-raw: 68.5% 0.136 303.78; + --uchu-purple-3: oklch(var(--uchu-purple-3-raw)); + --uchu-purple-4-raw: 58.47% 0.181 302.06; + --uchu-purple-4: oklch(var(--uchu-purple-4-raw)); + --uchu-purple-5-raw: 49.39% 0.215 298.31; + --uchu-purple-5: oklch(var(--uchu-purple-5-raw)); + --uchu-purple-6-raw: 46.11% 0.198 298.4; + --uchu-purple-6: oklch(var(--uchu-purple-6-raw)); + --uchu-purple-7-raw: 42.77% 0.181 298.49; + --uchu-purple-7: oklch(var(--uchu-purple-7-raw)); + --uchu-purple-8-raw: 39.46% 0.164 298.29; + --uchu-purple-8: oklch(var(--uchu-purple-8-raw)); + --uchu-purple-9-raw: 36.01% 0.145 298.35; + --uchu-purple-9: oklch(var(--uchu-purple-9-raw)); + + /*** blue ***/ + --uchu-blue-1-raw: 89.66% 0.046 260.67; + --uchu-blue-1: oklch(var(--uchu-blue-1-raw)); + --uchu-blue-2-raw: 80.17% 0.091 258.88; + --uchu-blue-2: oklch(var(--uchu-blue-2-raw)); + --uchu-blue-3-raw: 70.94% 0.136 258.06; + --uchu-blue-3: oklch(var(--uchu-blue-3-raw)); + --uchu-blue-4-raw: 62.39% 0.181 258.33; + --uchu-blue-4: oklch(var(--uchu-blue-4-raw)); + --uchu-blue-5-raw: 54.87% 0.222 260.33; + --uchu-blue-5: oklch(var(--uchu-blue-5-raw)); + --uchu-blue-6-raw: 51.15% 0.204 260.17; + --uchu-blue-6: oklch(var(--uchu-blue-6-raw)); + --uchu-blue-7-raw: 47.36% 0.185 259.89; + --uchu-blue-7: oklch(var(--uchu-blue-7-raw)); + --uchu-blue-8-raw: 43.48% 0.17 260.2; + --uchu-blue-8: oklch(var(--uchu-blue-8-raw)); + --uchu-blue-9-raw: 39.53% 0.15 259.87; + --uchu-blue-9: oklch(var(--uchu-blue-9-raw)); + + /*** green ***/ + --uchu-green-1-raw: 93.96% 0.05 148.74; + --uchu-green-1: oklch(var(--uchu-green-1-raw)); + --uchu-green-2-raw: 88.77% 0.096 147.71; + --uchu-green-2: oklch(var(--uchu-green-2-raw)); + --uchu-green-3-raw: 83.74% 0.139 146.57; + --uchu-green-3: oklch(var(--uchu-green-3-raw)); + --uchu-green-4-raw: 79.33% 0.179 145.62; + --uchu-green-4: oklch(var(--uchu-green-4-raw)); + --uchu-green-5-raw: 75.23% 0.209 144.64; + --uchu-green-5: oklch(var(--uchu-green-5-raw)); + --uchu-green-6-raw: 70.03% 0.194 144.71; + --uchu-green-6: oklch(var(--uchu-green-6-raw)); + --uchu-green-7-raw: 64.24% 0.175 144.92; + --uchu-green-7: oklch(var(--uchu-green-7-raw)); + --uchu-green-8-raw: 58.83% 0.158 145.05; + --uchu-green-8: oklch(var(--uchu-green-8-raw)); + --uchu-green-9-raw: 52.77% 0.138 145.41; + --uchu-green-9: oklch(var(--uchu-green-9-raw)); + + /*** yellow ***/ + --uchu-yellow-1-raw: 97.05% 0.039 91.2; + --uchu-yellow-1: oklch(var(--uchu-yellow-1-raw)); + --uchu-yellow-2-raw: 95% 0.07 92.39; + --uchu-yellow-2: oklch(var(--uchu-yellow-2-raw)); + --uchu-yellow-3-raw: 92.76% 0.098 92.58; + --uchu-yellow-3: oklch(var(--uchu-yellow-3-raw)); + --uchu-yellow-4-raw: 90.92% 0.125 92.56; + --uchu-yellow-4: oklch(var(--uchu-yellow-4-raw)); + --uchu-yellow-5-raw: 89% 0.146 91.5; + --uchu-yellow-5: oklch(var(--uchu-yellow-5-raw)); + --uchu-yellow-6-raw: 82.39% 0.133 91.5; + --uchu-yellow-6: oklch(var(--uchu-yellow-6-raw)); + --uchu-yellow-7-raw: 75.84% 0.122 92.21; + --uchu-yellow-7: oklch(var(--uchu-yellow-7-raw)); + --uchu-yellow-8-raw: 69.14% 0.109 91.04; + --uchu-yellow-8: oklch(var(--uchu-yellow-8-raw)); + --uchu-yellow-9-raw: 62.29% 0.097 91.9; + --uchu-yellow-9: oklch(var(--uchu-yellow-9-raw)); + + /*** orange ***/ + --uchu-orange-1-raw: 93.83% 0.037 56.93; + --uchu-orange-1: oklch(var(--uchu-orange-1-raw)); + --uchu-orange-2-raw: 88.37% 0.07258208750520016 55.80328658240742; + --uchu-orange-2: oklch(var(--uchu-orange-2-raw)); + --uchu-orange-3-raw: 83.56% 0.10753627570574478 56.492594564236946; + --uchu-orange-3: oklch(var(--uchu-orange-3-raw)); + --uchu-orange-4-raw: 78.75% 0.14163582809066333 54.32911089172009; + --uchu-orange-4: oklch(var(--uchu-orange-4-raw)); + --uchu-orange-5-raw: 74.61% 0.171 51.56; + --uchu-orange-5: oklch(var(--uchu-orange-5-raw)); + --uchu-orange-6-raw: 69.33% 0.157 52.18; + --uchu-orange-6: oklch(var(--uchu-orange-6-raw)); + --uchu-orange-7-raw: 63.8% 0.142 52.1; + --uchu-orange-7: oklch(var(--uchu-orange-7-raw)); + --uchu-orange-8-raw: 58.28% 0.128 52.2; + --uchu-orange-8: oklch(var(--uchu-orange-8-raw)); + --uchu-orange-9-raw: 52.49% 0.113 51.98; + --uchu-orange-9: oklch(var(--uchu-orange-9-raw)); + + /*** general ***/ + --uchu-yin-1-raw: 91.87% 0.003 264.54; + --uchu-yin-1: oklch(var(--uchu-yin-1-raw)); + --uchu-yin-2-raw: 84.61% 0.004 286.31; + --uchu-yin-2: oklch(var(--uchu-yin-2-raw)); + --uchu-yin-3-raw: 76.89% 0.004 247.87; + --uchu-yin-3: oklch(var(--uchu-yin-3-raw)); + --uchu-yin-4-raw: 69.17% 0.004 247.88; + --uchu-yin-4: oklch(var(--uchu-yin-4-raw)); + --uchu-yin-5-raw: 61.01% 0.005 271.34; + --uchu-yin-5: oklch(var(--uchu-yin-5-raw)); + --uchu-yin-6-raw: 52.79% 0.005 271.32; + --uchu-yin-6: oklch(var(--uchu-yin-6-raw)); + --uchu-yin-7-raw: 43.87% 0.005 271.3; + --uchu-yin-7: oklch(var(--uchu-yin-7-raw)); + --uchu-yin-8-raw: 35.02% 0.005 236.66; + --uchu-yin-8: oklch(var(--uchu-yin-8-raw)); + --uchu-yin-9-raw: 25.11% 0.006 258.36; + --uchu-yin-9: oklch(var(--uchu-yin-9-raw)); + --uchu-yin-raw: 14.38% 0.007 256.88; + --uchu-yin: oklch(var(--uchu-yin-raw)); + --uchu-yang-raw: 99.4% 0 0; + --uchu-yang: oklch(var(--uchu-yang-raw)); +} diff --git a/definitions/style/color_expanded.scss b/definitions/style/color_expanded.scss new file mode 100644 index 0000000..877e505 --- /dev/null +++ b/definitions/style/color_expanded.scss @@ -0,0 +1,100 @@ +/*** gray ***/ +$uchu-gray-1: oklch(95.57% 0.003 286.35); +$uchu-gray-2: oklch(92.04% 0.002 197.12); +$uchu-gray-3: oklch(88.28% 0.003 286.34); +$uchu-gray-4: oklch(84.68% 0.002 197.12); +$uchu-gray-5: oklch(80.73% 0.002 247.84); +$uchu-gray-6: oklch(75.03% 0.002 247.85); +$uchu-gray-7: oklch(69.01% 0.003 286.32); +$uchu-gray-8: oklch(63.12% 0.004 219.55); +$uchu-gray-9: oklch(56.82% 0.004 247.89); + +/*** red ***/ +$uchu-red-1: oklch(88.98% 0.052 3.28); +$uchu-red-2: oklch(78.78% 0.109 4.54); +$uchu-red-3: oklch(69.86% 0.162 7.82); +$uchu-red-4: oklch(62.73% 0.209 12.37); +$uchu-red-5: oklch(58.63% 0.231 19.6); +$uchu-red-6: oklch(54.41% 0.214 19.06); +$uchu-red-7: oklch(49.95% 0.195 18.34); +$uchu-red-8: oklch(45.8% 0.177 17.7); +$uchu-red-9: oklch(41.17% 0.157 16.58); + +/*** pink ***/ +$uchu-pink-1: oklch(95.8% 0.023 354.27); +$uchu-pink-2: oklch(92.14% 0.046 352.31); +$uchu-pink-3: oklch(88.9% 0.066 354.39); +$uchu-pink-4: oklch(85.43% 0.09 354.1); +$uchu-pink-5: oklch(82.23% 0.112 355.33); +$uchu-pink-6: oklch(76.37% 0.101 355.37); +$uchu-pink-7: oklch(70.23% 0.092 354.96); +$uchu-pink-8: oklch(64.11% 0.084 353.91); +$uchu-pink-9: oklch(57.68% 0.074 353.14); + +/*** purple ***/ +$uchu-purple-1: oklch(89.1% 0.046 305.24); +$uchu-purple-2: oklch(78.68% 0.091 305); +$uchu-purple-3: oklch(68.5% 0.136 303.78); +$uchu-purple-4: oklch(58.47% 0.181 302.06); +$uchu-purple-5: oklch(49.39% 0.215 298.31); +$uchu-purple-6: oklch(46.11% 0.198 298.4); +$uchu-purple-7: oklch(42.77% 0.181 298.49); +$uchu-purple-8: oklch(39.46% 0.164 298.29); +$uchu-purple-9: oklch(36.01% 0.145 298.35); + +/*** blue ***/ +$uchu-blue-1: oklch(89.66% 0.046 260.67); +$uchu-blue-2: oklch(80.17% 0.091 258.88); +$uchu-blue-3: oklch(70.94% 0.136 258.06); +$uchu-blue-4: oklch(62.39% 0.181 258.33); +$uchu-blue-5: oklch(54.87% 0.222 260.33); +$uchu-blue-6: oklch(51.15% 0.204 260.17); +$uchu-blue-7: oklch(47.36% 0.185 259.89); +$uchu-blue-8: oklch(43.48% 0.17 260.2); +$uchu-blue-9: oklch(39.53% 0.15 259.87); + +/*** green ***/ +$uchu-green-1: oklch(93.96% 0.05 148.74); +$uchu-green-2: oklch(88.77% 0.096 147.71); +$uchu-green-3: oklch(83.74% 0.139 146.57); +$uchu-green-4: oklch(79.33% 0.179 145.62); +$uchu-green-5: oklch(75.23% 0.209 144.64); +$uchu-green-6: oklch(70.03% 0.194 144.71); +$uchu-green-7: oklch(64.24% 0.175 144.92); +$uchu-green-8: oklch(58.83% 0.158 145.05); +$uchu-green-9: oklch(52.77% 0.138 145.41); + +/*** yellow ***/ +$uchu-yellow-1: oklch(97.05% 0.039 91.2); +$uchu-yellow-2: oklch(95% 0.07 92.39); +$uchu-yellow-3: oklch(92.76% 0.098 92.58); +$uchu-yellow-4: oklch(90.92% 0.125 92.56); +$uchu-yellow-5: oklch(89% 0.146 91.5); +$uchu-yellow-6: oklch(82.39% 0.133 91.5); +$uchu-yellow-7: oklch(75.84% 0.122 92.21); +$uchu-yellow-8: oklch(69.14% 0.109 91.04); +$uchu-yellow-9: oklch(62.29% 0.097 91.9); + +/*** orange ***/ +$uchu-orange-1: oklch(93.83% 0.037 56.93); +$uchu-orange-2: oklch(88.37% 0.07258208750520016 55.80328658240742); +$uchu-orange-3: oklch(83.56% 0.10753627570574478 56.492594564236946); +$uchu-orange-4: oklch(78.75% 0.14163582809066333 54.32911089172009); +$uchu-orange-5: oklch(74.61% 0.171 51.56); +$uchu-orange-6: oklch(69.33% 0.157 52.18); +$uchu-orange-7: oklch(63.8% 0.142 52.1); +$uchu-orange-8: oklch(58.28% 0.128 52.2); +$uchu-orange-9: oklch(52.49% 0.113 51.98); + +/*** general ***/ +$uchu-yin-1: oklch(91.87% 0.003 264.54); +$uchu-yin-2: oklch(84.61% 0.004 286.31); +$uchu-yin-3: oklch(76.89% 0.004 247.87); +$uchu-yin-4: oklch(69.17% 0.004 247.88); +$uchu-yin-5: oklch(61.01% 0.005 271.34); +$uchu-yin-6: oklch(52.79% 0.005 271.32); +$uchu-yin-7: oklch(43.87% 0.005 271.3); +$uchu-yin-8: oklch(35.02% 0.005 236.66); +$uchu-yin-9: oklch(25.11% 0.006 258.36); +$uchu-yin: oklch(14.38% 0.007 256.88); +$uchu-yang: oklch(99.4% 0 0); diff --git a/demo/asset/audio/pronounciation.mp3 b/demo/asset/audio/pronounciation.mp3 new file mode 100644 index 0000000..4f29344 Binary files /dev/null and b/demo/asset/audio/pronounciation.mp3 differ diff --git a/demo/asset/audio/pronounciation.ogg b/demo/asset/audio/pronounciation.ogg new file mode 100644 index 0000000..dc24a90 Binary files /dev/null and b/demo/asset/audio/pronounciation.ogg differ diff --git a/demo/asset/audio/pronounciation.wav b/demo/asset/audio/pronounciation.wav new file mode 100644 index 0000000..2efc915 Binary files /dev/null and b/demo/asset/audio/pronounciation.wav differ diff --git a/demo/asset/image/og.png b/demo/asset/image/og.png new file mode 100644 index 0000000..dbb2d13 Binary files /dev/null and b/demo/asset/image/og.png differ diff --git a/demo/asset/script/shared.js b/demo/asset/script/shared.js new file mode 100644 index 0000000..73ea5c2 --- /dev/null +++ b/demo/asset/script/shared.js @@ -0,0 +1,48 @@ +function copyTextToClipboard(text, { target = document.body } = {}) { + if (typeof text !== "string") + throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof text}\`.`); + + const element = document.createElement("textarea"); + const previouslyFocusedElement = document.activeElement; + let isSuccess = false; + + element.value = text; + element.setAttribute("readonly", ""); + element.style.contain = "strict"; + element.style.position = "absolute"; + element.style.left = "-9999px"; + element.style.fontSize = "12pt"; + + const selection = document.getSelection(); + const originalRange = selection.rangeCount > 0 && selection.getRangeAt(0); + + target.append(element); + + element.select(); + element.selectionStart = 0; + element.selectionEnd = text.length; + + try { + isSuccess = document.execCommand("copy"); + } catch(_) { + // + } + + element.remove(); + + if (originalRange) { + selection.removeAllRanges(); + selection.addRange(originalRange); + } + + if (previouslyFocusedElement) + previouslyFocusedElement.focus(); + return isSuccess; + + /// via https://github.com/sindresorhus/copy-text-to-clipboard +} + +function playAudio() { + const audio = document.getElementById("speak"); + audio.play(); +} diff --git a/demo/asset/style/shared.css b/demo/asset/style/shared.css new file mode 100644 index 0000000..ed8a6d1 --- /dev/null +++ b/demo/asset/style/shared.css @@ -0,0 +1,207 @@ +*, *::before, *::after { + margin: 0; padding: 0; + box-sizing: inherit; +} + +html { + box-sizing: border-box; + font-size: 12px; + scroll-behavior: smooth; +} + +body { + font-family: system-ui, sans-serif; + font-size: 1.25rem; + line-height: 1.33; +} + +section { + display: flex; + flex-direction: column; + width: 100%; + + &:not(.intro) { + height: 100vh; + } + + &:not(:last-of-type) { + margin-bottom: 1rem; + } + + h2 { + line-height: 1; + text-align: center; + + @media (min-width: 901px) { + font-size: 5vw; + } + + @media (min-width: 701px) and (max-width: 900px) { + font-size: 5rem; + } + + @media (max-width: 700px) { + font-size: 2rem; + } + + span { + opacity: 0.15; + } + } + + h3 { + font-size: 5vw; + line-height: 1; + position: relative; + text-align: right; + + &::after { + width: 100%; height: 100%; + bottom: 0; left: 0; + + content: ""; + position: absolute; + } + } + + a { + transition: color 0.2s; + } + + .info, + .swatches { + width: 100%; height: 50%; + } + + .info { + display: flex; + flex-direction: column; + justify-content: center; + padding: 1rem; + position: relative; + + p { + top: 1rem; left: 1rem; + letter-spacing: 0.05rem; + position: absolute; + } + + h3 { + bottom: 1rem; right: 1rem; + position: absolute; + } + } + + .swatches { + display: flex; + flex-direction: row; + height: 50%; + list-style-type: none; + + .swatch { + display: flex; + flex-direction: column; + height: 100%; + justify-content: end; + position: relative; + + h3 { + z-index: 1; + } + + p { + height: 100%; + padding: 1.5rem 1rem; + opacity: 0.5; + position: absolute; + writing-mode: vertical-rl; + + @media (min-width: 701px) { + width: 100%; + } + + &::after { + width: 100%; height: 75%; + bottom: 0; right: 0; + + content: ""; + position: absolute; + } + } + } + } + + &.intro { + align-items: center; + display: flex; + flex-direction: column; + height: 45vh; + justify-content: center; + + h1 { + cursor: pointer; + font-size: 10rem; + max-width: 280px; + width: fit-content; + } + + p { + padding: 2rem; + text-align: center; + } + + .links { + .link { + border-radius: 5rem; + padding: 0.5rem 1rem; + text-decoration: none; + transition: background-color 0.2s; + + &:not(:first-of-type) { + margin-left: 0.25rem; + } + } + } + + .palette { + display: flex; + flex-direction: row; + width: 280px; + + a { + width: calc(280px / 8); height: calc(280px / 8); + } + } + } +} + +.notify { + width: 100%; height: 5rem; + bottom: 0; left: 0; + + color: var(--uchu-yang); + display: flex; + flex-direction: column; + font-size: 1.5rem; + justify-content: center; + padding: 0 1.25rem; + position: fixed; + transition: transform 0.2s;; + user-select: none; + + &:not(.active) { + transform: translateY(5rem); + z-index: 0; + } + + &.active { + transform: translateY(0); + z-index: 10; + } +} + +@keyframes loading { + 50% { + color: var(--uchu-yang); + } +} diff --git a/demo/favicon.svg b/demo/favicon.svg new file mode 100644 index 0000000..1932816 --- /dev/null +++ b/demo/favicon.svg @@ -0,0 +1,56 @@ + + + + + diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..b54ec2b --- /dev/null +++ b/demo/index.html @@ -0,0 +1,1360 @@ + + + + + + + + + + + + + + + + + + + + + + uchū demo · expanded palette + + + + + + + + + + + + + + + +
+

uchū

+ + + +

the color palette for internet lovers
by NetOperator Wibby

+ + +
+ +
+
+

oklch(95.57% 0.003 286.35)

+

var(--uchu-gray-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(92.04% 0.002 197.12)

    +
  • + +
  • +

    3

    +

    oklch(88.28% 0.003 286.34)

    +
  • + +
  • +

    4

    +

    oklch(84.68% 0.002 197.12)

    +
  • + +
  • +

    5

    +

    oklch(80.73% 0.002 247.84)

    +
  • + +
  • +

    6

    +

    oklch(75.03% 0.002 247.85)

    +
  • + +
  • +

    7

    +

    oklch(69.01% 0.003 286.32)

    +
  • + +
  • +

    8

    +

    oklch(63.12% 0.004 219.55)

    +
  • + +
  • +

    9

    +

    oklch(56.82% 0.004 247.89)

    +
  • +
+
+ +
+
+

oklch(88.98% 0.052 3.28)

+

var(--uchu-red-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(78.78% 0.109 4.54)

    +
  • + +
  • +

    3

    +

    oklch(69.86% 0.162 7.82)

    +
  • + +
  • +

    4

    +

    oklch(62.73% 0.209 12.37)

    +
  • + +
  • +

    5

    +

    oklch(58.63% 0.231 19.6)

    +
  • + +
  • +

    6

    +

    oklch(54.41% 0.214 19.06)

    +
  • + +
  • +

    7

    +

    oklch(49.95% 0.195 18.34)

    +
  • + +
  • +

    8

    +

    oklch(45.8% 0.177 17.7)

    +
  • + +
  • +

    9

    +

    oklch(41.17% 0.157 16.58)

    +
  • +
+
+ +
+
+

oklch(95.8% 0.023 354.27)

+

var(--uchu-pink-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(92.14% 0.046 352.31)

    +
  • + +
  • +

    3

    +

    oklch(88.9% 0.066 354.39)

    +
  • + +
  • +

    4

    +

    oklch(85.43% 0.09 354.1)

    +
  • + +
  • +

    5

    +

    oklch(82.23% 0.112 355.33)

    +
  • + +
  • +

    6

    +

    oklch(76.37% 0.101 355.37)

    +
  • + +
  • +

    7

    +

    oklch(70.23% 0.092 354.96)

    +
  • + +
  • +

    8

    +

    oklch(64.11% 0.084 353.91)

    +
  • + +
  • +

    9

    +

    oklch(57.68% 0.074 353.14)

    +
  • +
+
+ +
+
+

oklch(89.1% 0.046 305.24)

+

var(--uchu-purple-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(78.68% 0.091 305)

    +
  • + +
  • +

    3

    +

    oklch(68.5% 0.136 303.78)

    +
  • + +
  • +

    4

    +

    oklch(58.47% 0.181 302.06)

    +
  • + +
  • +

    5

    +

    oklch(49.39% 0.215 298.31)

    +
  • + +
  • +

    6

    +

    oklch(46.11% 0.198 298.4)

    +
  • + +
  • +

    7

    +

    oklch(42.77% 0.181 298.49)

    +
  • + +
  • +

    8

    +

    oklch(39.46% 0.164 298.29)

    +
  • + +
  • +

    9

    +

    oklch(36.01% 0.145 298.35)

    +
  • +
+
+ +
+
+

oklch(89.66% 0.046 260.67)

+

var(--uchu-blue-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(80.17% 0.091 258.88)

    +
  • + +
  • +

    3

    +

    oklch(70.94% 0.136 258.06)

    +
  • + +
  • +

    4

    +

    oklch(62.39% 0.181 258.33)

    +
  • + +
  • +

    5

    +

    oklch(54.87% 0.222 260.33)

    +
  • + +
  • +

    6

    +

    oklch(51.15% 0.204 260.17)

    +
  • + +
  • +

    7

    +

    oklch(47.36% 0.185 259.89)

    +
  • + +
  • +

    8

    +

    oklch(43.48% 0.17 260.2)

    +
  • + +
  • +

    9

    +

    oklch(39.53% 0.15 259.87)

    +
  • +
+
+ +
+
+

oklch(93.96% 0.05 148.74)

+

var(--uchu-green-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(88.77% 0.096 147.71)

    +
  • + +
  • +

    3

    +

    oklch(83.74% 0.139 146.57)

    +
  • + +
  • +

    4

    +

    oklch(79.33% 0.179 145.62)

    +
  • + +
  • +

    5

    +

    oklch(75.23% 0.209 144.64)

    +
  • + +
  • +

    6

    +

    oklch(70.03% 0.194 144.71)

    +
  • + +
  • +

    7

    +

    oklch(64.24% 0.175 144.92)

    +
  • + +
  • +

    8

    +

    oklch(58.83% 0.158 145.05)

    +
  • + +
  • +

    9

    +

    oklch(52.77% 0.138 145.41)

    +
  • +
+
+ +
+
+

oklch(97.05% 0.039 91.2)

+

var(--uchu-yellow-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(95% 0.07 92.39)

    +
  • + +
  • +

    3

    +

    oklch(92.76% 0.098 92.58)

    +
  • + +
  • +

    4

    +

    oklch(90.92% 0.125 92.56)

    +
  • + +
  • +

    5

    +

    oklch(89% 0.146 91.5)

    +
  • + +
  • +

    6

    +

    oklch(82.39% 0.133 91.5)

    +
  • + +
  • +

    7

    +

    oklch(75.84% 0.122 92.21)

    +
  • + +
  • +

    8

    +

    oklch(69.14% 0.109 91.04)

    +
  • + +
  • +

    9

    +

    oklch(62.29% 0.097 91.9)

    +
  • +
+
+ +
+
+

oklch(93.83% 0.037 56.93)

+

var(--uchu-orange-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(88.37% 0.07258208750520016 55.80328658240742)

    +
  • + +
  • +

    3

    +

    oklch(83.56% 0.10753627570574478 56.492594564236946)

    +
  • + +
  • +

    4

    +

    oklch(78.75% 0.14163582809066333 54.32911089172009)

    +
  • + +
  • +

    5

    +

    oklch(74.61% 0.171 51.56)

    +
  • + +
  • +

    6

    +

    oklch(69.33% 0.157 52.18)

    +
  • + +
  • +

    7

    +

    oklch(63.8% 0.142 52.1)

    +
  • + +
  • +

    8

    +

    oklch(58.28% 0.128 52.2)

    +
  • + +
  • +

    9

    +

    oklch(52.49% 0.113 51.98)

    +
  • +
+
+ +
+
+

oklch(91.87% 0.003 264.54)

+

var(--uchu-yin-#)

+

1

+
+ +
    +
  • +

    2

    +

    oklch(84.61% 0.004 286.31)

    +
  • + +
  • +

    3

    +

    oklch(76.89% 0.004 247.87)

    +
  • + +
  • +

    4

    +

    oklch(69.17% 0.004 247.88)

    +
  • + +
  • +

    5

    +

    oklch(61.01% 0.005 271.34)

    +
  • + +
  • +

    6

    +

    oklch(52.79% 0.005 271.32)

    +
  • + +
  • +

    7

    +

    oklch(43.87% 0.005 271.3)

    +
  • + +
  • +

    8

    +

    oklch(35.02% 0.005 236.66)

    +
  • + +
  • +

    9

    +

    oklch(25.11% 0.006 258.36)

    +
  • +
+
+ + + + + + diff --git a/demo/simple.html b/demo/simple.html new file mode 100644 index 0000000..0936244 --- /dev/null +++ b/demo/simple.html @@ -0,0 +1,607 @@ + + + + + + + + + + + + + + + + + + + + + + uchū demo · simple palette + + + + + + + + + + + + + + + +
+

uchū

+ + + +

the color palette for internet lovers
by NetOperator Wibby

+ + +
+ +
+
+

oklch(95.57% 0.003 286.35)

+

var(--uchu-light-gray)

+
+ +
    +
  • +

    var(--uchu-gray)

    +

    oklch(84.68% 0.002 197.12)

    +
  • + +
  • +

    var(--uchu-dark-gray)

    +

    oklch(63.12% 0.004 219.55)

    +
  • +
+
+ +
+
+

oklch(88.98% 0.052 3.28)

+

var(--uchu-light-red)

+
+ +
    +
  • +

    var(--uchu-red)

    +

    oklch(62.73% 0.209 12.37)

    +
  • + +
  • +

    var(--uchu-dark-red)

    +

    oklch(45.8% 0.177 17.7)

    +
  • +
+
+ +
+
+

oklch(95.8% 0.023 354.27)

+

var(--uchu-light-pink)

+
+ +
    +
  • +

    var(--uchu-pink)

    +

    oklch(85.43% 0.09 354.1)

    +
  • + +
  • +

    var(--uchu-dark-pink)

    +

    oklch(64.11% 0.084 353.91)

    +
  • +
+
+ +
+
+

oklch(89.1% 0.046 305.24)

+

var(--uchu-light-purple)

+
+ +
    +
  • +

    var(--uchu-purple)

    +

    oklch(58.47% 0.181 302.06)

    +
  • + +
  • +

    var(--uchu-dark-purple)

    +

    oklch(39.46% 0.164 298.29)

    +
  • +
+
+ +
+
+

oklch(89.66% 0.046 260.67)

+

var(--uchu-light-blue)

+
+ +
    +
  • +

    var(--uchu-blue)

    +

    oklch(62.39% 0.181 258.33)

    +
  • + +
  • +

    var(--uchu-dark-blue)

    +

    oklch(43.48% 0.17 260.2)

    +
  • +
+
+ +
+
+

oklch(93.96% 0.05 148.74)

+

var(--uchu-light-green)

+
+ +
    +
  • +

    var(--uchu-green)

    +

    oklch(79.33% 0.179 145.62)

    +
  • + +
  • +

    var(--uchu-dark-green)

    +

    oklch(58.83% 0.158 145.05)

    +
  • +
+
+ +
+
+

oklch(97.05% 0.039 91.2)

+

var(--uchu-light-yellow)

+
+ +
    +
  • +

    var(--uchu-yellow)

    +

    oklch(90.92% 0.125 92.56)

    +
  • + +
  • +

    var(--uchu-dark-yellow)

    +

    oklch(69.14% 0.109 91.04)

    +
  • +
+
+ +
+
+

oklch(93.83% 0.037 56.93)

+

var(--uchu-light-orange)

+
+ +
    +
  • +

    var(--uchu-orange)

    +

    oklch(78.75% 0.14163582809066333 54.32911089172009)

    +
  • + +
  • +

    var(--uchu-dark-orange)

    +

    oklch(58.28% 0.128 52.2)

    +
  • +
+
+ +
+
+

oklch(91.87% 0.003 264.54)

+

var(--uchu-light-yin)

+
+ +
    +
  • +

    var(--uchu-yin)

    +

    oklch(14.38% 0.007 256.88)

    +
  • + +
  • +

    var(--uchu-yang)

    +

    oklch(99.4% 0 0)

    +
  • +
+
+ + + + + + diff --git a/documentation/EXPANDED.md b/documentation/EXPANDED.md new file mode 100644 index 0000000..27dd1c9 --- /dev/null +++ b/documentation/EXPANDED.md @@ -0,0 +1,161 @@ +# Expanded Palette + +The default color palette is [`color_expanded.css`](../definitions/style/color_expanded.css) and consists of ten colors, eight of which have nine stops; gray, red, pink, purple, blue, green, yellow, orange. Yin (black) has ten stops while yang (white) only has one stop. + +If you want more granularity (read: opacity), you can call the raw version of the color (append `-raw` to the variable name) which will return the OKLCH values so you can do something like this: `oklch(var(--uchu-gray-1-raw) / 40%)`. + + + +## Gray + +![](./image/expanded/gray.png) + +- `var(--uchu-gray-1)` +- `var(--uchu-gray-2)` +- `var(--uchu-gray-3)` +- `var(--uchu-gray-4)` +- `var(--uchu-gray-5)` +- `var(--uchu-gray-6)` +- `var(--uchu-gray-7)` +- `var(--uchu-gray-8)` +- `var(--uchu-gray-9)` + + + +## Red + +![](./image/expanded/red.png) + +- `var(--uchu-red-1)` +- `var(--uchu-red-2)` +- `var(--uchu-red-3)` +- `var(--uchu-red-4)` +- `var(--uchu-red-5)` +- `var(--uchu-red-6)` +- `var(--uchu-red-7)` +- `var(--uchu-red-8)` +- `var(--uchu-red-9)` + + + +## Pink + +![](./image/expanded/pink.png) + +- `var(--uchu-pink-1)` +- `var(--uchu-pink-2)` +- `var(--uchu-pink-3)` +- `var(--uchu-pink-4)` +- `var(--uchu-pink-5)` +- `var(--uchu-pink-6)` +- `var(--uchu-pink-7)` +- `var(--uchu-pink-8)` +- `var(--uchu-pink-9)` + + + +## Purple + +![](./image/expanded/purple.png) + +- `var(--uchu-purple-1)` +- `var(--uchu-purple-2)` +- `var(--uchu-purple-3)` +- `var(--uchu-purple-4)` +- `var(--uchu-purple-5)` +- `var(--uchu-purple-6)` +- `var(--uchu-purple-7)` +- `var(--uchu-purple-8)` +- `var(--uchu-purple-9)` + + + +## Blue + +![](./image/expanded/blue.png) + +- `var(--uchu-blue-1)` +- `var(--uchu-blue-2)` +- `var(--uchu-blue-3)` +- `var(--uchu-blue-4)` +- `var(--uchu-blue-5)` +- `var(--uchu-blue-6)` +- `var(--uchu-blue-7)` +- `var(--uchu-blue-8)` +- `var(--uchu-blue-9)` + + + +## Green + +![](./image/expanded/green.png) + +- `var(--uchu-green-1)` +- `var(--uchu-green-2)` +- `var(--uchu-green-3)` +- `var(--uchu-green-4)` +- `var(--uchu-green-5)` +- `var(--uchu-green-6)` +- `var(--uchu-green-7)` +- `var(--uchu-green-8)` +- `var(--uchu-green-9)` + + + +## Yellow + +![](./image/expanded/yellow.png) + +- `var(--uchu-yellow-1)` +- `var(--uchu-yellow-2)` +- `var(--uchu-yellow-3)` +- `var(--uchu-yellow-4)` +- `var(--uchu-yellow-5)` +- `var(--uchu-yellow-6)` +- `var(--uchu-yellow-7)` +- `var(--uchu-yellow-8)` +- `var(--uchu-yellow-9)` + + + +## Orange + +![](./image/expanded/orange.png) + +- `var(--uchu-orange-1)` +- `var(--uchu-orange-2)` +- `var(--uchu-orange-3)` +- `var(--uchu-orange-4)` +- `var(--uchu-orange-5)` +- `var(--uchu-orange-6)` +- `var(--uchu-orange-7)` +- `var(--uchu-orange-8)` +- `var(--uchu-orange-9)` + + + +## General + +![](./image/expanded/general.png) + +- `var(--uchu-yin-1)` +- `var(--uchu-yin-2)` +- `var(--uchu-yin-3)` +- `var(--uchu-yin-4)` +- `var(--uchu-yin-5)` +- `var(--uchu-yin-6)` +- `var(--uchu-yin-7)` +- `var(--uchu-yin-8)` +- `var(--uchu-yin-9)` +- `var(--uchu-yin)` +- `var(--uchu-yang)` + + + +## Sass + +If you know what Sass is, you'll know how to use [`color_expanded.scss`](../definitions/style/color_expanded.scss). I didn't provide raw versions of them because Sass comes with so many color tools (and, I've been using regular CSS variables in my Sass _anyways_). + +## JS + +If you are a fan of CSS-in-JS or need to programmatically grab color values, there's [`color.json`](../definitions/script/color_expanded.json) and [`color.ts`](../definitions/script/color_expanded.ts) includes available. diff --git a/documentation/FAQ.md b/documentation/FAQ.md new file mode 100644 index 0000000..8650c82 --- /dev/null +++ b/documentation/FAQ.md @@ -0,0 +1,93 @@ +# FAQ + +These questions are sourced from the sentiment and actual statements from people on the [Hacker News thread](https://news.ycombinator.com/item?id=43072338). + + + +## Origin + +> Where did these colors come from? + +High-level: looked at the Wikipedia page for Crayola colors, selected my favorites, put a filter over them in Affinity Designer, made more edits (have to research my notes to figure out details), and eventually landed at these color stops. + +It took a long time to settle on yellow/orange because I've never been able to get a good yellow I was happy with, specifically. + + + +## Normal colors + +> Where's the HEX codes? + +The point of this palette is to move away from HEX codes. If you need/want them in your own projects, feel free to fork. + + + +## Dark Mode + +> This site doesn't respect my dark mode preference so I left! + +It's not about "respect," I never implemented a dark mode. + +> A well thought out palette would have all the things + +👍🏾 + + + +## The name + +> Why the name uchū? + +"uchū" means "universe" in Japanese. I use this theme for all of my projects so...universal. + +I can't speak to anything else but personally, I love Japan style/aesthetic/whatever so I'm gonna use a word if it fits. + +> As a non-Japanese person, **I** think that **YOU** shouldn't just pick Japanese words for your project + +...okay + +> ACKHTUALLY it doesn't mean "universe," it's closer to "space" + +My apologies for not being fluent in the Japanese language. + +I didn't look deeper than [WordHippo](https://www.wordhippo.com/what-is/the/japanese-word-for-244fb75b19415c9ee4f143b34b4b241236fb63f5.html) for translation. + +> Typical American, taking things that don't belong to you. Get bent. + +(I never responded to this and this person deleted their comments twice to get even nastier) + + + +## Virality + +> Why is a page full of color codes on the front page? + +Beats me, I just wanted to share something cool I made. + +> These colors aren't even good + +...okay? + +> If you present something to Hacker News, it better be professional and this is subpar. I don't even know what uchū means. + +My bad? + + + +## The tagline + +> This title is clickbait! It annoys me!! + +I don't understand... + +> You don't know how words work!! + +You got it man. + +> You have failed to show the relationship between "the internet" and "love." In what sense is this theme for internet lovers?! + +😳 + +> EXPLAIN TO ME HOW THIS THEME IS FOR SELF-PROFESSED INTERNET LOVERS + +It's not that deep bro diff --git a/documentation/REDUCED.md b/documentation/REDUCED.md new file mode 100644 index 0000000..b158161 --- /dev/null +++ b/documentation/REDUCED.md @@ -0,0 +1,105 @@ +# Reduced Palette + +Sometimes, an abundance of color options is a hindrance. Analysis paralysis, amirite? To this end [`color.css`](../definitions/style/color.css) reduces the number of stops in the expanded palette to three, save for yin (it only has two) and yang (it only has one). + +If you want more granularity (read: opacity), you can call the raw version of the color (append `-raw` to the variable name) which will return the OKLCH values so you can do something like this: `oklch(var(--uchu-light-gray-raw) / 40%)`. + + + +## Gray + +![](./image/reduced/gray.png) + +- `var(--uchu-light-gray)` +- `var(--uchu-gray)` +- `var(--uchu-dark-gray)` + + + +## Red + +![](./image/reduced/red.png) + +- `var(--uchu-light-red)` +- `var(--uchu-red)` +- `var(--uchu-dark-red)` + + + +## Pink + +![](./image/reduced/pink.png) + +- `var(--uchu-light-pink)` +- `var(--uchu-pink)` +- `var(--uchu-dark-pink)` + + + +## Purple + +![](./image/reduced/purple.png) + +- `var(--uchu-light-purple)` +- `var(--uchu-purple)` +- `var(--uchu-dark-purple)` + + + +## Blue + +![](./image/reduced/blue.png) + +- `var(--uchu-light-blue)` +- `var(--uchu-blue)` +- `var(--uchu-dark-blue)` + + + +## Green + +![](./image/reduced/green.png) + +- `var(--uchu-light-green)` +- `var(--uchu-green)` +- `var(--uchu-dark-green)` + + + +## Yellow + +![](./image/reduced/yellow.png) + +- `var(--uchu-light-yellow)` +- `var(--uchu-yellow)` +- `var(--uchu-dark-yellow)` + + + +## Orange + +![](./image/reduced/orange.png) + +- `var(--uchu-light-orange)` +- `var(--uchu-orange)` +- `var(--uchu-dark-orange)` + + + +## General + +![](./image/reduced/general.png) + +- `var(--uchu-light-yin)` +- `var(--uchu-yin)` +- `var(--uchu-yang)` + + + +## Sass + +If you know what Sass is, you'll know how to use [`color.scss`](../definitions/style/color.scss). I didn't provide raw versions of them because Sass comes with so many color tools (and, I've been using regular CSS variables in my Sass _anyways_). + +## JS + +If you are a fan of CSS-in-JS or need to programmatically grab color values, there's [`color.json`](../definitions/script/color.json) and [`color.ts`](../definitions/script/color.ts) includes available. diff --git a/documentation/SHOWCASE.md b/documentation/SHOWCASE.md new file mode 100644 index 0000000..33e8f52 --- /dev/null +++ b/documentation/SHOWCASE.md @@ -0,0 +1,11 @@ +# Showcase + +If you use uchū for your projects/websites/whatever, file a PR or let me know via [Mastodon](https://social.coop/@netopwibby)/[Blueksy](https://bsky.app/profile/webb.page)! + + + +## Websites + +- https://webb.page +- https://blog.webb.page +- https://inc.sh diff --git a/documentation/UNLICENSE.md b/documentation/UNLICENSE.md new file mode 100644 index 0000000..1266592 --- /dev/null +++ b/documentation/UNLICENSE.md @@ -0,0 +1,7 @@ +# Why UNLICENSE? + +LOL, imagine "owning" color. LMAO! + +Did I spend a few weeks working on this? Yes. Did I spend a year living with this? Also yes. + +Did I want to keep copy/pasting these variables into my many projects for the foreseeable future, or wrangling with how to import things from private repos? Absolutely not. Wack. diff --git a/documentation/USAGE.md b/documentation/USAGE.md new file mode 100644 index 0000000..380ce4e --- /dev/null +++ b/documentation/USAGE.md @@ -0,0 +1,64 @@ +# Usage + +I love Deno. URL imports are cool. Anyhoo, you can do the same with uchū: + +- `https://uchu.style/color.css` +- `https://uchu.style/color_expanded.css` + + + +## Pure + +If you're coding a website by hand, you probably want to use the reduced palette. Or not, whatever. + +```html + + + + + + + + + + + +
+

My background is slightly off-white and my text color is a nuanced black.

+
+ + +``` + + + +## Svelte/SvelteKit + +If you're coding a web app, you probably want to use the expanded palette. Or not, whatever. + +```svelte + + + + +
+

My background is slightly off-white and my text color is a nuanced black.

+
+``` diff --git a/documentation/image/expanded/blue.png b/documentation/image/expanded/blue.png new file mode 100644 index 0000000..ddb5c3f Binary files /dev/null and b/documentation/image/expanded/blue.png differ diff --git a/documentation/image/expanded/general.png b/documentation/image/expanded/general.png new file mode 100644 index 0000000..a8b9854 Binary files /dev/null and b/documentation/image/expanded/general.png differ diff --git a/documentation/image/expanded/gray.png b/documentation/image/expanded/gray.png new file mode 100644 index 0000000..c79f405 Binary files /dev/null and b/documentation/image/expanded/gray.png differ diff --git a/documentation/image/expanded/green.png b/documentation/image/expanded/green.png new file mode 100644 index 0000000..3ea6088 Binary files /dev/null and b/documentation/image/expanded/green.png differ diff --git a/documentation/image/expanded/orange.png b/documentation/image/expanded/orange.png new file mode 100644 index 0000000..7fa899f Binary files /dev/null and b/documentation/image/expanded/orange.png differ diff --git a/documentation/image/expanded/pink.png b/documentation/image/expanded/pink.png new file mode 100644 index 0000000..9d8aa6e Binary files /dev/null and b/documentation/image/expanded/pink.png differ diff --git a/documentation/image/expanded/purple.png b/documentation/image/expanded/purple.png new file mode 100644 index 0000000..8572a5a Binary files /dev/null and b/documentation/image/expanded/purple.png differ diff --git a/documentation/image/expanded/red.png b/documentation/image/expanded/red.png new file mode 100644 index 0000000..588c12a Binary files /dev/null and b/documentation/image/expanded/red.png differ diff --git a/documentation/image/expanded/yellow.png b/documentation/image/expanded/yellow.png new file mode 100644 index 0000000..c833eba Binary files /dev/null and b/documentation/image/expanded/yellow.png differ diff --git a/documentation/image/reduced/blue.png b/documentation/image/reduced/blue.png new file mode 100644 index 0000000..70388e6 Binary files /dev/null and b/documentation/image/reduced/blue.png differ diff --git a/documentation/image/reduced/general.png b/documentation/image/reduced/general.png new file mode 100644 index 0000000..c7b645d Binary files /dev/null and b/documentation/image/reduced/general.png differ diff --git a/documentation/image/reduced/gray.png b/documentation/image/reduced/gray.png new file mode 100644 index 0000000..16b11ab Binary files /dev/null and b/documentation/image/reduced/gray.png differ diff --git a/documentation/image/reduced/green.png b/documentation/image/reduced/green.png new file mode 100644 index 0000000..17aa5d6 Binary files /dev/null and b/documentation/image/reduced/green.png differ diff --git a/documentation/image/reduced/orange.png b/documentation/image/reduced/orange.png new file mode 100644 index 0000000..6b4b5c2 Binary files /dev/null and b/documentation/image/reduced/orange.png differ diff --git a/documentation/image/reduced/pink.png b/documentation/image/reduced/pink.png new file mode 100644 index 0000000..538c120 Binary files /dev/null and b/documentation/image/reduced/pink.png differ diff --git a/documentation/image/reduced/purple.png b/documentation/image/reduced/purple.png new file mode 100644 index 0000000..f196678 Binary files /dev/null and b/documentation/image/reduced/purple.png differ diff --git a/documentation/image/reduced/red.png b/documentation/image/reduced/red.png new file mode 100644 index 0000000..d3c79e5 Binary files /dev/null and b/documentation/image/reduced/red.png differ diff --git a/documentation/image/reduced/yellow.png b/documentation/image/reduced/yellow.png new file mode 100644 index 0000000..8e21e33 Binary files /dev/null and b/documentation/image/reduced/yellow.png differ -- cgit v1.2.3