Skip to content

Commit

Permalink
Theme page updates. Issue bgrins#105
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins committed Aug 4, 2013
1 parent c709dc9 commit 2bfe6a3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
7 changes: 6 additions & 1 deletion spectrum.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ License: MIT
opacity: .8;
}

/* Basic themeable display options (colors, fonts, global widths) */
/*
Theme authors:
Here are the basic themeable display options (colors, fonts, global widths).
See http://bgrins.github.io/spectrum/themes/ for instructions.
*/

.sp-container {
border-radius: 0;
background-color: #ECECEC;
Expand Down
25 changes: 25 additions & 0 deletions themes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,31 @@ <h4>sp-dark</h4>

<div id="theme-instructions">
<h3>Instructions for building themes</h3>
<p>
You can change most any property on spectrum using CSS. Anything from borders and colors, to the size of the draggable areas, to the layout of the colorpicker can be changed with plain CSS.
</p>
<h4>Playing friendly with other themes</h4>
<p>
Please prefix all of your rules with <code>.theme-name</code>. The exception is for changes to <code>.sp-container</code> and <code>.sp-replacer</code>, which will have your theme name applied.
</p>
<p>
See a basic scaffold for a super simple theme. See <a href='sp-dark.css'>sp-dark.css</a> for a slightly more advanced example.
</p>
<pre>
.theme-name.sp-container {

}
.theme-name.sp-replacer {

}
.theme-name .sp-preview {

}
</pre>
<h3>Submitting a theme</h3>
<p>
If you have made some customizations that you would like to share, please open a <a href="http://bgrins.github.com/spectrum/pulls">pull request</a> with the theme file inside of this themes/ directory in the project. Or <a href="http://bgrins.github.com/spectrum/issues">open an issue</a> with a link to the theme.
</p>
</div>
</div>

Expand Down
5 changes: 4 additions & 1 deletion themes/sp-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
color: silver;
}
.sp-dark .sp-preview {
border: solid 1px #eee;
border: solid 1px #999;
}
.sp-dark .sp-cancel {
color: #f99f9f !important;
}

0 comments on commit 2bfe6a3

Please sign in to comment.