npm.io
1.29.0 • Published 2 weeks ago

@openremote/theme

Licence
AGPL-3.0-or-later
Version
1.29.0
Deps
2
Size
46 kB
Vulns
0
Weekly
0
Stars
1.9K

@openremote/theme

NPM Version

This is a package that contains CSS files used for styling OpenRemote components and apps. Defined CSS variables like --or-color-primary and --or-color-text-primary can be used to customize the look and feel of the OpenRemote components. Currently, only 1 theme ("default") is provided, but can be expanded upon in the future. Every theme is expected to have a light and dark counterpart.

Install

npm i @openremote/theme
yarn add @openremote/theme

Usage

Using CSS
@import "@openremote/theme/default.css";
Using JavaScript / TypeScript:

Note: using the <style> tag is an example here. Please check the documentation of your JavaScript bundler for proper installation of CSS files.

import themeCss from "@openremote/theme";

// Apply theme to the app
const style = document.createElement("style");
style.id = "orDefaultTheme";
style.textContent = themeCss;
document.head.appendChild(style);

License

GNU AGPL