UNPKG

@stencila/thema

Version:

Themes for executable documents

20 lines (19 loc) 927 B
import { themes } from '../themes'; import { isTheme, generateCDNUrl, themePath, styleEntry, scriptEntry, ThemaAssets } from '../browser'; export { themes }; export { isTheme, generateCDNUrl, themePath, styleEntry, scriptEntry, ThemaAssets, }; /** * Given a string, will return a matching theme assets, either as a link to CDN hosted files, * or the stringified file contents. * returns undefined if a theme cannot be found. * * @param {string} theme - Name of the theme to look for * @param {boolean | undefined} asCDNUrl - If true, returns the assets as URLs pointing to UNPKG hosted files. * @return {ThemaAssets|undefined} Object containing two arrays, one of all the themes stylesheets, and one of all * scripts. */ export declare const getTheme: (theme: string, asCDNUrl?: boolean | undefined) => ThemaAssets | undefined; export declare const getRpngSymbolSize: () => { height: number; width: number; };