0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 13:43:03 -05:00
penpot-exporter-figma-plugin/ui-src/main.css
2024-04-12 18:52:19 +02:00

125 lines
2.5 KiB
CSS

:root {
--color-bg: var(--figma-color-bg);
--color-bg-hover: var(--figma-color-bg-hover);
--color-bg-active: var(--figma-color-bg-pressed);
--color-border: var(--figma-color-border);
--color-border-focus: var(--figma-color-border-selected);
--color-icon: var(--figma-color-icon);
--color-text: var(--figma-color-text);
--color-bg-brand: var(--figma-color-bg-brand);
--color-bg-brand-hover: var(--figma-color-bg-brand-hover);
--color-bg-brand-active: var(--figma-color-bg-brand-pressed);
--color-border-brand: var(--figma-color-border-brand);
--color-border-brand-focus: var(--figma-color-border-selected-strong);
--color-text-brand: var(--figma-color-text-onbrand);
}
html,
body,
main {
height: 100%;
}
body,
input,
button {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1rem;
text-align: center;
}
body {
background: var(--color-bg);
color: var(--color-text);
margin: 0;
}
button {
border-radius: 0.25rem;
background: var(--color-bg);
color: var(--color-text);
cursor: pointer;
border: 1px solid var(--color-border);
padding: 0.5rem 1rem;
}
button:hover {
background-color: var(--color-bg-hover);
}
button:active {
background-color: var(--color-bg-active);
}
button:focus-visible {
border: none;
outline-color: var(--color-border-focus);
}
button:disabled {
background-color: black;
color: var(--color-text);
cursor: not-allowed;
}
button.brand {
--color-bg: var(--color-bg-brand);
--color-text: var(--color-text-brand);
--color-bg-hover: var(--color-bg-brand-hover);
--color-bg-active: var(--color-bg-brand-active);
--color-border: transparent;
--color-border-focus: var(--color-border-brand-focus);
}
input {
background: 1px solid var(--color-bg);
border: 1px solid var(--color-border);
color: 1px solid var(--color-text);
padding: 0.5rem;
}
input:focus-visible {
border-color: var(--color-border-focus);
outline-color: var(--color-border-focus);
}
svg {
stroke: var(--color-icon, rgb(0 0 0 / 90%));
height: auto;
width: 2rem;
}
main {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
section {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: 1rem;
}
section > * + * {
margin-top: 0.5rem;
}
footer > * + * {
margin-left: 0.5rem;
}
.missing-fonts small {
font-size: 0.5rem;
padding-top: 5px;
padding-bottom: 5px;
}
ul {
padding: 0;
list-style-type: none;
}