Skip to content

Twitter UI is a beast to style. Practise with Next JS, Tailwind CSS, Radix UI and Storybook.

License

Notifications You must be signed in to change notification settings

ZenoPrime/twitter-ui-practise

 
 

Repository files navigation

Twitter UI practice clone

The goal of this project is to learn about Next JS. My background is a Web Designer with experience in HTML and Tailwind CSS with some basic JavaScript knowledge. I ended up trying to recreate the homepage UI of the Twitter app. It's far from the original and I'm sure there are many flaws. Any suggestions or improvements, please let me know. The main thing is to have fun and learn something new, hopefully you can too.

twitter-demo.mp4.mp4

Getting Started

When you git clone the repository

npm install
npm run dev

Checkout storybook to view components in isolation

npm run storybook

Issues

The right side panel does not follow the same behavior as Twitter. As you scroll, it sticks but you should be able to see the footer links.

Stack

Resources

People I followed and checked out their repositories and videos to build the clone.

What is that?

If you checkout the package.json, let me try and explain a few

  • class-variance-authority: enables you to create variants for things like buttons. If you are a designer, it is like Figma's component variants.
  • classnames: If you style a component such as Radix UI components, you can have a long line of css utility classes when you use Tailwind CSS. You might have hover, animation, responsive, layout and other classes. Now you can group them on separate lines.

Text component

Text component youtube video - currently testing

Storybook

Storybook addon next

Misc

Author

Roy Quilor

Connect

About

Twitter UI is a beast to style. Practise with Next JS, Tailwind CSS, Radix UI and Storybook.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.8%
  • CSS 9.0%
  • JavaScript 2.6%
  • HTML 0.6%