@remirror/theme
Advanced tools
Comparing version 0.0.0-pr1713.3 to 0.0.0-pr1713.4
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
1428
91745
+ Added@remirror/core-constants@0.0.0-pr1713.4(transitive)
+ Added@remirror/core-helpers@0.0.0-pr1713.4(transitive)
+ Added@remirror/core-types@0.0.0-pr1713.4(transitive)
+ Added@remirror/pm@0.0.0-pr1713.4(transitive)
+ Added@remirror/types@0.0.0-pr1713.4(transitive)
+ Addedcase-anything@2.1.13(transitive)
+ Addedprosemirror-paste-rules@0.0.0-pr1713.4(transitive)
+ Addedprosemirror-suggest@0.0.0-pr1713.4(transitive)
+ Addedprosemirror-trailing-node@0.0.0-pr1713.4(transitive)
- Removedcase-anything@^1.1.3
- Removed@remirror/core-constants@0.0.0-pr1713.3(transitive)
- Removed@remirror/core-helpers@0.0.0-pr1713.3(transitive)
- Removed@remirror/core-types@0.0.0-pr1713.3(transitive)
- Removed@remirror/pm@0.0.0-pr1713.3(transitive)
- Removed@remirror/types@0.0.0-pr1713.3(transitive)
- Removedcase-anything@1.1.5(transitive)
- Removedprosemirror-paste-rules@0.0.0-pr1713.3(transitive)
- Removedprosemirror-suggest@0.0.0-pr1713.3(transitive)
- Removedprosemirror-trailing-node@0.0.0-pr1713.3(transitive)