• Stars
    star
    537
  • Rank 82,649 (Top 2 %)
  • Language
    TypeScript
  • Created over 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A quick, painless, Javascript-free baseline overlay.

Baseline

Get a baseline grid overlay on your site in one painless, javascript-free step.

Here's an example demonstrating how to get a 24px baseline overlay on your site:

<link rel="stylesheet" href="http://basehold.it/24">

Easy, huh?

Further Examples:

Specify a 6 digit hex code:

<link rel="stylesheet" href="http://basehold.it/24/DEEFFF">

Specify separate RGB values:

<link rel="stylesheet" href="http://basehold.it/24/255/42/85">

Specify 50% alpha using RGBA:

<link rel="stylesheet" href="http://basehold.it/24/255/42/85/0.5">

Image Only Mode

You can use Baseline to grab the image on it's own, if you'd rather apply it as a background in your own stylesheet.

Simple example:

html {
  background-image: url(http://basehold.it/i/24); /* 24px baseline */
  background-image: url(http://basehold.it/i/24/ff0000); /* with Hex colour */
  background-image: url(http://basehold.it/i/24/255/0/0); /* with RGB colour */
  background-image: url(http://basehold.it/i/24/255/0/0/0.85); /* with RGBA colour */
}

Bookmarklet

Just add this as a bookmark:

javascript:(function(){var%20link=document.createElement("link");link.setAttribute("rel","stylesheet");link.setAttribute("href","http://basehold.it/"+parseInt(window.getComputedStyle(document.body).getPropertyValue("line-height"),10));document.head.appendChild(link);})()

This will add the default grid according to your body line-height (using getComputedStyle).

More Repositories

1

Toast

🍞 A highly-customizable, responsive (S)CSS grid
CSS
2,000
star
2

Baseline.js

A simple jQuery plugin for restoring vertical baselines thrown off by odd image sizes
JavaScript
699
star
3

daneden.me

🏡 This is my website. There are many like it, but this one is mine.
MDX
336
star
4

sublime-css-completions

A more complete library of CSS completions for Sublime Text
283
star
5

Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
Swift
190
star
6

photos.daneden.me

📸 A React.js-based gallery of some of my favorite photos
TypeScript
146
star
7

Twift

🐦 An async Swift library for the Twitter v2 API 🚧 WIP
Swift
111
star
8

PHP-Functions

Some PHP functions that are pretty damn useful
PHP
107
star
9

dotfiles

💻 These are my dotfiles. There are many like them, but these ones are mine.
Shell
81
star
10

Solstice

🌅 An app that tells you how the daylight is changing
Swift
76
star
11

sketch-collapse-all

A Sketch plugin/shortcut to collapse all groups and artboards
JavaScript
61
star
12

design-systems-office-hours-playbook

A playbook for running Design Systems office hours or attending them as a Design System representative. Use this as a template for making your own company Design Systems office hours playbook!
57
star
13

sketch-align-layers

Align layers by edges and centers in Sketch
JavaScript
46
star
14

gifme

MVP do-it-yourself Giphy
JavaScript
43
star
15

Broadcast

🗣 A write-only Twitter client
Swift
41
star
16

ohshitbot

A Twitter bot that panics
JavaScript
33
star
17

sketch-navigate-artboards

Navigate artboards in Sketch
JavaScript
31
star
18

who-would-win

🥊 A Twitter bot that pits emoji against one another
JavaScript
27
star
19

daneden-og-image-generator

An open graph image generator for my website, daneden.me
TypeScript
25
star
20

processing-deepjoy

Processing
21
star
21

next-ssr-example

JavaScript
19
star
22

ia-writer-zettelkasten

📝 An AppleScript service for creating new Zettelkasten-esque notes in iA writer
15
star
23

art.daneden.me

A home for generative art
JavaScript
15
star
24

sketch-replace-layer

💎 A Sketch plugin to replace selected layer(s) with copied content/layer(s)
JavaScript
14
star
25

kindle-airtable-sync

A JavaScript/Node utility to publish Kindle Highlights to an Airtable base
JavaScript
13
star
26

processing-flow-field

Processing
13
star
27

kindle-highlights

A Vercel/Next.js app to render my Kindle highlights
TypeScript
12
star
28

enable-automerge-action

🤖 A GitHub action that enables automerge for pull requests opened by a specified author
TypeScript
11
star
29

muffler

A macOS menu bar app to quickly toggle your microphone and/or video for Zoom and BlueJeans
Swift
11
star
30

shortener

A Netlify-powered personal URL shortener
10
star
31

eloquent-js

My playground for going through the exercises in the book “Eloquent JavaScript”
JavaScript
10
star
32

justmytype

CSS
9
star
33

sketch-plugins

💎 A collection of Sketch plugins authored and maintained by myself
9
star
34

pipify

HTML
9
star
35

Tumblr-Prototype

Homework for week 5 of the CodePath course
Swift
8
star
36

Dropbox-Prototype

A Dropbox app prototype built during the CodePath course
Swift
8
star
37

processing-sandlines

Processing
8
star
38

goldenhour

A minisite for my favorite “golden hour” photos
HTML
7
star
39

2017-music

JavaScript
7
star
40

subtweet

A Twitter bot that tweets randomly selected [SOUND EFFECTS] from subtitles
JavaScript
7
star
41

Converge

A unit conversion widget for macOS
Swift
6
star
42

serious-games

PHP
6
star
43

gantter

TypeScript
6
star
44

Wayfinder-iOS

An iOS-native version of Wayfinder, built during the CodePath iOS for Designers course
Swift
6
star
45

Mailbox-Prototype

Homework for week 3 of the CodePath course
Swift
6
star
46

react-coin-toss

A simple React application that simulates tossing a coin to visualise the average result
JavaScript
6
star
47

Jukebox-iOS

Swift
5
star
48

nounsbot

Pick some nouns. Tweet them.
JavaScript
5
star
49

Carousel-Prototype

Homework for week 2 of the CodePath course
Swift
5
star
50

Facebook-Prototype

Homework for week 4 of the CodePath course
Swift
5
star
51

gatsby-remark-smallcaps

JavaScript
5
star
52

language-sketchplugin

Correct Atom syntax highlighting for .sketchplugin files
CoffeeScript
5
star
53

nextjs-data-fetching

TypeScript
4
star
54

Tinder-Prototype

Swift
4
star
55

2018-music

Photos taken in Oakland in 2018
JavaScript
4
star
56

random-music-playlist

🔀 A macOS service script that plays a random playlist in Apple Music.
4
star
57

processing-rotator

Processing
4
star
58

iOS-Tips

A simple tip calculator written in Swift, with the help of Codepath.
Swift
4
star
59

Emery

💅 A simple app for previewing nail art
Swift
3
star
60

eslint-plugin-daneden

JavaScript
3
star
61

de-gifs-client

A Next.js client for de-gifs.netlify.com
TypeScript
3
star
62

gifme-ios

An iOS app for gif.daneden.me
Swift
3
star
63

Untones

Occasional, delightful ringtones.
CSS
3
star
64

typography.js

Automatic class-writing for web typography tweaks
JavaScript
3
star
65

dtebot

A Markov-chain Twitter bot
Python
3
star
66

processing-rorschach

Processing
3
star
67

jukebox

TypeScript
3
star
68

markov-js

A naive Markov chain implementation in JavaScript
JavaScript
3
star
69

Modal-Transitions

Swift
3
star
70

handy

A simple golf handicap calculator for the Abergele Golf Club
TypeScript
2
star
71

daneden.github.io

HTML
2
star
72

who-would-win-bot

🥊 A Twitter bot that pits emoji against one another
TypeScript
2
star
73

raggedwrite

CSS
2
star
74

jamesgosling

Ruby
1
star
75

rando

🎲 A simple React app that allows you to enter a list of (locally-stored) items and pick one at random.
TypeScript
1
star
76

daneden.me.old

An archived version of my site’s repo going as far back as 2013.
TypeScript
1
star
77

wwwb-leaderboard

TypeScript
1
star