Coder Social home page Coder Social logo

keshavdulal / linear Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikaa123/linear

0.0 1.0 0.0 816 KB

Ruler app with web-development in mind

Home Page: http://mikaa123.github.io/linear-website/

License: MIT License

JavaScript 57.03% CSS 28.36% HTML 14.61%

linear's Introduction

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

linear's People

Contributors

mikaa123 avatar parro-it avatar radiovisual avatar sbruchmann avatar

Watchers

 avatar

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.