Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from mcdonnelldean/0.0.1
Browse files Browse the repository at this point in the history
0.0.1 to master
  • Loading branch information
mcdonnelldean committed May 19, 2015
2 parents f333127 + 1842375 commit a4bc6b7
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 69 deletions.
27 changes: 0 additions & 27 deletions .gitignore

This file was deleted.

84 changes: 84 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Contributing
Focus White is an __open project__ and encourages participation regardless or race, gender, or
sexual orientation. If you feel you can help in any way please be our guest.


Contributing is not always about adding new features, there are plenty of other ways to get
involved, for instance:

- add more languages
- optimize styling performance.
- report, find and/or fix bugs.

Like any other project there is plenty to be done for people of all skill levels and specialities,
if you have any questions, simply open an issue in the project's [Issues Section][] on GitHub.

## Obtaining the Source
In order to obtain the source for Focus White we first suggest you fork it on Github. After this is
done, navigate to a suitable directory on your machine and run:

```
git clone https://github.com/<USERNAME>/atom-focus-white.git
```

This will pull your fork into a new folder `/atom-focus-white`, move to this directory using:

```
cd atom-focus-white
```

You now have access to your own local copy of Focus White to do as you please with.

## Making a Contribution
If you have something you would like to contribute first ensure your master branch is up to date
with ours, we assume a remote named mcdonnelldean exists that points to the master repo.

```
git checkout master
git pull --rebase mcdonnelldean master
```

Next, create a branch for your contribution:

```
git checkout -b name-of-my-branch
```

Go ahead and work on your feature creating commit's as needed. To create a commit at the command
line simply do:

```
git add --all
git commit -m "a commit message"
```

If you need to create multiline commit messages simply press enter before adding the second `"`
this will cause the console to add a line break to the commit and put the curser on a new line,
to finish simply close the string and press enter.

## Creating a Pull Request
Commit your changes until you are happy. Once you are ready to submit a pull request jump back
out to master and rebase again to ensure you have the latest source:

```
git checkout master
git pull --rebase mcdonnelldean master
git push -f origin master
```

Next jump back on to your branch and rebase it with your newly updated master:

```
git checkout name-of-my-branch
git rebase master
git push -f origin name-of-my-branch
```

Finally navigate to your fork on github. You should see a small marker to create a pull
request, just above the repo explorer. Make sure you add some information along with your
pull request, it makes reviewing it easier.

## License
Licensed under [MIT](./LICENSE) 2015 Dean McDonnell

