Best of CSSMay 2024

  1. 1
    Article
    Avatar of devtoDEV·2y

    Make naked websites look great with matcha.css!

    matcha.css is a drop-in semantic styling library in pure CSS that can make naked websites look great without any build steps, JavaScript, configuration, or refactoring. It provides additional modern styles out-of-the-box and is easily customizable and reversible.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Frontend resources! 🚀

    A collection of frontend resources for UI creation, performance optimization, and more.

  3. 3
    Article
    Avatar of asayerasayer·2y

    Using the upcoming CSS when/else rules

    Learn about the upcoming CSS when/else rules which provide a mechanism for applying styles selectively based on specific conditions. These rules are still in the proposal stage and not yet implemented in browsers. The @when rule allows for selective styling, dynamic adaptability, specific conditions, user interaction, state and event styling, customization, and enhanced usability and aesthetics. The @when/@else rules simplify conditional styling and improve readability. They can be implemented by checking browser support, writing base CSS, defining conditions, using @when to apply conditional styles, and using @else for alternative styles. Some advanced techniques include combining with CSS preprocessors and using dynamic styling based on conditions. Best practices include planning CSS, using flexible units, maintaining consistency, and documenting code. Debugging techniques involve using browser DevTools, isolating rules, and eliminating possible causes of issues.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Writing Logic in CSS

    CSS is a highly specialized programming language with control structures like variables, conditions, and loops. It can be used to create smart and reactive layout systems.

  5. 5
    Article
    Avatar of devtoDEV·2y

    Introducing DIVZ - a React component to scroll, swipe & zoom through HTML content on the 3D z-axis

    DIVZ is a free open source React UI component that enables scrolling, swiping, and zooming through HTML elements on the 3D z-axis. It offers simplified integration, diverse applications, and broad device support.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    TailwindCSS Gradients

    Learn how to easily add gradients to your designs using TailwindCSS, with options for starting color, ending color, and middle color. Gradients can also be applied to text elements.

  7. 7
    Article
    Avatar of asayerasayer·2y

    Understanding the Holy Grail Layout Pattern in CSS

    Learn about the Holy Grail layout pattern in CSS, its advantages in web design, and common use cases. See how it differs from other layout patterns and how to implement it using CSS Grid.

  8. 8
    Article
    Avatar of ishadeedAhmad Shadeed·2y

    The Gap

    Learn about the challenges of using margins in CSS, the benefits of using the 'gap' property, and alternatives to consider for managing spacing in your layouts.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Answers to Common Next.js Questions

    Next.js is a high performance framework that provides a FAQ with common questions about Next.js and its Server Components.

  10. 10
    Article
    Avatar of lobstersLobsters·2y

    7.css

    7.css is a CSS framework for building interface components that look like Windows 7. It is built on top of the GUI backbone of XP.css, which is an extension of 98.css. This framework relies on the usage of semantic HTML and does not contain any JavaScript.

  11. 11
    Article
    Avatar of infoqInfoQ·2y

    You Don’t Need a CSS Framework

    CSS frameworks offer short-term gains but become hard to maintain over time. Developers often have to override the framework, which leads to a custom framework that is difficult to maintain. CSS frameworks are hard to enforce consistency with and often deviate from an application's design needs. It is recommended to write custom CSS using modern CSS features for better maintainability and flexibility.

  12. 12
    Article
    Avatar of communityCommunity Picks·2y

    How to Hide Scrollbar Using CSS?

    Learn how to hide scrollbars on websites and web applications using CSS properties. Discover methods to hide element scrollbars and browser scrollbars. Improve the aesthetics of your website without sacrificing functionality.

  13. 13
    Article
    Avatar of communityCommunity Picks·2y

    CSS tools for for designers and coders

    CSS Bud provides high-quality CSS tools and snippets for designers and coders. It offers CSS generators such as shadow generator, text glow generator, and underline generator. It also provides text tools like word counter and character counter. In addition, helpful links to curated design websites and additional CSS tools and resources are available.

  14. 14
    Article
    Avatar of csstipCSS Tip·2y

    CSS-only background patterns with a minimal code

    Find a collection of CSS-only background patterns with minimal code. Easily adjust size and colors and navigate between patterns.

  15. 15
    Article
    Avatar of webweb.dev·2y

    What's new in the web

    The post discusses the recent updates and additions to Baseline, including the Web Platform Dashboard, RUM Archive integration, container queries, :has() selector, subgrid in CSS grid layout, CSS Nesting, <search> element in HTML, responsive video, inert attribute, color-mix() function, :user-valid and :user-invalid pseudo-classes, Compression Streams API, Declarative Shadow DOM, and Popover API.

  16. 16
    Article
    Avatar of communityCommunity Picks·2y

    Join us for the next Frontend Challenge: June Edition

    The Frontend Challenge: June Edition has two June-themed prompts: CSS Art and Glam Up My Markup. Participants can submit their projects using the provided submission templates. The challenge ends on June 9 and winners will be announced on June 11.

  17. 17
    Article
    Avatar of devtoDEV·2y

    How to Create the Perfect Transparent Login Form

    Learn how to create a stylish and see-through login form using HTML, CSS, and JavaScript. Follow step-by-step instructions to design the form structure, style the background image, style the login box, make the title look good, style the email and password sections, style the labels and text boxes, and finally make the login button look good. The result is a simple and attractive login form that can be customized further.

  18. 18
    Article
    Avatar of collectionsCollections·2y

    The Performance Impact of Inline Styles vs CSS

    Using inline styles can improve performance, resulting in smaller HTML and JS files, better browser render time, web vitals, and first contentful paint. Inline styles may be a better option for performance, especially on mobile devices.

  19. 19
    Article
    Avatar of devtoDEV·2y

    Wheel of Fortune with CSS π pi

    Learn how to create a 'Wheel of Fortune' component using CSS. The tutorial covers the markup, styling the wedges, and adding interactivity using JavaScript.

  20. 20
    Video
    Avatar of communityCommunity Picks·2y

    Websites Need More Mario UI

    The post discusses creating a repeatable pattern for a background, animating the position of the pattern, and constructing a Sawtooth Edge.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    Fontsource

    Fontsource provides a collection of loaded fonts for web design, including examples such as Roboto, Open Sans, Poppins, and more.

  22. 22
    Article
    Avatar of communityCommunity Picks·2y

    CSS *vh (dvh, lvh, svh) and *vw units

    Learn about the history and issues with the vh unit in CSS, as well as the introduction of new viewport units.

  23. 23
    Article
    Avatar of hnHacker News·2y

    Old Dogs, new CSS Tricks

    New CSS features have been shipped in recent years, but their adoption remains slow due to various factors, including browser support, lack of urgency, and changing design trends. To overcome the habit of sticking to old CSS patterns, it is important to rethink established patterns, experiment with new techniques in safe environments, and find inspiration from best practices in real-life projects.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    How To Build a Styled Landing Page with Tailwind CSS

    Learn how to build a styled landing page with Tailwind CSS, a utility-first CSS framework. This tutorial covers creating a navbar, hero section, features section, testimonials section, call to action section, and footer.