:root { color: CanvasText; /* Цвет текста по умолчанию */ background-color: Canvas; /* Фоновый цвет, адаптируемый системой */ } button { background-color: ButtonFace; color: ButtonText; border-color: ButtonBorder; } button:hover { border-color: AccentColor; } button:focus { outline: 4px auto Highlight; } .anchor { background-color: AccentColor; color: AccentColorText; visibility: hidden; transition: visibility 0.2s ease-in-out; } @media (prefers-color-scheme: dark) { :root { color: CanvasText; background-color: Canvas; } } :root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; --primary-color: CanvasText; --hover-color: #747bff; --background-color: #242424; --background-light: #ffffff; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); background-color: var(--background-color); font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { margin: 0; place-items: center; min-width: 320px; min-height: 100vh; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: var(--background-color); color: inherit; cursor: pointer; transition: border-color 0.25s; } button:hover { border-color: var(--primary-color); } button:focus { outline: 4px auto -webkit-focus-ring-color; } .svgContainer { overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } @media (prefers-color-scheme: light) { :root { color: var(--background-color); background-color: var(--background-light); } button { background-color: #f9f9f9; } button:hover { border-color: var(--hover-color); } } .svgContainer { border: solid CanvasText 1px; } .icon-hand-tool { background: url('../resources/icon-hand-tool.svg'); } .icon-lasso-tool { background: url('../resources/icon-lasso-tool.svg'); } .icon-hand-tool:hover { background: url('../resources/hovered/icon-hand-tool.svg'); } .icon-lasso-tool:hover { background: url('../resources/hovered/icon-lasso-tool.svg'); } .pad-icon-remove { background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20width%3D%2246%22%20height%3D%2246%22%3E%3Cline%20x1%3D%225%22%20y1%3D%225%22%20x2%3D%2215%22%20y2%3D%2215%22%2F%3E%3Cline%20x1%3D%2215%22%20y1%3D%225%22%20x2%3D%225%22%20y2%3D%2215%22%2F%3E%3C%2Fsvg%3E') !important; } .pad-icon-connect { background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20width%3D%2246%22%20height%3D%2246%22%3E%3Cline%20x1%3D%2215%22%20y1%3D%225%22%20x2%3D%225%22%20y2%3D%2215%22%2F%3E%3C%2Fsvg%3E') !important; } .icon-create-shape { background: url('../resources/icon-create-rect.svg'); } .icon-create-shape:hover { background: url('../resources/hovered/icon-create-rect.svg'); }