Skip to content

Commit 77a231a

Browse files
committed
doc: update README
1 parent e71a19a commit 77a231a

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@
44

55
A simple and customizable low-level CSS library generator.
66

7-
## JSON Examples
7+
[Documentation](#)
88

9+
## General principles
10+
11+
* **Simple responsive naming convention**: BRiCSS is a simple low-level CSS abstraction and a naming convention based on abbreviations of CSS class names and attributes.
12+
* **CSS you really use**: Just set CSS properties you really use into your designs and code.
13+
* **Responsive on-demand**: Optimized CSS output file size thanks to selective responsive CSS properties you really use.
14+
* **Automatic documentation**: An interactive documentation of CSS output is automatically generated.
15+
* **Low-engineered**: Only a browser is required.
16+
* **JSON based**: BRiCSS is a JSON file base solution to generate a tailored CSS file library.
17+
* **Offline**: Works even with no Internet connection.
18+
* **Design Systems friendly**: Integrates seamlessly into a Design System.
19+
* **Instant file size**: Instantly observe the file size impact of your settings.
20+
* **Copy or download**: Just refresh your browser to get the latest version of your custom CSS library.
21+
22+
## Requirements
23+
24+
A text editor, a web server and a browser.
25+
26+
## Getting started
27+
28+
1. [Download](https://github.com/ita-design-system/bricss/archive/refs/heads/main.zip) or clone this repository the starter project and unpack to any web server.
29+
2. **Edit** `build.json` file to fit your needs.
30+
3. **Run through your browser!** Interactive documentation is generated automatically.
31+
32+
At first start, an onboarding menu with JSON examples is available to help populating your own `build.json`. At least one single CSS property is required to display documentation. When `build.json` is not empty, just click to download or copy your new CSS library.
33+
34+
All JSON examples are placed nto the folder `json_examples` or the repository.
935

docs/index.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,14 @@ <h2 class="m-0 | ff-lead-700 fs-6">General principles</h2>
218218
<h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondary-500">Simple responsive naming convention</h3>
219219
<p class="d-flex | m-0 pt-2 maxw-30ch | pos-relative | pl-6 | fs-4 lh-6 | c-primary-300">
220220
<span class="d-flex | pos-absolute top-0 left-0 | p-4 | __icon-arrow-down-curved-right"></span>
221-
BRiCSS is a simple low-level CSS abstraction and a naming convention based on abbreviations of class names and attributes.
221+
BRiCSS is a simple low-level CSS abstraction and a naming convention based on abbreviations of CSS class names and attributes.
222+
</p>
223+
</li>
224+
<li class="d-flex fd-column fg-1 | p-5 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
225+
<h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondary-500">CSS you really use</h3>
226+
<p class="d-flex | m-0 pt-2 maxw-30ch | pos-relative | pl-6 | fs-4 lh-6 | c-primary-300">
227+
<span class="d-flex | pos-absolute top-0 left-0 | p-4 | __icon-arrow-down-curved-right"></span>
228+
Just set CSS properties you really use into your designs and code.
222229
</p>
223230
</li>
224231
<li class="d-flex fd-column fg-1 | p-5 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
@@ -229,10 +236,10 @@ <h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondar
229236
</p>
230237
</li>
231238
<li class="d-flex fd-column fg-1 | p-5 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
232-
<h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondary-500">Auto doc</h3>
239+
<h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondary-500">Automatic documentation</h3>
233240
<p class="d-flex | m-0 pt-2 maxw-30ch | pos-relative | pl-6 | fs-4 lh-6 | c-primary-300">
234241
<span class="d-flex | pos-absolute top-0 left-0 | p-4 | __icon-arrow-down-curved-right"></span>
235-
Documentation of CSS output is automatically generated.
242+
An interactive documentation of CSS output is automatically generated.
236243
</p>
237244
</li>
238245
<li class="d-flex fd-column fg-1 | p-5 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
@@ -246,7 +253,7 @@ <h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondar
246253
<h3 class="m-0 pl-4 | fs-5 ff-lead-700 | blwidth-1 blstyle-solid bcolor-secondary-500">JSON based</h3>
247254
<p class="d-flex | m-0 pt-2 maxw-30ch | pos-relative | pl-6 | fs-4 lh-6 | c-primary-300">
248255
<span class="d-flex | pos-absolute top-0 left-0 | p-4 | __icon-arrow-down-curved-right"></span>
249-
BRiCSS is a JSON file base solution to generate a tailored CSS file library.
256+
BRiCSS is a JSON file based solution to generate a tailored CSS file library.
250257
</p>
251258
</li>
252259
<li class="d-flex fd-column fg-1 | p-5 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
@@ -316,10 +323,10 @@ <h3 class="pos-relative | m-0 | ff-lead-700 ff-lead-700">
316323
<li class="d-flex fd-column gap-2 fg-1 | p-5 pl-7 | bwidth-1 bstyle-solid bcolor-primary-500 bc-primary-600 brad-2">
317324
<h3 class="pos-relative | m-0 | ff-lead-700 ff-lead-700">
318325
<span class="pos-absolute left-0 t-tX-100 | pr-2 | c-secondary-500">3.</span>
319-
Use it!
326+
Run through your browser!
320327
</h3>
321328
<p class="m-0 maxw-30ch | fs-4 lh-6 | c-primary-300">
322-
Refresh the documentation generated automatically and get a copy of your new CSS library.
329+
Interactive documentation is generated automatically. Just click to download or copy your new CSS library.
323330
</p>
324331
</li>
325332
</ol>

0 commit comments

Comments
 (0)