Git Product home page Git Product logo

nylas-mail-theme-starter's Introduction

N1 Theme Starter

The N1 Theme Starter is a basic starter for any theme you want to create for Nylas N1, the extensible, open-source email client.

Getting Started

Creating a new theme in N1 is easy! Here's how you can do it.

  1. Fork this repo or download the code. Add a name, display name, title, and description for your theme to package.json, and change the directory name to match.

  2. Open N1 and install the theme by going to Nylas N1 > Install New Theme... and selecting the directory.

  3. Choose Developer > Run With Debug Flags for easier debugging.

  4. Now, you can start playing with the theme! It's installed in ~/.nylas/packages/THEME_NAME, so open it from there. Most of N1's React components are derived from the core variables defined in ui-variables.less, and any changes you make there will override the defaults for N1. You can also add more LESS files in styles (ideally, separated into logical components like thread-list.less) to make your own specific changes. To reload the theme, just open the console (Developer > Toggle Developer Tools) and type NylasEnv.themes.activateThemes().

  5. Once you're happy with your theme, check how it looks in the theme picker (Nylas N1 > Change Theme...). We use your UI variables to pull the colors, but if you want to add your own selections to the color palette, create a theme-colors.less file that includes any of the variables that you want to change, and they'll only affect the theme preview. Here are the variables, on the left, with the part of the theme preview that they match:

    @background-secondary:     BACKGROUND_COLOR
    @text-color:               TEXT_COLOR, FIRST_SWATCH_COLOR
    @component-active-color:   MIDDLE_SWATCH_COLOR
    @toolbar-background-color: LAST_SWATCH_COLOR
    @panel-background-color:   STRIP_COLOR
    

Structure

.
├── styles                 # All stylesheets
│   ├── ui-variables.less  # UI variables that override N1's defaults
│   ├── theme-colors.less  # Theme colors for theme preview (optional)
├── index.less             # Main LESS file to import your stylesheets
├── package.json           # Metadata about the theme
├── LICENSE.md             # License with usage rights
└── README.md              # Info about your theme and how to use it

nylas-mail-theme-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nylas-mail-theme-starter's Issues

Editing the email text area background color independently

Hi,

I'm working on a new email theme, and I want to have a black background for the email page, but a white background for the area that contains the actual email content. Currently, I set the background-primary to black so that the list items can be black in the inbox tables. This color seems to persist to the text area for emails too, which causes some issues when people use specifically black text for their text.

screen shot 2016-06-12 at 7 31 08 pm

As you can see highlighted towards the bottom of the page, there's some black text that you can't see because the background of the text area is black.

Is there a way for me to change the background of the email text area to white, while leaving the inbox email tables black (as shown below)? Here's my fork: https://github.com/bomanimc/N1-theme-starter

screen shot 2016-06-12 at 7 42 36 pm

Delete new theme after install

Installed a new custom theme based on N1-theme-starter and now N1 won't launch. Tried to dig around in the package contents but can't find the custom theme to delete. Also tried deleting N1 and reinstalling, no success.

Any help on how to remove a custom theme after installing much appreciated

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.