Socket
Socket
Sign inDemoInstall

@chakra-ui/theme-tools

Package Overview
Dependencies
4
Maintainers
2
Versions
479
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/theme-tools


Version published
Weekly downloads
608K
decreased by-1.06%
Maintainers
2
Created
Weekly downloads
 

Package description

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

Last updated on 11 Mar 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc