Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: initial run at design tokens and base css #3

Merged
merged 7 commits into from
Jan 15, 2024
Merged

Conversation

gavmck
Copy link
Member

@gavmck gavmck commented Jan 15, 2024

First run at some design tokens and base css.

I've moved stuff in I feel pretty confident about and added placeholders for things we need, but are not sure what they should be yet.

Fixed the stylelint config as well.

@import url('./variables.css');
@import url('../node_modules/modern-normalize/modern-normalize.css');
@import url('./tokens.css');
@import url('./base.css');
Copy link
Member

Choose a reason for hiding this comment

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

This file is in bootstrap CSS framework territory because dropping it in will apply a bunch of prescriptive styles globally, rather than limiting scope to components.

But I suppose we need to work like this to avoid redeclaring stuff in each component?

Copy link
Member Author

@gavmck gavmck Jan 15, 2024

Choose a reason for hiding this comment

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

Yeah, I suppose it's whether we see diamond as components only or base styles as well.

Given the principle of styling the html, then adding components to enhance that html it feels like we should have some HTML styles.

I've separated out base and tokens, because you could just use the tokens and the components if you wanted. Tried to keep the base stuff fairly minimal, but it's things we use everywhere.

styles/tokens/font.css Outdated Show resolved Hide resolved
styles/base/scaffolding.css Outdated Show resolved Hide resolved
input::-webkit-inner-spin-button {
appearance: none;
margin: 0;
}
Copy link
Member

Choose a reason for hiding this comment

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

Screenshot 2024-01-15 at 13 56 30

For this file – Would you expect installing Diamond to make these browser alterations to any website that installs it. Or is Diamond intended to be just for our projects and opinions?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm happy to be opinionated on it, I think it should be for us before anyone else. I always turn this off because the spinner sucks and it gets caught by the mouse wheel and changes the value.

styles/base/typography.css Outdated Show resolved Hide resolved
@gavmck gavmck merged commit ff47db6 into main Jan 15, 2024
9 checks passed
@JoshTheWanderer JoshTheWanderer deleted the feature/variables branch February 8, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants