From 25e065bb9f2bdf04e257139621a4c5b814c2ca7a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Tue, 1 Jul 2025 17:36:18 +0200 Subject: [PATCH 1/6] #320 add: color-picker widget --- source/_posts/color-picker.md | 19 +++ source/widget/color-palette.html | 264 +++++++++++++++++++++++++++++++ 2 files changed, 283 insertions(+) create mode 100644 source/_posts/color-picker.md create mode 100644 source/widget/color-palette.html diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md new file mode 100644 index 0000000..cf05019 --- /dev/null +++ b/source/_posts/color-picker.md @@ -0,0 +1,19 @@ +--- +title: Color Picker +date: 2025-07-01 18:28:43 +background: bg-[#2a6387] +tags: + - html + - color +categories: + - Toolkit +intro: The Color Picker cheat sheet provides you basic color choices +plugins: + - copyCode +--- + +## Getting Started {.cols-2} + +### Color Palette {.cols-2} + + diff --git a/source/widget/color-palette.html b/source/widget/color-palette.html new file mode 100644 index 0000000..4120ed2 --- /dev/null +++ b/source/widget/color-palette.html @@ -0,0 +1,264 @@ + + + + + + Color Picker + + + +
+

Color Picker

+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ + +
+
+

Select a color to see its details

+
+
+
+
+ + + + From 7832346d3ecc8c4ce873636abbeced69921ef19a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:35:30 +0200 Subject: [PATCH 2/6] #320 add: full tailwind palette regarding doc --- source/widget/color-palette-tailwind.html | 352 ++++++++++++++++++++++ 1 file changed, 352 insertions(+) create mode 100644 source/widget/color-palette-tailwind.html diff --git a/source/widget/color-palette-tailwind.html b/source/widget/color-palette-tailwind.html new file mode 100644 index 0000000..7637e63 --- /dev/null +++ b/source/widget/color-palette-tailwind.html @@ -0,0 +1,352 @@ + + + + + + Color Picker + + + +
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+

Select a color to see its details

+
+
+ +
+
+ + + + From b6b6617c917c393e8f16c59cfd4bddf0c7ad291a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:36:52 +0200 Subject: [PATCH 3/6] #320 add: gradient maker widget --- source/widget/gradient-maker.html | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 source/widget/gradient-maker.html diff --git a/source/widget/gradient-maker.html b/source/widget/gradient-maker.html new file mode 100644 index 0000000..c3a5961 --- /dev/null +++ b/source/widget/gradient-maker.html @@ -0,0 +1,57 @@ + + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+

CSS Code

