Skip to content

Commit

Permalink
docs: ✏️ Generate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
phun-ky committed Dec 8, 2023
1 parent d1059dd commit 9d9bb1f
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 54 deletions.
18 changes: 16 additions & 2 deletions api/classes/classes_MoebiusPaletteColors.MoebiusPaletteColors.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const palette = new MoebiusPaletteColors(colors);

#### Defined in

[classes/MoebiusPaletteColors.ts:33](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPaletteColors.ts#L33)
[classes/MoebiusPaletteColors.ts:34](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPaletteColors.ts#L34)

## Properties

Expand Down Expand Up @@ -72,6 +72,20 @@ ___

___

### darkmode

**darkmode**: `Record`<`string`, \`#${string}\`[]\>

#### Implementation of

[MoebiusPaletteColorsInterface](../interfaces/types.MoebiusPaletteColorsInterface.md).[darkmode](../interfaces/types.MoebiusPaletteColorsInterface.md#darkmode)

#### Defined in

[classes/MoebiusPaletteColors.ts:20](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPaletteColors.ts#L20)

___

### hexadic

**hexadic**: \`#${string}\`[]
Expand Down Expand Up @@ -206,4 +220,4 @@ console.log(flatArray); // ['#ff0000', '#00ff00']

#### Defined in

[classes/MoebiusPaletteColors.ts:49](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPaletteColors.ts#L49)
[classes/MoebiusPaletteColors.ts:50](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPaletteColors.ts#L50)
74 changes: 55 additions & 19 deletions api/classes/classes_MoebiusPalettes.MoebiusPalettes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Creates an instance of MoebiusPalettes.

#### Defined in

[classes/MoebiusPalettes.ts:36](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L36)
[classes/MoebiusPalettes.ts:37](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L37)

## Properties

Expand All @@ -44,7 +44,7 @@ Creates an instance of MoebiusPalettes.

#### Defined in

[classes/MoebiusPalettes.ts:30](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L30)
[classes/MoebiusPalettes.ts:31](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L31)

___

Expand All @@ -58,7 +58,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:29](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L29)
[classes/MoebiusPalettes.ts:30](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L30)

___

Expand All @@ -72,7 +72,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:21](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L21)
[classes/MoebiusPalettes.ts:22](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L22)

___

Expand All @@ -86,7 +86,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:23](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L23)
[classes/MoebiusPalettes.ts:24](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L24)

___

Expand All @@ -100,7 +100,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:24](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L24)
[classes/MoebiusPalettes.ts:25](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L25)

___

Expand All @@ -114,7 +114,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:28](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L28)
[classes/MoebiusPalettes.ts:29](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L29)

___

Expand All @@ -128,7 +128,7 @@ ___

#### Defined in

[classes/MoebiusPalettes.ts:22](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L22)
[classes/MoebiusPalettes.ts:23](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L23)

## Methods

Expand Down Expand Up @@ -161,7 +161,7 @@ console.log(analogousPalette); // ['#3498db', '#75db34', '#dbd134', '#db7434', '

#### Defined in

[classes/MoebiusPalettes.ts:249](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L249)
[classes/MoebiusPalettes.ts:283](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L283)

___

Expand Down Expand Up @@ -194,7 +194,43 @@ console.log(complementPalette); // ['#3498db', '#db3434', '#75db34', '#dbd134',

#### Defined in

[classes/MoebiusPalettes.ts:93](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L93)
[classes/MoebiusPalettes.ts:99](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L99)

___

### darkmode

**darkmode**(`baseColor`, `secondaryColor`, `options?`): `Record`<`string`, \`#${string}\`[]\>

Generates a dark mode color palette based on the provided base and secondary colors.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `baseColor` | [`MoebiusChromaColorInputType`](../modules/types.md#moebiuschromacolorinputtype) | The base color for the palette. |
| `secondaryColor` | [`MoebiusChromaColorInputType`](../modules/types.md#moebiuschromacolorinputtype) | The secondary color for the palette. |
| `options?` | `Record`<`string`, `unknown`\> \| [`MoebiusPaletteOptionsType`](../modules/types.md#moebiuspaletteoptionstype) | Palette options. |

#### Returns

`Record`<`string`, \`#${string}\`[]\>

- The generated dark mode color palette.

**`Example`**

```ts
const baseColor = '#3498db';
const secondaryColor = '#2ecc71';
const options = { bezier: true, colorScaleMode: 'lch' };
const palette = darkmode(baseColor, secondaryColor, options);
console.log(palette);
```

#### Defined in

[classes/MoebiusPalettes.ts:126](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L126)

___

Expand Down Expand Up @@ -230,7 +266,7 @@ console.log(harmonizedPalette); // ['#3498db', '#75db34', '#dbd134', '#db7434',

#### Defined in

[classes/MoebiusPalettes.ts:368](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L368)
[classes/MoebiusPalettes.ts:402](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L402)

___

Expand Down Expand Up @@ -263,7 +299,7 @@ console.log(hexadicPalette); // ['#3498db', '#5d7f33', '#8473a9', '#ad7a95', '#d

#### Defined in

[classes/MoebiusPalettes.ts:223](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L223)
[classes/MoebiusPalettes.ts:257](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L257)

___

Expand Down Expand Up @@ -298,7 +334,7 @@ console.log(interpolatedPalette); // ['#3498db', '#5d6d7e', '#8473a9', '#ad7a95'

#### Defined in

[classes/MoebiusPalettes.ts:278](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L278)
[classes/MoebiusPalettes.ts:312](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L312)

___

Expand Down Expand Up @@ -333,7 +369,7 @@ console.log(luminanceShiftPalette); // ['#3498db', '#99db34', '#dbd134', '#db343

#### Defined in

[classes/MoebiusPalettes.ts:309](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L309)
[classes/MoebiusPalettes.ts:343](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L343)

___

Expand Down Expand Up @@ -376,7 +412,7 @@ console.log(monochromaticPalette);

#### Defined in

[classes/MoebiusPalettes.ts:342](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L342)
[classes/MoebiusPalettes.ts:376](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L376)

___

Expand Down Expand Up @@ -409,7 +445,7 @@ console.log(pentadicPalette); // ['#3498db', '#dbd134', '#db3434', '#34db99', '#

#### Defined in

[classes/MoebiusPalettes.ts:197](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L197)
[classes/MoebiusPalettes.ts:231](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L231)

___

Expand Down Expand Up @@ -442,7 +478,7 @@ console.log(splitPalette); // ['#3498db', '#99db34', '#dbd134', '#db3434', '#8f3

#### Defined in

[classes/MoebiusPalettes.ts:119](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L119)
[classes/MoebiusPalettes.ts:153](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L153)

___

Expand Down Expand Up @@ -475,7 +511,7 @@ console.log(tetradicPalette); // ['#3498db', '#db3434', '#34db99', '#dbd134', '#

#### Defined in

[classes/MoebiusPalettes.ts:171](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L171)
[classes/MoebiusPalettes.ts:205](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L205)

___

Expand Down Expand Up @@ -508,4 +544,4 @@ console.log(triadicPalette);

#### Defined in

[classes/MoebiusPalettes.ts:145](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L145)
[classes/MoebiusPalettes.ts:179](https://github.com/phun-ky/moebius/blob/main/src/classes/MoebiusPalettes.ts#L179)
20 changes: 10 additions & 10 deletions api/interfaces/types.MoebiusPaletteAccentColorsInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Represents a palette of accent colors with different schemes.

#### Defined in

[types/index.ts:62](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L62)
[types/index.ts:63](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L63)

___

Expand All @@ -28,7 +28,7 @@ ___

#### Defined in

[types/index.ts:56](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L56)
[types/index.ts:57](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L57)

___

Expand All @@ -38,7 +38,7 @@ ___

#### Defined in

[types/index.ts:61](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L61)
[types/index.ts:62](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L62)

___

Expand All @@ -48,7 +48,7 @@ ___

#### Defined in

[types/index.ts:53](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L53)
[types/index.ts:54](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L54)

___

Expand All @@ -58,7 +58,7 @@ ___

#### Defined in

[types/index.ts:54](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L54)
[types/index.ts:55](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L55)

___

Expand All @@ -68,7 +68,7 @@ ___

#### Defined in

[types/index.ts:55](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L55)
[types/index.ts:56](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L56)

___

Expand All @@ -78,7 +78,7 @@ ___

#### Defined in

[types/index.ts:60](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L60)
[types/index.ts:61](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L61)

___

Expand All @@ -88,7 +88,7 @@ ___

#### Defined in

[types/index.ts:57](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L57)
[types/index.ts:58](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L58)

___

Expand All @@ -98,7 +98,7 @@ ___

#### Defined in

[types/index.ts:59](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L59)
[types/index.ts:60](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L60)

___

Expand All @@ -108,4 +108,4 @@ ___

#### Defined in

[types/index.ts:58](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L58)
[types/index.ts:59](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L59)
10 changes: 10 additions & 0 deletions api/interfaces/types.MoebiusPaletteColorsInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ ___

___

### darkmode

**darkmode**: `Record`<`string`, \`#${string}\`[]\>

#### Defined in

[types/index.ts:47](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L47)

___

### hexadic

**hexadic**: \`#${string}\`[]
Expand Down
6 changes: 3 additions & 3 deletions api/interfaces/types.NearestColorColorMatchInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Represents a color match for nearest color matching.

#### Defined in

[types/index.ts:188](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L188)
[types/index.ts:189](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L189)

___

Expand All @@ -24,7 +24,7 @@ ___

#### Defined in

[types/index.ts:190](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L190)
[types/index.ts:191](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L191)

___

Expand All @@ -34,4 +34,4 @@ ___

#### Defined in

[types/index.ts:189](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L189)
[types/index.ts:190](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L190)
6 changes: 3 additions & 3 deletions api/interfaces/types.NearestColorColorSpecInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Represents a color specification for nearest color matching.

#### Defined in

[types/index.ts:179](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L179)
[types/index.ts:180](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L180)

___

Expand All @@ -24,7 +24,7 @@ ___

#### Defined in

[types/index.ts:181](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L181)
[types/index.ts:182](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L182)

___

Expand All @@ -34,4 +34,4 @@ ___

#### Defined in

[types/index.ts:180](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L180)
[types/index.ts:181](https://github.com/phun-ky/moebius/blob/main/src/types/index.ts#L181)
Loading

0 comments on commit 9d9bb1f

Please sign in to comment.