Skip to content

Commit f760504

Browse files
authored
Merge pull request #63 from phun-ky/fix/docs
Fix/docs
2 parents 2f70f8d + 7af2cd2 commit f760504

File tree

161 files changed

+7650
-5318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+7650
-5318
lines changed

.github/workflows/label.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: "Pull Request Labeler"
1+
name: 'Pull Request Labeler'
22
on:
3-
- pull_request_target
3+
- pull_request_target
44

55
jobs:
66
labeler:
77
permissions:
88
contents: read
99
pull-requests: write
10+
issues: write
1011
runs-on: ubuntu-latest
1112
steps:
12-
- id: label-the-PR
13-
uses: actions/labeler@v5
14-
with:
15-
sync-labels: true
13+
- id: label-the-PR
14+
uses: actions/labeler@v5
15+
with:
16+
sync-labels: true

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [API](#api)
1414
- [Usage](#usage)
1515
- [Creating paletts](#creating-paletts)
16+
- [Default options](#default-options)
1617
- [Interpolate](#interpolate)
1718
- [Luminance shift](#luminance-shift)
1819
- [Monochromatic](#monochromatic)
@@ -65,7 +66,7 @@ const { MoebiusColor, MoebiusPalettes } = await Moebius();
6566

6667
The main feature is the ability to create palettes with a given primary color and a secondary color (used for diverging palettes). You can also give the color to diverge to/from.
6768

68-
**Default options**
69+
#### Default options
6970

7071
```ts
7172
const defaultOptions = {
@@ -429,4 +430,6 @@ The sponsorship is an unique opportunity to alleviate more hours for me to maint
429430
430431
[Support me on GitHub Sponsors](https://github.com/sponsors/phun-ky).
431432
433+
![logo](./public/images/logo/logo-ring.png)
434+
432435
p.s. **Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help**. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to [Red Cross](https://www.icrc.org/en/donate/ukraine), [Ukraine humanitarian organisation](https://savelife.in.ua/en/donate-en/#donate-army-card-weekly) or [donate Ambulances for Ukraine](https://www.gofundme.com/f/help-to-save-the-lives-of-civilians-in-a-war-zone).

api/README.md

Lines changed: 93 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,97 @@
1-
@phun-ky/moebius
1+
# [**@phun-ky/moebius**](https://github.com/phun-ky/moebius) `möbius` API Documentation
22

3-
# @phun-ky/moebius
3+
---
4+
5+
> Last updated 2025-05-05T07:59:18.991Z
6+
7+
##
48

59
## Modules
610

7-
- [classes/MoebiusAccentColors](modules/classes_MoebiusAccentColors.md)
8-
- [classes/MoebiusColor](modules/classes_MoebiusColor.md)
9-
- [classes/MoebiusPaletteColors](modules/classes_MoebiusPaletteColors.md)
10-
- [classes/MoebiusPalettes](modules/classes_MoebiusPalettes.md)
11-
- [classes/MoebiusSVGHelper](modules/classes_MoebiusSVGHelper.md)
12-
- [classes/MoebiusThemeColors](modules/classes_MoebiusThemeColors.md)
13-
- [constants](modules/constants.md)
14-
- [features](modules/features.md)
15-
- [features/analogous](modules/features_analogous.md)
16-
- [features/complement](modules/features_complement.md)
17-
- [features/darkmode](modules/features_darkmode.md)
18-
- [features/harmonize](modules/features_harmonize.md)
19-
- [features/hexadic](modules/features_hexadic.md)
20-
- [features/interpolate](modules/features_interpolate.md)
21-
- [features/luminance-shift](modules/features_luminance_shift.md)
22-
- [features/monochromatic](modules/features_monochromatic.md)
23-
- [features/pentadic](modules/features_pentadic.md)
24-
- [features/split](modules/features_split.md)
25-
- [features/tetradic](modules/features_tetradic.md)
26-
- [features/triadic](modules/features_triadic.md)
27-
- [main](modules/main.md)
28-
- [types](modules/types.md)
29-
- [utils/a11y](modules/utils_a11y.md)
30-
- [utils/array-shuffle](modules/utils_array_shuffle.md)
31-
- [utils/camel-case](modules/utils_camel_case.md)
32-
- [utils/color-objects](modules/utils_color_objects.md)
33-
- [utils/color-objects/cmyk](modules/utils_color_objects_cmyk.md)
34-
- [utils/color-objects/hsi](modules/utils_color_objects_hsi.md)
35-
- [utils/color-objects/hsl](modules/utils_color_objects_hsl.md)
36-
- [utils/color-objects/hsv](modules/utils_color_objects_hsv.md)
37-
- [utils/color-objects/hwb](modules/utils_color_objects_hwb.md)
38-
- [utils/color-objects/lab](modules/utils_color_objects_lab.md)
39-
- [utils/color-objects/lch](modules/utils_color_objects_lch.md)
40-
- [utils/color-objects/oklab](modules/utils_color_objects_oklab.md)
41-
- [utils/color-objects/oklch](modules/utils_color_objects_oklch.md)
42-
- [utils/color-objects/rgb](modules/utils_color_objects_rgb.md)
43-
- [utils/color-objects/xyz](modules/utils_color_objects_xyz.md)
44-
- [utils/converters](modules/utils_converters.md)
45-
- [utils/converters/to-cmyk](modules/utils_converters_to_cmyk.md)
46-
- [utils/converters/to-float](modules/utils_converters_to_float.md)
47-
- [utils/converters/to-hex](modules/utils_converters_to_hex.md)
48-
- [utils/converters/to-hsi](modules/utils_converters_to_hsi.md)
49-
- [utils/converters/to-hsl](modules/utils_converters_to_hsl.md)
50-
- [utils/converters/to-hsv](modules/utils_converters_to_hsv.md)
51-
- [utils/converters/to-hwb](modules/utils_converters_to_hwb.md)
52-
- [utils/converters/to-lab](modules/utils_converters_to_lab.md)
53-
- [utils/converters/to-lch](modules/utils_converters_to_lch.md)
54-
- [utils/converters/to-object](modules/utils_converters_to_object.md)
55-
- [utils/converters/to-oklab](modules/utils_converters_to_oklab.md)
56-
- [utils/converters/to-oklch](modules/utils_converters_to_oklch.md)
57-
- [utils/converters/to-rgb](modules/utils_converters_to_rgb.md)
58-
- [utils/converters/to-xyz](modules/utils_converters_to_xyz.md)
59-
- [utils/get-chroma-bezier-scale-colors](modules/utils_get_chroma_bezier_scale_colors.md)
60-
- [utils/get-chroma-scale-colors](modules/utils_get_chroma_scale_colors.md)
61-
- [utils/get-random-color-hex](modules/utils_get_random_color_hex.md)
62-
- [utils/normalize-color-units](modules/utils_normalize_color_units.md)
63-
- [utils/random](modules/utils_random.md)
64-
- [utils/range](modules/utils_range.md)
65-
- [utils/svg/get-start-mask-degree](modules/utils_svg_get_start_mask_degree.md)
66-
- [utils/svg/pie-slice](modules/utils_svg_pie_slice.md)
67-
- [utils/unique-id](modules/utils_unique_id.md)
11+
- [classes/MoebiusAccentColors](classes/MoebiusAccentColors.md)
12+
- [classes/MoebiusColor](classes/MoebiusColor.md)
13+
- [classes/MoebiusPaletteColors](classes/MoebiusPaletteColors.md)
14+
- [classes/MoebiusPalettes](classes/MoebiusPalettes.md)
15+
- [classes/MoebiusSVGHelper](classes/MoebiusSVGHelper.md)
16+
- [classes/MoebiusThemeColors](classes/MoebiusThemeColors.md)
17+
- [constants](constants.md)
18+
- [features](features.md)
19+
- [features/analogous](features/analogous.md)
20+
- [features/complement](features/complement.md)
21+
- [features/dark-mode](features/dark-mode.md)
22+
- [features/harmonize](features/harmonize.md)
23+
- [features/hexadic](features/hexadic.md)
24+
- [features/interpolate](features/interpolate.md)
25+
- [features/luminance-shift](features/luminance-shift.md)
26+
- [features/monochromatic](features/monochromatic.md)
27+
- [features/pentadic](features/pentadic.md)
28+
- [features/split](features/split.md)
29+
- [features/tetradic](features/tetradic.md)
30+
- [features/triadic](features/triadic.md)
31+
- [main](main.md)
32+
- [types](types.md)
33+
- [utils/a11y](utils/a11y.md)
34+
- [utils/array-shuffle](utils/array-shuffle.md)
35+
- [utils/camel-case](utils/camel-case.md)
36+
- [utils/color-objects](utils/color-objects.md)
37+
- [utils/color-objects/cmyk](utils/color-objects/cmyk.md)
38+
- [utils/color-objects/hsi](utils/color-objects/hsi.md)
39+
- [utils/color-objects/hsl](utils/color-objects/hsl.md)
40+
- [utils/color-objects/hsv](utils/color-objects/hsv.md)
41+
- [utils/color-objects/hwb](utils/color-objects/hwb.md)
42+
- [utils/color-objects/lab](utils/color-objects/lab.md)
43+
- [utils/color-objects/lch](utils/color-objects/lch.md)
44+
- [utils/color-objects/oklab](utils/color-objects/oklab.md)
45+
- [utils/color-objects/oklch](utils/color-objects/oklch.md)
46+
- [utils/color-objects/rgb](utils/color-objects/rgb.md)
47+
- [utils/color-objects/xyz](utils/color-objects/xyz.md)
48+
- [utils/converters](utils/converters.md)
49+
- [utils/converters/to-cmyk](utils/converters/to-cmyk.md)
50+
- [utils/converters/to-float](utils/converters/to-float.md)
51+
- [utils/converters/to-hex](utils/converters/to-hex.md)
52+
- [utils/converters/to-hsi](utils/converters/to-hsi.md)
53+
- [utils/converters/to-hsl](utils/converters/to-hsl.md)
54+
- [utils/converters/to-hsv](utils/converters/to-hsv.md)
55+
- [utils/converters/to-hwb](utils/converters/to-hwb.md)
56+
- [utils/converters/to-lab](utils/converters/to-lab.md)
57+
- [utils/converters/to-lch](utils/converters/to-lch.md)
58+
- [utils/converters/to-object](utils/converters/to-object.md)
59+
- [utils/converters/to-oklab](utils/converters/to-oklab.md)
60+
- [utils/converters/to-oklch](utils/converters/to-oklch.md)
61+
- [utils/converters/to-rgb](utils/converters/to-rgb.md)
62+
- [utils/converters/to-xyz](utils/converters/to-xyz.md)
63+
- [utils/get-chroma-bezier-scale-colors](utils/get-chroma-bezier-scale-colors.md)
64+
- [utils/get-chroma-scale-colors](utils/get-chroma-scale-colors.md)
65+
- [utils/get-random-color-hex](utils/get-random-color-hex.md)
66+
- [utils/normalize-color-units](utils/normalize-color-units.md)
67+
- [utils/random](utils/random.md)
68+
- [utils/range](utils/range.md)
69+
- [utils/svg/get-start-mask-degree](utils/svg/get-start-mask-degree.md)
70+
- [utils/svg/pie-slice](utils/svg/pie-slice.md)
71+
- [utils/unique-id](utils/unique-id.md)
72+
73+
---
74+
75+
## Contributing
76+
77+
Want to contribute? Please read the [CONTRIBUTING.md](https://github.com/phun-ky/moebius/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/phun-ky/moebius/blob/main/CODE_OF_CONDUCT.md)
78+
79+
## License
80+
81+
This project is licensed under the MIT License - see the [LICENSE](https://github.com/phun-ky/moebius/blob/main/LICENSE) file for details.
82+
83+
## Changelog
84+
85+
See the [CHANGELOG.md](https://github.com/phun-ky/moebius/blob/main/CHANGELOG.md) for details on the latest updates.
86+
87+
## Sponsor me
88+
89+
I'm an Open Source evangelist, creating stuff that does not exist yet to help get rid of secondary activities and to enhance systems already in place, be it documentation or web sites.
90+
91+
The sponsorship is an unique opportunity to alleviate more hours for me to maintain my projects, create new ones and contribute to the large community we're all part of :)
92+
93+
[Support me on GitHub Sponsors](https://github.com/sponsors/phun-ky).
94+
95+
![logo](https://github.com/phun-ky/moebius/blob/main/public/images/logo/logo-ring.png?raw=true)
96+
97+
p.s. **Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help**. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to [Red Cross](https://www.icrc.org/en/donate/ukraine), [Ukraine humanitarian organisation](https://savelife.in.ua/en/donate-en/#donate-army-card-weekly) or [donate Ambulances for Ukraine](https://www.gofundme.com/f/help-to-save-the-lives-of-civilians-in-a-war-zone).

api/classes/MoebiusAccentColors.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
[@phun-ky/moebius](../README.md) / classes/MoebiusAccentColors
2+
3+
# classes/MoebiusAccentColors
4+
5+
> Last updated 2025-05-05T07:59:19.129Z
6+
7+
##
8+
9+
## Classes
10+
11+
### MoebiusAccentColors
12+
13+
Defined in: [classes/MoebiusAccentColors.ts:13](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L13)
14+
15+
Class representing a set of accent colors in various palettes.
16+
17+
#### Implements
18+
19+
- [`MoebiusPaletteAccentColorsInterface`](../types.md#moebiuspaletteaccentcolorsinterface)
20+
21+
#### Constructors
22+
23+
##### Constructor
24+
25+
```ts
26+
new MoebiusAccentColors(colors, options): MoebiusAccentColors;
27+
```
28+
29+
Defined in: [classes/MoebiusAccentColors.ts:41](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L41)
30+
31+
Creates an instance of MoebiusAccentColors.
32+
33+
###### Parameters
34+
35+
| Parameter | Type | Description |
36+
| --------- | ---------------------------------------------------------------------------- | --------------------------------------- |
37+
| `colors` | [`MoebiusPaletteColorsInterface`](../types.md#moebiuspalettecolorsinterface) | Base colors for accent palettes. |
38+
| `options` | [`MoebiusPaletteOptionsType`](../types.md#moebiuspaletteoptionstype) | Options for generating accent palettes. |
39+
40+
###### Returns
41+
42+
[`MoebiusAccentColors`](#moebiusaccentcolors)
43+
44+
###### Example
45+
46+
```ts
47+
const colors = {
48+
monochromatic: ['#ff0000', '#00ff00']
49+
// other base palettes...
50+
};
51+
const options = {
52+
baseColor: { color: '#ff0000', name: 'Red', hex: '#ff0000' },
53+
numberOfColors: 9
54+
};
55+
const accentColors = new MoebiusAccentColors(colors, options);
56+
```
57+
58+
#### Properties
59+
60+
| Property | Type | Defined in |
61+
| -------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
62+
| <a id="analogous"></a> `analogous` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:25](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L25) |
63+
| <a id="complement"></a> `complement` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:19](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L19) |
64+
| <a id="hexadic"></a> `hexadic` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:24](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L24) |
65+
| <a id="interpolate"></a> `interpolate` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:16](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L16) |
66+
| <a id="luminanceshift"></a> `luminanceShift` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:17](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L17) |
67+
| <a id="monochromatic"></a> `monochromatic` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:18](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L18) |
68+
| <a id="pentadic"></a> `pentadic` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:23](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L23) |
69+
| <a id="split"></a> `split` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:20](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L20) |
70+
| <a id="tetradic"></a> `tetradic` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:22](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L22) |
71+
| <a id="triadic"></a> `triadic` | `` `#${string}` ``\[]\[] | [classes/MoebiusAccentColors.ts:21](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L21) |
72+
73+
#### Methods
74+
75+
##### toArray()
76+
77+
```ts
78+
toArray(): `#${string}`[];
79+
```
80+
81+
Defined in: [classes/MoebiusAccentColors.ts:61](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusAccentColors.ts#L61)
82+
83+
Converts the accent palettes to a flat array.
84+
85+
###### Returns
86+
87+
`` `#${string}` ``\[]
88+
89+
- Array of hex color values.
90+
91+
###### Example
92+
93+
```ts
94+
const accentColors = new MoebiusAccentColors(baseColors, options);
95+
const flatArray = accentColors.toArray();
96+
console.log(flatArray); // ['#ff0000', '#00ff00', ...]
97+
```
98+
99+
---
100+
101+
## Contributing
102+
103+
Want to contribute? Please read the [CONTRIBUTING.md](https://github.com/phun-ky/moebius/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/phun-ky/moebius/blob/main/CODE_OF_CONDUCT.md)
104+
105+
## License
106+
107+
This project is licensed under the MIT License - see the [LICENSE](https://github.com/phun-ky/moebius/blob/main/LICENSE) file for details.
108+
109+
## Changelog
110+
111+
See the [CHANGELOG.md](https://github.com/phun-ky/moebius/blob/main/CHANGELOG.md) for details on the latest updates.
112+
113+
## Sponsor me
114+
115+
I'm an Open Source evangelist, creating stuff that does not exist yet to help get rid of secondary activities and to enhance systems already in place, be it documentation or web sites.
116+
117+
The sponsorship is an unique opportunity to alleviate more hours for me to maintain my projects, create new ones and contribute to the large community we're all part of :)
118+
119+
[Support me on GitHub Sponsors](https://github.com/sponsors/phun-ky).
120+
121+
![logo](https://github.com/phun-ky/moebius/blob/main/public/images/logo/logo-ring.png?raw=true)
122+
123+
p.s. **Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help**. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to [Red Cross](https://www.icrc.org/en/donate/ukraine), [Ukraine humanitarian organisation](https://savelife.in.ua/en/donate-en/#donate-army-card-weekly) or [donate Ambulances for Ukraine](https://www.gofundme.com/f/help-to-save-the-lives-of-civilians-in-a-war-zone).

0 commit comments

Comments
 (0)