Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Streamlined theme and randomly generate colors #86

Merged
merged 3 commits into from
Nov 21, 2022

Conversation

nickfarrow
Copy link
Collaborator

@nickfarrow nickfarrow commented Nov 21, 2022

Instead of xmas #62,
Random color theme engaging, try it out

image

@nickfarrow nickfarrow changed the title Styling and theme with random background Streamlined theme and randomly generate primary and secondary colors Nov 21, 2022
@nickfarrow nickfarrow changed the title Streamlined theme and randomly generate primary and secondary colors Streamlined theme and randomly generate colors Nov 21, 2022
<fieldset>
<legend>Queue Inbound Channel</legend>
x-flex direction="column">
<h3>Queue batches of lightning channels to open in a single transaction</h3>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placing this line here gives the correct location. Even though it probably shouldn't be in the form

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think It's good if the form has a header that says what it's for ✅

Copy link
Contributor

@0xBEEFCAF3 0xBEEFCAF3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!!

Comment on lines +88 to +91
to bottom right,
rgb(${color_triplet.join(", ")}),
rgb(7, 10, 19)
)`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: indent to the previous line

rgba(208, 255, 0, 0.986)
);
color: transparent;
color: var(--primary);
Copy link
Contributor

@DanGould DanGould Nov 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's an anti-pattern to style top-level typography with --primary and --secondary. Those are your theme colors. If they were colored within a context, or specifically via style attributes for emphasis that would make more sense. they're already themed with color: var(--color).

I'm inclined to let it pass because it's not a regression, but it's a step sideways in terms of keeping a neat theme.


input {
text-align: right;
}

legend {
color: var(--secondary);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as p, h1, h3 re: color: var(--color);

Comment on lines +81 to +85
.colored-button {
color: black;
background: var(--secondary);
}

Copy link
Contributor

@DanGould DanGould Nov 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You missed the checkbox by styling this with a custom class. When you inspect the buttons you applied this too, you can see they're already styled with --buttonColor and --buttonBg, which is the place for this change. (--buttonColor: var(--secondary);)

As-is this change is a regression

@DanGould
Copy link
Contributor

This gets the job done

@DanGould DanGould merged commit 7adb72a into payjoin:master Nov 21, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants