• Stars
    star
    261
  • Rank 156,630 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated about 3 years ago

Reviews

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

Repository Details

Ruler app with web-development in mind

Linear

Linear Img

Linear is a ruler application for Mac, made with web development in mind. It sits in your menu bar and doesn't get in your way. Here are a few highlights:

  • Linear is not a browser extension. Browser extensions are really useful, but fall short when inspecting the DOM of a document, since they often inject overlay elements themselves.
  • Uses px or em values; set the default font-size to your convenience.
  • Create multiple rulers.
  • Duplicate a ruler, preserving its height and width. Really useful when checking margins.
  • Default themes adapt to dark and light backgrounds.
  • System-wide shortcuts to hide/show rulers.
  • Fine-tune a ruler's positions using arrow keys. Hold shift for faster move (thanks to @gtagle).
  • Show center guides (thanks to @radiovisual).
  • Fully customizable CSS themes (thanks to @radiovisual).

Here is a video to get you started.

Linear is proudly built with Electron.

Installing

Download the latest build or install via homebrew (thanks to @goronfreeman):

$ brew cask install linear

Caveats

Linear uses a transparent, resizable frameless window, which is rather experimental. This is why Mac is the only supported platform at the moment.

Customizable Themes

Creating your own linear theme is as simple as adding a custom css file to linear's theme directory. Linear will use the name of your custom css file as the name of your theme. Follow these steps to get you started:

  1. Copy the universal.css file and rename it to your new theme name (e.g. my-awesome-theme.css).
  2. Edit your custom css file to get the look you want.
  3. Save your custom css to linear's theme directory: /Users/<username>/.linear/themes
  4. Open (or restart) the linear application.
  5. Select your new theme by clicking on the 'theme icon' on the bottom right corner of your ruler.
  6. You can also set your new theme to the Default Theme in the settings menu.

Tip: Linear will titlecase your css files to generate your theme name. For example, a file named my-awesome-theme.css will be seen in linear as My Awesome Theme.

Contributing

Any contribution is welcome, in fact, you'll receive an instant hug for doing one. ;) Linear was built as a side project and is a little rough around the edges, so even bug reports would be great.

Development

After you've cloned or forked the repo, you'll need to install the dependencies (like Electron, etc):

$ npm install

Then to start the app:

$ npm start

To start in debug mode (attaches chrome developer tools):

$ npm debug

License

MIT © The UX Shop

More Repositories

1

imapmq

📥 IMAP based message broker client
Go
274
star
2

umlify

umlifies your projects.
Ruby
91
star
3

catnap

Simple Resource-oriented architecture for node
JavaScript
75
star
4

chimney

Chimney consumes logs to keep you warm.
JavaScript
38
star
5

rdci

Data Context Interaction module for Ruby
Ruby
10
star
6

lilp

lightweight literate programming
Ruby
10
star
7

Curby

Currying in Ruby
Ruby
5
star
8

express-remote_control

Minimalist hypermedia-inspired rest library to build apis with express.
JavaScript
4
star
9

allegory

Takes your js, turns it into an executable ascii image.
JavaScript
4
star
10

ShoesPARQL

Make SPARQL queries using Shoes ruby GUI!
Ruby
3
star
11

api-blueprint-visitors

Visitors for API-Blueprint's AST
JavaScript
3
star
12

hichievement

Your cloud-based activity log
Ruby
3
star
13

SparqlTransmission

Ruby class to wrap SPARQL request to a SPARQL end-point and handle the response in a nice, ruby fashion
Ruby
3
star
14

lilplateform

Literate programing plateformer
Ruby
2
star
15

linear-website

The web home of Linear
CSS
2
star
16

whats

A persistant hash to use as a memo in your terminal
Ruby
2
star
17

im

A tool to document what you're doing in a project.
Ruby
2
star
18

polaroidify

Create hipsterish polaroids from your jpegs. You know you want to!
Ruby
2
star
19

koa-router-controller

Controllers with a Rails-like RESTful interface for koa
JavaScript
2
star
20

EvilLeague

This is clearly the darkest timeline.
Ruby
2
star
21

SinatraSparql

Sinatra interface for SPARQL queries
Ruby
2
star
22

umlify2

umlify2
Ruby
1
star
23

cui

JavaScript
1
star
24

geoclustering_example

JavaScript
1
star