Skip to content

Commit 62ae930

Browse files
committed
feat: release ready 1
1 parent e3c4bed commit 62ae930

File tree

7 files changed

+2119
-2238
lines changed

7 files changed

+2119
-2238
lines changed

README.md

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,5 @@
11
# BRiCSS
22

3-
A simple and tailored low-level CSS library.
3+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/ita-design-system/bricss?style=for-the-badge)](https://github.com/ita-design-system/briccs/releases)
44

5-
Optimize library size by selecting responsive CSS properties you really use.
6-
7-
One CSS Property <=> One Abbreviation
8-
9-
Define CSS you really use
10-
11-
<CSS_PROPERTY_PREFIX> + <SEPARATOR> + <VALUE_NAME>
12-
Example
13-
if color property prefix is "c" and separator is "-" and one value name is primary:
14-
c-primary
15-
means if colors are tokens
16-
color: var(--<CSS_VARIABLE_PREFIX><SEPARATOR><TOKEN_FAMILY_NAME><VALUE_NAME>)
17-
color: var(--foo-colors-primary, #FF1234)
18-
else
19-
color: var(--<CSS_VARIABLE_PREFIX><SEPARATOR><TOKEN_FAMILY_NAME><VALUE_NAME>)
20-
21-
![Example 1](assets/medias/example-01.avif)
22-
23-
In that example
24-
25-
| Common class name | Meaning |
26-
|- |- |
27-
| `d-flex` | `display: flex` |
28-
| `fd-column` | `flex-direction: column` |
29-
| `pos-fixed` | `position: fixed` |
30-
| `bottom-0` | `bottom: 0` |
31-
| `left-0` | `left: 0` |
32-
33-
| Attrubute | Meaning |
34-
|- |- |
35-
| `fs-8="xs"` | font size named `8` applied on xs screen sizes |
36-
| `d-flex="xs,sm"` | `display: flex` on xs and sm<sup>[1]</sup> screen sizes |
37-
38-
39-
| Parameter | Type | Default | Description |
40-
|- |- |- |- |
41-
| separator | String | `-` | Common tiny string applied between each prefixes and value names |
42-
| responsiveSeparator | String | `--` | Tiny string applied before screen size names prefixes on responsive class names |
43-
| utilitiesPrefix | String | `u` | Abbreviation applied on utilities class name that add the !important keyword after the value |
44-
| cssVariablesPrefix | String | `bri` | Abbreviation applied for tokens CSS variables |
45-
| screenSizes | String | |
46-
47-
[1]: #pouet
48-
49-
* Only a browser is required
50-
* No build tools
51-
* Automatic documentation
52-
* Download, unzip, set up and use
53-
* Choose CSS properties you really use
54-
* CSS property centric
55-
* Apply responsive selectively
5+
A simple and customizable low-level CSS library generator.

about.html

Lines changed: 1952 additions & 0 deletions
Large diffs are not rendered by default.

assets/css/ui_tabs.css

Lines changed: 0 additions & 37 deletions
This file was deleted.

assets/js/bricss.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,15 @@ const bricss = {
294294
<li class="d-flex jc-space-between ai-center gap-5 | mb-3">
295295
<div class="d-flex fd-column gap-1">
296296
<span class="d-flex fd-column">
297-
<span class="ff-lead-400 fs-1 tt-uppercase | c-secondary-700">CSS Classes</span>
297+
<span class="ff-lead-400 fs-1 tt-uppercase | c-primary-300">CSS Classes</span>
298298
<code class="ff-mono fs-3 | c-secondary-500 c-secondary-200:hover | cur-pointer"
299299
title="${bricss.messages.clickToCopyToClipboard.replace(`XXX`, classes)}"
300300
onclick="ui.copyToClipboard(this.innerText, true)">
301301
${classes}
302302
</code>
303303
</span>
304304
<span class="d-flex fd-column">
305-
<span class="ff-lead-400 fs-1 tt-uppercase | c-tertiary-700">Attribute</span>
305+
<span class="ff-lead-400 fs-1 tt-uppercase | c-primary-300">Attribute</span>
306306
<code class="ff-mono fs-3 | c-tertiary-300 c-tertiary-200:hover | cur-pointer"
307307
title="${bricss.messages.clickToCopyToClipboard.replace(`XXX`, attribute.replaceAll(`"`, `&quot;`))}"
308308
onclick="ui.copyToClipboard(this.innerText, true)">
@@ -337,7 +337,7 @@ const bricss = {
337337
id="${id}"
338338
value=""
339339
onchange="bricss.setResponsive(event)"
340-
class="pos-absolute | opa-0 | __checkbox_ui" ${disabled ? 'disabled="disabled"' : ''}>
340+
class="pos-absolute | opa-0 | __checkbox_ui" ${disabled ? `disabled="disabled"` : ``}>
341341
<label for="${id}" class="d-flex ai-center gap-3 | fs-2">
342342
<span class="p-2 | bc-primary-100 bwidth-1 bstyle-solid bcolor-primary-800 brad-1 | __checkbox_ui"></span>
343343
${label}
@@ -352,7 +352,7 @@ const bricss = {
352352
id="${id}"
353353
value="${screenSize}"
354354
onchange="bricss.setResponsive(event)"
355-
class="pos-absolute | opa-0 | __checkbox_ui" ${disabled ? 'disabled="disabled"' : ''}>
355+
class="pos-absolute | opa-0 | __checkbox_ui" ${disabled ? `disabled="disabled"` : ``}>
356356
<label for="${id}" class="d-flex ai-center gap-3 | fs-2">
357357
<span class="p-2 | bc-primary-100 bwidth-1 bstyle-solid bcolor-primary-800 brad-1 | __checkbox_ui"></span>
358358
${screenSize}
@@ -369,7 +369,7 @@ const bricss = {
369369
<div class="d-flex jc-space-between">
370370
<h4 class="d-flex fd-column gap-3 fg-1 | m-0">
371371
<span class="d-flex fd-column">
372-
<span class="ff-lead-400 fs-1 tt-uppercase | c-secondary-700">Property</span>
372+
<span class="ff-lead-400 fs-1 tt-uppercase | c-primary-300">Property</span>
373373
<span class="d-flex ai-center gap-3 | ff-mono fs-5 | c-secondary-500">
374374
<span class="d-flex ai-center gap-3">
375375
${property}
@@ -388,7 +388,7 @@ const bricss = {
388388
</span>
389389
</span>
390390
<span class="d-flex fd-column">
391-
<span class="ff-lead-400 fs-1 tt-uppercase | c-quaternary-800">Prefix</span>
391+
<span class="ff-lead-400 fs-1 tt-uppercase | c-primary-300">Prefix</span>
392392
<span class="ff-mono fs-5 | c-quaternary-500">
393393
${bricss.build.properties[property].prefix}${bricss.build.settings.separator}
394394
</span>
@@ -407,8 +407,8 @@ const bricss = {
407407
</div>
408408
<ul class="dsg__doc__property_item__list | d-flex fd-column gap-2 fg-1 | m-0 p-0">
409409
<li class="d-flex jc-space-between gap-3 | fs-1 tt-uppercase">
410-
<span class="c-quaternary-800">${bricss.messages.cssClass}</span>
411-
<span class="c-tertiary-700">${bricss.messages.value}</span>
410+
<span class="c-primary-300">${bricss.messages.cssClass}</span>
411+
<span class="c-primary-300">${bricss.messages.value}</span>
412412
</li>
413413
${content}
414414
</ul>

build_simpliest.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)