rockerBOO / typedoc-default-themes-dark

Default themes for TypeDoc with addition of prefers-color-scheme: dark colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default themes for TypeDoc with addition of prefers-color-scheme: dark colors

Uses default themes from https://github.com/TypeStrong/typedoc-default-themes with the addition of dark colors for the default theme.

@media (prefers-color-scheme: dark)

See: src/default/assets/css/_theme.scss

Note: Made for Typedoc < 0.22, as the templating changes in 0.22 to JSX. No longer supported. Typedoc seems to support some level of light/dark themes in the defaults.

Install

npm add --dev typedoc-default-themes-dark

screen2

screen3-light

Usage

typedoc ./file.ts --theme ./node_modules/typedoc-default-themes-dark/bin/default/

or add the theme to your tsconfig.json

{
  "typedocOptions": {
    "theme": "node_modules/typedoc-default-themes-dark/bin/default/"
  }
}

Build

To make a build:

npm run build

This puts the theme you want to use in bin/default/.

This module contains the default themes of TypeDoc. Visit https://typedoc.org/ to learn more about TypeDoc.

Contributing

Contributions are welcome and appreciated. You can find TypeDoc on GitHub, feel free to start an issue or create a pull requests:
https://github.com/TypeStrong/typedoc

To use a local build of this project, run the npm pack command in this directory. Then in the project where you want to use your local build run npm install ../path/to/typedoc-default-themes-VERSION.tgz

License

Copyright (c) 2015 Sebastian Lenz.
Copyright (c) 2016-2020 TypeDoc Contributors.
Licensed under the Apache License 2.0.

About

Default themes for TypeDoc with addition of prefers-color-scheme: dark colors

License:Apache License 2.0


Languages

Language:Handlebars 36.5%Language:TypeScript 26.5%Language:Sass 26.3%Language:JavaScript 5.4%Language:SCSS 5.2%