0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

feat: update lorem ipsum plugin styles

This commit is contained in:
Juanfran 2024-05-24 10:30:50 +02:00
parent 24d11f9b6a
commit 3d70eb06d6
3 changed files with 173 additions and 167 deletions

View file

@ -32,7 +32,6 @@ section {
.regular-generate {
padding-block-end: var(--spacing-24);
border-block-end: 2px solid var(--background-quaternary);
button {
margin-block-start: var(--spacing-12);

View file

@ -35,7 +35,7 @@ import { filter, fromEvent, map, merge, take } from 'rxjs';
<option value="characters">Characters</option>
</select>
</div>
<button type="submit" data-appearance="secondary">Generate</button>
<button type="submit" data-appearance="primary">Generate</button>
</section>
<section class="extra-options">
<div class="checkbox-container">

View file

@ -1,183 +1,190 @@
button {
border: 1px solid transparent;
font-weight: 500;
font-size: 12px;
border-radius: 8px;
line-height: 1.2;
padding: 8px 24px 8px 24px;
text-transform: uppercase;
border: 1px solid transparent;
font-weight: 500;
font-size: 12px;
border-radius: 8px;
line-height: 1.2;
padding: 8px 24px 8px 24px;
text-transform: uppercase;
&:hover:not(:disabled) {
cursor: pointer;
}
&:focus-visible {
outline: none;
}
}
[data-theme='dark'] {
[data-appearance='primary']:is(button) {
background-color: var(--da-primary);
border: 1px solid var(--da-primary);
outline: 2px solid transparent;
color: var(--db-secondary);
&:hover:not(:disabled) {
cursor: pointer;
background-color: var(--da-tertiary);
border: 1px solid var(--da-tertiary);
}
&:focus-visible {
outline: none;
}
}
[data-theme="dark"] {
[data-appearance="primary"]:is(button) {
background-color: var(--da-primary);
border: 1px solid var(--da-primary);
outline: 2px solid transparent;
&:hover:not(:disabled) {
background-color: var(--da-tertiary);
border: 1px solid var(--da-tertiary);
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
border: 1px solid var(--db-primary);
outline: 2px solid var(--da-primary);
}
&:active:not(:disabled) {
border: 1px solid var(--da-primary);
outline: 2px solid var(--da-tertiary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--db-quaternary);
color: var(--df-secondary);
}
&[data-variant="destructive"] {
background-color: var(--error-500);
border: 1px solid var(--error-500);
outline: 2px solid transparent;
&:hover:not(:disabled) {
background-color: var(--error-700);
border: 1px solid var(--error-700);
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
border: 1px solid var(--db-primary);
outline: 2px solid var(--error-500);
}
&:active:not(:disabled) {
background-color: var(--app-red);
border: 1px solid var(--app-red);
outline: 2px solid var(--error-700);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--error-950);
color: var(--df-secondary);
}
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
border: 1px solid var(--db-primary);
outline: 2px solid var(--da-primary);
}
[data-appearance="secondary"]:is(button) {
background-color: var(--db-tertiary);
&:active:not(:disabled) {
border: 1px solid var(--da-primary);
outline: 2px solid var(--da-tertiary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--db-quaternary);
color: var(--df-secondary);
}
&[data-variant='destructive'] {
background-color: var(--error-500);
border: 1px solid var(--error-500);
outline: 2px solid transparent;
&:hover:not(:disabled) {
background-color: var(--error-700);
border: 1px solid var(--error-700);
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
border: 1px solid var(--db-primary);
outline: 2px solid var(--error-500);
}
&:active:not(:disabled) {
background-color: var(--app-red);
border: 1px solid var(--app-red);
outline: 2px solid var(--error-700);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--error-950);
color: var(--df-secondary);
&:hover:not(:disabled) {
background-color: var(--db-quaternary);
color: var(--da-primary);
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
border: 1px solid var(--da-primary);
}
&:active:not(:disabled) {
color: var(--da-primary);
outline: 2px solid var(--db-quaternary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--db-quaternary);
}
}
}
}
[data-appearance='secondary']:is(button) {
background-color: var(--db-tertiary);
color: var(--df-secondary);
&:hover:not(:disabled) {
background-color: var(--db-quaternary);
color: var(--da-primary);
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
border: 1px solid var(--da-primary);
}
&:active:not(:disabled) {
color: var(--da-primary);
outline: 2px solid var(--db-quaternary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--db-quaternary);
}
}
}
[data-theme="light"] {
[data-appearance="primary"]:is(button) {
background-color: var(--la-primary);
[data-theme='light'] {
[data-appearance='primary']:is(button) {
background-color: var(--la-primary);
color: var(--lb-primary);
&:hover:not(:disabled) {
background-color: var(--la-tertiary);
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
border: 1px solid var(--lb-primary);
outline: 2px solid var(--la-primary);
}
&:active:not(:disabled) {
border: 1px solid var(--la-primary);
outline: 2px solid var(--la-tertiary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--lb-quaternary);
color: var(--lf-secondary);
}
&[data-variant='destructive'] {
background-color: transparent;
border: 1px solid var(--error-200);
color: var(--lf-secondary);
&:hover:not(:disabled) {
background-color: var(--error-500);
color: var(--lb-secondary);
border: 1px solid var(--lb-primary);
outline: 2px solid var(--error-500);
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
background-color: var(--error-700);
border: 1px solid var(--error-700);
color: var(--lb-secondary);
outline: 2px solid var(--error-700);
}
&:active:not(:disabled) {
background-color: var(--app-red);
color: var(--lb-primary);
outline: 2px solid var(--error-700);
}
&:hover:not(:disabled) {
background-color: var(--la-tertiary);
}
&:disabled {
background-color: var(--error-500);
color: var(--lb-secondary);
}
}
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
border: 1px solid var(--lb-primary);
outline: 2px solid var(--la-primary);
}
[data-appearance='secondary']:is(button) {
background-color: var(--lb-tertiary);
color: var(--lf-secondary);
&:active:not(:disabled) {
border: 1px solid var(--la-primary);
outline: 2px solid var(--la-tertiary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--lb-quaternary);
color: var(--lf-secondary);
}
&[data-variant="destructive"] {
background-color: transparent;
border: 1px solid var(--error-200);
color: var(--lf-secondary);
&:hover:not(:disabled) {
background-color: var(--error-500);
color: var(--lb-secondary);
border: 1px solid var(--lb-primary);
outline: 2px solid var(--error-500);
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
background-color: var(--error-700);
border: 1px solid var(--error-700);
color: var(--lb-secondary);
outline: 2px solid var(--error-700);
}
&:active:not(:disabled) {
background-color: var(--app-red);
color: var(--lb-primary);
outline: 2px solid var(--error-700);
}
&:disabled {
background-color: var(--error-500);
color: var(--lb-secondary);
}
}
&:hover:not(:disabled) {
background-color: var(--lb-quaternary);
color: var(--la-primary);
}
[data-appearance="secondary"]:is(button) {
background-color: var(--lb-tertiary);
color: var(--lf-secondary);
&:hover:not(:disabled) {
background-color: var(--lb-quaternary);
color: var(--la-primary);
}
&:focus:not(:disabled), &:focus-visible:not(:disabled) {
background-color: var(--lb-tertiary);
border: 1px solid var(--la-primary);
color: var(--lf-secondary);
}
&:active:not(:disabled) {
background-color: var(--lb-tertiary);
color: var(--la-primary);
outline: 2px solid var(--lb-quaternary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--lb-quaternary);
}
&:focus:not(:disabled),
&:focus-visible:not(:disabled) {
background-color: var(--lb-tertiary);
border: 1px solid var(--la-primary);
color: var(--lf-secondary);
}
}
&:active:not(:disabled) {
background-color: var(--lb-tertiary);
color: var(--la-primary);
outline: 2px solid var(--lb-quaternary);
}
&:disabled {
background-color: transparent;
border: 1px solid var(--lb-quaternary);
}
}
}