@rokkit/core 1.0.0-next.54 → 1.0.0-next.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/utils.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.54",
3
+ "version": "1.0.0-next.56",
4
4
  "description": "Core components, actions and stores for svelte apps.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -14,17 +14,17 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sveltejs/vite-plugin-svelte": "^2.4.6",
17
- "@testing-library/svelte": "^4.0.3",
18
- "@types/ramda": "^0.29.5",
17
+ "@testing-library/svelte": "^4.0.4",
18
+ "@types/ramda": "^0.29.7",
19
19
  "@vitest/coverage-v8": "^0.34.6",
20
20
  "@vitest/ui": "~0.34.6",
21
21
  "jsdom": "^22.1.0",
22
- "svelte": "^4.2.1",
22
+ "svelte": "^4.2.2",
23
23
  "typescript": "^5.2.2",
24
24
  "validators": "latest",
25
- "vite": "^4.4.9",
25
+ "vite": "^4.5.0",
26
26
  "vitest": "~0.34.6",
27
- "shared-config": "1.0.0-next.54"
27
+ "shared-config": "1.0.0-next.56"
28
28
  },
29
29
  "files": [
30
30
  "src/**/*.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "date-fns": "^2.30.0",
45
- "ramda": "^0.29.0"
45
+ "ramda": "^0.29.1"
46
46
  },
47
47
  "scripts": {
48
48
  "format": "prettier --write .",
package/src/utils.js CHANGED
@@ -52,7 +52,7 @@ export function themeColors(modifier = 'none') {
52
52
  const fn = modifier in modifiers ? modifiers[modifier] : modifiers.none
53
53
 
54
54
  let states = ['info', 'error', 'warn', 'pass']
55
- let variants = ['skin', 'primary', 'secondary', 'accent']
55
+ let variants = ['neutral', 'primary', 'secondary', 'accent']
56
56
  let colors = states.reduce(
57
57
  (acc, state) => ({ ...acc, [state]: stateColors(state, modifier) }),
58
58
  {}
@@ -61,10 +61,10 @@ export function themeColors(modifier = 'none') {
61
61
  (acc, variant) => ({ ...acc, [variant]: shadesOf(variant, modifier) }),
62
62
  colors
63
63
  )
64
- colors.skin = {
65
- ...colors.skin,
66
- contrast: fn(`var(--skin-800)`),
67
- zebra: fn(`var(--skin-zebra)`)
64
+ colors.neutral = {
65
+ ...colors.neutral,
66
+ contrast: fn(`var(--neutral-800)`),
67
+ zebra: fn(`var(--neutral-zebra)`)
68
68
  }
69
69
 
70
70
  return colors