@symbo.ls/preview 2.7.19 → 2.7.20

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
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/preview",
3
3
  "description": "",
4
4
  "author": "symbo.ls",
5
- "version": "2.7.19",
5
+ "version": "2.7.20",
6
6
  "main": "src/app.js",
7
7
  "scripts": {
8
8
  "link:all": "yarn link smbls domql css-in-props @symbo.ls/icons @symbo.ls/config @symbo.ls/components @symbo.ls/scratch @symbo.ls/playground @symbo.ls/utils @symbo.ls/init @symbo.ls/config-default @domql/router @domql/utils @domql/router",
@@ -14,7 +14,7 @@ export const HeaderHeading = {
14
14
 
15
15
  H1: {
16
16
  color: 'white',
17
- text: 'First is the light',
17
+ text: 'First was the dark',
18
18
  fontSize: 'H2',
19
19
  fontWeight: '700',
20
20
  margin: '0',
@@ -145,16 +145,6 @@ export const CreateDocumentTheme = {
145
145
 
146
146
  const colorRef = {}
147
147
 
148
- if (light) {
149
- colorRef.light = {
150
- key: 'light',
151
- title: 'Day',
152
- icon: 'sun',
153
- color: COLOR[light.color] || light.color || '#000000',
154
- background: COLOR[light.background] || light.background || '#FFFFFF'
155
- }
156
- }
157
-
158
148
  if (dark) {
159
149
  colorRef.dark = {
160
150
  key: 'dark',
@@ -165,6 +155,16 @@ export const CreateDocumentTheme = {
165
155
  }
166
156
  }
167
157
 
158
+ if (light) {
159
+ colorRef.light = {
160
+ key: 'light',
161
+ title: 'Day',
162
+ icon: 'sun',
163
+ color: COLOR[light.color] || light.color || '#000000',
164
+ background: COLOR[light.background] || light.background || '#FFFFFF'
165
+ }
166
+ }
167
+
168
168
  state.update({
169
169
  values: colorRef
170
170
  }, { preventUpdate: true, ignoreInitUpdate: true })