|
| 1 | +:root { |
| 2 | + --app-background-color: #f9fafb; |
| 3 | + --app-heading-color: #101828; |
| 4 | + --app-button-bg: #f2f4f7; |
| 5 | + --app-button-border: #d0d5dd; |
| 6 | + --app-button-text: #101828; |
| 7 | + --app-button-hover: #eaecf0; |
| 8 | + --app-card-bg: #f9fafb; |
| 9 | + --app-card-border: #d0d5dd; |
| 10 | +} |
| 11 | + |
| 12 | +[data-theme='light'] { |
| 13 | + --app-background-color: #f9fafb; |
| 14 | + --app-heading-color: #101828; |
| 15 | + --app-button-bg: #f2f4f7; |
| 16 | + --app-button-border: #d0d5dd; |
| 17 | + --app-button-text: #101828; |
| 18 | + --app-button-hover: #eaecf0; |
| 19 | + --app-card-bg: #f9fafb; |
| 20 | + --app-card-border: #d0d5dd; |
| 21 | +} |
| 22 | + |
| 23 | +[data-theme='dark'] { |
| 24 | + --app-background-color: #191c24; |
| 25 | + --app-heading-color: #f2f4f7; |
| 26 | + --app-button-bg: #212530; |
| 27 | + --app-button-border: #292e3d; |
| 28 | + --app-button-text: #f2f4f7; |
| 29 | + --app-button-hover: #292e3d; |
| 30 | + --app-card-bg: #212530; |
| 31 | + --app-card-border: #292e3d; |
| 32 | +} |
| 33 | + |
| 34 | +@media (prefers-color-scheme: dark) { |
| 35 | + :root:not([data-theme]) { |
| 36 | + --app-background-color: #191c24; |
| 37 | + --app-heading-color: #f2f4f7; |
| 38 | + --app-button-bg: #212530; |
| 39 | + --app-button-border: #292e3d; |
| 40 | + --app-button-text: #f2f4f7; |
| 41 | + --app-button-hover: #292e3d; |
| 42 | + --app-card-bg: #212530; |
| 43 | + --app-card-border: #292e3d; |
| 44 | + } |
| 45 | +} |
| 46 | + |
| 47 | +body { |
| 48 | + background-color: var(--app-background-color); |
| 49 | +} |
| 50 | + |
| 51 | +.app-shell { |
| 52 | + padding: 16px; |
| 53 | +} |
| 54 | + |
| 55 | +.theme-toggle { |
| 56 | + border: 1px solid var(--app-button-border); |
| 57 | + background-color: var(--app-button-bg); |
| 58 | + color: var(--app-button-text); |
| 59 | + border-radius: 8px; |
| 60 | + padding: 8px 12px; |
| 61 | + font-size: 14px; |
| 62 | + font-weight: 600; |
| 63 | + cursor: pointer; |
| 64 | + transition: |
| 65 | + background-color 0.15s ease, |
| 66 | + border-color 0.15s ease, |
| 67 | + transform 0.1s ease; |
| 68 | +} |
| 69 | + |
| 70 | +.theme-toggle:hover { |
| 71 | + background-color: var(--app-button-hover); |
| 72 | +} |
| 73 | + |
| 74 | +.theme-toggle:active { |
| 75 | + transform: translateY(1px); |
| 76 | +} |
| 77 | + |
| 78 | +.theme-toggle:focus-visible { |
| 79 | + outline: 2px solid #1570ef; |
| 80 | + outline-offset: 2px; |
| 81 | +} |
| 82 | + |
| 83 | +.json-tree-container { |
| 84 | + margin-top: 16px; |
| 85 | + padding: 16px; |
| 86 | + border: 1px solid var(--app-card-border); |
| 87 | + border-radius: 10px; |
| 88 | + background-color: var(--app-card-bg); |
| 89 | +} |
| 90 | + |
| 91 | +h1, |
| 92 | +h2, |
| 93 | +h3, |
| 94 | +h4, |
| 95 | +h5, |
| 96 | +h6 { |
| 97 | + font-family: Arial; |
| 98 | + color: var(--app-heading-color); |
| 99 | +} |
0 commit comments