Skip to content
A personal take on PrismJS stylesheet theme based on many copy-pastas
Branch: master
Clone or download
Latest commit b5b0368 May 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit May 4, 2019
README.md Update readme May 5, 2019
package.json Change default import using minified version May 5, 2019
preview.png Initial commit May 4, 2019
prism-bulma.css Add minified and bulma fix versions May 5, 2019
prism-bulma.min.css Add minified and bulma fix versions May 5, 2019
prism.css
prism.min.css Add minified and bulma fix versions May 5, 2019

README.md

prism-theme-ainami-dark

PrismJS stylesheet theme based on many copy-pastas

npm version license

Syntax highlighting preview

Based on Dan Abramov's Overreacted blog PrismJS theme, which also "based on copypasta from Remy Bach and Sarah Drasner". Colors customized to match my blog color scheme.


Installing

Install this package by running:

npm install prism-theme-ainami-dark

or

yarn add prism-theme-ainami-dark

Usage

Import to your page, component, or whatever:

// using default import
require('prism-theme-ainami-dark')

// using bulma fix version
require('prism-theme-ainami-dark/prisma-bulma.min.css')

or

// using default import
import 'prism-theme-ainami-dark'

// using bulma fix version
import 'prism-theme-ainami-dark/prisma-bulma.min.css'

or

<!-- using default import -->
<link
  href="https://unpkg.com/prism-theme-ainami-dark@1.0.2/prism.min.css"
  rel="stylesheet"
/>

<!-- using bulma fix version -->
<link
  href="https://unpkg.com/prism-theme-ainami-dark@1.0.2/prism-bulma.min.css"
  rel="stylesheet"
/>

Variants

Name Description
prisma.css Base theme
prisma.min.css Minified prisma.css (default import)
prisma-bulma.css Base theme with Bulma stylesheet fixes
prisma-bulma.min.css Minified prisma-bulma.css
You can’t perform that action at this time.