+
background: linear-gradient(to right, #ff7e5f, #feb47b);
+
+
+
+ +
+
+ + + From 1cee3a7fff130fed357252964ff148f5046c8123 Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Wed, 2 Jul 2025 19:39:33 +0200 Subject: [PATCH 4/6] #320 add: section and widget --- source/_posts/color-picker.md | 50 ++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md index cf05019..22f291e 100644 --- a/source/_posts/color-picker.md +++ b/source/_posts/color-picker.md @@ -12,8 +12,52 @@ plugins: - copyCode --- -## Getting Started {.cols-2} +## Getting Started -### Color Palette {.cols-2} - +### Color Basics {.col-span-3} + + +| **Category** | **Description** | +|:---------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **Color Models** | **RGB**: Red, Green, Blue – additive model used in screens.
**HEX**: Hexadecimal color codes, e.g., #FFFFFF.
**HSL**: Hue, Saturation, Lightness – intuitive for color adjustments.
**HSV**: Hue, Saturation, Value – similar to HSL but with different brightness handling. | +| **Color Terminology** | **Saturation**: Intensity or purity of a color.
**Hue**: The color type (e.g., red, blue).
**Lightness**: Brightness or darkness of a color.
**Opacity**: Transparency level of a color, often defined as alpha in RGBA. | +| **Color Representation Formats** | **HEX**: `#RRGGBB` or `#RRGGBBAA` (with alpha).
**RGB**: `rgb(255, 255, 255)`
**RGBA**: `rgba(255, 255, 255, 0.5)`
**HSL**: `hsl(120, 100%, 50%)`
**HSLA**: `hsla(120, 100%, 50%, 0.5)` | + + + +### Main Frameworks {.col-span-3} + +| **Framework** | **Color Notation / Syntax** | **Description** | **Documentation Link** | +|:-----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:-------------------------------------------------------------------------------------------| +| **CSS** | `color: red;`
`color: #ff0000;`
`color: rgb(255, 0, 0);`
`color: rgba(255, 0, 0, 0.5);`
`color: hsl(0, 100%, 50%);`
`color: hsla(0, 100%, 50%, 0.5);` | Standard CSS color properties and formats. | [CSS Color Documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/color) | +| **SASS/SCSS** | `$color: #ff0000;`
`color: $color;` | Variables for colors, can use same formats as CSS. | [SASS Color Documentation](https://sass-lang.com/documentation/values/colors) | +| **Tailwind CSS** | `class="bg-red-500"`
`class="text-green-300"` | Utility classes with predefined color shades. | [Tailwind CSS Colors](https://tailwindcss.com/docs/customizing-colors) | +| **Bootstrap** | `class="text-primary"`
`class="bg-success"` | Named color classes for quick styling. | [Bootstrap Colors](https://getbootstrap.com/docs/5.0/getting-started/introduction/#colors) | +| **Material UI** | `style={{ color: 'primary' }}` or theme palette | Uses theme palette, can override with specific color codes. | [Material UI Color](https://mui.com/customization/color/) | + + +## Color Palette + +### Tailwind Palette {.col-span-3} + + + + +## Gradient CSS + +### Gradient Maker {.col-span-3} + + + +
+
+ +| Parameter | Description | Example | +|:--------------|:----------------------------------|:-----------------------------------------------| +| **to right** | Gradient goes from left to right | `linear-gradient(to right, #ff7e5f, #feb47b)` | +| **to left** | Gradient goes from right to left | `linear-gradient(to left, #ff7e5f, #feb47b)` | +| **to bottom** | Gradient goes from top to bottom | `linear-gradient(to bottom, #ff7e5f, #feb47b)` | +| **to top** | Gradient goes from bottom to top | `linear-gradient(to top, #ff7e5f, #feb47b)` | +| **deg** | Specify an angle in degrees | `linear-gradient(45deg, ...)` | + From 5874e283fb9794a525dab5499e971e2ee0168f1a Mon Sep 17 00:00:00 2001 From: "nplgdjp@gmx.com" Date: Thu, 3 Jul 2025 08:39:36 +0200 Subject: [PATCH 5/6] #320 reformat: and fix: UI --- source/_posts/color-picker.md | 4 +- source/widget/color-palette-tailwind.html | 6 +- source/widget/color-palette.html | 264 ---------------------- source/widget/gradient-maker.html | 9 +- 4 files changed, 7 insertions(+), 276 deletions(-) delete mode 100644 source/widget/color-palette.html diff --git a/source/_posts/color-picker.md b/source/_posts/color-picker.md index 22f291e..f789ec5 100644 --- a/source/_posts/color-picker.md +++ b/source/_posts/color-picker.md @@ -7,7 +7,7 @@ tags: - color categories: - Toolkit -intro: The Color Picker cheat sheet provides you basic color choices +intro: The Color Picker cheat sheet provides you basic color info and choices plugins: - copyCode --- @@ -50,8 +50,6 @@ plugins: -
-
| Parameter | Description | Example | |:--------------|:----------------------------------|:-----------------------------------------------| diff --git a/source/widget/color-palette-tailwind.html b/source/widget/color-palette-tailwind.html index 7637e63..f41a777 100644 --- a/source/widget/color-palette-tailwind.html +++ b/source/widget/color-palette-tailwind.html @@ -340,9 +340,9 @@
-

RGB:
${rgb}

-

HEX:
${hex}

-

Tailwindcss:
${tailwindcss}

+

RGB:
${rgb}

+

HEX:
${hex}

+

Tailwindcss:
${tailwindcss}

`; diff --git a/source/widget/color-palette.html b/source/widget/color-palette.html deleted file mode 100644 index 4120ed2..0000000 --- a/source/widget/color-palette.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - Color Picker - - - -
-

Color Picker

-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
- - -
-
-

Select a color to see its details

-
-
-
-
- - - - diff --git a/source/widget/gradient-maker.html b/source/widget/gradient-maker.html index c3a5961..373ee5e 100644 --- a/source/widget/gradient-maker.html +++ b/source/widget/gradient-maker.html @@ -13,22 +13,19 @@
-
+
-
+

CSS Code

-
background: linear-gradient(to right, #ff7e5f, #feb47b);
+
background: linear-gradient(to right,  #ff7e5f, #8000ff);
-
-
-