npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

simplemde-theme-base

v0.2.1

Published

The base theme for SimpleMDE, you can easily create your custom theme based on this.

Downloads

165

Readme

SimpleMDE Theme Base

Build Status npm package

The base theme for SimpleMDE, you can easily create your custom theme based on this.

Screenshot

Screenshot of SimpleMDE Theme Base

How to use

First, follow SimpleMDE official guide to initial your editor.

Second, replace

https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css

with

https://cdn.rawgit.com/xcatliu/simplemde-theme-base/master/dist/simplemde-theme-base.min.css

That all, there is no step three.

Create your theme

  1. Folk SimpleMDE Theme Base
  2. Clone the folked repo to your workspace
  3. Run npm install and npm start
  4. Open docs/index.html to see the demo
  5. Update src/_custom.scss to customize your theme
  6. Replace base to your theme name
  7. Add your theme to the list of themes

Checkout an example of customized theme: SimpleMDE Theme Dark

Colors

The most common way of customizing a theme is to change the colors.

SimpleMDE Theme Base make this super easy by abstract the colors of SimpleMDE:

//
//
// An example for dark theme
//
// Also you can copy variables from _variables.scss to _custom.scss
// to customize typography, spacing and other variables.
//
//


// Background color
$color-background: #444;
// For code, th
$color-background-over: rgba(255, 255, 255, 0.05);
// For selected area
$color-background-selected: rgba(255, 255, 255, 0.1);

// Border color
$color-border: #555;

// Text color
$color-text: #aaa;
$color-text-muted: #777;
// The link color
$color-text-link: hsl(50, 100%, 50%);

// For preview section
$smde-color-background-preview: #444;
// Image alt, HTML tag and attribute
$smde-color-text-tag: hsl(80, 50%, 50%);

Also you can copy variables from _variables.scss to _custom.scss to customize typography, spacing and other variables.

License

MIT

Thanks

Thanks to SimpleMDE for the great editor and Mobi.css for the inspiration of styling.