Skip to content

Denperidge-Contrib/catppuccin-prismjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo
Catppuccin for Prism.js

Previews

🌻 Latte
πŸͺ΄ FrappΓ©
🌺 Macchiato
🌿 Mocha

Usage

Note

The theme does not contain styling for the layout/padding of the highlighted code.

Remote stylesheet

Include the theme/stylesheet (https://prismjs.catppuccin.com/<flavor>.css) in your page. For example:

<!DOCTYPE html>
<html>
  <head>
    ...
    <link href="//prismjs.catppuccin.com/mocha.css" rel="stylesheet" />
  </head>
  <body>
    ...
    <script src="prism.js"></script>
  </body>
</html>

Local CSS

# due to prismjs & this repository having the same name, an alias is used 
yarn add catppuccin-prismjs@https://github.com/catppuccin/prismjs.git

SCSS

@import "catppuccin-prismjs/themes/macchiato";

// Apply the theme only to selector
main {
    @import "catppuccin-prismjs/themes/latte";
}

Depending on your scss config, you might have to use "node_modules/catppuccin-prismjs/themes/macchiato";

πŸ’ Thanks to

 

Copyright Β© 2021-present Catppuccin Org

About

🌈 Soothing pastel theme for Prism.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 99.2%
  • Just 0.8%