Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/theme-tools

Package Overview
Dependencies
Maintainers
3
Versions
492
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/theme-tools

Set of helpers that makes theming and styling easier

  • 0.0.0-dev-20211115102948
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
648K
decreased by-7.92%
Maintainers
3
Weekly downloads
 
Created

What is @chakra-ui/theme-tools?

@chakra-ui/theme-tools is a utility package for creating and managing themes in Chakra UI. It provides a set of tools to help you build custom themes, manage design tokens, and create responsive styles with ease.

What are @chakra-ui/theme-tools's main functionalities?

createBreakpoints

The `createBreakpoints` function allows you to define custom breakpoints for responsive design. This is useful for creating a consistent set of breakpoints across your application.

const { createBreakpoints } = require('@chakra-ui/theme-tools');

const breakpoints = createBreakpoints({
  sm: '30em',
  md: '48em',
  lg: '62em',
  xl: '80em',
});

console.log(breakpoints);

mode

The `mode` function helps you define styles that change based on the color mode (light or dark). This is useful for creating themes that adapt to different color modes.

const { mode } = require('@chakra-ui/theme-tools');

const styles = {
  bg: mode('white', 'gray.800'),
  color: mode('black', 'white'),
};

console.log(styles);

transparentize

The `transparentize` function allows you to adjust the transparency of a color. This is useful for creating semi-transparent colors for overlays, backgrounds, and other UI elements.

const { transparentize } = require('@chakra-ui/theme-tools');

const color = transparentize('red.500', 0.5);

console.log(color);

Other packages similar to @chakra-ui/theme-tools

Keywords

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc