PrismJS
Tailwind CSS
Our great sponsors
PrismJS | Tailwind CSS | |
---|---|---|
59 | 1267 | |
11,952 | 77,328 | |
1.0% | 2.2% | |
0.0 | 8.8 | |
about 1 month ago | 7 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PrismJS
-
My OpenSource Blog that You Can Use Right Now
For Code highlighting, I am using Prism.js. First I am loading the styles file inside the _app.tsx file and inside the CodeBlock component, I am loading the styling that gives us beautiful syntax highlights.
-
Build a simple code editor
Luckily, implementing syntax highlighting in our simple code editor is easy with the use of external libraries. There are several JavaScript libraries available, such as Prism and Highlight.js. For our editor, we'll use Prism since it's easy to use and supports a wide range of programming languages.
-
To learn svelte, I clone Github's issues page including useful features that you might consider reusing.
π Prismjs Code highlighting, use it with Marked
-
Code Reading Docusaurus
I'm trying to implement the new feature in a similar way, but not exactly the same, so my plan is going to modify unwrapMdxCodeBlocks function and apply Prism to highlight the code blocks.
-
How should i go about making a library to color code (syntax highlighting) a user has written?
Or this one for csharp which is more complex https://github.com/PrismJS/prism/blob/master/components/prism-csharp.js
-
What is the proper language markup type we should use for a MakeFile code snippet?
I believe Obsidian utilizes PrismJS as its default syntax highlighter for code blocks.
-
Nextra 2 β Next.js Static Site Generator
Prismjs was replaced by Shiki and rehype-pretty-code.
-
Want to create attractive, interactive docs? Use these amazing documentation tools and examples
If you want to use a libary in the browser, a lightweight library like Prism is more suitable.
-
Fastly fiddle turns 5 with a bunch of new features
So we replaced Monaco with Prism for read-only fiddles, and added code-splitting to further reduce the amount of React code needed before the page can render. Then we made Fiddle's embed IFRAMEs lazy-load, so we don't load it at all if it's off-screen, and we don't block initial render. But the fact remains that an embedded fiddle still took a couple of seconds to load and render.
-
Converting and customizing Markdown files to HTML with Unified, remark & rehype
PrismJS and Highlight.js are two JavaScript libraries to highlight code keywords for multiple programming languages.
Tailwind CSS
-
Open-source timepicker components for Tailwind CSS
Tailwind CSS
-
Exploring Catalyst, Tailwind's UI kit for React
Be sure to have the latest version of Tailwind CSS to avoid compatibility issues, as Catalyst uses the newest version
-
Building a Fast, Efficient Web App: The Technology Stack of PromptSmithy Explained
For development of the UI components, we tried something new. Vercel has this new AI tool called v0.dev that allows developers to take advantage of shadcn/ui and Tailwind using nothing but words, which can then be easily downloaded to your local project using nothing but a simple npx command.
- Creating Nx Workspace with Eslint, Prettier and Husky Configuration
- Css2wind β a minigame to learn Tailwind CSS
-
I Deployed My Own Cute Lilβ Private Internet (a.k.a. VPC)
Each appβs front end is built with Qwik and uses Tailwind for styling. The server-side is powered by Qwik City (Qwikβs official meta-framework) and runs on Node.js hosted on a shared Linode VPS. The apps also use PM2 for process management and Caddy as a reverse proxy and SSL provisioner. The data is stored in a PostgreSQL database that also runs on a shared Linode VPS. The apps interact with the database using Drizzle, an Object-Relational Mapper (ORM) for JavaScript. The entire infrastructure for both apps is managed with Terraform using the Terraform Linode provider, which was new to me, but made provisioning and destroying infrastructure really fast and easy (once I learned how it all worked).
- Free Resources Every Web Developer Should Know About
-
Tailwind CSS v4.0.0 Alpha
Sure. The solution is to disable preflight or override its styles.
-
π€ My top 3 Go packages that I wish I'd known about earlier
β¨ In recent months, I have been developing web projects using GOTTHA stack: Go + Templ + Tailwind CSS + htmx + Alpine.js. As soon as I'm ready to talk about all the subtleties and pitfalls, I'll post it on my social networks.
-
Go + Hypermedia - A Learning Journey (Part 1)
TailwindCSS - utility-first CSS framework
What are some alternatives?
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
flowbite - Open-source UI component library and front-end development framework based on Tailwind CSS
antd - An enterprise-class UI design language and React UI library
unocss - The instant on-demand atomic CSS engine.
windicss - Next generation utility-first CSS framework.
emotion - π©βπ€ CSS-in-JS library designed for high performance style composition
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
vuetify - π Vue Component Framework
chakra-ui - β‘οΈ Simple, Modular & Accessible UI Components for your React Applications
element-plus - π A Vue.js 3 UI Library made by Element team
esbuild - An extremely fast bundler for the web
Bulma - Modern CSS framework based on Flexbox