@symbo.ls/scratch 0.4.0 → 0.4.1
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 +1 -1
- package/src/config/spacing.js +0 -1
- package/src/config/typography.js +0 -2
- package/src/set.js +0 -2
- package/src/system/theme.js +0 -3
- package/src/utils/var.js +0 -1
package/package.json
CHANGED
package/src/config/spacing.js
CHANGED
package/src/config/typography.js
CHANGED
package/src/set.js
CHANGED
package/src/system/theme.js
CHANGED
|
@@ -88,7 +88,6 @@ const goThroughInteractiveStates = (theme, value) => {
|
|
|
88
88
|
|
|
89
89
|
const setPrefersScheme = (theme, key, variant, themeValue) => {
|
|
90
90
|
const result = getTheme(variant)
|
|
91
|
-
// console.log(variant)
|
|
92
91
|
themeValue[`@media (prefers-color-scheme: ${key})`] = result
|
|
93
92
|
if (isObject(variant) && !variant.value) variant.value = result
|
|
94
93
|
}
|
|
@@ -99,8 +98,6 @@ const goThroughVariants = (theme, value) => {
|
|
|
99
98
|
const keys = Object.keys(variants)
|
|
100
99
|
keys.map(key => {
|
|
101
100
|
const variant = variants[key]
|
|
102
|
-
// console.log('=========')
|
|
103
|
-
// console.log(theme, key, variant, value)
|
|
104
101
|
if (key === 'dark' || key === 'light') setPrefersScheme(theme, key, variant, value)
|
|
105
102
|
if (key === 'inverse') setInverseTheme(theme, variant, value)
|
|
106
103
|
return theme
|
package/src/utils/var.js
CHANGED
|
@@ -21,7 +21,6 @@ export const setVariables = (result, key) => {
|
|
|
21
21
|
export const applySequenceVars = (props, mediaName) => {
|
|
22
22
|
const unit = props.unit || CONFIG.UNIT.default
|
|
23
23
|
const { sequence, scales } = props
|
|
24
|
-
console.log(props)
|
|
25
24
|
|
|
26
25
|
for (const key in sequence) {
|
|
27
26
|
const item = sequence[key]
|