🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

prism-material-themes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prism-material-themes

Themes for the Prism syntax highlighting library based on the Material color scheme

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
500
-26.79%
Maintainers
1
Weekly downloads
 
Created
Source

Prism Material Themes

npm

This repository contains the source code for themes for the Prism syntax highlighting library based on the wonderful Material theme!

Installation

The themes are available on npm:

npm install prism-material-themes

Usage

The themes are located in the package's themes/ directory in the form of CSS files.

Copy and include as asset manually

You can copy the theme you'd like to use into your project and use it like so:

<!DOCTYPE html>
<html>
  <head>
    ...
    <link href="themes/material-default.css" rel="stylesheet" />
  </head>
  <body>
    ...
    <script src="prism.js"></script>
  </body>
</html>

Import using a bundler like webpack

import 'prism-material-themes/themes/material-default.css';

Screenshots

Material Default (material-default.css)

Screenshot of Material Default theme

Material Darker (material-darker.css)

Screenshot of Material Darker theme

Material Lighter (material-lighter.css)

Screenshot of Material Lighter theme

Material Ocean (material-ocean.css)

Screenshot of Material Ocean theme

Material Palenight (material-palenight.css)

Screenshot of Material Palenight theme

Keywords

styles

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts