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

@remirror/theme

Package Overview
Dependencies
Maintainers
2
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/theme - npm Package Compare versions

Comparing version 0.0.0-pr1713.3 to 0.0.0-pr1713.4

8

dist/remirror-theme.js
import '@linaria/core';
import { kebabCase } from 'case-anything';
import { transparentize, lighten, darken, readableColor } from 'color2k';

@@ -47,7 +46,12 @@

function simpleKebabCase(str) {
return str.replace(/([a-z])([\dA-Z])/g, '$1-$2').replace(/[\s_]+/g, '-').toLowerCase();
}
/**
* Get the remirror variable from the keys to access it in the theme object.
*/
function getCustomPropertyName(keys) {
return `--rmr-${keys.map(kebabCase).join('-')}`;
return `--rmr-${keys.map(simpleKebabCase).join('-')}`;
}

@@ -54,0 +58,0 @@ /**

{
"name": "@remirror/theme",
"version": "0.0.0-pr1713.3",
"version": "0.0.0-pr1713.4",
"description": "The configurable theme for the remirror editor.",

@@ -36,4 +36,3 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__theme",

"@linaria/core": "3.0.0-beta.13",
"@remirror/core-types": "0.0.0-pr1713.3",
"case-anything": "^1.1.3",
"@remirror/core-types": "0.0.0-pr1713.4",
"color2k": "^1.2.4",

@@ -40,0 +39,0 @@ "csstype": "^3.0.7"

Sorry, the diff of this file is not supported yet

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