├── CNAME ├── docs ├── assets │ ├── js │ │ ├── docs.js │ │ └── sticky.js │ ├── img │ │ ├── avatar.jpg │ │ ├── avatar2.png │ │ ├── avatar3.jpg │ │ ├── avatar4.jpg │ │ ├── avatar5.png │ │ ├── avatar6.jpg │ │ ├── avatar7.jpg │ │ └── photo-couch.png │ └── css │ │ ├── pygments-manni.css │ │ ├── docs.min.css │ │ ├── normalize.css │ │ └── docs.css ├── dist │ ├── fonts │ │ ├── photon-entypo.eot │ │ ├── photon-entypo.ttf │ │ └── photon-entypo.woff │ └── template-app │ │ ├── images │ │ ├── avatar.jpg │ │ ├── avatar2.png │ │ ├── avatar3.jpg │ │ ├── avatar4.jpg │ │ ├── avatar5.png │ │ ├── avatar6.jpg │ │ └── avatar7.jpg │ │ ├── package.json │ │ ├── js │ │ ├── menu.js │ │ └── index.js │ │ ├── app.js │ │ └── index.html ├── _layouts │ └── default.html ├── _includes │ ├── nav.html │ ├── header.html │ ├── javascript.html │ └── footer.html ├── components │ ├── basic-window.html │ ├── bars.html │ ├── basic-sidebar.html │ ├── mini-sidebar.html │ ├── buttons.html │ ├── three-paned.html │ ├── buttons-mini.html │ ├── buttons-large.html │ ├── common-layout.html │ ├── bars-tabs.html │ ├── bars-actions.html │ ├── forms.html │ ├── button-groups.html │ ├── tables.html │ ├── lists.html │ ├── navs.html │ └── icons.html ├── index.html ├── demo-app.html ├── getting-started.html └── LICENSE ├── fonts ├── photon-entypo.eot ├── photon-entypo.ttf └── photon-entypo.woff ├── dist ├── fonts │ ├── photon-entypo.eot │ ├── photon-entypo.ttf │ └── photon-entypo.woff └── template-app │ ├── package.json │ ├── js │ └── menu.js │ ├── app.js │ └── index.html ├── sass ├── images.scss ├── appify.scss ├── photon.scss ├── grid.scss ├── navs.scss ├── tables.scss ├── bars.scss ├── lists.scss ├── base.scss ├── tabs.scss ├── variables.scss ├── button-groups.scss ├── forms.scss ├── utilities.scss ├── mixins.scss ├── buttons.scss ├── normalize.scss ├── docs.scss └── icons.scss ├── _config.yml ├── .travis.yml ├── .gitignore ├── LICENSE ├── package.json ├── README.md ├── Gruntfile.js └── CONTRIBUTING.md /CNAME: -------------------------------------------------------------------------------- 1 | photonkit.com 2 | -------------------------------------------------------------------------------- /docs/assets/js/docs.js: -------------------------------------------------------------------------------- 1 | $('.example-component-container').Stickyfill(); 2 | -------------------------------------------------------------------------------- /fonts/photon-entypo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/fonts/photon-entypo.eot -------------------------------------------------------------------------------- /fonts/photon-entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/fonts/photon-entypo.ttf -------------------------------------------------------------------------------- /fonts/photon-entypo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/fonts/photon-entypo.woff -------------------------------------------------------------------------------- /docs/assets/img/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar.jpg -------------------------------------------------------------------------------- /dist/fonts/photon-entypo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/dist/fonts/photon-entypo.eot -------------------------------------------------------------------------------- /dist/fonts/photon-entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/dist/fonts/photon-entypo.ttf -------------------------------------------------------------------------------- /dist/fonts/photon-entypo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/dist/fonts/photon-entypo.woff -------------------------------------------------------------------------------- /docs/assets/img/avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar2.png -------------------------------------------------------------------------------- /docs/assets/img/avatar3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar3.jpg -------------------------------------------------------------------------------- /docs/assets/img/avatar4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar4.jpg -------------------------------------------------------------------------------- /docs/assets/img/avatar5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar5.png -------------------------------------------------------------------------------- /docs/assets/img/avatar6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar6.jpg -------------------------------------------------------------------------------- /docs/assets/img/avatar7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/avatar7.jpg -------------------------------------------------------------------------------- /docs/assets/img/photo-couch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/assets/img/photo-couch.png -------------------------------------------------------------------------------- /docs/dist/fonts/photon-entypo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/fonts/photon-entypo.eot -------------------------------------------------------------------------------- /docs/dist/fonts/photon-entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/fonts/photon-entypo.ttf -------------------------------------------------------------------------------- /docs/dist/fonts/photon-entypo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/fonts/photon-entypo.woff -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar.jpg -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar2.png -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar3.jpg -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar4.jpg -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar5.png -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar6.jpg -------------------------------------------------------------------------------- /docs/dist/template-app/images/avatar7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/connors/photon/HEAD/docs/dist/template-app/images/avatar7.jpg -------------------------------------------------------------------------------- /docs/_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | {% include header.html %} 5 | 6 | 7 | {{ content }} 8 | {% include footer.html %} 9 | {% include javascript.html %} 10 | 11 | 12 | -------------------------------------------------------------------------------- /dist/template-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "proton-template-app", 3 | "version": "1.0.0", 4 | "description": "A simple template app for Proton", 5 | "main": "app.js", 6 | "author": "Connor Sears", 7 | "scripts": { 8 | "start": "electron ." 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs/dist/template-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "proton-template-app", 3 | "version": "1.0.0", 4 | "description": "A simple template app for Proton", 5 | "main": "app.js", 6 | "author": "Connor Sears", 7 | "scripts": { 8 | "start": "electron ." 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /sass/images.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Images.scss 3 | // -------------------------------------------------- 4 | 5 | img { 6 | -webkit-user-drag: text; 7 | } 8 | 9 | .img-circle { 10 | border-radius: 50%; 11 | } 12 | 13 | .img-rounded { 14 | border-radius: $default-border-radius; 15 | } 16 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Meta data 2 | name: Photon 3 | authors: Connor Sears 4 | description: Build desktop apps with simple HTML and CSS components. 5 | 6 | # Dependencies 7 | highlighter: rouge 8 | 9 | # Permalinks 10 | permalink: pretty 11 | 12 | # Server 13 | source: docs 14 | port: 4000 15 | url: http://photonkit.com 16 | -------------------------------------------------------------------------------- /docs/_includes/nav.html: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /sass/appify.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Basic styles that make web elements behave more like native applications 3 | // ------------------------------------------------------------------------ 4 | 5 | * { 6 | cursor: default; 7 | -webkit-user-select: none; 8 | } 9 | 10 | // Forms 11 | input, 12 | textarea { 13 | -webkit-user-select: text; 14 | } 15 | 16 | form, 17 | input, 18 | optgroup, 19 | select, 20 | textarea { 21 | -webkit-user-select: text; 22 | -webkit-app-region: no-drag; 23 | } 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | sudo: false 4 | 5 | git: 6 | depth: 10 7 | 8 | node_js: 9 | - "0.12" 10 | 11 | env: 12 | matrix: 13 | - RUBY_VERSION=2.0 14 | 15 | before_install: 16 | - rvm install $RUBY_VERSION 17 | - rvm use $RUBY_VERSION --fuzzy 18 | - export GEMDIR=$(rvm gemdir) 19 | 20 | install: 21 | - travis_retry npm install 22 | - travis_retry gem install --no-document "jekyll:~>3.0.0" "rouge:~>1.10" "sass:~>3.4" 23 | 24 | matrix: 25 | fast_finish: true 26 | -------------------------------------------------------------------------------- /docs/components/basic-window.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |Underneath it all is Electron. Originally built for GitHub's 30 | Atom text editor, Electron is the easiest way to build cross-platform desktop applications.
31 | 32 |If you can write a bit of HTML, CSS, and JS, you can build full featured applications. 33 | Companies like Microsoft, Facebook, and Slack are using it – why aren't you?
34 | 35 | Learn more 36 |There's still a lot to do before Photon reaches version 1.0. If you're interested in working towards that goal, 40 | be sure to head over to the GitHub project and look over the open 41 | issues and pull requests. 42 |
43 | 44 |Have something specific in mind? Open a pull request and tell everyone why it's awesome.
45 | 46 | View the GitHub project 47 || Name | 20 |Kind | 21 |File Size | 22 |
|---|---|---|
| photon.css | 27 |CSS | 28 |28K | 29 |
| photon.css | 32 |CSS | 33 |28K | 34 |
| photon.css | 37 |CSS | 38 |28K | 39 |
| photon.css | 42 |CSS | 43 |28K | 44 |
| photon.css | 47 |CSS | 48 |28K | 49 |
| photon.css | 52 |CSS | 53 |28K | 54 |
| photon.css | 57 |CSS | 58 |28K | 59 |
| photon.css | 62 |CSS | 63 |28K | 64 |
| photon.css | 67 |CSS | 68 |28K | 69 |
| photon.css | 72 |CSS | 73 |28K | 74 |
| photon.css | 77 |CSS | 78 |28K | 79 |
| photon.css | 82 |CSS | 83 |28K | 84 |
| photon.css | 87 |CSS | 88 |28K | 89 |
| Name | 62 |Kind | 63 |Date Modified | 64 |Author | 65 |
|---|---|---|---|
| bars.scss | 70 |Document | 71 |Oct 13, 2015 | 72 |connors | 73 |
| base.scss | 76 |Document | 77 |Oct 13, 2015 | 78 |connors | 79 |
| button-groups.scss | 82 |Document | 83 |Oct 13, 2015 | 84 |connors | 85 |
| buttons.scss | 88 |Document | 89 |Oct 13, 2015 | 90 |connors | 91 |
| docs.scss | 94 |Document | 95 |Oct 13, 2015 | 96 |connors | 97 |
| forms.scss | 100 |Document | 101 |Oct 13, 2015 | 102 |connors | 103 |
| grid.scss | 106 |Document | 107 |Oct 13, 2015 | 108 |connors | 109 |
| icons.scss | 112 |Document | 113 |Oct 13, 2015 | 114 |connors | 115 |
| images.scss | 118 |Document | 119 |Oct 13, 2015 | 120 |connors | 121 |
| lists.scss | 124 |Document | 125 |Oct 13, 2015 | 126 |connors | 127 |
| mixins.scss | 130 |Document | 131 |Oct 13, 2015 | 132 |connors | 133 |
| navs.scss | 136 |Document | 137 |Oct 13, 2015 | 138 |connors | 139 |
| normalize.scss | 142 |Document | 143 |Oct 13, 2015 | 144 |connors | 145 |
| photon.scss | 148 |Document | 149 |Oct 13, 2015 | 150 |connors | 151 |
| tables.scss | 154 |Document | 155 |Oct 13, 2015 | 156 |connors | 157 |
| tabs.scss | 160 |Document | 161 |Oct 13, 2015 | 162 |connors | 163 |
| utilities.scss | 166 |Document | 167 |Oct 13, 2015 | 168 |connors | 169 |
| variables.scss | 172 |Document | 173 |Oct 13, 2015 | 174 |connors | 175 |
| Name | 62 |Kind | 63 |Date Modified | 64 |Author | 65 |
|---|---|---|---|
| bars.scss | 70 |Document | 71 |Oct 13, 2015 | 72 |connors | 73 |
| base.scss | 76 |Document | 77 |Oct 13, 2015 | 78 |connors | 79 |
| button-groups.scss | 82 |Document | 83 |Oct 13, 2015 | 84 |connors | 85 |
| buttons.scss | 88 |Document | 89 |Oct 13, 2015 | 90 |connors | 91 |
| docs.scss | 94 |Document | 95 |Oct 13, 2015 | 96 |connors | 97 |
| forms.scss | 100 |Document | 101 |Oct 13, 2015 | 102 |connors | 103 |
| grid.scss | 106 |Document | 107 |Oct 13, 2015 | 108 |connors | 109 |
| icons.scss | 112 |Document | 113 |Oct 13, 2015 | 114 |connors | 115 |
| images.scss | 118 |Document | 119 |Oct 13, 2015 | 120 |connors | 121 |
| lists.scss | 124 |Document | 125 |Oct 13, 2015 | 126 |connors | 127 |
| mixins.scss | 130 |Document | 131 |Oct 13, 2015 | 132 |connors | 133 |
| navs.scss | 136 |Document | 137 |Oct 13, 2015 | 138 |connors | 139 |
| normalize.scss | 142 |Document | 143 |Oct 13, 2015 | 144 |connors | 145 |
| photon.scss | 148 |Document | 149 |Oct 13, 2015 | 150 |connors | 151 |
| tables.scss | 154 |Document | 155 |Oct 13, 2015 | 156 |connors | 157 |
| tabs.scss | 160 |Document | 161 |Oct 13, 2015 | 162 |connors | 163 |
| utilities.scss | 166 |Document | 167 |Oct 13, 2015 | 168 |connors | 169 |
| variables.scss | 172 |Document | 173 |Oct 13, 2015 | 174 |connors | 175 |
| Name | 136 |Kind | 137 |Date Modified | 138 |Author | 139 |
|---|---|---|---|
| bars.scss | 144 |Document | 145 |Oct 13, 2015 | 146 |connors | 147 |
| base.scss | 150 |Document | 151 |Oct 13, 2015 | 152 |connors | 153 |
| button-groups.scss | 156 |Document | 157 |Oct 13, 2015 | 158 |connors | 159 |
| buttons.scss | 162 |Document | 163 |Oct 13, 2015 | 164 |connors | 165 |
| docs.scss | 168 |Document | 169 |Oct 13, 2015 | 170 |connors | 171 |
| forms.scss | 174 |Document | 175 |Oct 13, 2015 | 176 |connors | 177 |
| grid.scss | 180 |Document | 181 |Oct 13, 2015 | 182 |connors | 183 |
| icons.scss | 186 |Document | 187 |Oct 13, 2015 | 188 |connors | 189 |
| images.scss | 192 |Document | 193 |Oct 13, 2015 | 194 |connors | 195 |
| lists.scss | 198 |Document | 199 |Oct 13, 2015 | 200 |connors | 201 |
| mixins.scss | 204 |Document | 205 |Oct 13, 2015 | 206 |connors | 207 |
| navs.scss | 210 |Document | 211 |Oct 13, 2015 | 212 |connors | 213 |
| normalize.scss | 216 |Document | 217 |Oct 13, 2015 | 218 |connors | 219 |
| photon.scss | 222 |Document | 223 |Oct 13, 2015 | 224 |connors | 225 |
| tables.scss | 228 |Document | 229 |Oct 13, 2015 | 230 |connors | 231 |
| tabs.scss | 234 |Document | 235 |Oct 13, 2015 | 236 |connors | 237 |
| utilities.scss | 240 |Document | 241 |Oct 13, 2015 | 242 |connors | 243 |
| variables.scss | 246 |Document | 247 |Oct 13, 2015 | 248 |connors | 249 |
Just download Photon and you'll be well on your way
13 |Photon is downloadable in two forms, within which you'll find the following directories and files, logically grouping common and compiled resources.
23 | 24 |Once downloaded, unzip the compressed folder to see the structure of (the compiled) photon. You'll see something like this:
28 | 29 | {% highlight html %} 30 | photon/ 31 | ├── css/ 32 | │ ├── photon.css 33 | ├── fonts/ 34 | │ ├── photon-entypo.eot 35 | │ ├── photon-entypo.svg 36 | │ ├── photon-entypo.ttf 37 | │ └── photon-entypo.woff 38 | └── template-app/ 39 | ├── js/ 40 | │ └── menu.js 41 | ├── app.js 42 | ├── index.html 43 | └── package.json 44 | {% endhighlight %} 45 | 46 |This is the most basic form of Photon: precompiled files for quick drop-in usage in nearly any Electron project. We provide compiled CSS (`photon.*`). We also include the Entypo fonts and a template Electron application for you to quickly get started.
47 | 48 | 49 |The Photon source code download includes the precompiled CSS, and font assets, along with source Sass, and documentation. More specifically, it includes the following and more:
53 | {% highlight html %} 54 | photon/ 55 | ├── sass/ 56 | ├── fonts/ 57 | ├── dist/ 58 | │ ├── css/ 59 | │ ├── fonts/ 60 | │ └── template-app/ 61 | └── docs/ 62 | {% endhighlight %} 63 | 64 |The sass/ and fonts/ are the source code for our CSS and icon fonts (respectively).
65 | The dist/ folder includes everything listed in the precompiled download section above.
66 | The docs/ folder includes the source code for our documentation, and examples/ of Photon usage.
67 | Beyond that, any other included file provides support for packages, license information, and development.
Every Photon application has the same basic structure that consists of
91 | a main .window element and corresponding .window-content wrapper.
Divide up your applications content any way you want using .pane-group and .pane elements.
115 | Add as many panes as you need. They'll layout out evenly across the application.
Sidebars are useful for housing navigation or other supplemental information in your application.
143 | The optional .sidebar class sets the pane's background color to gray.
If a smaller sidebar is what you need, look no further.
170 | {% highlight html %} 171 |Many applications follow the same simple layout with a header, content, and footer structure. 196 | That's super easy to build in Photon.
197 | {% highlight html %} 198 |255 | Thanks for downloading Photon. This is an example HTML page that's linked up to compiled Photon CSS, has the proper meta tags 256 | and the HTML structure. 257 |
258 |