the first commit

This commit is contained in:
2026-08-31 00:44:14 +05:30
parent 2bda703bec
commit 9d4e56ffc2
12 changed files with 1519 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
.venv/
build/
dist/
+236 -2
View File
@@ -1,3 +1,237 @@
# quadcol
# QuadCol
A color palette generator that creates a 4-color palette from a single base hex color.
## About
QuadCol is a color palette generator that creates a 4-color palette from a single base hex color. It uses the OKLab perceptually uniform color space to generate complementary colors with consistent perceptual brightness.
Given a base color, QuadCol generates:
- A lighter variant
- A medium variant
- The original base color
- A darker variant
The generated palette is rendered as an interactive HTML page displaying color swatches with hex and RGB values, along with CSS custom properties (variables) for easy integration into stylesheets.
## Dependencies
**coloraide** - A Python color library used to convert hex colors to the OKLab perceptually uniform color space, adjust lightness values for consistent color variants, and convert back to sRGB for hex and RGB output formats. This ensures the generated palette maintains visual harmony and perceptual consistency.
## Running From Source
These instructions are for Linux or macOS environments.
### Prerequisites
If you're on Linux and encounter a Python venv setup error, install the required package:
```bash
sudo apt install python3.12-venv
```
### Setup Steps
**1. Create a virtual environment** (one-time setup)
```bash
python3 -m venv .venv
```
**2. Activate the virtual environment** (required each time you open a terminal)
```bash
source .venv/bin/activate
```
**3. Install dependencies** (one-time setup)
```bash
pip install coloraide
```
**4. Run QuadCol**
```bash
python3 quadcol.py <base_color> [output_file]
```
Examples:
- `python3 quadcol.py FF6B6B` — generates `output.html`
- `python3 quadcol.py #FF6B6B mypalette.html` — saves to `mypalette.html`
## Single Executable
If you want to use QuadCol without keeping a virtual environment active, or you want a cleaner developer workflow, bundle it into a single executable and put it on your `PATH`.
This is the easiest option for day-to-day use because it avoids ad-hoc files in the repo and lets you run `quadcol` from anywhere.
### Why use the executable build?
- Keeps the project root cleaner
- Avoids repeated setup churn from generated files
- Makes the command easier to invoke in scripts and terminal sessions
- Gives you a stable, shareable local tool
### Build Steps
These instructions are for Linux or macOS. You need to build the executable separately for each operating system you target.
> The virtual environment from the previous section is reused here. If it does not exist yet, create and activate it first.
**1. Activate the virtual environment**
```bash
source .venv/bin/activate
```
**2. Install the required build tools**
```bash
pip install coloraide
pip install pyinstaller
```
**3. Generate the PyInstaller spec file**
This creates a configuration matching your main entry script:
```bash
pyi-makespec --onefile quadcol.py
```
**4. Update the spec file so bundled resources are included**
Open `quadcol.spec` and find the `datas=[]` entry inside the `Analysis` block. Replace it with:
```python
datas=[
("resources/*", "resources"),
],
```
This ensures the app can find the resource files it needs when bundled as a single executable.
**5. Build the executable**
```bash
pyinstaller quadcol.spec
```
This creates the binary in the project directory at:
```bash
dist/quadcol
```
**6. Run it directly or install it on your PATH**
Run it from the build output folder:
```bash
./dist/quadcol <base_color> [output_file]
```
Or install it somewhere convenient on your `PATH`:
```bash
chmod +x dist/quadcol
cp dist/quadcol ~/.local/bin/quadcol
```
Then you can run it like this:
```bash
quadcol <base_color> [output_file]
```
If `~/.local/bin` is not already on your `PATH`, add it to your shell profile before using the command globally.
### Example usage
```bash
quadcol AE5F38 palette-orange.html
quadcol #FF6B6B mypalette.html
```
## Example Palettes
Here are a few palettes that I regularly use, and you might be interested in:
### Palette Blue
```bash
python3 quadcol.py 009BFF palette-blue.html
./quadcol 009BFF palette-blue.html
```
Here is the [generated output](sample/palette-blue.html)
### Palette Green
```bash
python3 quadcol.py 5AB33B palette-green.html
./quadcol 5AB33B palette-green.html
```
Here is the [generated output](sample/palette-green.html)
### Palette Orange
```bash
python3 quadcol.py AE5F38 palette-orange.html
./quadcol AE5F38 palette-orange.html
```
Here is the [generated output](sample/palette-orange.html)
### Palette Slate
```bash
python3 quadcol.py 4C566A palette-slate.html
./quadcol 4C566A palette-slate.html
```
Here is the [generated output](sample/palette-slate.html)
### Palette Terracotta
```bash
python3 quadcol.py BC5215 palette-terracotta.html
./quadcol BC5215 palette-terracotta.html
```
Here is the [generated output](sample/palette-terracotta.html)
### Palette Moss
```bash
python3 quadcol.py 66800B palette-moss.html
./quadcol 66800B palette-moss.html
```
Here is the [generated output](sample/palette-moss.html)
### Palette Lavender
```bash
python3 quadcol.py 8A4FFF palette-lavender.html
./quadcol 8A4FFF palette-lavender.html
```
Here is the [generated output](sample/palette-lavender.html)
### Palette Ocean
```bash
python3 quadcol.py 205EA6 palette-ocean.html
./quadcol 205EA6 palette-ocean.html
```
Here is the [generated output](sample/palette-ocean.html)
+128
View File
@@ -0,0 +1,128 @@
import sys
from pathlib import Path
from string import Template
from coloraide import Color
'''
===
Get absolute path to any resource, you need this to run directly from source, or as a standalone
executable generated using PyInstaller.
===
'''
def get_resource_path(relative_path: str) -> Path:
try:
# PyInstaller creates a temporary folder and stores its path in sys._MEIPASS
base_path = Path(sys._MEIPASS)
except AttributeError:
# Fall back to standard filesystem directory during local development
base_path = Path(__file__).resolve().parent
return base_path / relative_path
'''
===
Get the lightness of a color in OKLab color space
===
'''
def get_lightness(hex_str):
col = Color(f"#{hex_str}")
oklab_col = col.convert("oklab")
return oklab_col.get("l")
'''
===
Generate a lower color based on the base color and a factor
===
'''
def gen_lower_color(rgb_base, factor):
col_base = Color(f"#{rgb_base}")
oklab_base = col_base.convert("oklab")
light_base = oklab_base.get("l")
light_out = 1 -((1 - light_base) * factor)
oklab_out = oklab_base.set("l", light_out)
return oklab_out.convert("srgb").to_string(hex=True)
'''
===
Generate an upper color based on the base color and a factor
===
'''
def gen_upper_color(rgb_base, factor):
col_base = Color(f"#{rgb_base}")
oklab_base = col_base.convert("oklab")
light_base = oklab_base.get("l")
light_out = light_base * (1.00 - factor)
oklab_out = oklab_base.set("l", light_out)
return oklab_out.convert("srgb").to_string(hex=True)
'''
===
Write an output file with the generated palette colors
===
'''
def write_palette(color_list, tpl_file_path, output_file_path):
tpath = get_resource_path(tpl_file_path)
with open(tpath, 'r', encoding='utf-8') as file:
tplcnt = file.read()
template = Template(tplcnt)
# Create a dictionary for the template substitution
subst_dict = {}
for i, (name, hex_val, lightness) in enumerate(color_list):
subst_dict[name] = hex_val.upper()
subst_dict[f"{name}_light"] = f"{lightness:.2f}"
# Convert hex to RGB format
hex_clean = hex_val.lstrip('#')
r = int(hex_clean[0:2], 16)
g = int(hex_clean[2:4], 16)
b = int(hex_clean[4:6], 16)
subst_dict[f"{name}_rgb"] = f"rgb({r}, {g}, {b})"
# Substitute the values in the template
outcnt = template.safe_substitute(subst_dict)
with open(output_file_path, "w") as output_file:
output_file.write(outcnt)
'''
===
The main function to process the input color and generate the palette
===
'''
def main():
if len(sys.argv) < 2:
print("Usage: quadricolor.py <base_color> [output_file]")
print(" base_color: Hex color code (e.g., FF6B6B or #FF6B6B)")
print(" output_file: Output file name (default: output.html)")
sys.exit(1)
rgb_base = sys.argv[1].lstrip('#')
output_file = sys.argv[2] if len(sys.argv) > 2 else "output.html"
color1 = gen_lower_color(rgb_base, 0.05)
color2 = gen_lower_color(rgb_base, 0.5)
color3 = gen_upper_color(rgb_base, 0.4)
gencolors = [
("color1", color1, get_lightness(color1.lstrip('#'))),
("color2", color2, get_lightness(color2.lstrip('#'))),
("color_base", f"#{rgb_base}", get_lightness(rgb_base)),
("color3", color3, get_lightness(color3.lstrip('#'))),
]
write_palette(gencolors, "resources/quadcol.tpl", output_file)
if __name__ == "__main__":
main()
+40
View File
@@ -0,0 +1,40 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['quadcol.py'],
pathex=[],
binaries=[],
datas=[
("resources/*", "resources")
],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='quadcol',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - ${color_base}</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">${color_base}</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: ${color1};"></div>
<div class="color-values">
<div class="hex-value">${color1}</div>
<div class="rgb-value">${color1_rgb}</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: ${color2};"></div>
<div class="color-values">
<div class="hex-value">${color2}</div>
<div class="rgb-value">${color2_rgb}</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: ${color_base};"></div>
<div class="color-values">
<div class="hex-value">${color_base}</div>
<div class="rgb-value">${color_base_rgb}</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: ${color3};"></div>
<div class="color-values">
<div class="hex-value">${color3}</div>
<div class="rgb-value">${color3_rgb}</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: ${color1}; /* lightness: ${color1_light} */
--color2: ${color2}; /* lightness: ${color2_light} */
--color3: ${color_base}; /* lightness: ${color_base_light} */
--color4: ${color3}; /* lightness: ${color3_light} */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #009BFF</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#009BFF</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #F6FAFF;"></div>
<div class="color-values">
<div class="hex-value">#F6FAFF</div>
<div class="rgb-value">rgb(246, 250, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #9DCFFF;"></div>
<div class="color-values">
<div class="hex-value">#9DCFFF</div>
<div class="rgb-value">rgb(157, 207, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #009BFF;"></div>
<div class="color-values">
<div class="hex-value">#009BFF</div>
<div class="rgb-value">rgb(0, 155, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #004B80;"></div>
<div class="color-values">
<div class="hex-value">#004B80</div>
<div class="rgb-value">rgb(0, 75, 128)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #F6FAFF; /* lightness: 0.98 */
--color2: #9DCFFF; /* lightness: 0.84 */
--color3: #009BFF; /* lightness: 0.67 */
--color4: #004B80; /* lightness: 0.40 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #5AB33B</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#5AB33B</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #F1FFEC;"></div>
<div class="color-values">
<div class="hex-value">#F1FFEC</div>
<div class="rgb-value">rgb(241, 255, 236)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #8CE770;"></div>
<div class="color-values">
<div class="hex-value">#8CE770</div>
<div class="rgb-value">rgb(140, 231, 112)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #5AB33B;"></div>
<div class="color-values">
<div class="hex-value">#5AB33B</div>
<div class="rgb-value">rgb(90, 179, 59)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #1E5A00;"></div>
<div class="color-values">
<div class="hex-value">#1E5A00</div>
<div class="rgb-value">rgb(30, 90, 0)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #F1FFEC; /* lightness: 0.98 */
--color2: #8CE770; /* lightness: 0.84 */
--color3: #5AB33B; /* lightness: 0.69 */
--color4: #1E5A00; /* lightness: 0.41 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #8A4FFF</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#8A4FFF</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #F8F7FF;"></div>
<div class="color-values">
<div class="hex-value">#F8F7FF</div>
<div class="rgb-value">rgb(248, 247, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #BFAFFF;"></div>
<div class="color-values">
<div class="hex-value">#BFAFFF</div>
<div class="rgb-value">rgb(191, 175, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #8A4FFF;"></div>
<div class="color-values">
<div class="hex-value">#8A4FFF</div>
<div class="rgb-value">rgb(138, 79, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #470097;"></div>
<div class="color-values">
<div class="hex-value">#470097</div>
<div class="rgb-value">rgb(71, 0, 151)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #F8F7FF; /* lightness: 0.98 */
--color2: #BFAFFF; /* lightness: 0.80 */
--color3: #8A4FFF; /* lightness: 0.59 */
--color4: #470097; /* lightness: 0.36 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #66800B</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#66800B</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #F0FFD4;"></div>
<div class="color-values">
<div class="hex-value">#F0FFD4</div>
<div class="rgb-value">rgb(240, 255, 212)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #A7C55F;"></div>
<div class="color-values">
<div class="hex-value">#A7C55F</div>
<div class="rgb-value">rgb(167, 197, 95)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #66800B;"></div>
<div class="color-values">
<div class="hex-value">#66800B</div>
<div class="rgb-value">rgb(102, 128, 11)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #2F3D00;"></div>
<div class="color-values">
<div class="hex-value">#2F3D00</div>
<div class="rgb-value">rgb(47, 61, 0)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #F0FFD4; /* lightness: 0.98 */
--color2: #A7C55F; /* lightness: 0.78 */
--color3: #66800B; /* lightness: 0.56 */
--color4: #2F3D00; /* lightness: 0.34 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #AE5F38</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#AE5F38</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #FFF6F2;"></div>
<div class="color-values">
<div class="hex-value">#FFF6F2</div>
<div class="rgb-value">rgb(255, 246, 242)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #F6A179;"></div>
<div class="color-values">
<div class="hex-value">#F6A179</div>
<div class="rgb-value">rgb(246, 161, 121)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #AE5F38;"></div>
<div class="color-values">
<div class="hex-value">#AE5F38</div>
<div class="rgb-value">rgb(174, 95, 56)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #5F2400;"></div>
<div class="color-values">
<div class="hex-value">#5F2400</div>
<div class="rgb-value">rgb(95, 36, 0)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #FFF6F2; /* lightness: 0.98 */
--color2: #F6A179; /* lightness: 0.78 */
--color3: #AE5F38; /* lightness: 0.57 */
--color4: #5F2400; /* lightness: 0.34 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #4C566A</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#4C566A</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #F2F6FF;"></div>
<div class="color-values">
<div class="hex-value">#F2F6FF</div>
<div class="rgb-value">rgb(242, 246, 255)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #9BA7BD;"></div>
<div class="color-values">
<div class="hex-value">#9BA7BD</div>
<div class="rgb-value">rgb(155, 167, 189)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #4C566A;"></div>
<div class="color-values">
<div class="hex-value">#4C566A</div>
<div class="rgb-value">rgb(76, 86, 106)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #1E2738;"></div>
<div class="color-values">
<div class="hex-value">#1E2738</div>
<div class="rgb-value">rgb(30, 39, 56)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #F2F6FF; /* lightness: 0.97 */
--color2: #9BA7BD; /* lightness: 0.73 */
--color3: #4C566A; /* lightness: 0.45 */
--color4: #1E2738; /* lightness: 0.27 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Page description">
<title>Quadcol - #BC5215</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
}
h1 {
font-weight: 700;
text-align: center;
}
.palettes-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 16px;
margin-top: 40px;
}
.color-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.color-pillar {
width: 130px;
height: 400px;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.color-values {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 12px;
}
.hex-value {
font-weight: 600;
margin-bottom: 4px;
}
.rgb-value {
font-weight: 400;
color: #666;
}
.css-code-block {
margin-top: 60px;
margin-bottom: 40px;
padding: 20px;
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.css-code-block pre {
margin: 0;
overflow-x: auto;
font-size: 13px;
family-family: 'Courier New', monospace;
line-height: 1.6;
}
footer {
text-align: center;
margin-top: 80px;
padding: 20px;
color: #999;
font-size: 14px;
}
</style>
</head>
<body>
<header>
<!-- Navigation and branding -->
</header>
<main>
<h1>Base Color <span id="rgbValue">#BC5215</span></h1>
<div class="palettes-container">
<div class="color-item">
<div class="color-pillar" style="background-color: #FFF6F2;"></div>
<div class="color-values">
<div class="hex-value">#FFF6F2</div>
<div class="rgb-value">rgb(255, 246, 242)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #FF9B6D;"></div>
<div class="color-values">
<div class="hex-value">#FF9B6D</div>
<div class="rgb-value">rgb(255, 155, 109)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #BC5215;"></div>
<div class="color-values">
<div class="hex-value">#BC5215</div>
<div class="rgb-value">rgb(188, 82, 21)</div>
</div>
</div>
<div class="color-item">
<div class="color-pillar" style="background-color: #5F2200;"></div>
<div class="color-values">
<div class="hex-value">#5F2200</div>
<div class="rgb-value">rgb(95, 34, 0)</div>
</div>
</div>
</div>
<div class="css-code-block">
<pre>:root {
--color1: #FFF6F2; /* lightness: 0.98 */
--color2: #FF9B6D; /* lightness: 0.78 */
--color3: #BC5215; /* lightness: 0.57 */
--color4: #5F2200; /* lightness: 0.34 */
}</pre>
</div>
</main>
<footer>
created using <b>quadcol</b>
</footer>
</body>
</html>