-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[docs] Use the new logo #750
base: master
Are you sure you want to change the base?
Conversation
vladmoroz
commented
Oct 21, 2024
•
edited
Loading
edited
- New logo and favicons
- Tweaked homepage
Netlify deploy preview |
:root { | ||
--color-content: #fff; | ||
--color-background: oklch(98% 0.25% 264); | ||
--color-foreground: oklch(21% 2% 264); | ||
--color-selection: oklch(80% 0.2 264 / 60%); | ||
--color-gray: oklch(12.7% 6% 264 / 67%); | ||
--color-link: oklch(47% 50% 264); | ||
--color-border: oklch(20% 12% 264 / 25%); | ||
--color-gridline: oklch(91.6% 1% 264); | ||
|
||
@media (prefers-color-scheme: dark) { | ||
--color-content: #000; | ||
--color-background: #000; | ||
--color-foreground: oklch(90% 2% 264); | ||
--color-selection: oklch(50% 0.2 264 / 80%); | ||
--color-gray: oklch(90% 6% 264 / 70%); | ||
--color-link: oklch(69% 50% 264); | ||
--color-border: oklch(90% 12% 264 / 35%); | ||
--color-gridline: oklch(24% 1% 264); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functional colours are provisional, it's likely I'll end up doing a normal Radix-style palette once there is a bit more interactive UI to work with
@@ -38,6 +38,9 @@ module.exports = { | |||
}, | |||
], | |||
'@typescript-eslint/no-redeclare': 'off', | |||
|
|||
// We LOVE non-breaking spaces here | |||
'no-irregular-whitespace': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't setting { skipJSXText: true, skipStrings: true }
be enough?
{description} | ||
</h1> | ||
<p className="text-color-gray mb-4 text-pretty 2xl:text-lg"> | ||
From the creators of Radix, Floating UI, and MUI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the creators of Radix, Floating UI, and MUI. | |
From the creators of Radix, Floating UI, and Material UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colmtuite thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vladmoroz It will be MUI next year, but yeah it should be "Material UI" for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vladmoroz It will be MUI next year, but yeah it should be "Material UI" for now.
Looks like I also don't understand the difference between MUI and Material UI 🫠
How come it will change next year? Material UI library will be renamed to MUI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current state:
MUI - the company
Material UI - the library
Who knows what the future will bring ;)
import { Metadata } from 'next'; | ||
import { GoogleAnalytics } from 'docs/src/components/GoogleAnalytics'; | ||
import * as React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a convention to import React first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I add an ES lint rule to do import order so that it's fixed automatically then? I agree with the convention, I did similar for Radix Themes with a couple other ordering rules in the mix, just don't think a human should waste time doing it manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
I vaguely recall we had one in Material UI, so I don't know why it doesn't work her (but perhaps I'm hallucinating)
@@ -0,0 +1,19 @@ | |||
@layer components { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what's wrong with CSS modules after all? Are we going to have plain CSS, CSS modules, and Tailwind at the same time, or do you want to get rid of modules completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My personal preference would be just plain CSS + Tailwind, and get rid of the current CSS Modules usage as the docs are built out.
I would have went for CSS Modules in a larger team with developers of varying skill levels, but here I don't think there's any significant problem that the tech solves for us. (I always prefix classes with component name so clashes won't happen with basic hygiene).
Do you feel OK about this or would you strongly want to use CSS Modules anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use CSS modules and not go with Tailwind at all, but it's more of a preference than an objective advantage of one tech over the other. Since you'll mostly work on the docs, it's your call.
Side note: could you prefix your PR titles with the main tag ( |
Sure! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New homepage looks super nice 👍