1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="author" content="https://github.com/picturepan2/" />
<title>Spectre.css - The lightweight, responsive and modern CSS framework</title>
<link rel="stylesheet" href="css/spectre.css" />
<link rel="stylesheet" href="css/docs.css" />
<link rel="stylesheet" href="font/style.css" />
</head>
<body>
<section class="section section-header bg-gray">
<section class="grid-header container grid-960">
<nav class="navbar">
<section class="navbar-section">
<a href="#sidebar" class="btn btn-lg btn-link btn-action show-sm"><i class="icon icon-menu"></i></a>
<a href="index.html" class="navbar-brand">Spectre.css</a>
<a href="index.html" class="btn btn-link">Docs</a>
</section>
<section class="navbar-section">
<a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</a>
</section>
</nav>
</section>
</section>
<section class="section section-hero bg-gray">
<section id="overview" class="grid-hero container grid-960 text-center">
<h1>Spectre.css</h1>
<h2>The <u>lightweight</u>, <u>responsive</u> and <u>modern</u> CSS framework</h2>
<div class="columns">
<div class="column">
<a href="index.html#introduction" class="btn btn-primary">Docs</a>
<a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub</a>
</div>
</div>
<div class="columns">
<div class="column col-4 col-xs-12">
<div class="card text-center">
<div class="card-header">
<span class="card-title">Lightweight</span>
</div>
<div class="card-body">
Lightweight (~10KB gzipped) starting point for your projects
</div>
</div>
</div>
<div class="column col-4 col-xs-12">
<div class="card text-center">
<div class="card-header">
<span class="card-title">Responsive</span>
</div>
<div class="card-body">
Flexbox-based, responsive and mobile-friendly layout
</div>
</div>
</div>
<div class="column col-4 col-xs-12">
<div class="card text-center">
<div class="card-header">
<span class="card-title">Modern</span>
</div>
<div class="card-body">
Carefully designed elements and components
</div>
</div>
</div>
</div>
</section>
</section>
<section class="container grid-960">
<section class="columns">
<div id="sidebar" class="docs-sidebar column col-3 col-sm-12">
<ul class="docs-nav nav">
<li class="nav-item active">
<a href="index.html">Getting started</a>
<ul class="nav">
<li class="nav-item">
<a href="index.html#introduction">Introduction</a>
</li>
<li class="nav-item">
<a href="index.html#installation">Installation</a>
</li>
<li class="nav-item">
<a href="index.html#compiling">Custom version</a>
</li>
<li class="nav-item">
<a href="index.html#browsers">Browser support</a>
</li>
<li class="nav-item">
<a href="index.html#whatsnew">What's new</a>
</li>
</ul>
</li>
<li class="nav-item">
<a href="elements.html">Elements</a>
</li>
<li class="nav-item">
<a href="layout.html">Layout</a>
</li>
<li class="nav-item">
<a href="components.html">Components</a>
</li>
<li class="nav-item">
<a href="utilities.html">Utilities</a>
</li>
</ul>
</div>
<a href="#sidebar-close" id="sidebar-close" class="docs-nav-clear"></a>
<div class="docs-content column col-9 col-sm-12">
<section id="introduction" class="container">
<header class="text-center"><h3>Introduction</h3></header>
<section class="notes">
<p><strong>Spectre.css</strong> is a lightweight and responsive and modern CSS framework for faster and extensible development.</p>
<p>Spectre provides basic styles for typography and elements, flexbox based responsive layout system, CSS components and utilities with best practice coding and consistent design language.</p>
</section>
</section>
<section id="installation" class="container">
<header class="text-center"><h3>Installation</h3></header>
<section class="notes">
<p>There are 4 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM, Yarn and Bower.</p>
</section>
<section class="notes">
<h5>Install manually</h5>
<p>Download the compiled and minified <a href="https://github.com/picturepan2/spectre/tree/master/dist" target="_blank">Spectre CSS file</a> (~10KB min+gzip):</p>
<p><a href="https://github.com/picturepan2/spectre/tree/master/dist" target="_blank" class="btn btn-primary">Download Spectre.css</a></p>
<h5>Install with NPM</h5>
<!-- install with npm example -->
<pre class="code"><code><span class="tag">$</span> npm install <span class="atv">spectre.css</span> --save
</code></pre>
<h5>Install with Yarn</h5>
<!-- install with yarn example -->
<pre class="code"><code><span class="tag">$</span> yarn add <span class="atv">spectre.css</span>
</code></pre>
<h5>Install with Bower</h5>
<!-- install with bower example -->
<pre class="code"><code><span class="tag">$</span> bower install <span class="atv">spectre.css</span> --save
</code></pre>
<p>And include <code>spectre.css</code> in your website or Web app <head>. If you want the <a href="experimentals.html">Spectre Experimentals</a> components, you can add <code>spectre-exp.css</code> as well.</p>
<!-- install manually example -->
<pre class="code"><code><<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"dist/spectre.min.css"</span> />
<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"dist/spectre-exp.min.css"</span> />
</code></pre>
</section>
</section>
<section id="compiling" class="container">
<header class="text-center"><h3>Custom version</h3></header>
<section class="notes">
<p>Spectre uses <a href="http://gulpjs.com/" target="_blank">Gulp</a> for compiling CSS. You can customize your version of Spectre.css by editing LESS files in <code>/src</code> directory or removing unneeded components from <code>spectre.less</code>.</p>
<p>Then, you can build the CSS file from the command line:</p>
<ol>
<li>Navigate to the root directory of Spectre where you can find <code>package.json</code> file.</li>
<li>Run <code>npm install</code>. NPM will install all dev dependencies as listed in package.json.</li>
<li>When completed, run <code>gulp build</code> to compile LESS to CSS and minify files.</li>
<li>You can find compiled CSS files in <code>/dist</code> directory.</li>
</ol>
<p>You can watch file changes and rebuild CSS files by using <code>gulp watch</code>.</p>
</section>
<!-- file structure -->
<pre class="code"><code>spectre/
├── dist/
│ ├── spectre-exp.css
│ ├── spectre-exp.min.css
│ ├── spectre.css
│ └── spectre.min.css
│
├── docs/
| ├── css/
│ │ ├── docs.less
│ │ └── ...
│ ├── ../
│ ├── index.html
│ └── ...
│
├── src/
│ ├── mixins.less
│ ├── variables.less
│ └── ...
│
├── spectre-exp.less
└── spectre.less
</code></pre>
<header id="colors" class="text-center"><h4>Colors</h4></header>
<section class="notes">
<p>Spectre.css has its consistent design language colors (primary color <span class="docs-dot bg-primary"></span> <span style="color:#5764c6;">#5764c6</span>), you can modify <code>variables.less</code> to create your new or match existing design. </p>
</section>
</section>
<section id="accessibility" class="container">
<header class="text-center"><h3>Accessibility <small class="label">coming soon</small></h3></header>
</section>
<section id="browsers" class="container">
<header class="text-center"><h3>Browser support</h3></header>
<section class="notes">
<p>Spectre uses <a href="https://github.com/postcss/autoprefixer" target="_blank">Autoprefixer</a> to make most styles compatible with earlier browsers and <a href="https://necolas.github.io/normalize.css/" target="_blank">Normalize.css</a> for CSS resets. Spectre is designed for modern browsers. For best compatibility, these browsers are recommended:</p>
<ul>
<li>Chrome (last 4)</li>
<li>Microsoft Edge (last 4)</li>
<li>Firefox (last 4)</li>
<li>Safari (last 4)</li>
<li>Opera (last 4)</li>
<li>Internet Explorer 10+</li>
</ul>
</section>
</section>
<section id="whatsnew" class="container">
<header class="text-center"><h3>What's new</h3></header>
<section class="notes">
<p><strong>March 2017</strong></p>
<ul>
<li>
<a href="experimentals.html#carousels">Carousels</a>: slideshows for cycling images
</li>
<li>
<a href="experimentals.html#calendars">Calendars</a>: date or date range picker and events display
</li>
</ul>
<p><strong>February 2017</strong></p>
<ul>
<li>New Documents experience <small class="label label-primary">NEW</small></li>
<li>
<a href="components.html#bars">Bars</a>: represent the progress of a task or the value within the known range
</li>
<li>
<a href="components.html#steps">Steps</a>: progress indicators of a sequence of task steps
</li>
<li>
<a href="components.html#tiles">Tiles</a>: repeatable or embeddable information blocks
</li>
<li>
<a href="experimentals.html">Experimentals</a>: experimental elements and features <small class="label label-primary">NEW</small>
</li>
<li>
<a href="experimentals.html#meters">Meters</a>, <a href="experimentals.html#parallax">Parallax</a>, <a href="experimentals.html#progress">Progress</a> and <a href="experimentals.html#sliders">Sliders</a>
</li>
</ul>
<p><strong>March 2016</strong></p>
<ul>
<li>Initial commit</li>
</ul>
</section>
</section>
<section class="container">
<div class="divider"></div>
<ul class="pagination">
<li class="page-item page-next">
<a href="elements.html">
<p class="page-item-meta">Next</p>
<h4 class="page-item-title">Elements</h4>
</a>
</li>
</ul>
</section>
</div>
</section>
</section>
<footer class="bg-gray">
<section id="copyright" class="grid-footer container grid-960">
<p>
<a href="index.html#introduction" target="_blank">Documents</a> | <a href="https://github.com/picturepan2/spectre" target="_blank">GitHub Repo</a> | <a href="https://twitter.com/spectrecss" target="_blank">Twitter</a> | Version <span class="version"></span>
</p>
<p>Designed and built with ♥ by <a href="https://twitter.com/picturepan2" target="_blank">Yan Zhu</a>. Licensed under the <a href="https://github.com/picturepan2/spectre/blob/master/LICENSE" target="_blank">MIT License</a>.</p>
</section>
</footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2702768-8', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>
|