Giter Site home page Giter Site logo

krafty's Introduction

Krafty

A theme which makes your Typora feel like you’re writing on a Kraft notebook.


Images

What kind of Kraft notebook isn’t plastered all over with instant photos? Not this one, that’s for sure. Images in Krafty are styled with a Polaroid-esque look; a white border, space for labels at the bottom, subtly off-kilter… For an example of how images look, check out the background of this page courtesy of Jill Burrow via Pexels (thank you!):

Background Image

Code

Code blocks have a white background to stand out against the off-white page, as well as plenty of space around:

/* Here's the code, if you're curious! */

pre, #write .CodeMirror {
  background-color: white;
  font-family: var(--mono);
  padding: 5mm;
  margin: 5mm 0;
  border: none !important;
}

In code view, you also have a line under each line of text. Super helpful to see how many line breaks you’ve used!

Tables

Tables have headers formatted like page headers and cells with a thick white border on the bottom.

Part of the table Style Font
Header White background Roboto Slab
Cell No background, but white bottom border Outfit

Fonts

Krafty uses free fonts from Google Fonts, getting them direct from their website, so you don’t need to have them installed! If you’re interested, the three font families used are:

Outfit (for most text)

Outfit font sample (via Fontke)

Roboto Slab (for headings)

Roboto Slab font sample (via Fontke)

JetBrains Mono (for code)

JetBrains Mono font sample (via Fontke)

So… This is in Typora?

Yep! No extra HTML added, just the standard Typora parsed MarkDown output. The fancy graphics are all SVG backgrounds applied to the :before and :after tags of the main writing area.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.