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

@hig/theme-context

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/theme-context - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [@hig/theme-context-v3.0.1](https://github.com/Autodesk/hig/compare/@hig/theme-context@3.0.0...@hig/theme-context@3.0.1) (2020-10-14)
### Bug Fixes
* security update for create-react-context ([6bb8edf](https://github.com/Autodesk/hig/commit/6bb8edf))
# [@hig/theme-context-v3.0.0](https://github.com/Autodesk/hig/compare/@hig/theme-context@2.1.3...@hig/theme-context@3.0.0) (2019-04-04)

@@ -2,0 +9,0 @@

6

package.json
{
"name": "@hig/theme-context",
"version": "3.0.0",
"version": "3.0.1",
"description": "ThemeContext components to ease adoption of theme data from React components",

@@ -21,3 +21,3 @@ "author": "Autodesk Inc.",

"dependencies": {
"create-react-context": "^0.2.3",
"create-react-context": "^0.3.0",
"prop-types": "^15.6.1"

@@ -33,3 +33,3 @@ },

"peerDependencies": {
"@hig/theme-data": "^2.3.5",
"@hig/theme-data": "^2.18.0",
"react": "^15.4.1 || ^16.3.2"

@@ -36,0 +36,0 @@ },

@@ -38,3 +38,3 @@ # ThemeContext component

```jsx
import ThemeContext from '@hig/themes';
import ThemeContext from '@hig/theme-context';

@@ -44,5 +44,5 @@ function MyThemedComponent() {

<div style={{
backgroundColor: resolvedRoles["colorScheme.surfaceLevel200Color"],
backgroundColor: resolvedRoles["colorScheme.surface.level200"],
borderRadius: resolvedRoles["basics.borderRadii.small"],
color: resolvedRoles["colorScheme.textColor"],
color: resolvedRoles["colorScheme.text.default"],
padding: resolvedRoles["density.spacings.medium"],

@@ -49,0 +49,0 @@ }}>

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