@dartbot/dartboard
Version:
Dartboard implemented as a vanilla web component
63 lines (62 loc) • 2.56 kB
TypeScript
import { Theme } from './theme';
export declare const enum Token {
canvasBg = "--dartbot-canvas-bg",
boardBg = "--dartbot-board-bg",
sectorBg1 = "--dartbot-sector-bg-1",
sectorBg2 = "--dartbot-sector-bg-2",
sectorBg3 = "--dartbot-sector-bg-3",
sectorBg4 = "--dartbot-sector-bg-4",
wireShow = "--dartbot-wire-show",
wireWidth = "--dartbot-wire-width",
wireColor = "--dartbot-wire-color",
wireShadowShow = "--dartbot-wire-shadow-show",
wireShadowColor = "--dartbot-wire-shadow-color",
wireShadowBlur = "--dartbot-wire-shadow-blur",
wireShadowOffsetX = "--dartbot-wire-shadow-offset-x",
wireShadowOffsetY = "--dartbot-wire-shadow-offset-y",
wireRingOffset = "--dartbot-wire-ring-offset",
numberShow = "--dartbot-number-show",
numberWidth = "--dartbot-number-width",
numberColor = "--dartbot-number-color",
numberFont = "--dartbot-number-font",
numberSize = "--dartbot-number-size",
numberInset = "--dartbot-number-inset",
numberWireShow = "--dartbot-number-wire-show",
numberWireWidth = "--dartbot-number-wire-width",
numberWireColor = "--dartbot-number-wire-color",
hitFillColor = "--dartbot-hit-fill-color",
hitRadius = "--dartbot-hit-radius",
hitStokeColor = "--dartbot-hit-stoke-color",
hitStrokeWidth = "--dartbot-hit-stoke-width"
}
export declare const tokenDefaults: {
"--dartbot-canvas-bg": string;
"--dartbot-board-bg": string;
"--dartbot-sector-bg-1": string;
"--dartbot-sector-bg-2": string;
"--dartbot-sector-bg-3": string;
"--dartbot-sector-bg-4": string;
"--dartbot-wire-show": string;
"--dartbot-wire-width": string;
"--dartbot-wire-color": string;
"--dartbot-wire-shadow-show": string;
"--dartbot-wire-shadow-color": string;
"--dartbot-wire-shadow-blur": string;
"--dartbot-wire-shadow-offset-x": string;
"--dartbot-wire-shadow-offset-y": string;
"--dartbot-wire-ring-offset": string;
"--dartbot-number-show": string;
"--dartbot-number-width": string;
"--dartbot-number-color": string;
"--dartbot-number-font": string;
"--dartbot-number-size": string;
"--dartbot-number-inset": string;
"--dartbot-number-wire-show": string;
"--dartbot-number-wire-width": string;
"--dartbot-number-wire-color": string;
"--dartbot-hit-radius": string;
"--dartbot-hit-fill-color": string;
"--dartbot-hit-stoke-color": string;
"--dartbot-hit-stoke-width": string;
};
export declare const createTheme: (style: CSSStyleDeclaration) => Theme;