diff --git a/index.html b/index.html index ad1d2f4..cda3ff6 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,9 @@ Vega-Lite Editor Integration + + + diff --git a/src/styles.css b/src/styles.css index 6be5b3a..fcb4c62 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,3 +1,7 @@ +:root { + --ui-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; +} + #vis { width: 100%; height: 100%; @@ -10,6 +14,27 @@ box-sizing: border-box; } +/* Apply font to UI elements */ +.panel-header, +.button, +.snippet-item, +.snippet-content { + font-family: var(--ui-font); +} + +.panel-header h2 { + font-weight: 600; + font-size: 1.125rem; +} + +.button { + font-weight: 500; +} + +.snippet-content { + font-size: 0.925rem; +} + .container { display: grid; grid-template-columns: var(--snippet-width, 1fr) 5px var(--editor-width, 1fr) 5px var(--preview-width, 2fr);