[Issues Section]: https://github.com/mcdonnelldean/atom-focus-white/issues
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Dean McDonnell (mcdonnelldean)
Copyright (c) 2015 Dean McDonnell

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
76 changes: 73 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,80 @@
# Focus White
An [Atom](http://atom.io) Syntax Theme
[![use-with][use-with-badge]][use-with-url]
[![git][git-badge]][git-url]
[![apm][apm-badge]][apm-url]
[![nearform][nearform-badge]][nearform-url]

Focus White is a hyper minimal syntax theme for [Atom.io][] which removes superfluous highlighting in
favor of more focused highlighting that helps draw the eye to read instead of just acknowledging keywords by
color.

## How To Install
For now, clone the repo and apm link to symlink into your atom folder. Package comming soon.
It is recommended that packages are installed via APM or Atom's package management interface. Packages should
only be installed manually when you want to modify, debug, or otherwise change the package itself. Manually
installed packages will not take advantage of Atom's updater mechanism.

### Via Atom's preferences pane

1. Open atom's preferences pane
2. On the sidebar, choose install
3. Toggle the _search packages_ search bar to Themes
3. In the _search themes_ box, search for _focus white_
4. Choose the correct package, the author will be _mcdonnelldean_
5. Hit install on the the found package
6. Select Themes from the sidebar
7. In the themes dropdown select Focus White
8. Restart any instances of Atom.io

### Using APM

1. Open the command line
2. Run `apm install focus-white`
3. Open atom's preferences pane
4. Select Themes from the sidebar
5. In the themes dropdown select Focus White
6. Restart any instances of Atom.io

### Manually

1. Fork this repository
2. Pull down your fork via github
3. Open the terminal in the package's root directory
4. Run `apm link`, which will symlink the package to Atom
5. Open atom's preferences pane
6. Select Themes from the sidebar
7. In the themes dropdown select Focus White
8. Restart any instances of Atom.io

## Supported Languages
Language support is on a per needed basis. If you need a particular language to be supported, create an
issues with some sample code to use and I will include support for it with the next feature update.

### Javascript

![js-sample][]

Note that this theme styles the full editor pane, that means the whole pane, including gutters and
gutter symbols will be overridden for styling. This is in line with Atom's best practices for Syntax vs
UI theming.

## Contributing
Focus White is an __open project__ and encourages participation regardless or race, gender, or sexual
orientation. If you feel you can help in any way please be our guest. See our [Contributing Guide][] for
information on how to pull this repository as well as how to create a pull request to send to us.

## License
Licensed under [MIT](./LICENSE) 2015 Dean McDonnell

_Sponsored by [nearForm](http://nearform.com), who encourage me to open source all the things!_
[use-with-badge]: https://img.shields.io/badge/use%20with%20-atom.io-green.svg?style=flat-square
[use-with-url]: https://atom.io
[git-badge]: https://img.shields.io/github/release/mcdonnelldean/atom-focus-white.svg?style=flat-square
[git-url]: https://github.com/mcdonnelldean/atom-focus-white/releases
[apm-badge]: https://img.shields.io/apm/v/atom-focus-white.svg?style=flat-square
[apm-url]: https://atom.io/packages/atom-focus-white
[nearform-badge]: https://img.shields.io/badge/sponsored%20by-nearForm-red.svg?style=flat-square
[nearform-url]: http://nearform.com

[Atom.io]: https://atom.io/
[Contributing Guide]: ./CONTRIBUTING.md

[js-sample]: ./images/js-sample.png
7 changes: 0 additions & 7 deletions code-samples/css.css

This file was deleted.

21 changes: 0 additions & 21 deletions code-samples/javascript.js

This file was deleted.

Binary file added images/js-sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Atom internal stuff
@import 'syntax-variables';
@import 'colors';

@import 'syntax-variables';
@import 'editor-styles';

// per-lang styles
@import 'javascript-styles';
@import 'css-styles';
@import 'markdown-styles';
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "focus-white",
"theme": "syntax",
"version": "0.1",
"description": "A light syntax theme",
"version": "0.0.1",
"description": "A black text on white background theme for Atom.io, with hyper minimal coloring.",
"repository": "https://github.com/mcdonnelldean/atom-focus-white",
"license": "MIT",
"engines": {
Expand Down
15 changes: 14 additions & 1 deletion styles/css-styles.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
.css {
color: black;

.html,
.import,
.attribute-name {
font-weight: bold;
font-weight: bold;
color: black;
}

.comment {
color: @green;
font-style: italic;
}

.string,
.constant {
color: @red;
}

.property-value {
.variable,
.constant {
color: @red;
}
}
}
2 changes: 2 additions & 0 deletions styles/javascript-styles.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Javascript Styles

.js {
color: @black;

.keyword,
.storage.function,
.variable.language,
Expand Down
21 changes: 19 additions & 2 deletions styles/markdown-styles.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
.gfm.markup {
.heading.marker {
.gfm {
color: @black;

.marker,
.bold {
font-weight: bold;
}

.italic {
font-style: italic;
}

.raw {
color: @red;
}

.punctuation,
.entity,
.link {
color: @green;
}
}
6 changes: 3 additions & 3 deletions styles/syntax-variables.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// General colors
@syntax-text-color: #555;
@syntax-text-color: black;
@syntax-cursor-color: 555;
@syntax-selection-color: #afc4da;
@syntax-selection-flash-color: #69c;
Expand All @@ -17,8 +17,8 @@
// Gutter colors
@syntax-gutter-text-color: @syntax-text-color;
@syntax-gutter-text-color-selected: @syntax-gutter-text-color;
@syntax-gutter-background-color: white;
@syntax-gutter-background-color-selected: rgba(255, 255, 134, 0.34);
@syntax-gutter-background-color: @syntax-background-color;
@syntax-gutter-background-color-selected: @syntax-background-color;

// For git diff info. i.e. in the gutter
@syntax-color-renamed: #96CBFE;
Expand Down

0 comments on commit a4bc6b7

Please sign in to comment.