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

refactor(CSS): project wide refactoring and cleanup #146

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

unseen-ninja
Copy link
Member

This aims to reduce the CSS overhead by removing unused CSS left over from the design stage as well as improving maintanablity by simplifying rule-sets and application.

removing the global CSS in favour of a component
Copy link

vercel bot commented Dec 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 11:16am

interface Props {
children: Snippet;
style?: 'mauve' | 'peach' | 'blue' | 'green' | 'transparent';
small?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of taking in small, it'll be better to take in an explicit width and height. We could default those to some number if we want.

Copy link
Member Author

Choose a reason for hiding this comment

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

small applies to the button size in general, not just the icon size. I don't think we want to use fixed dimensions for buttons?

Copy link
Contributor

@sgoudham sgoudham Dec 22, 2024

Choose a reason for hiding this comment

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

In that case, we should have an enum called ButtonSize or equivalent that can either be small or default.

src/components/Button.svelte Outdated Show resolved Hide resolved
src/components/Button.svelte Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants