@rokkit/core 1.0.0-next.88 → 1.0.0-next.90

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.88",
3
+ "version": "1.0.0-next.90",
4
4
  "description": "Core components, actions and stores for svelte apps.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  "typescript": "^5.3.3",
23
23
  "vite": "^5.1.4",
24
24
  "vitest": "~1.3.1",
25
- "shared-config": "1.0.0-next.88",
26
- "validators": "1.0.0-next.88"
25
+ "shared-config": "1.0.0-next.90",
26
+ "validators": "1.0.0-next.90"
27
27
  },
28
28
  "files": [
29
29
  "src/**/*.js",
@@ -2,8 +2,8 @@ export const syntaxColors = {
2
2
  'one-dark': {
3
3
  dark: {
4
4
  '--tab-size': '2',
5
- // '--code-bg': '#282c34',
6
- '--code-fill': '#282c34',
5
+ // '--code-bg': 'var(--neutral-100)',
6
+ '--code-fill': 'var(--neutral-100)',
7
7
  '--code-normal': '#e06c75',
8
8
  '--code-string': '#98c379',
9
9
  '--code-number': '#d19a66',
@@ -22,8 +22,8 @@ export const syntaxColors = {
22
22
  },
23
23
  light: {
24
24
  '--tab-size': '2',
25
- // '--code-bg': '#f3f4f6',
26
- '--code-fill': '#f3f4f6',
25
+ // '--code-bg': 'var(--neutral-100)',
26
+ '--code-fill': 'var(--neutral-100)',
27
27
  '--code-normal': '#333333',
28
28
  '--code-string': '#9D8248',
29
29
  '--code-number': '#71A15D',
package/src/theme.js CHANGED
@@ -23,12 +23,11 @@ export function shadesOf(name, modifier = 'none') {
23
23
  }),
24
24
  {
25
25
  DEFAULT: fn(`var(--${name}-500)`),
26
- sunken: fn(`var(--${name}-50)`),
26
+ base: fn(`var(--${name}-50)`),
27
27
  inset: fn(`var(--${name}-100)`),
28
- base: fn(`var(--${name}-200)`),
29
- subtle: fn(`var(--${name}-300)`),
30
- muted: fn(`var(--${name}-400)`),
31
- raised: fn(`var(--${name}-500)`),
28
+ subtle: fn(`var(--${name}-200)`),
29
+ muted: fn(`var(--${name}-300)`),
30
+ raised: fn(`var(--${name}-400)`),
32
31
  elevated: fn(`var(--${name}-600)`),
33
32
  floating: fn(`var(--${name}-700)`),
34
33
  contrast: fn(`var(--${name}-800)`)
@@ -60,7 +59,7 @@ export function themeColors(modifier = 'none') {
60
59
  )
61
60
  colors.neutral = {
62
61
  ...colors.neutral,
63
- contrast: fn(`var(--neutral-800)`),
62
+ // contrast: fn(`var(--neutral-800)`),
64
63
  zebra: fn(`var(--neutral-zebra)`)
65
64
  }
66
65
 
@@ -115,14 +114,16 @@ export function themeRules(name = 'rokkit', mapping = defaultThemeMapping, color
115
114
  `${name}-mode-light`,
116
115
  {
117
116
  ...light,
118
- ...syntaxColors['one-dark'].light
117
+ ...syntaxColors['one-dark'].light,
118
+ '--plot-background': 'var(--neutral-200)'
119
119
  }
120
120
  ],
121
121
  [
122
122
  `${name}-mode-dark`,
123
123
  {
124
124
  ...dark,
125
- ...syntaxColors['one-dark'].dark
125
+ ...syntaxColors['one-dark'].dark,
126
+ '--plot-background': 'var(--neutral-200)'
126
127
  }
127
128
  ]
128
129
  ]