Socket
Socket
Sign inDemoInstall

@chakra-ui/theme-tools

Package Overview
Dependencies
Maintainers
4
Versions
479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/theme-tools - npm Package Compare versions

Comparing version 1.0.0-rc.8 to 1.0.0

16

CHANGELOG.md

@@ -6,13 +6,23 @@ # Change Log

# 1.0.0-rc.8 (2020-10-29)
# 1.0.0 (2020-11-13)
**Note:** Version bump only for package @chakra-ui/theme-tools
### Bug Fixes
* **toast:** allow custom render in update ([eb8bff9](https://github.com/chakra-ui/chakra-ui/commit/eb8bff911e6ec9de0165ab1e8f5ca10d5e022459)), closes [#2362](https://github.com/chakra-ui/chakra-ui/issues/2362)
# Change Log
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.0.0-rc.8 (2020-10-29)
### Bug Fixes
- **toast:** allow custom render in update
([eb8bff9](https://github.com/chakra-ui/chakra-ui/commit/eb8bff911e6ec9de0165ab1e8f5ca10d5e022459)),
closes [#2362](https://github.com/chakra-ui/chakra-ui/issues/2362)
# Change Log

@@ -19,0 +29,0 @@

10

dist/cjs/color.js

@@ -99,3 +99,3 @@ "use strict";

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount black to add (0-1)
*/

@@ -115,3 +115,3 @@

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount to darken (0-1)
*/

@@ -128,3 +128,9 @@

};
/**
* Lighten a specified color
* @param color - the color in hex, rgb, or hsl
* @param amount - the amount to lighten (0-1)
*/
exports.darken = darken;

@@ -131,0 +137,0 @@

@@ -60,3 +60,3 @@ import Color from "tinycolor2";

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount black to add (0-1)
*/

@@ -71,3 +71,3 @@

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount to darken (0-1)
*/

@@ -79,2 +79,8 @@

};
/**
* Lighten a specified color
* @param color - the color in hex, rgb, or hsl
* @param amount - the amount to lighten (0-1)
*/
export var lighten = (color, amount) => theme => Color(getColor(theme, color)).lighten(amount).toHexString();

@@ -81,0 +87,0 @@ /**

@@ -40,3 +40,3 @@ import Color from "tinycolor2";

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount black to add (0-1)
*/

@@ -47,5 +47,10 @@ export declare const blacken: (color: string, amount: number) => (theme: Dict) => string;

* @param color - the color in hex, rgb, or hsl
* @param amount - the amount white to add (0-1)
* @param amount - the amount to darken (0-1)
*/
export declare const darken: (color: string, amount: number) => (theme: Dict) => string;
/**
* Lighten a specified color
* @param color - the color in hex, rgb, or hsl
* @param amount - the amount to lighten (0-1)
*/
export declare const lighten: (color: string, amount: number) => (theme: Dict) => string;

@@ -52,0 +57,0 @@ /**

/// <reference types="react" />
import { SystemStyleObject } from "@chakra-ui/system";
import { Dict, runIfFn } from "@chakra-ui/utils";
export interface StyleConfig {
baseStyle?: SystemStyleObject;
sizes?: {
[size: string]: SystemStyleObject;
};
variants?: {
[variant: string]: SystemStyleObject;
};
defaultProps?: {
size?: string;
variant?: string;
colorScheme?: string;
};
}
export interface MultiStyleConfig {
baseStyle?: {
[part: string]: SystemStyleObject;
};
sizes?: {
[size: string]: {
[part: string]: SystemStyleObject;
};
};
variants?: {
[variants: string]: {
[part: string]: SystemStyleObject;
};
};
defaultProps?: StyleConfig["defaultProps"];
}
export interface GlobalStyleProps {

@@ -5,0 +35,0 @@ colorScheme: string;

{
"name": "@chakra-ui/theme-tools",
"version": "1.0.0-rc.8",
"version": "1.0.0",
"description": "Set of helpers that makes theming and styling easier",

@@ -53,3 +53,3 @@ "keywords": [

"dependencies": {
"@chakra-ui/utils": "1.0.0-rc.8",
"@chakra-ui/utils": "1.0.0",
"@types/tinycolor2": "1.4.2",

@@ -62,5 +62,5 @@ "tinycolor2": "1.4.1"

"devDependencies": {
"@chakra-ui/system": "1.0.0-rc.8"
"@chakra-ui/system": "1.0.0"
},
"gitHead": "de4cffb1638e8d10cd74515b0289d70eb94931be"
"gitHead": "c98ca366cec7151fe7ea4e0b6f893088797c5398"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc