typedoc-unhoax-theme

0.5.1 • Public • Published

Installation

npm i -D typedoc-unhoax-theme

…and in your typedoc config:

{
  "plugin": ["typedoc-unhoax-theme"]
}

There is no particular configuration for this plugin, it is mainly a theme.

Examples

TypeDoc Default Example

Domain / Use-Case Driven Example

Customizing

Here are the CSS variables you can override using customCss typedoc config option.

:root {
  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 0.75rem;
  --space-l: 1rem;
  --space-xl: 1.25rem;
  --space-xxl: 1.5rem;

  --radius: 0.5rem;
  --border-thin-size: 1px;
  --border-thick-size: 2px;

  /* palette */
  --green: #1ba673;
  --purple: #8250df;
  --transparent-blue: #e0efff;
  --transparent-blue: #85ceff1a;
  --transparent-grey: #f3f4f6;
  --grey-light: #ededf0;
  --red: #d45656;
  --transparent-black: rgba(212, 86, 86, 0.125);
  --yellow: #c37d0d;
  --yellow-transparent: rgba(195, 125, 13, 0.125);
  --green: #1ba673;
  --green-transparent: rgba(27, 166, 115, 0.125);
  --color-background-secondary: var(--color-background);
  --color-text-aside: var(--color-text-light);

  --default-transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

:root[data-theme='light'] {
  --blue-dark: #003eaa;
  --blue: #004ca3;
  --blue-light: #3772cf;
  --shadow: 0 0 6px -3px rgba(0, 0, 0, 0.5);
  --border-grey: #e5e7eb;

  --color-background: #fff;
  --color-text: #15141a;
  --color-text-light: #5b5b66;
  --site-nav-background: #f9f9f9;
  --code-background: #f9f9f9;
}

:root[data-theme='dark'] {
  --blue: #1aa3ff;
  --blue-light: #004ca3;
  --blue-dark: #3772cf;
  --shadow: 0 0 6px -3px rgba(255, 255, 255, 0.5);
  --border-grey: #ffffff1a;

  --color-text: #e2e8f0;
  --color-text-light: #a3a3a3;
  --color-background: #191919;
  --site-nav-background: #111111;
  --code-background: #111111;
}

Contributing

npm ci
npm run install-examples # runs `npm ci` in examples folders.
npm run debug # builds the project and the examples

# hosting the example:
npx http-server -p 8900 ./demo

Package Sidebar

Install

npm i typedoc-unhoax-theme

Weekly Downloads

9

Version

0.5.1

License

MIT

Unpacked Size

82.9 kB

Total Files

45

Last publish

Collaborators

  • sacdenoeuds