Free open-source image editor for the browser
@import "tailwindcss";
/* The library's tokens, primitives, and utilities, drawn by its default theme. */
@import "@roprgm/ui/themes/default.css";
@theme {
--font-sans: "Geist Variable", system-ui, sans-serif;
/* Around and between the editor's panels, darker than the lines in a list. */
--color-edge: oklch(0% 0 0);
}
/* `block` waits for Geist instead of painting a fallback first; the page preloads the file, so
the wait is short and text never shows in another font. */
@font-face {
font-family: "Geist Variable";
font-style: normal;
font-display: block;
font-weight: 100 900;
src: url("@fontsource-variable/geist/files/geist-latin-wght-normal.woff2")
format("woff2-variations");
}
@layer base {
html,
body,
#root {
height: 100%;
}
body {
overflow: hidden;
font-family: var(--font-sans);
font-size: var(--text-xs);
line-height: var(--text-xs--line-height);
color: var(--color-foreground);
}
}
/* A start tile's box morphs into the one that takes its place, as the assistant's card moves;
its content leaves before the new content shows, so their text never overlaps. */
::view-transition-group(.start-tile),
::view-transition-group(.start-content) {
animation-duration: 300ms;
animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
::view-transition-old(.start-content) {
animation-duration: 100ms;
}
::view-transition-new(.start-content) {
animation-delay: 100ms;
animation-duration: 200ms;
}
/* A tile with no counterpart shows once the others have moved aside, and leaves before they do. */
::view-transition-new(.start-tile):only-child {
animation-delay: 150ms;
animation-duration: 150ms;
}
::view-transition-old(.start-tile):only-child {
animation-duration: 100ms;
}
@media (prefers-reduced-motion: reduce) {
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
animation: none;
}
}