inline-styles

Open-source projects categorized as inline-styles

Top 7 inline-style Open-Source Projects

  • react-color

    :art: Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more

  • critical

    Extract & Inline Critical-path CSS in HTML pages

    Project mention: Enhance WASM: Back End Agnostic SSR for Web Components | news.ycombinator.com | 2024-04-11

    If the link element is placed inside of the shadow DOM, then it's not render blocking and you will experience a flash of unstyled content. That's what the lit docs are referring to.

    If you place the link element inside the head of your document, then it is render blocking, which means the browser has to make two round trips to the server if the CSS file isn't in the cache before it render (one to download the HTML file, and then another after it discovers your link element, and has to download the corresponding CSS file).

    > The best from both worlds is to embed a lightweight basic CSS stylesheet inline and the rest in cache-able external CSS files.

    This is the absolute optimal way of doing it. You would have to analyze your styles to see which styles are applied to elements above the fold, then extract them and put them in an inline style tag. The rest of the styles would have to be downloaded via a link tag, but you'd have to place the link tag at the very end of the HTML body tag to prevent the browser from blocking as soon as it encounters the link element or alternatively use JavaScript to add the link element after the page has been rendered. There are tools to automate this for static sites [1], but doing this for dynamically generated HTML is kind of a pain, and I've found that browsers parse CSS so quickly that the overhead of just inlining it all is very low in many cases.

    [1] https://github.com/addyosmani/critical

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • react-mentions

    @mention people in a textarea

  • jsxstyle

    Inline style system for JSX

    Project mention: Panda CSS: build time and type-safe CSS-in-JS | news.ycombinator.com | 2024-02-05

    Works in both React and Preact. It's designed to support generating styles at build time, but I've never bothered. For the sorts of things I work on, being able to quickly bang out a component is more important than golfing the bundle size or maintaining a design system.

    jsxstyle feels like I can sculpt in code. It's really satisfying to hammer out some props and see a component come to life, especially when you've got hot module replacement working.

    Based on a quick perusal of linked page, Panda seems like perhaps a more mature version of jsxstyle, but also more fidgety. As an army of one, I'm happy to optimize for iteration speed, but if I needed to maintain a system, maybe I'd consider switching to Panda.

    https://www.npmjs.com/package/jsxstyle

  • ReactCSS

    :lipstick: Inline Styles in JS

  • css-scope-inline

    🌘 Scope your inline style tags in pure vanilla CSS! Only 16 lines. No build. No dependencies.

    Project mention: Nue CSS: A Scaleable Alternative to Tailwind, BEM, and CSS-in-JS | news.ycombinator.com | 2024-03-21
  • go-premailer

    Inline styling for html mail in golang

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-11.

Index

What are some of the best open-source inline-style projects? This list will help you:

Project Stars
1 react-color 11,843
2 critical 9,950
3 react-mentions 2,336
4 jsxstyle 2,105
5 ReactCSS 1,597
6 css-scope-inline 421
7 go-premailer 132
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com