Theme
Theme
Overview
Utils for working with CSS variables in JavaScript including theming and color manipulation.
Installation
# npm
npm i --save @weser/theme
# yarn
yarn add @weser/theme
# pnpm
pnpm add @weser/theme
Motivation
Working with CSS variables in JavaScript is a pain. You have to manually create the variables and references and then inline them into your components. The syntax is ugly and error-prone since there's no type safety. That's why I created this package to help you work with CSS variables in a more convenient way.
Benefits
This package provides a set of utilities to help you work with CSS variables in a more convenient way.
It helps with creating themes, managing variables and references and provides a set of utilities to manipulate colors.
© 2024-present Robin Weser. All Rights Reserved.