|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`transforms a theme config to CSS custom properties 1`] = ` |
| 4 | +Object { |
| 5 | + "--color-accent": "#609", |
| 6 | + "--color-background": "#fff", |
| 7 | + "--color-dark-background-surface": "#fff", |
| 8 | + "--color-dark-foreground-text": "#000", |
| 9 | + "--color-muted": "#f6f6f6", |
| 10 | + "--color-primary": "#07c", |
| 11 | + "--color-secondary": "#05a", |
| 12 | + "--color-text": "#000", |
| 13 | + "--font-body": "system-ui, sans-serif", |
| 14 | + "--font-heading": "system-ui, sans-serif", |
| 15 | + "--font-monospace": "Menlo, monospace", |
| 16 | + "--fontWeight-body": 400, |
| 17 | + "--fontWeight-bold": 700, |
| 18 | + "--fontWeight-heading": 700, |
| 19 | + "--lineHeight-0": 1.5, |
| 20 | + "--lineHeight-1": 1.125, |
| 21 | + "--size-0": "10em", |
| 22 | + "--size-1": "20em", |
| 23 | + "--size-2": "30em", |
| 24 | + "--size-3": "40em", |
| 25 | + "--space-0": 0, |
| 26 | + "--space-1": 2, |
| 27 | + "--space-2": 3, |
| 28 | + "--space-3": 4, |
| 29 | + "--space-4": 5, |
| 30 | + "--space-5": 6, |
| 31 | +} |
| 32 | +`; |
| 33 | + |
| 34 | +exports[`transforms a theme config to CSS custom properties with prefix 1`] = ` |
| 35 | +Object { |
| 36 | + "--🍭-color-accent": "#609", |
| 37 | + "--🍭-color-background": "#fff", |
| 38 | + "--🍭-color-dark-background-surface": "#fff", |
| 39 | + "--🍭-color-dark-foreground-text": "#000", |
| 40 | + "--🍭-color-muted": "#f6f6f6", |
| 41 | + "--🍭-color-primary": "#07c", |
| 42 | + "--🍭-color-secondary": "#05a", |
| 43 | + "--🍭-color-text": "#000", |
| 44 | + "--🍭-font-body": "system-ui, sans-serif", |
| 45 | + "--🍭-font-heading": "system-ui, sans-serif", |
| 46 | + "--🍭-font-monospace": "Menlo, monospace", |
| 47 | + "--🍭-fontWeight-body": 400, |
| 48 | + "--🍭-fontWeight-bold": 700, |
| 49 | + "--🍭-fontWeight-heading": 700, |
| 50 | + "--🍭-lineHeight-0": 1.5, |
| 51 | + "--🍭-lineHeight-1": 1.125, |
| 52 | + "--🍭-size-0": "10em", |
| 53 | + "--🍭-size-1": "20em", |
| 54 | + "--🍭-size-2": "30em", |
| 55 | + "--🍭-size-3": "40em", |
| 56 | + "--🍭-space-0": 0, |
| 57 | + "--🍭-space-1": 2, |
| 58 | + "--🍭-space-2": 3, |
| 59 | + "--🍭-space-3": 4, |
| 60 | + "--🍭-space-4": 5, |
| 61 | + "--🍭-space-5": 6, |
| 62 | +} |
| 63 | +`; |
0 commit comments